Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VEN-1625]: VIP for VBNBAdmin and PSR #53

Merged
merged 56 commits into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
cbcf728
feat: simulation and vip for testnet
web3rover Aug 2, 2023
53c9844
feat: added mainnet vip
web3rover Aug 3, 2023
48a7b59
fix: make generate vip work with testnet vips
web3rover Aug 8, 2023
f4659d7
fix: set the correct wbnb address
web3rover Aug 11, 2023
fc4568e
fix: updated to new contracts
web3rover Aug 11, 2023
807973d
updated block number
web3rover Aug 11, 2023
40af0f9
fix: update block number
web3rover Aug 11, 2023
a2212b8
fix: updated addresses
web3rover Aug 11, 2023
e9a4afc
feat: wip - vip for psr
web3rover Sep 26, 2023
13de423
fix: updated contract addresses
web3rover Sep 27, 2023
8422713
fix: fixed simulation
web3rover Sep 27, 2023
3e35f74
feat: completed simulation for testnet
web3rover Sep 27, 2023
4171e64
fix: added mainnet vip
web3rover Sep 27, 2023
7a7e81e
fix: new contracts deployed and transfer ownership to new vBNBAdmin
web3rover Oct 6, 2023
5397810
chore: fix lint
web3rover Oct 6, 2023
e412e1c
fix: updated block number
web3rover Oct 6, 2023
aa4b2e3
fix: redeploy PSR for testnet
web3rover Oct 6, 2023
fba8005
fix: updated psr for mainnet
web3rover Oct 6, 2023
dee5a00
fix: fixed mainnet vip
web3rover Oct 6, 2023
1194af1
fix: fixed testnet vip
web3rover Oct 6, 2023
3b844fe
fix: added tests for reduce reserves
web3rover Oct 9, 2023
d1555b8
fix: added events
web3rover Oct 9, 2023
ecfba64
fix: wip to upgrade risk fund
web3rover Oct 9, 2023
e3546d0
fix: fixed mainnet testnet
web3rover Oct 9, 2023
7554089
fix: testnet vip fixed
web3rover Oct 9, 2023
64ce405
fix: mainnet vip tests
web3rover Oct 9, 2023
3191cf1
fix: fixed mainnet vip
web3rover Oct 10, 2023
74c9cbc
fix: update risk fund implementation
web3rover Oct 10, 2023
8e030ce
fix: added new VIP for testnet
web3rover Oct 10, 2023
64c32cc
fix: vip to reset vBNBAdmin
web3rover Oct 10, 2023
8a726b2
fix: wip - create new testnet vip
web3rover Oct 10, 2023
08ae661
fix: vip for testnet completed
web3rover Oct 10, 2023
1ddfbd5
fix: updated testnet vip
web3rover Oct 11, 2023
d985c76
fix: updated mainnet vip
web3rover Oct 11, 2023
40232f9
fix: reverted proposer address
web3rover Oct 11, 2023
96d2e3b
fix: revert block number change
web3rover Oct 12, 2023
5e53028
fix: use await
web3rover Oct 12, 2023
91003f0
fix: use await
web3rover Oct 12, 2023
0d5bd4b
fix: use random account to reduce reserves
web3rover Oct 12, 2023
b41c799
fix: added tests for risk fund reserves
web3rover Oct 12, 2023
70f44eb
fix: updated testnet VIP
web3rover Oct 13, 2023
0b3ec49
fix: testnet vip to upgrade PSR
web3rover Oct 13, 2023
2cb9a56
fix: remove vip
web3rover Oct 13, 2023
640be07
fix: added vip for prime permissions
web3rover Oct 13, 2023
8906a56
fix: fixed permissions
web3rover Oct 13, 2023
9a5b5dc
fix: updated mainnet vip with new config and address
web3rover Oct 16, 2023
3c227f0
Merge branch 'feat/vbnbadmin-vip' of github.com:VenusProtocol/vips in…
web3rover Oct 16, 2023
db88e2d
fix: added testnet vip
web3rover Oct 16, 2023
d0491b6
fix: remove prime permissions
web3rover Oct 17, 2023
d12e06d
fix: update distribution config
web3rover Oct 17, 2023
2479dc2
fix: remove prime permissions
web3rover Oct 17, 2023
5b82c75
fix: update PSR address
web3rover Oct 17, 2023
1383ef8
fix: accept ownership
web3rover Oct 17, 2023
ffc3694
fix: removed vip
web3rover Oct 17, 2023
5a1b251
feat: add description for VIP setting VBNBAdmin
chechu Oct 19, 2023
a3d3317
feat: added tests to check permission
web3rover Oct 19, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
295 changes: 295 additions & 0 deletions simulations/vip-189/vip-189-testnet/abi/ERC20.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,295 @@
[
{
"inputs": [
{ "internalType": "string", "name": "name_", "type": "string" },
{ "internalType": "string", "name": "symbol_", "type": "string" }
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "address", "name": "owner", "type": "address" },
{ "indexed": true, "internalType": "address", "name": "spender", "type": "address" },
{ "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" }
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": false, "internalType": "address", "name": "userAddress", "type": "address" },
{ "indexed": false, "internalType": "address payable", "name": "relayerAddress", "type": "address" },
{ "indexed": false, "internalType": "bytes", "name": "functionSignature", "type": "bytes" }
],
"name": "MetaTransactionExecuted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" },
{ "indexed": true, "internalType": "bytes32", "name": "previousAdminRole", "type": "bytes32" },
{ "indexed": true, "internalType": "bytes32", "name": "newAdminRole", "type": "bytes32" }
],
"name": "RoleAdminChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" },
{ "indexed": true, "internalType": "address", "name": "account", "type": "address" },
{ "indexed": true, "internalType": "address", "name": "sender", "type": "address" }
],
"name": "RoleGranted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" },
{ "indexed": true, "internalType": "address", "name": "account", "type": "address" },
{ "indexed": true, "internalType": "address", "name": "sender", "type": "address" }
],
"name": "RoleRevoked",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "address", "name": "from", "type": "address" },
{ "indexed": true, "internalType": "address", "name": "to", "type": "address" },
{ "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" }
],
"name": "Transfer",
"type": "event"
},
{
"inputs": [],
"name": "DEFAULT_ADMIN_ROLE",
"outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "ERC712_VERSION",
"outputs": [{ "internalType": "string", "name": "", "type": "string" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "PREDICATE_ROLE",
"outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "owner", "type": "address" },
{ "internalType": "address", "name": "spender", "type": "address" }
],
"name": "allowance",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "spender", "type": "address" },
{ "internalType": "uint256", "name": "amount", "type": "uint256" }
],
"name": "approve",
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "account", "type": "address" }],
"name": "balanceOf",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "decimals",
"outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "spender", "type": "address" },
{ "internalType": "uint256", "name": "subtractedValue", "type": "uint256" }
],
"name": "decreaseAllowance",
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "userAddress", "type": "address" },
{ "internalType": "bytes", "name": "functionSignature", "type": "bytes" },
{ "internalType": "bytes32", "name": "sigR", "type": "bytes32" },
{ "internalType": "bytes32", "name": "sigS", "type": "bytes32" },
{ "internalType": "uint8", "name": "sigV", "type": "uint8" }
],
"name": "executeMetaTransaction",
"outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "getChainId",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "getDomainSeperator",
"outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "user", "type": "address" }],
"name": "getNonce",
"outputs": [{ "internalType": "uint256", "name": "nonce", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }],
"name": "getRoleAdmin",
"outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "bytes32", "name": "role", "type": "bytes32" },
{ "internalType": "uint256", "name": "index", "type": "uint256" }
],
"name": "getRoleMember",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }],
"name": "getRoleMemberCount",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "bytes32", "name": "role", "type": "bytes32" },
{ "internalType": "address", "name": "account", "type": "address" }
],
"name": "grantRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "bytes32", "name": "role", "type": "bytes32" },
{ "internalType": "address", "name": "account", "type": "address" }
],
"name": "hasRole",
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "spender", "type": "address" },
{ "internalType": "uint256", "name": "addedValue", "type": "uint256" }
],
"name": "increaseAllowance",
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "user", "type": "address" },
{ "internalType": "uint256", "name": "amount", "type": "uint256" }
],
"name": "mint",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [{ "internalType": "string", "name": "", "type": "string" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "bytes32", "name": "role", "type": "bytes32" },
{ "internalType": "address", "name": "account", "type": "address" }
],
"name": "renounceRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "bytes32", "name": "role", "type": "bytes32" },
{ "internalType": "address", "name": "account", "type": "address" }
],
"name": "revokeRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "symbol",
"outputs": [{ "internalType": "string", "name": "", "type": "string" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "recipient", "type": "address" },
{ "internalType": "uint256", "name": "amount", "type": "uint256" }
],
"name": "transfer",
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "sender", "type": "address" },
{ "internalType": "address", "name": "recipient", "type": "address" },
{ "internalType": "uint256", "name": "amount", "type": "uint256" }
],
"name": "transferFrom",
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
"stateMutability": "nonpayable",
"type": "function"
}
]
Loading
Loading