@venusprotocol/oracle 1.6.1 → 1.6.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/LICENSE +11 -0
- package/README.md +107 -0
- package/artifacts/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface.sol/AggregatorInterface.dbg.json +1 -1
- package/artifacts/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.sol/AggregatorV2V3Interface.dbg.json +1 -1
- package/artifacts/@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol/AggregatorV3Interface.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/access/AccessControl.sol/AccessControl.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/access/AccessControl.sol/AccessControl.json +215 -0
- package/artifacts/@openzeppelin/contracts/access/IAccessControl.sol/IAccessControl.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/access/IAccessControl.sol/IAccessControl.json +183 -0
- package/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.json +10 -0
- package/artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.json +30 -0
- package/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.json +30 -0
- package/artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.json +10 -0
- package/artifacts/@openzeppelin/contracts/utils/math/SafeCast.sol/SafeCast.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/utils/math/SafeMath.sol/SafeMath.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol/Ownable2StepUpgradeable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol/Ownable2StepUpgradeable.json +115 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol/PausableUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.dbg.json +1 -1
- package/artifacts/build-info/a47a69a8f108d3e7113faf89771988ff.json +1 -0
- package/artifacts/contracts/Governance/AccessControlManager.sol/AccessControlManager.dbg.json +4 -0
- package/artifacts/contracts/Governance/AccessControlManager.sol/AccessControlManager.json +369 -0
- package/artifacts/contracts/Governance/AccessControlled.sol/AccessControlled.dbg.json +4 -0
- package/artifacts/contracts/Governance/AccessControlled.sol/AccessControlled.json +181 -0
- package/artifacts/contracts/Governance/IAccessControlManager.sol/IAccessControlManager.dbg.json +4 -0
- package/artifacts/contracts/Governance/IAccessControlManager.sol/IAccessControlManager.json +282 -0
- package/artifacts/contracts/PriceOracle.sol/PriceOracle.dbg.json +1 -1
- package/artifacts/contracts/ResilientOracle.sol/ResilientOracle.dbg.json +1 -1
- package/artifacts/contracts/ResilientOracle.sol/ResilientOracle.json +130 -2
- package/artifacts/contracts/interfaces/FeedRegistryInterface.sol/FeedRegistryInterface.dbg.json +1 -1
- package/artifacts/contracts/interfaces/OracleInterface.sol/BoundValidatorInterface.dbg.json +1 -1
- package/artifacts/contracts/interfaces/OracleInterface.sol/OracleInterface.dbg.json +1 -1
- package/artifacts/contracts/interfaces/OracleInterface.sol/ResilientOracleInterface.dbg.json +1 -1
- package/artifacts/contracts/interfaces/OracleInterface.sol/TwapInterface.dbg.json +1 -1
- package/artifacts/contracts/interfaces/PublicResolverInterface.sol/PublicResolverInterface.dbg.json +4 -0
- package/artifacts/contracts/interfaces/PublicResolverInterface.sol/PublicResolverInterface.json +30 -0
- package/artifacts/contracts/interfaces/PythInterface.sol/AbstractPyth.dbg.json +1 -1
- package/artifacts/contracts/interfaces/PythInterface.sol/IPyth.dbg.json +1 -1
- package/artifacts/contracts/interfaces/PythInterface.sol/PythStructs.dbg.json +1 -1
- package/artifacts/contracts/interfaces/SIDRegistryInterface.sol/SIDRegistryInterface.dbg.json +4 -0
- package/artifacts/contracts/interfaces/SIDRegistryInterface.sol/SIDRegistryInterface.json +30 -0
- package/artifacts/contracts/interfaces/VBep20Interface.sol/VBep20Interface.dbg.json +1 -1
- package/artifacts/contracts/libraries/PancakeLibrary.sol/FixedPoint.dbg.json +1 -1
- package/artifacts/contracts/libraries/PancakeLibrary.sol/IPancakePair.dbg.json +1 -1
- package/artifacts/contracts/libraries/PancakeLibrary.sol/PancakeOracleLibrary.dbg.json +1 -1
- package/artifacts/contracts/oracles/BinanceOracle.sol/BinanceOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/BinanceOracle.sol/BinanceOracle.json +37 -6
- package/artifacts/contracts/oracles/BoundValidator.sol/BoundValidator.dbg.json +1 -1
- package/artifacts/contracts/oracles/BoundValidator.sol/BoundValidator.json +131 -2
- package/artifacts/contracts/oracles/ChainlinkOracle.sol/ChainlinkOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/ChainlinkOracle.sol/ChainlinkOracle.json +122 -6
- package/artifacts/contracts/oracles/PythOracle.sol/PythOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/PythOracle.sol/PythOracle.json +130 -2
- package/artifacts/contracts/oracles/TwapOracle.sol/TwapOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/TwapOracle.sol/TwapOracle.json +132 -3
- package/artifacts/contracts/oracles/mocks/MockBinanceFeedRegistry.sol/MockBinanceFeedRegistry.dbg.json +1 -1
- package/artifacts/contracts/oracles/mocks/MockBinanceOracle.sol/MockBinanceOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/mocks/MockChainlinkOracle.sol/MockChainlinkOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/mocks/MockChainlinkOracle.sol/MockChainlinkOracle.json +2 -2
- package/artifacts/contracts/oracles/mocks/MockPythOracle.sol/MockPythOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/mocks/MockPythOracle.sol/MockPythOracle.json +2 -2
- package/artifacts/contracts/oracles/mocks/MockTwapOracle.sol/MockTwapOracle.dbg.json +1 -1
- package/artifacts/contracts/test/BEP20Harness.sol/BEP20Harness.dbg.json +1 -1
- package/artifacts/contracts/test/MockPyth.sol/MockPyth.dbg.json +1 -1
- package/artifacts/contracts/test/MockSimpleOracle.sol/MockBoundValidator.dbg.json +1 -1
- package/artifacts/contracts/test/MockSimpleOracle.sol/MockSimpleOracle.dbg.json +1 -1
- package/artifacts/contracts/test/MockV3Aggregator.sol/MockV3Aggregator.dbg.json +1 -1
- package/artifacts/contracts/test/PancakePairHarness.sol/Math.dbg.json +1 -1
- package/artifacts/contracts/test/PancakePairHarness.sol/PancakePairHarness.dbg.json +1 -1
- package/artifacts/contracts/test/PancakePairHarness.sol/UQ112x112.dbg.json +1 -1
- package/artifacts/contracts/test/VBEP20Harness.sol/VBEP20Harness.dbg.json +1 -1
- package/contracts/Governance/AccessControlManager.sol +99 -0
- package/contracts/Governance/AccessControlled.sol +75 -0
- package/contracts/Governance/IAccessControlManager.sol +22 -0
- package/contracts/ResilientOracle.sol +44 -14
- package/contracts/interfaces/PublicResolverInterface.sol +7 -0
- package/contracts/interfaces/SIDRegistryInterface.sol +7 -0
- package/contracts/oracles/BinanceOracle.sol +35 -7
- package/contracts/oracles/BoundValidator.sol +36 -8
- package/contracts/oracles/ChainlinkOracle.sol +31 -21
- package/contracts/oracles/PythOracle.sol +23 -8
- package/contracts/oracles/TwapOracle.sol +41 -11
- package/deploy/1-deploy-oracles.ts +149 -0
- package/deploy/2-configure-feeds.ts +208 -0
- package/deployments/bsctestnet/AccessControlManager.json +563 -0
- package/deployments/bsctestnet/BinanceOracle.json +66 -40
- package/deployments/bsctestnet/BinanceOracle_Implementation.json +84 -38
- package/deployments/bsctestnet/BinanceOracle_Proxy.json +34 -34
- package/deployments/bsctestnet/BoundValidator.json +177 -39
- package/deployments/bsctestnet/BoundValidator_Implementation.json +248 -40
- package/deployments/bsctestnet/BoundValidator_Proxy.json +51 -37
- package/deployments/bsctestnet/ChainlinkOracle.json +161 -50
- package/deployments/bsctestnet/ChainlinkOracle_Implementation.json +239 -47
- package/deployments/bsctestnet/ChainlinkOracle_Proxy.json +44 -44
- package/deployments/bsctestnet/DefaultProxyAdmin.json +18 -18
- package/deployments/bsctestnet/PythOracle.json +178 -45
- package/deployments/bsctestnet/PythOracle_Implementation.json +246 -43
- package/deployments/bsctestnet/PythOracle_Proxy.json +53 -43
- package/deployments/bsctestnet/ResilientOracle.json +167 -48
- package/deployments/bsctestnet/ResilientOracle_Implementation.json +254 -51
- package/deployments/bsctestnet/ResilientOracle_Proxy.json +42 -46
- package/deployments/bsctestnet/TwapOracle.json +178 -40
- package/deployments/bsctestnet/TwapOracle_Implementation.json +270 -58
- package/deployments/bsctestnet/TwapOracle_Proxy.json +51 -37
- package/deployments/bsctestnet/solcInputs/{6153c675ce838eebb6442d63350712be.json → 30f2cb3e89e183b8669f05bddf9426d9.json} +46 -7
- package/package.json +3 -2
- package/artifacts/build-info/1d7bedd9b14544f287811332b9a539d7.json +0 -1
- package/artifacts/build-info/57da5d39a9f98618d0dcf1f6d4ff6b0d.json +0 -1
- package/artifacts/build-info/f6af69795174616b8b4a6373f9f1c538.json +0 -1
- package/deploy/1-deploy-oracles.d.ts +0 -2
- package/deploy/1-deploy-oracles.d.ts.map +0 -1
- package/deploy/1-deploy-oracles.js +0 -128
- package/deploy/1-deploy-oracles.js.map +0 -1
- package/deploy/2-configure-feeds.d.ts +0 -2
- package/deploy/2-configure-feeds.d.ts.map +0 -1
- package/deploy/2-configure-feeds.js +0 -139
- package/deploy/2-configure-feeds.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"address": "
|
|
2
|
+
"address": "0xBdA7a25316B8F97c9930A882c5c6B193C65595C4",
|
|
3
3
|
"abi": [
|
|
4
4
|
{
|
|
5
5
|
"inputs": [
|
|
@@ -133,87 +133,97 @@
|
|
|
133
133
|
"type": "receive"
|
|
134
134
|
}
|
|
135
135
|
],
|
|
136
|
-
"transactionHash": "
|
|
136
|
+
"transactionHash": "0x68c6bcb470c140dbf3e0e77a004bf5f5c43892d5517ce8f7e48860338fb15a5a",
|
|
137
137
|
"receipt": {
|
|
138
138
|
"to": null,
|
|
139
|
-
"from": "
|
|
140
|
-
"contractAddress": "
|
|
141
|
-
"transactionIndex":
|
|
142
|
-
"gasUsed": "
|
|
143
|
-
"logsBloom": "
|
|
144
|
-
"blockHash": "
|
|
145
|
-
"transactionHash": "
|
|
139
|
+
"from": "0x8BDA9f9E1fEF0DFd404Fef338D9fE4c543d172e1",
|
|
140
|
+
"contractAddress": "0xBdA7a25316B8F97c9930A882c5c6B193C65595C4",
|
|
141
|
+
"transactionIndex": 0,
|
|
142
|
+
"gasUsed": "718353",
|
|
143
|
+
"logsBloom": "0x10000000000000000000000000000000400000000000000000800000000000000000000000000000000000000000008000000000000000000000000000008000000000000000000000000000002002000001040000000000000000000100000000000000020000000000000000080800000000800000000000000000000000400000000000000000000000000000000080000000000080000000000000800080000000000000000010000000000404000000000200800000000000000000000000000020000000000000000000040000000000000402000000000000000820000000000000000000000000000000000000000800000000000000000001000000",
|
|
144
|
+
"blockHash": "0x6123abee45eeb745013e91079fa49dc0eef6d97613356efc9cbe516544b2d0fe",
|
|
145
|
+
"transactionHash": "0x68c6bcb470c140dbf3e0e77a004bf5f5c43892d5517ce8f7e48860338fb15a5a",
|
|
146
146
|
"logs": [
|
|
147
147
|
{
|
|
148
|
-
"transactionIndex":
|
|
149
|
-
"blockNumber":
|
|
150
|
-
"transactionHash": "
|
|
151
|
-
"address": "
|
|
148
|
+
"transactionIndex": 0,
|
|
149
|
+
"blockNumber": 28099634,
|
|
150
|
+
"transactionHash": "0x68c6bcb470c140dbf3e0e77a004bf5f5c43892d5517ce8f7e48860338fb15a5a",
|
|
151
|
+
"address": "0xBdA7a25316B8F97c9930A882c5c6B193C65595C4",
|
|
152
152
|
"topics": [
|
|
153
153
|
"0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b",
|
|
154
|
-
"
|
|
154
|
+
"0x000000000000000000000000cb2ece619ba395cd6b0f30a9543029b9652c4094"
|
|
155
155
|
],
|
|
156
156
|
"data": "0x",
|
|
157
|
-
"logIndex":
|
|
158
|
-
"blockHash": "
|
|
157
|
+
"logIndex": 0,
|
|
158
|
+
"blockHash": "0x6123abee45eeb745013e91079fa49dc0eef6d97613356efc9cbe516544b2d0fe"
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
|
-
"transactionIndex":
|
|
162
|
-
"blockNumber":
|
|
163
|
-
"transactionHash": "
|
|
164
|
-
"address": "
|
|
161
|
+
"transactionIndex": 0,
|
|
162
|
+
"blockNumber": 28099634,
|
|
163
|
+
"transactionHash": "0x68c6bcb470c140dbf3e0e77a004bf5f5c43892d5517ce8f7e48860338fb15a5a",
|
|
164
|
+
"address": "0xBdA7a25316B8F97c9930A882c5c6B193C65595C4",
|
|
165
165
|
"topics": [
|
|
166
166
|
"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
|
|
167
167
|
"0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
168
|
-
"
|
|
168
|
+
"0x0000000000000000000000008bda9f9e1fef0dfd404fef338d9fe4c543d172e1"
|
|
169
169
|
],
|
|
170
170
|
"data": "0x",
|
|
171
|
+
"logIndex": 1,
|
|
172
|
+
"blockHash": "0x6123abee45eeb745013e91079fa49dc0eef6d97613356efc9cbe516544b2d0fe"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"transactionIndex": 0,
|
|
176
|
+
"blockNumber": 28099634,
|
|
177
|
+
"transactionHash": "0x68c6bcb470c140dbf3e0e77a004bf5f5c43892d5517ce8f7e48860338fb15a5a",
|
|
178
|
+
"address": "0xBdA7a25316B8F97c9930A882c5c6B193C65595C4",
|
|
179
|
+
"topics": ["0x66fd58e82f7b31a2a5c30e0888f3093efe4e111b00cd2b0c31fe014601293aa0"],
|
|
180
|
+
"data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000004b79ee0b825b41d1f6756e05b973307c86f71769",
|
|
171
181
|
"logIndex": 2,
|
|
172
|
-
"blockHash": "
|
|
182
|
+
"blockHash": "0x6123abee45eeb745013e91079fa49dc0eef6d97613356efc9cbe516544b2d0fe"
|
|
173
183
|
},
|
|
174
184
|
{
|
|
175
|
-
"transactionIndex":
|
|
176
|
-
"blockNumber":
|
|
177
|
-
"transactionHash": "
|
|
178
|
-
"address": "
|
|
185
|
+
"transactionIndex": 0,
|
|
186
|
+
"blockNumber": 28099634,
|
|
187
|
+
"transactionHash": "0x68c6bcb470c140dbf3e0e77a004bf5f5c43892d5517ce8f7e48860338fb15a5a",
|
|
188
|
+
"address": "0xBdA7a25316B8F97c9930A882c5c6B193C65595C4",
|
|
179
189
|
"topics": [
|
|
180
190
|
"0xad50c6353c28bb4c67268a71d1f313fc9630fd4a91a6f3185270ba60a28710c1",
|
|
181
191
|
"0x000000000000000000000000d7308b14bf4008e7c7196ec35610b1427c5702ea"
|
|
182
192
|
],
|
|
183
193
|
"data": "0x",
|
|
184
194
|
"logIndex": 3,
|
|
185
|
-
"blockHash": "
|
|
195
|
+
"blockHash": "0x6123abee45eeb745013e91079fa49dc0eef6d97613356efc9cbe516544b2d0fe"
|
|
186
196
|
},
|
|
187
197
|
{
|
|
188
|
-
"transactionIndex":
|
|
189
|
-
"blockNumber":
|
|
190
|
-
"transactionHash": "
|
|
191
|
-
"address": "
|
|
198
|
+
"transactionIndex": 0,
|
|
199
|
+
"blockNumber": 28099634,
|
|
200
|
+
"transactionHash": "0x68c6bcb470c140dbf3e0e77a004bf5f5c43892d5517ce8f7e48860338fb15a5a",
|
|
201
|
+
"address": "0xBdA7a25316B8F97c9930A882c5c6B193C65595C4",
|
|
192
202
|
"topics": ["0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498"],
|
|
193
203
|
"data": "0x0000000000000000000000000000000000000000000000000000000000000001",
|
|
194
204
|
"logIndex": 4,
|
|
195
|
-
"blockHash": "
|
|
205
|
+
"blockHash": "0x6123abee45eeb745013e91079fa49dc0eef6d97613356efc9cbe516544b2d0fe"
|
|
196
206
|
},
|
|
197
207
|
{
|
|
198
|
-
"transactionIndex":
|
|
199
|
-
"blockNumber":
|
|
200
|
-
"transactionHash": "
|
|
201
|
-
"address": "
|
|
208
|
+
"transactionIndex": 0,
|
|
209
|
+
"blockNumber": 28099634,
|
|
210
|
+
"transactionHash": "0x68c6bcb470c140dbf3e0e77a004bf5f5c43892d5517ce8f7e48860338fb15a5a",
|
|
211
|
+
"address": "0xBdA7a25316B8F97c9930A882c5c6B193C65595C4",
|
|
202
212
|
"topics": ["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],
|
|
203
|
-
"data": "
|
|
213
|
+
"data": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000038b507cf36fcfb55aac365e32ba3946ad82713fe",
|
|
204
214
|
"logIndex": 5,
|
|
205
|
-
"blockHash": "
|
|
215
|
+
"blockHash": "0x6123abee45eeb745013e91079fa49dc0eef6d97613356efc9cbe516544b2d0fe"
|
|
206
216
|
}
|
|
207
217
|
],
|
|
208
|
-
"blockNumber":
|
|
209
|
-
"cumulativeGasUsed": "
|
|
218
|
+
"blockNumber": 28099634,
|
|
219
|
+
"cumulativeGasUsed": "718353",
|
|
210
220
|
"status": 1,
|
|
211
221
|
"byzantium": true
|
|
212
222
|
},
|
|
213
223
|
"args": [
|
|
214
|
-
"
|
|
215
|
-
"
|
|
216
|
-
"
|
|
224
|
+
"0xCB2eCe619bA395Cd6B0f30a9543029B9652C4094",
|
|
225
|
+
"0x38b507Cf36FCFB55aaC365e32Ba3946AD82713FE",
|
|
226
|
+
"0x485cc955000000000000000000000000d7308b14bf4008e7c7196ec35610b1427c5702ea0000000000000000000000004b79ee0b825b41d1f6756e05b973307c86f71769"
|
|
217
227
|
],
|
|
218
228
|
"numDeployments": 1,
|
|
219
229
|
"solcInputHash": "0e89febeebc7444140de8e67c9067d2c",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"address": "
|
|
2
|
+
"address": "0xb0de3Fce006d3434342383f941bD22720Ff9Fc0C",
|
|
3
3
|
"abi": [
|
|
4
4
|
{
|
|
5
5
|
"anonymous": false,
|
|
@@ -111,6 +111,27 @@
|
|
|
111
111
|
"stateMutability": "payable",
|
|
112
112
|
"type": "receive"
|
|
113
113
|
},
|
|
114
|
+
{
|
|
115
|
+
"inputs": [
|
|
116
|
+
{
|
|
117
|
+
"internalType": "address",
|
|
118
|
+
"name": "sender",
|
|
119
|
+
"type": "address"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"internalType": "address",
|
|
123
|
+
"name": "calledContract",
|
|
124
|
+
"type": "address"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"internalType": "string",
|
|
128
|
+
"name": "methodSignature",
|
|
129
|
+
"type": "string"
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"name": "Unauthorized",
|
|
133
|
+
"type": "error"
|
|
134
|
+
},
|
|
114
135
|
{
|
|
115
136
|
"anonymous": false,
|
|
116
137
|
"inputs": [
|
|
@@ -124,6 +145,25 @@
|
|
|
124
145
|
"name": "Initialized",
|
|
125
146
|
"type": "event"
|
|
126
147
|
},
|
|
148
|
+
{
|
|
149
|
+
"anonymous": false,
|
|
150
|
+
"inputs": [
|
|
151
|
+
{
|
|
152
|
+
"indexed": false,
|
|
153
|
+
"internalType": "address",
|
|
154
|
+
"name": "oldAccessControlManager",
|
|
155
|
+
"type": "address"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"indexed": false,
|
|
159
|
+
"internalType": "address",
|
|
160
|
+
"name": "newAccessControlManager",
|
|
161
|
+
"type": "address"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"name": "NewAccessControlManager",
|
|
165
|
+
"type": "event"
|
|
166
|
+
},
|
|
127
167
|
{
|
|
128
168
|
"anonymous": false,
|
|
129
169
|
"inputs": [
|
|
@@ -174,6 +214,25 @@
|
|
|
174
214
|
"name": "OracleSet",
|
|
175
215
|
"type": "event"
|
|
176
216
|
},
|
|
217
|
+
{
|
|
218
|
+
"anonymous": false,
|
|
219
|
+
"inputs": [
|
|
220
|
+
{
|
|
221
|
+
"indexed": true,
|
|
222
|
+
"internalType": "address",
|
|
223
|
+
"name": "previousOwner",
|
|
224
|
+
"type": "address"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"indexed": true,
|
|
228
|
+
"internalType": "address",
|
|
229
|
+
"name": "newOwner",
|
|
230
|
+
"type": "address"
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
"name": "OwnershipTransferStarted",
|
|
234
|
+
"type": "event"
|
|
235
|
+
},
|
|
177
236
|
{
|
|
178
237
|
"anonymous": false,
|
|
179
238
|
"inputs": [
|
|
@@ -276,6 +335,26 @@
|
|
|
276
335
|
"stateMutability": "view",
|
|
277
336
|
"type": "function"
|
|
278
337
|
},
|
|
338
|
+
{
|
|
339
|
+
"inputs": [],
|
|
340
|
+
"name": "acceptOwnership",
|
|
341
|
+
"outputs": [],
|
|
342
|
+
"stateMutability": "nonpayable",
|
|
343
|
+
"type": "function"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"inputs": [],
|
|
347
|
+
"name": "accessControlManager",
|
|
348
|
+
"outputs": [
|
|
349
|
+
{
|
|
350
|
+
"internalType": "contract IAccessControlManager",
|
|
351
|
+
"name": "",
|
|
352
|
+
"type": "address"
|
|
353
|
+
}
|
|
354
|
+
],
|
|
355
|
+
"stateMutability": "view",
|
|
356
|
+
"type": "function"
|
|
357
|
+
},
|
|
279
358
|
{
|
|
280
359
|
"inputs": [],
|
|
281
360
|
"name": "boundValidator",
|
|
@@ -402,6 +481,11 @@
|
|
|
402
481
|
"internalType": "contract BoundValidatorInterface",
|
|
403
482
|
"name": "_boundValidator",
|
|
404
483
|
"type": "address"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"internalType": "address",
|
|
487
|
+
"name": "accessControlManager_",
|
|
488
|
+
"type": "address"
|
|
405
489
|
}
|
|
406
490
|
],
|
|
407
491
|
"name": "initialize",
|
|
@@ -442,6 +526,19 @@
|
|
|
442
526
|
"stateMutability": "view",
|
|
443
527
|
"type": "function"
|
|
444
528
|
},
|
|
529
|
+
{
|
|
530
|
+
"inputs": [],
|
|
531
|
+
"name": "pendingOwner",
|
|
532
|
+
"outputs": [
|
|
533
|
+
{
|
|
534
|
+
"internalType": "address",
|
|
535
|
+
"name": "",
|
|
536
|
+
"type": "address"
|
|
537
|
+
}
|
|
538
|
+
],
|
|
539
|
+
"stateMutability": "view",
|
|
540
|
+
"type": "function"
|
|
541
|
+
},
|
|
445
542
|
{
|
|
446
543
|
"inputs": [],
|
|
447
544
|
"name": "renounceOwnership",
|
|
@@ -449,6 +546,19 @@
|
|
|
449
546
|
"stateMutability": "nonpayable",
|
|
450
547
|
"type": "function"
|
|
451
548
|
},
|
|
549
|
+
{
|
|
550
|
+
"inputs": [
|
|
551
|
+
{
|
|
552
|
+
"internalType": "address",
|
|
553
|
+
"name": "accessControlManager_",
|
|
554
|
+
"type": "address"
|
|
555
|
+
}
|
|
556
|
+
],
|
|
557
|
+
"name": "setAccessControlManager",
|
|
558
|
+
"outputs": [],
|
|
559
|
+
"stateMutability": "nonpayable",
|
|
560
|
+
"type": "function"
|
|
561
|
+
},
|
|
452
562
|
{
|
|
453
563
|
"inputs": [
|
|
454
564
|
{
|
|
@@ -578,6 +688,19 @@
|
|
|
578
688
|
"stateMutability": "view",
|
|
579
689
|
"type": "function"
|
|
580
690
|
},
|
|
691
|
+
{
|
|
692
|
+
"inputs": [],
|
|
693
|
+
"name": "vai",
|
|
694
|
+
"outputs": [
|
|
695
|
+
{
|
|
696
|
+
"internalType": "address",
|
|
697
|
+
"name": "",
|
|
698
|
+
"type": "address"
|
|
699
|
+
}
|
|
700
|
+
],
|
|
701
|
+
"stateMutability": "view",
|
|
702
|
+
"type": "function"
|
|
703
|
+
},
|
|
581
704
|
{
|
|
582
705
|
"inputs": [
|
|
583
706
|
{
|
|
@@ -600,74 +723,70 @@
|
|
|
600
723
|
"type": "constructor"
|
|
601
724
|
}
|
|
602
725
|
],
|
|
603
|
-
"transactionHash": "
|
|
726
|
+
"transactionHash": "0xa15504082f334b416b1823bf93d97056e329cefb6c4b81f93d5a8f25918d2b7a",
|
|
604
727
|
"receipt": {
|
|
605
728
|
"to": null,
|
|
606
|
-
"from": "
|
|
607
|
-
"contractAddress": "
|
|
608
|
-
"transactionIndex":
|
|
609
|
-
"gasUsed": "
|
|
610
|
-
"logsBloom": "
|
|
611
|
-
"blockHash": "
|
|
612
|
-
"transactionHash": "
|
|
729
|
+
"from": "0x8BDA9f9E1fEF0DFd404Fef338D9fE4c543d172e1",
|
|
730
|
+
"contractAddress": "0xb0de3Fce006d3434342383f941bD22720Ff9Fc0C",
|
|
731
|
+
"transactionIndex": 0,
|
|
732
|
+
"gasUsed": "691326",
|
|
733
|
+
"logsBloom": "0x00000000000000000000002000000000500000000000000000000000000200000000000000000000000000000000000000000000000000000000000000008000000000010000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000080000000000000800000000000000000000000000000000400000000000000800000000000000000000000000020000000000000000000040000000000000400000000000000000000000000000004000000000000000000000000001800000000000000000000000000",
|
|
734
|
+
"blockHash": "0x70be7620a21c106745546fa4e89a4b6d0244aa801642ed037cfef34382323790",
|
|
735
|
+
"transactionHash": "0xa15504082f334b416b1823bf93d97056e329cefb6c4b81f93d5a8f25918d2b7a",
|
|
613
736
|
"logs": [
|
|
614
737
|
{
|
|
615
|
-
"transactionIndex":
|
|
616
|
-
"blockNumber":
|
|
617
|
-
"transactionHash": "
|
|
618
|
-
"address": "
|
|
738
|
+
"transactionIndex": 0,
|
|
739
|
+
"blockNumber": 28099625,
|
|
740
|
+
"transactionHash": "0xa15504082f334b416b1823bf93d97056e329cefb6c4b81f93d5a8f25918d2b7a",
|
|
741
|
+
"address": "0xb0de3Fce006d3434342383f941bD22720Ff9Fc0C",
|
|
619
742
|
"topics": [
|
|
620
743
|
"0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b",
|
|
621
|
-
"
|
|
744
|
+
"0x0000000000000000000000001baad694431272bb4c5c3ddc12d77d1531043186"
|
|
622
745
|
],
|
|
623
746
|
"data": "0x",
|
|
624
|
-
"logIndex":
|
|
625
|
-
"blockHash": "
|
|
747
|
+
"logIndex": 0,
|
|
748
|
+
"blockHash": "0x70be7620a21c106745546fa4e89a4b6d0244aa801642ed037cfef34382323790"
|
|
626
749
|
},
|
|
627
750
|
{
|
|
628
|
-
"transactionIndex":
|
|
629
|
-
"blockNumber":
|
|
630
|
-
"transactionHash": "
|
|
631
|
-
"address": "
|
|
632
|
-
"topics": [
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
],
|
|
637
|
-
"data": "0x",
|
|
638
|
-
"logIndex": 17,
|
|
639
|
-
"blockHash": "0xcff93b2d9a31872704e18a6512952c0038db1f435955efc84f9b26793e0d2930"
|
|
751
|
+
"transactionIndex": 0,
|
|
752
|
+
"blockNumber": 28099625,
|
|
753
|
+
"transactionHash": "0xa15504082f334b416b1823bf93d97056e329cefb6c4b81f93d5a8f25918d2b7a",
|
|
754
|
+
"address": "0xb0de3Fce006d3434342383f941bD22720Ff9Fc0C",
|
|
755
|
+
"topics": ["0x66fd58e82f7b31a2a5c30e0888f3093efe4e111b00cd2b0c31fe014601293aa0"],
|
|
756
|
+
"data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000004b79ee0b825b41d1f6756e05b973307c86f71769",
|
|
757
|
+
"logIndex": 1,
|
|
758
|
+
"blockHash": "0x70be7620a21c106745546fa4e89a4b6d0244aa801642ed037cfef34382323790"
|
|
640
759
|
},
|
|
641
760
|
{
|
|
642
|
-
"transactionIndex":
|
|
643
|
-
"blockNumber":
|
|
644
|
-
"transactionHash": "
|
|
645
|
-
"address": "
|
|
761
|
+
"transactionIndex": 0,
|
|
762
|
+
"blockNumber": 28099625,
|
|
763
|
+
"transactionHash": "0xa15504082f334b416b1823bf93d97056e329cefb6c4b81f93d5a8f25918d2b7a",
|
|
764
|
+
"address": "0xb0de3Fce006d3434342383f941bD22720Ff9Fc0C",
|
|
646
765
|
"topics": ["0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498"],
|
|
647
766
|
"data": "0x0000000000000000000000000000000000000000000000000000000000000001",
|
|
648
|
-
"logIndex":
|
|
649
|
-
"blockHash": "
|
|
767
|
+
"logIndex": 2,
|
|
768
|
+
"blockHash": "0x70be7620a21c106745546fa4e89a4b6d0244aa801642ed037cfef34382323790"
|
|
650
769
|
},
|
|
651
770
|
{
|
|
652
|
-
"transactionIndex":
|
|
653
|
-
"blockNumber":
|
|
654
|
-
"transactionHash": "
|
|
655
|
-
"address": "
|
|
771
|
+
"transactionIndex": 0,
|
|
772
|
+
"blockNumber": 28099625,
|
|
773
|
+
"transactionHash": "0xa15504082f334b416b1823bf93d97056e329cefb6c4b81f93d5a8f25918d2b7a",
|
|
774
|
+
"address": "0xb0de3Fce006d3434342383f941bD22720Ff9Fc0C",
|
|
656
775
|
"topics": ["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],
|
|
657
|
-
"data": "
|
|
658
|
-
"logIndex":
|
|
659
|
-
"blockHash": "
|
|
776
|
+
"data": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000038b507cf36fcfb55aac365e32ba3946ad82713fe",
|
|
777
|
+
"logIndex": 3,
|
|
778
|
+
"blockHash": "0x70be7620a21c106745546fa4e89a4b6d0244aa801642ed037cfef34382323790"
|
|
660
779
|
}
|
|
661
780
|
],
|
|
662
|
-
"blockNumber":
|
|
663
|
-
"cumulativeGasUsed": "
|
|
781
|
+
"blockNumber": 28099625,
|
|
782
|
+
"cumulativeGasUsed": "691326",
|
|
664
783
|
"status": 1,
|
|
665
784
|
"byzantium": true
|
|
666
785
|
},
|
|
667
786
|
"args": [
|
|
668
|
-
"
|
|
669
|
-
"
|
|
670
|
-
"
|
|
787
|
+
"0x1baaD694431272Bb4c5c3Ddc12d77d1531043186",
|
|
788
|
+
"0x38b507Cf36FCFB55aaC365e32Ba3946AD82713FE",
|
|
789
|
+
"0x485cc955000000000000000000000000b4ef35a739063bc0de878ee90bc1a2476b734e740000000000000000000000004b79ee0b825b41d1f6756e05b973307c86f71769"
|
|
671
790
|
],
|
|
672
791
|
"numDeployments": 1,
|
|
673
792
|
"solcInputHash": "0e89febeebc7444140de8e67c9067d2c",
|
|
@@ -676,9 +795,9 @@
|
|
|
676
795
|
"deployedBytecode": "0x6080604052600436106100435760003560e01c80633659cfe61461005a5780634f1ef2861461007a5780635c60da1b1461008d578063f851a440146100cb57610052565b36610052576100506100e0565b005b6100506100e0565b34801561006657600080fd5b5061005061007536600461076c565b6100fa565b610050610088366004610787565b61015e565b34801561009957600080fd5b506100a26101ec565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100d757600080fd5b506100a2610244565b6100e86102f1565b6100f86100f36103e2565b610422565b565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614156101565761015381604051806020016040528060008152506000610446565b50565b6101536100e0565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614156101e4576101df8383838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525060019250610446915050565b505050565b6101df6100e0565b60003373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161415610239576102346103e2565b905090565b6102416100e0565b90565b60003373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016141561023957507f000000000000000000000000000000000000000000000000000000000000000090565b60606102ce83836040518060600160405280602781526020016108a460279139610471565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614156100f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b60006102347f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b3660008037600080366000845af43d6000803e808015610441573d6000f35b3d6000fd5b61044f83610599565b60008251118061045c5750805b156101df5761046b83836102a9565b50505050565b606073ffffffffffffffffffffffffffffffffffffffff84163b610517576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e7472616374000000000000000000000000000000000000000000000000000060648201526084016103d9565b6000808573ffffffffffffffffffffffffffffffffffffffff168560405161053f9190610836565b600060405180830381855af49150503d806000811461057a576040519150601f19603f3d011682016040523d82523d6000602084013e61057f565b606091505b509150915061058f8282866105e6565b9695505050505050565b6105a281610639565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606083156105f55750816102ce565b8251156106055782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d99190610852565b73ffffffffffffffffffffffffffffffffffffffff81163b6106dd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e74726163740000000000000000000000000000000000000060648201526084016103d9565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b803573ffffffffffffffffffffffffffffffffffffffff8116811461076757600080fd5b919050565b60006020828403121561077e57600080fd5b6102ce82610743565b60008060006040848603121561079c57600080fd5b6107a584610743565b9250602084013567ffffffffffffffff808211156107c257600080fd5b818601915086601f8301126107d657600080fd5b8135818111156107e557600080fd5b8760208285010111156107f757600080fd5b6020830194508093505050509250925092565b60005b8381101561082557818101518382015260200161080d565b8381111561046b5750506000910152565b6000825161084881846020870161080a565b9190910192915050565b602081526000825180602084015261087181604085016020870161080a565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212206f70214c51cdd41c05ba0ffeb72b309ca3c8be178fd6e73c12162330799984f364736f6c634300080a0033",
|
|
677
796
|
"execute": {
|
|
678
797
|
"methodName": "initialize",
|
|
679
|
-
"args": ["
|
|
798
|
+
"args": ["0xb4Ef35A739063BC0de878eE90BC1a2476b734E74", "0x4b79ee0B825b41D1F6756E05b973307C86F71769"]
|
|
680
799
|
},
|
|
681
|
-
"implementation": "
|
|
800
|
+
"implementation": "0x1baaD694431272Bb4c5c3Ddc12d77d1531043186",
|
|
682
801
|
"devdoc": {
|
|
683
802
|
"details": "This contract implements a proxy that is upgradeable by an admin. To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector clashing], which can potentially be used in an attack, this contract uses the https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of the admin functions exposed by the proxy itself. 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the implementation. If the admin tries to call a function on the implementation it will fail with an error that says \"admin cannot fallback to proxy target\". These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to call a function from the proxy implementation. Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.",
|
|
684
803
|
"kind": "dev",
|