@venusprotocol/governance-contracts 1.0.1-dev.1 → 1.0.1-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/contracts/Governance/AccessControlManager.sol +44 -5
- package/contracts/Governance/AccessControlledV5.sol +4 -5
- package/contracts/Governance/AccessControlledV8.sol +4 -6
- package/contracts/Governance/GovernorBravoDelegate.sol +67 -0
- package/contracts/Governance/GovernorBravoDelegator.sol +5 -0
- package/contracts/Governance/GovernorBravoInterfaces.sol +23 -2
- package/contracts/Governance/IAccessControlManagerV5.sol +5 -0
- package/contracts/Governance/IAccessControlManagerV8.sol +5 -0
- package/contracts/Governance/Timelock.sol +5 -0
- package/package.json +1 -1
- package/artifacts/@openzeppelin/contracts/access/AccessControl.sol/AccessControl.dbg.json +0 -4
- package/artifacts/@openzeppelin/contracts/access/AccessControl.sol/AccessControl.json +0 -215
- package/artifacts/@openzeppelin/contracts/access/IAccessControl.sol/IAccessControl.dbg.json +0 -4
- package/artifacts/@openzeppelin/contracts/access/IAccessControl.sol/IAccessControl.json +0 -183
- package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json +0 -4
- package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.json +0 -10
- package/artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.dbg.json +0 -4
- package/artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.json +0 -10
- package/artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.dbg.json +0 -4
- package/artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.json +0 -30
- package/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.dbg.json +0 -4
- package/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.json +0 -30
- package/artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.dbg.json +0 -4
- package/artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.json +0 -10
- package/artifacts/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol/Ownable2StepUpgradeable.dbg.json +0 -4
- package/artifacts/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol/Ownable2StepUpgradeable.json +0 -115
- package/artifacts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.dbg.json +0 -4
- package/artifacts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.json +0 -76
- package/artifacts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.dbg.json +0 -4
- package/artifacts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.json +0 -24
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.dbg.json +0 -4
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.json +0 -10
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.dbg.json +0 -4
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.json +0 -24
- package/artifacts/@venusprotocol/venus-protocol/contracts/Governance/XVS.sol/Owned.dbg.json +0 -4
- package/artifacts/@venusprotocol/venus-protocol/contracts/Governance/XVS.sol/Owned.json +0 -66
- package/artifacts/@venusprotocol/venus-protocol/contracts/Governance/XVS.sol/Tokenlock.dbg.json +0 -4
- package/artifacts/@venusprotocol/venus-protocol/contracts/Governance/XVS.sol/Tokenlock.json +0 -90
- package/artifacts/@venusprotocol/venus-protocol/contracts/Governance/XVS.sol/XVS.dbg.json +0 -4
- package/artifacts/@venusprotocol/venus-protocol/contracts/Governance/XVS.sol/XVS.json +0 -618
- package/artifacts/@venusprotocol/venus-protocol/contracts/Utils/Address.sol/Address.dbg.json +0 -4
- package/artifacts/@venusprotocol/venus-protocol/contracts/Utils/Address.sol/Address.json +0 -10
- package/artifacts/@venusprotocol/venus-protocol/contracts/Utils/ECDSA.sol/ECDSA.dbg.json +0 -4
- package/artifacts/@venusprotocol/venus-protocol/contracts/Utils/ECDSA.sol/ECDSA.json +0 -10
- package/artifacts/@venusprotocol/venus-protocol/contracts/Utils/IBEP20.sol/IBEP20.dbg.json +0 -4
- package/artifacts/@venusprotocol/venus-protocol/contracts/Utils/IBEP20.sol/IBEP20.json +0 -206
- package/artifacts/@venusprotocol/venus-protocol/contracts/Utils/SafeBEP20.sol/SafeBEP20.dbg.json +0 -4
- package/artifacts/@venusprotocol/venus-protocol/contracts/Utils/SafeBEP20.sol/SafeBEP20.json +0 -10
- package/artifacts/@venusprotocol/venus-protocol/contracts/Utils/SafeMath.sol/SafeMath.dbg.json +0 -4
- package/artifacts/@venusprotocol/venus-protocol/contracts/Utils/SafeMath.sol/SafeMath.json +0 -10
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSStore.sol/XVSStore.dbg.json +0 -4
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSStore.sol/XVSStore.json +0 -244
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVault.sol/IXVSStore.dbg.json +0 -4
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVault.sol/IXVSStore.json +0 -56
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVault.sol/XVSVault.dbg.json +0 -4
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVault.sol/XVSVault.json +0 -1211
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultErrorReporter.sol/XVSVaultErrorReporter.dbg.json +0 -4
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultErrorReporter.sol/XVSVaultErrorReporter.json +0 -36
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultProxy.sol/XVSVaultProxy.dbg.json +0 -4
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultProxy.sol/XVSVaultProxy.json +0 -255
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultStorage.sol/XVSVaultAdminStorage.dbg.json +0 -4
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultStorage.sol/XVSVaultAdminStorage.json +0 -71
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultStorage.sol/XVSVaultStorage.dbg.json +0 -4
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultStorage.sol/XVSVaultStorage.json +0 -313
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultStorage.sol/XVSVaultStorageV1.dbg.json +0 -4
- package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultStorage.sol/XVSVaultStorageV1.json +0 -240
- package/artifacts/build-info/0ed8a45a04a58741f8391cb7a77f7ff9.json +0 -1
- package/artifacts/build-info/1659b7cff20ee8b7949bfbefa681db8b.json +0 -1
- package/artifacts/build-info/21eeeec59918770851ef762f6f414247.json +0 -1
- package/artifacts/build-info/60a7730a05f99cbf38891be24e3a5c77.json +0 -1
- package/artifacts/build-info/fa9891803c56b8a530ff515ffc45dc03.json +0 -1
- package/artifacts/contracts/Governance/AccessControlManager.sol/AccessControlManager.dbg.json +0 -4
- package/artifacts/contracts/Governance/AccessControlManager.sol/AccessControlManager.json +0 -369
- package/artifacts/contracts/Governance/AccessControlledV5.sol/AccessControlledV5.dbg.json +0 -4
- package/artifacts/contracts/Governance/AccessControlledV5.sol/AccessControlledV5.json +0 -45
- package/artifacts/contracts/Governance/AccessControlledV8.sol/AccessControlledV8.dbg.json +0 -4
- package/artifacts/contracts/Governance/AccessControlledV8.sol/AccessControlledV8.json +0 -181
- package/artifacts/contracts/Governance/GovernorBravoDelegate.sol/GovernorBravoDelegate.dbg.json +0 -4
- package/artifacts/contracts/Governance/GovernorBravoDelegate.sol/GovernorBravoDelegate.json +0 -1173
- package/artifacts/contracts/Governance/GovernorBravoDelegator.sol/GovernorBravoDelegator.dbg.json +0 -4
- package/artifacts/contracts/Governance/GovernorBravoDelegator.sol/GovernorBravoDelegator.json +0 -424
- package/artifacts/contracts/Governance/GovernorBravoInterfaces.sol/GovernorAlphaInterface.dbg.json +0 -4
- package/artifacts/contracts/Governance/GovernorBravoInterfaces.sol/GovernorAlphaInterface.json +0 -26
- package/artifacts/contracts/Governance/GovernorBravoInterfaces.sol/GovernorBravoDelegateStorageV1.dbg.json +0 -4
- package/artifacts/contracts/Governance/GovernorBravoInterfaces.sol/GovernorBravoDelegateStorageV1.json +0 -283
- package/artifacts/contracts/Governance/GovernorBravoInterfaces.sol/GovernorBravoDelegateStorageV2.dbg.json +0 -4
- package/artifacts/contracts/Governance/GovernorBravoInterfaces.sol/GovernorBravoDelegateStorageV2.json +0 -335
- package/artifacts/contracts/Governance/GovernorBravoInterfaces.sol/GovernorBravoDelegatorStorage.dbg.json +0 -4
- package/artifacts/contracts/Governance/GovernorBravoInterfaces.sol/GovernorBravoDelegatorStorage.json +0 -56
- package/artifacts/contracts/Governance/GovernorBravoInterfaces.sol/GovernorBravoEvents.dbg.json +0 -4
- package/artifacts/contracts/Governance/GovernorBravoInterfaces.sol/GovernorBravoEvents.json +0 -312
- package/artifacts/contracts/Governance/GovernorBravoInterfaces.sol/TimelockInterface.dbg.json +0 -4
- package/artifacts/contracts/Governance/GovernorBravoInterfaces.sol/TimelockInterface.json +0 -188
- package/artifacts/contracts/Governance/GovernorBravoInterfaces.sol/XvsVaultInterface.dbg.json +0 -4
- package/artifacts/contracts/Governance/GovernorBravoInterfaces.sol/XvsVaultInterface.json +0 -37
- package/artifacts/contracts/Governance/IAccessControlManagerV5.sol/IAccessControlManagerV5.dbg.json +0 -4
- package/artifacts/contracts/Governance/IAccessControlManagerV5.sol/IAccessControlManagerV5.json +0 -300
- package/artifacts/contracts/Governance/IAccessControlManagerV8.sol/IAccessControlManagerV8.dbg.json +0 -4
- package/artifacts/contracts/Governance/IAccessControlManagerV8.sol/IAccessControlManagerV8.json +0 -282
- package/artifacts/contracts/Governance/Timelock.sol/Timelock.dbg.json +0 -4
- package/artifacts/contracts/Governance/Timelock.sol/Timelock.json +0 -468
- package/artifacts/contracts/Utils/SafeMath.sol/SafeMath.dbg.json +0 -4
- package/artifacts/contracts/Utils/SafeMath.sol/SafeMath.json +0 -10
- package/artifacts/contracts/test/MockAccessTest.sol/MockAccessTest.dbg.json +0 -4
- package/artifacts/contracts/test/MockAccessTest.sol/MockAccessTest.json +0 -194
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_format": "hh-sol-artifact-1",
|
|
3
|
-
"contractName": "ECDSA",
|
|
4
|
-
"sourceName": "@venusprotocol/venus-protocol/contracts/Utils/ECDSA.sol",
|
|
5
|
-
"abi": [],
|
|
6
|
-
"bytecode": "0x6080604052348015600f57600080fd5b50603e80601d6000396000f3fe6080604052600080fdfea265627a7a72315820254141042b2eed0ed88821b506a3ec8e62fd757e018e35d741c9dfdea17fb01864736f6c63430005100032",
|
|
7
|
-
"deployedBytecode": "0x6080604052600080fdfea265627a7a72315820254141042b2eed0ed88821b506a3ec8e62fd757e018e35d741c9dfdea17fb01864736f6c63430005100032",
|
|
8
|
-
"linkReferences": {},
|
|
9
|
-
"deployedLinkReferences": {}
|
|
10
|
-
}
|
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_format": "hh-sol-artifact-1",
|
|
3
|
-
"contractName": "IBEP20",
|
|
4
|
-
"sourceName": "@venusprotocol/venus-protocol/contracts/Utils/IBEP20.sol",
|
|
5
|
-
"abi": [
|
|
6
|
-
{
|
|
7
|
-
"anonymous": false,
|
|
8
|
-
"inputs": [
|
|
9
|
-
{
|
|
10
|
-
"indexed": true,
|
|
11
|
-
"internalType": "address",
|
|
12
|
-
"name": "owner",
|
|
13
|
-
"type": "address"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"indexed": true,
|
|
17
|
-
"internalType": "address",
|
|
18
|
-
"name": "spender",
|
|
19
|
-
"type": "address"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"indexed": false,
|
|
23
|
-
"internalType": "uint256",
|
|
24
|
-
"name": "value",
|
|
25
|
-
"type": "uint256"
|
|
26
|
-
}
|
|
27
|
-
],
|
|
28
|
-
"name": "Approval",
|
|
29
|
-
"type": "event"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"anonymous": false,
|
|
33
|
-
"inputs": [
|
|
34
|
-
{
|
|
35
|
-
"indexed": true,
|
|
36
|
-
"internalType": "address",
|
|
37
|
-
"name": "from",
|
|
38
|
-
"type": "address"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"indexed": true,
|
|
42
|
-
"internalType": "address",
|
|
43
|
-
"name": "to",
|
|
44
|
-
"type": "address"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"indexed": false,
|
|
48
|
-
"internalType": "uint256",
|
|
49
|
-
"name": "value",
|
|
50
|
-
"type": "uint256"
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
"name": "Transfer",
|
|
54
|
-
"type": "event"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"constant": true,
|
|
58
|
-
"inputs": [
|
|
59
|
-
{
|
|
60
|
-
"internalType": "address",
|
|
61
|
-
"name": "owner",
|
|
62
|
-
"type": "address"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"internalType": "address",
|
|
66
|
-
"name": "spender",
|
|
67
|
-
"type": "address"
|
|
68
|
-
}
|
|
69
|
-
],
|
|
70
|
-
"name": "allowance",
|
|
71
|
-
"outputs": [
|
|
72
|
-
{
|
|
73
|
-
"internalType": "uint256",
|
|
74
|
-
"name": "",
|
|
75
|
-
"type": "uint256"
|
|
76
|
-
}
|
|
77
|
-
],
|
|
78
|
-
"payable": false,
|
|
79
|
-
"stateMutability": "view",
|
|
80
|
-
"type": "function"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"constant": false,
|
|
84
|
-
"inputs": [
|
|
85
|
-
{
|
|
86
|
-
"internalType": "address",
|
|
87
|
-
"name": "spender",
|
|
88
|
-
"type": "address"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"internalType": "uint256",
|
|
92
|
-
"name": "amount",
|
|
93
|
-
"type": "uint256"
|
|
94
|
-
}
|
|
95
|
-
],
|
|
96
|
-
"name": "approve",
|
|
97
|
-
"outputs": [
|
|
98
|
-
{
|
|
99
|
-
"internalType": "bool",
|
|
100
|
-
"name": "",
|
|
101
|
-
"type": "bool"
|
|
102
|
-
}
|
|
103
|
-
],
|
|
104
|
-
"payable": false,
|
|
105
|
-
"stateMutability": "nonpayable",
|
|
106
|
-
"type": "function"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"constant": true,
|
|
110
|
-
"inputs": [
|
|
111
|
-
{
|
|
112
|
-
"internalType": "address",
|
|
113
|
-
"name": "account",
|
|
114
|
-
"type": "address"
|
|
115
|
-
}
|
|
116
|
-
],
|
|
117
|
-
"name": "balanceOf",
|
|
118
|
-
"outputs": [
|
|
119
|
-
{
|
|
120
|
-
"internalType": "uint256",
|
|
121
|
-
"name": "",
|
|
122
|
-
"type": "uint256"
|
|
123
|
-
}
|
|
124
|
-
],
|
|
125
|
-
"payable": false,
|
|
126
|
-
"stateMutability": "view",
|
|
127
|
-
"type": "function"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"constant": true,
|
|
131
|
-
"inputs": [],
|
|
132
|
-
"name": "totalSupply",
|
|
133
|
-
"outputs": [
|
|
134
|
-
{
|
|
135
|
-
"internalType": "uint256",
|
|
136
|
-
"name": "",
|
|
137
|
-
"type": "uint256"
|
|
138
|
-
}
|
|
139
|
-
],
|
|
140
|
-
"payable": false,
|
|
141
|
-
"stateMutability": "view",
|
|
142
|
-
"type": "function"
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"constant": false,
|
|
146
|
-
"inputs": [
|
|
147
|
-
{
|
|
148
|
-
"internalType": "address",
|
|
149
|
-
"name": "recipient",
|
|
150
|
-
"type": "address"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"internalType": "uint256",
|
|
154
|
-
"name": "amount",
|
|
155
|
-
"type": "uint256"
|
|
156
|
-
}
|
|
157
|
-
],
|
|
158
|
-
"name": "transfer",
|
|
159
|
-
"outputs": [
|
|
160
|
-
{
|
|
161
|
-
"internalType": "bool",
|
|
162
|
-
"name": "",
|
|
163
|
-
"type": "bool"
|
|
164
|
-
}
|
|
165
|
-
],
|
|
166
|
-
"payable": false,
|
|
167
|
-
"stateMutability": "nonpayable",
|
|
168
|
-
"type": "function"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"constant": false,
|
|
172
|
-
"inputs": [
|
|
173
|
-
{
|
|
174
|
-
"internalType": "address",
|
|
175
|
-
"name": "sender",
|
|
176
|
-
"type": "address"
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
"internalType": "address",
|
|
180
|
-
"name": "recipient",
|
|
181
|
-
"type": "address"
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
"internalType": "uint256",
|
|
185
|
-
"name": "amount",
|
|
186
|
-
"type": "uint256"
|
|
187
|
-
}
|
|
188
|
-
],
|
|
189
|
-
"name": "transferFrom",
|
|
190
|
-
"outputs": [
|
|
191
|
-
{
|
|
192
|
-
"internalType": "bool",
|
|
193
|
-
"name": "",
|
|
194
|
-
"type": "bool"
|
|
195
|
-
}
|
|
196
|
-
],
|
|
197
|
-
"payable": false,
|
|
198
|
-
"stateMutability": "nonpayable",
|
|
199
|
-
"type": "function"
|
|
200
|
-
}
|
|
201
|
-
],
|
|
202
|
-
"bytecode": "0x",
|
|
203
|
-
"deployedBytecode": "0x",
|
|
204
|
-
"linkReferences": {},
|
|
205
|
-
"deployedLinkReferences": {}
|
|
206
|
-
}
|
package/artifacts/@venusprotocol/venus-protocol/contracts/Utils/SafeBEP20.sol/SafeBEP20.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_format": "hh-sol-artifact-1",
|
|
3
|
-
"contractName": "SafeBEP20",
|
|
4
|
-
"sourceName": "@venusprotocol/venus-protocol/contracts/Utils/SafeBEP20.sol",
|
|
5
|
-
"abi": [],
|
|
6
|
-
"bytecode": "0x60556023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea265627a7a72315820277366164396d37a8d802e11d91562894a151edf7d884011d9651f8a7a6f2d6b64736f6c63430005100032",
|
|
7
|
-
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea265627a7a72315820277366164396d37a8d802e11d91562894a151edf7d884011d9651f8a7a6f2d6b64736f6c63430005100032",
|
|
8
|
-
"linkReferences": {},
|
|
9
|
-
"deployedLinkReferences": {}
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_format": "hh-sol-artifact-1",
|
|
3
|
-
"contractName": "SafeMath",
|
|
4
|
-
"sourceName": "@venusprotocol/venus-protocol/contracts/Utils/SafeMath.sol",
|
|
5
|
-
"abi": [],
|
|
6
|
-
"bytecode": "0x60556023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea265627a7a72315820ef67aeeceecf7b9069a0e842340f7fd77df8718cb273ae769232c848a00f6e0264736f6c63430005100032",
|
|
7
|
-
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea265627a7a72315820ef67aeeceecf7b9069a0e842340f7fd77df8718cb273ae769232c848a00f6e0264736f6c63430005100032",
|
|
8
|
-
"linkReferences": {},
|
|
9
|
-
"deployedLinkReferences": {}
|
|
10
|
-
}
|
package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSStore.sol/XVSStore.json
DELETED
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_format": "hh-sol-artifact-1",
|
|
3
|
-
"contractName": "XVSStore",
|
|
4
|
-
"sourceName": "@venusprotocol/venus-protocol/contracts/XVSVault/XVSStore.sol",
|
|
5
|
-
"abi": [
|
|
6
|
-
{
|
|
7
|
-
"inputs": [],
|
|
8
|
-
"payable": false,
|
|
9
|
-
"stateMutability": "nonpayable",
|
|
10
|
-
"type": "constructor"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"anonymous": false,
|
|
14
|
-
"inputs": [
|
|
15
|
-
{
|
|
16
|
-
"indexed": true,
|
|
17
|
-
"internalType": "address",
|
|
18
|
-
"name": "oldAdmin",
|
|
19
|
-
"type": "address"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"indexed": true,
|
|
23
|
-
"internalType": "address",
|
|
24
|
-
"name": "newAdmin",
|
|
25
|
-
"type": "address"
|
|
26
|
-
}
|
|
27
|
-
],
|
|
28
|
-
"name": "AdminTransferred",
|
|
29
|
-
"type": "event"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"anonymous": false,
|
|
33
|
-
"inputs": [
|
|
34
|
-
{
|
|
35
|
-
"indexed": false,
|
|
36
|
-
"internalType": "address",
|
|
37
|
-
"name": "oldPendingAdmin",
|
|
38
|
-
"type": "address"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"indexed": false,
|
|
42
|
-
"internalType": "address",
|
|
43
|
-
"name": "newPendingAdmin",
|
|
44
|
-
"type": "address"
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
"name": "NewPendingAdmin",
|
|
48
|
-
"type": "event"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"anonymous": false,
|
|
52
|
-
"inputs": [
|
|
53
|
-
{
|
|
54
|
-
"indexed": true,
|
|
55
|
-
"internalType": "address",
|
|
56
|
-
"name": "oldOwner",
|
|
57
|
-
"type": "address"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"indexed": true,
|
|
61
|
-
"internalType": "address",
|
|
62
|
-
"name": "newOwner",
|
|
63
|
-
"type": "address"
|
|
64
|
-
}
|
|
65
|
-
],
|
|
66
|
-
"name": "OwnerTransferred",
|
|
67
|
-
"type": "event"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"constant": false,
|
|
71
|
-
"inputs": [],
|
|
72
|
-
"name": "acceptAdmin",
|
|
73
|
-
"outputs": [],
|
|
74
|
-
"payable": false,
|
|
75
|
-
"stateMutability": "nonpayable",
|
|
76
|
-
"type": "function"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"constant": true,
|
|
80
|
-
"inputs": [],
|
|
81
|
-
"name": "admin",
|
|
82
|
-
"outputs": [
|
|
83
|
-
{
|
|
84
|
-
"internalType": "address",
|
|
85
|
-
"name": "",
|
|
86
|
-
"type": "address"
|
|
87
|
-
}
|
|
88
|
-
],
|
|
89
|
-
"payable": false,
|
|
90
|
-
"stateMutability": "view",
|
|
91
|
-
"type": "function"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"constant": false,
|
|
95
|
-
"inputs": [
|
|
96
|
-
{
|
|
97
|
-
"internalType": "address",
|
|
98
|
-
"name": "_tokenAddress",
|
|
99
|
-
"type": "address"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"internalType": "uint256",
|
|
103
|
-
"name": "_amount",
|
|
104
|
-
"type": "uint256"
|
|
105
|
-
}
|
|
106
|
-
],
|
|
107
|
-
"name": "emergencyRewardWithdraw",
|
|
108
|
-
"outputs": [],
|
|
109
|
-
"payable": false,
|
|
110
|
-
"stateMutability": "nonpayable",
|
|
111
|
-
"type": "function"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"constant": true,
|
|
115
|
-
"inputs": [],
|
|
116
|
-
"name": "owner",
|
|
117
|
-
"outputs": [
|
|
118
|
-
{
|
|
119
|
-
"internalType": "address",
|
|
120
|
-
"name": "",
|
|
121
|
-
"type": "address"
|
|
122
|
-
}
|
|
123
|
-
],
|
|
124
|
-
"payable": false,
|
|
125
|
-
"stateMutability": "view",
|
|
126
|
-
"type": "function"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"constant": true,
|
|
130
|
-
"inputs": [],
|
|
131
|
-
"name": "pendingAdmin",
|
|
132
|
-
"outputs": [
|
|
133
|
-
{
|
|
134
|
-
"internalType": "address",
|
|
135
|
-
"name": "",
|
|
136
|
-
"type": "address"
|
|
137
|
-
}
|
|
138
|
-
],
|
|
139
|
-
"payable": false,
|
|
140
|
-
"stateMutability": "view",
|
|
141
|
-
"type": "function"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
"constant": true,
|
|
145
|
-
"inputs": [
|
|
146
|
-
{
|
|
147
|
-
"internalType": "address",
|
|
148
|
-
"name": "",
|
|
149
|
-
"type": "address"
|
|
150
|
-
}
|
|
151
|
-
],
|
|
152
|
-
"name": "rewardTokens",
|
|
153
|
-
"outputs": [
|
|
154
|
-
{
|
|
155
|
-
"internalType": "bool",
|
|
156
|
-
"name": "",
|
|
157
|
-
"type": "bool"
|
|
158
|
-
}
|
|
159
|
-
],
|
|
160
|
-
"payable": false,
|
|
161
|
-
"stateMutability": "view",
|
|
162
|
-
"type": "function"
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
"constant": false,
|
|
166
|
-
"inputs": [
|
|
167
|
-
{
|
|
168
|
-
"internalType": "address",
|
|
169
|
-
"name": "token",
|
|
170
|
-
"type": "address"
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
"internalType": "address",
|
|
174
|
-
"name": "_to",
|
|
175
|
-
"type": "address"
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
"internalType": "uint256",
|
|
179
|
-
"name": "_amount",
|
|
180
|
-
"type": "uint256"
|
|
181
|
-
}
|
|
182
|
-
],
|
|
183
|
-
"name": "safeRewardTransfer",
|
|
184
|
-
"outputs": [],
|
|
185
|
-
"payable": false,
|
|
186
|
-
"stateMutability": "nonpayable",
|
|
187
|
-
"type": "function"
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
"constant": false,
|
|
191
|
-
"inputs": [
|
|
192
|
-
{
|
|
193
|
-
"internalType": "address",
|
|
194
|
-
"name": "_owner",
|
|
195
|
-
"type": "address"
|
|
196
|
-
}
|
|
197
|
-
],
|
|
198
|
-
"name": "setNewOwner",
|
|
199
|
-
"outputs": [],
|
|
200
|
-
"payable": false,
|
|
201
|
-
"stateMutability": "nonpayable",
|
|
202
|
-
"type": "function"
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"constant": false,
|
|
206
|
-
"inputs": [
|
|
207
|
-
{
|
|
208
|
-
"internalType": "address",
|
|
209
|
-
"name": "_admin",
|
|
210
|
-
"type": "address"
|
|
211
|
-
}
|
|
212
|
-
],
|
|
213
|
-
"name": "setPendingAdmin",
|
|
214
|
-
"outputs": [],
|
|
215
|
-
"payable": false,
|
|
216
|
-
"stateMutability": "nonpayable",
|
|
217
|
-
"type": "function"
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
"constant": false,
|
|
221
|
-
"inputs": [
|
|
222
|
-
{
|
|
223
|
-
"internalType": "address",
|
|
224
|
-
"name": "_tokenAddress",
|
|
225
|
-
"type": "address"
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
"internalType": "bool",
|
|
229
|
-
"name": "status",
|
|
230
|
-
"type": "bool"
|
|
231
|
-
}
|
|
232
|
-
],
|
|
233
|
-
"name": "setRewardToken",
|
|
234
|
-
"outputs": [],
|
|
235
|
-
"payable": false,
|
|
236
|
-
"stateMutability": "nonpayable",
|
|
237
|
-
"type": "function"
|
|
238
|
-
}
|
|
239
|
-
],
|
|
240
|
-
"bytecode": "0x608060405234801561001057600080fd5b50600080546001600160a01b03191633179055610a1b806100326000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c80639ad99e68116100665780639ad99e681461012b578063f5a1f5b414610161578063f5ab16cc14610187578063f851a440146101c1578063fb66fb4d146101c95761009e565b80630e18b681146100a357806326782247146100ad5780634dd18bf5146100d1578063804e523e146100f75780638da5cb5b14610123575b600080fd5b6100ab6101f7565b005b6100b56102f3565b604080516001600160a01b039092168252519081900360200190f35b6100ab600480360360208110156100e757600080fd5b50356001600160a01b0316610302565b6100ab6004803603604081101561010d57600080fd5b506001600160a01b0381351690602001356103b5565b6100b5610423565b6100ab6004803603606081101561014157600080fd5b506001600160a01b03813581169160208101359091169060400135610432565b6100ab6004803603602081101561017757600080fd5b50356001600160a01b03166105bb565b6101ad6004803603602081101561019d57600080fd5b50356001600160a01b03166106b8565b604080519115158252519081900360200190f35b6100b56106cd565b6100ab600480360360408110156101df57600080fd5b506001600160a01b03813516906020013515156106dc565b6001546001600160a01b0316331461024b576040805162461bcd60e51b815260206004820152601260248201527137b7363c903832b73234b7339030b236b4b760711b604482015290519081900360640190fd5b60008054600180546001600160a01b038082166001600160a01b0319808616821787559092169092556040805182815260208101959095528051929093169390927fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a992918290030190a1600080546040516001600160a01b0391821692918516917ff8ccb027dfcd135e000e9d45e6cc2d662578a8825d4c45b5e32e0adf67e79ec691a35050565b6001546001600160a01b031681565b6000546001600160a01b03163314610352576040805162461bcd60e51b815260206004820152600e60248201526d37b7363c9030b236b4b71031b0b760911b604482015290519081900360640190fd5b600180546001600160a01b038381166001600160a01b0319831681179093556040805191909216808252602082019390935281517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a9929181900390910190a15050565b6002546001600160a01b03163314610405576040805162461bcd60e51b815260206004820152600e60248201526d37b7363c9037bbb732b91031b0b760911b604482015290519081900360640190fd5b61041f6001600160a01b038316338363ffffffff61077b16565b5050565b6002546001600160a01b031681565b6002546001600160a01b03163314610482576040805162461bcd60e51b815260206004820152600e60248201526d37b7363c9037bbb732b91031b0b760911b604482015290519081900360640190fd5b6001600160a01b03831660009081526003602052604090205460ff1615156001146104ec576040805162461bcd60e51b815260206004820152601560248201527437b7363c903932bbb0b932103a37b5b2b71031b0b760591b604482015290519081900360640190fd5b6001600160a01b038316156105b657604080516370a0823160e01b815230600482015290516000916001600160a01b038616916370a0823191602480820192602092909190829003018186803b15801561054557600080fd5b505afa158015610559573d6000803e3d6000fd5b505050506040513d602081101561056f57600080fd5b505190508082111561059a576105956001600160a01b038516848363ffffffff61077b16565b6105b4565b6105b46001600160a01b038516848463ffffffff61077b16565b505b505050565b6000546001600160a01b0316331461060b576040805162461bcd60e51b815260206004820152600e60248201526d37b7363c9030b236b4b71031b0b760911b604482015290519081900360640190fd5b6001600160a01b038116610666576040805162461bcd60e51b815260206004820152601d60248201527f6e6577206f776e657220697320746865207a65726f2061646472657373000000604482015290519081900360640190fd5b600280546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8934ce4adea8d9ce0d714d2c22b86790e41b7731c84b926fbbdc1d40ff6533c990600090a35050565b60036020526000908152604090205460ff1681565b6000546001600160a01b031681565b6000546001600160a01b03163314806106ff57506002546001600160a01b031633145b610750576040805162461bcd60e51b815260206004820152601760248201527f6f6e6c792061646d696e206f72206f776e65722063616e000000000000000000604482015290519081900360640190fd5b6001600160a01b03919091166000908152600360205260409020805460ff1916911515919091179055565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526105b69084906107da826001600160a01b0316610980565b61082b576040805162461bcd60e51b815260206004820152601f60248201527f5361666542455032303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106108695780518252601f19909201916020918201910161084a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146108cb576040519150601f19603f3d011682016040523d82523d6000602084013e6108d0565b606091505b509150915081610927576040805162461bcd60e51b815260206004820181905260248201527f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156105b45780806020019051602081101561094357600080fd5b50516105b45760405162461bcd60e51b815260040180806020018281038252602a8152602001806109bd602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906109b457508115155b94935050505056fe5361666542455032303a204245503230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820f101efd2a735bc9d48e42a112e164d2a52ad6e383db7f9bb171c51870bd59b3c64736f6c63430005100032",
|
|
241
|
-
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061009e5760003560e01c80639ad99e68116100665780639ad99e681461012b578063f5a1f5b414610161578063f5ab16cc14610187578063f851a440146101c1578063fb66fb4d146101c95761009e565b80630e18b681146100a357806326782247146100ad5780634dd18bf5146100d1578063804e523e146100f75780638da5cb5b14610123575b600080fd5b6100ab6101f7565b005b6100b56102f3565b604080516001600160a01b039092168252519081900360200190f35b6100ab600480360360208110156100e757600080fd5b50356001600160a01b0316610302565b6100ab6004803603604081101561010d57600080fd5b506001600160a01b0381351690602001356103b5565b6100b5610423565b6100ab6004803603606081101561014157600080fd5b506001600160a01b03813581169160208101359091169060400135610432565b6100ab6004803603602081101561017757600080fd5b50356001600160a01b03166105bb565b6101ad6004803603602081101561019d57600080fd5b50356001600160a01b03166106b8565b604080519115158252519081900360200190f35b6100b56106cd565b6100ab600480360360408110156101df57600080fd5b506001600160a01b03813516906020013515156106dc565b6001546001600160a01b0316331461024b576040805162461bcd60e51b815260206004820152601260248201527137b7363c903832b73234b7339030b236b4b760711b604482015290519081900360640190fd5b60008054600180546001600160a01b038082166001600160a01b0319808616821787559092169092556040805182815260208101959095528051929093169390927fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a992918290030190a1600080546040516001600160a01b0391821692918516917ff8ccb027dfcd135e000e9d45e6cc2d662578a8825d4c45b5e32e0adf67e79ec691a35050565b6001546001600160a01b031681565b6000546001600160a01b03163314610352576040805162461bcd60e51b815260206004820152600e60248201526d37b7363c9030b236b4b71031b0b760911b604482015290519081900360640190fd5b600180546001600160a01b038381166001600160a01b0319831681179093556040805191909216808252602082019390935281517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a9929181900390910190a15050565b6002546001600160a01b03163314610405576040805162461bcd60e51b815260206004820152600e60248201526d37b7363c9037bbb732b91031b0b760911b604482015290519081900360640190fd5b61041f6001600160a01b038316338363ffffffff61077b16565b5050565b6002546001600160a01b031681565b6002546001600160a01b03163314610482576040805162461bcd60e51b815260206004820152600e60248201526d37b7363c9037bbb732b91031b0b760911b604482015290519081900360640190fd5b6001600160a01b03831660009081526003602052604090205460ff1615156001146104ec576040805162461bcd60e51b815260206004820152601560248201527437b7363c903932bbb0b932103a37b5b2b71031b0b760591b604482015290519081900360640190fd5b6001600160a01b038316156105b657604080516370a0823160e01b815230600482015290516000916001600160a01b038616916370a0823191602480820192602092909190829003018186803b15801561054557600080fd5b505afa158015610559573d6000803e3d6000fd5b505050506040513d602081101561056f57600080fd5b505190508082111561059a576105956001600160a01b038516848363ffffffff61077b16565b6105b4565b6105b46001600160a01b038516848463ffffffff61077b16565b505b505050565b6000546001600160a01b0316331461060b576040805162461bcd60e51b815260206004820152600e60248201526d37b7363c9030b236b4b71031b0b760911b604482015290519081900360640190fd5b6001600160a01b038116610666576040805162461bcd60e51b815260206004820152601d60248201527f6e6577206f776e657220697320746865207a65726f2061646472657373000000604482015290519081900360640190fd5b600280546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8934ce4adea8d9ce0d714d2c22b86790e41b7731c84b926fbbdc1d40ff6533c990600090a35050565b60036020526000908152604090205460ff1681565b6000546001600160a01b031681565b6000546001600160a01b03163314806106ff57506002546001600160a01b031633145b610750576040805162461bcd60e51b815260206004820152601760248201527f6f6e6c792061646d696e206f72206f776e65722063616e000000000000000000604482015290519081900360640190fd5b6001600160a01b03919091166000908152600360205260409020805460ff1916911515919091179055565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526105b69084906107da826001600160a01b0316610980565b61082b576040805162461bcd60e51b815260206004820152601f60248201527f5361666542455032303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106108695780518252601f19909201916020918201910161084a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146108cb576040519150601f19603f3d011682016040523d82523d6000602084013e6108d0565b606091505b509150915081610927576040805162461bcd60e51b815260206004820181905260248201527f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156105b45780806020019051602081101561094357600080fd5b50516105b45760405162461bcd60e51b815260040180806020018281038252602a8152602001806109bd602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906109b457508115155b94935050505056fe5361666542455032303a204245503230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820f101efd2a735bc9d48e42a112e164d2a52ad6e383db7f9bb171c51870bd59b3c64736f6c63430005100032",
|
|
242
|
-
"linkReferences": {},
|
|
243
|
-
"deployedLinkReferences": {}
|
|
244
|
-
}
|
package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVault.sol/IXVSStore.json
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_format": "hh-sol-artifact-1",
|
|
3
|
-
"contractName": "IXVSStore",
|
|
4
|
-
"sourceName": "@venusprotocol/venus-protocol/contracts/XVSVault/XVSVault.sol",
|
|
5
|
-
"abi": [
|
|
6
|
-
{
|
|
7
|
-
"constant": false,
|
|
8
|
-
"inputs": [
|
|
9
|
-
{
|
|
10
|
-
"internalType": "address",
|
|
11
|
-
"name": "_token",
|
|
12
|
-
"type": "address"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"internalType": "address",
|
|
16
|
-
"name": "_to",
|
|
17
|
-
"type": "address"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"internalType": "uint256",
|
|
21
|
-
"name": "_amount",
|
|
22
|
-
"type": "uint256"
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
"name": "safeRewardTransfer",
|
|
26
|
-
"outputs": [],
|
|
27
|
-
"payable": false,
|
|
28
|
-
"stateMutability": "nonpayable",
|
|
29
|
-
"type": "function"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"constant": false,
|
|
33
|
-
"inputs": [
|
|
34
|
-
{
|
|
35
|
-
"internalType": "address",
|
|
36
|
-
"name": "_tokenAddress",
|
|
37
|
-
"type": "address"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"internalType": "bool",
|
|
41
|
-
"name": "status",
|
|
42
|
-
"type": "bool"
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
"name": "setRewardToken",
|
|
46
|
-
"outputs": [],
|
|
47
|
-
"payable": false,
|
|
48
|
-
"stateMutability": "nonpayable",
|
|
49
|
-
"type": "function"
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
"bytecode": "0x",
|
|
53
|
-
"deployedBytecode": "0x",
|
|
54
|
-
"linkReferences": {},
|
|
55
|
-
"deployedLinkReferences": {}
|
|
56
|
-
}
|