@venusprotocol/oracle 1.6.1 → 1.6.3
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 +209 -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
|
"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,44 @@
|
|
|
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
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"anonymous": false,
|
|
169
|
+
"inputs": [
|
|
170
|
+
{
|
|
171
|
+
"indexed": true,
|
|
172
|
+
"internalType": "address",
|
|
173
|
+
"name": "previousOwner",
|
|
174
|
+
"type": "address"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"indexed": true,
|
|
178
|
+
"internalType": "address",
|
|
179
|
+
"name": "newOwner",
|
|
180
|
+
"type": "address"
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
"name": "OwnershipTransferStarted",
|
|
184
|
+
"type": "event"
|
|
185
|
+
},
|
|
127
186
|
{
|
|
128
187
|
"anonymous": false,
|
|
129
188
|
"inputs": [
|
|
@@ -207,6 +266,26 @@
|
|
|
207
266
|
"stateMutability": "view",
|
|
208
267
|
"type": "function"
|
|
209
268
|
},
|
|
269
|
+
{
|
|
270
|
+
"inputs": [],
|
|
271
|
+
"name": "acceptOwnership",
|
|
272
|
+
"outputs": [],
|
|
273
|
+
"stateMutability": "nonpayable",
|
|
274
|
+
"type": "function"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"inputs": [],
|
|
278
|
+
"name": "accessControlManager",
|
|
279
|
+
"outputs": [
|
|
280
|
+
{
|
|
281
|
+
"internalType": "contract IAccessControlManager",
|
|
282
|
+
"name": "",
|
|
283
|
+
"type": "address"
|
|
284
|
+
}
|
|
285
|
+
],
|
|
286
|
+
"stateMutability": "view",
|
|
287
|
+
"type": "function"
|
|
288
|
+
},
|
|
210
289
|
{
|
|
211
290
|
"inputs": [
|
|
212
291
|
{
|
|
@@ -232,6 +311,11 @@
|
|
|
232
311
|
"internalType": "address",
|
|
233
312
|
"name": "underlyingPythOracle_",
|
|
234
313
|
"type": "address"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"internalType": "address",
|
|
317
|
+
"name": "accessControlManager_",
|
|
318
|
+
"type": "address"
|
|
235
319
|
}
|
|
236
320
|
],
|
|
237
321
|
"name": "initialize",
|
|
@@ -252,6 +336,19 @@
|
|
|
252
336
|
"stateMutability": "view",
|
|
253
337
|
"type": "function"
|
|
254
338
|
},
|
|
339
|
+
{
|
|
340
|
+
"inputs": [],
|
|
341
|
+
"name": "pendingOwner",
|
|
342
|
+
"outputs": [
|
|
343
|
+
{
|
|
344
|
+
"internalType": "address",
|
|
345
|
+
"name": "",
|
|
346
|
+
"type": "address"
|
|
347
|
+
}
|
|
348
|
+
],
|
|
349
|
+
"stateMutability": "view",
|
|
350
|
+
"type": "function"
|
|
351
|
+
},
|
|
255
352
|
{
|
|
256
353
|
"inputs": [],
|
|
257
354
|
"name": "renounceOwnership",
|
|
@@ -259,6 +356,19 @@
|
|
|
259
356
|
"stateMutability": "nonpayable",
|
|
260
357
|
"type": "function"
|
|
261
358
|
},
|
|
359
|
+
{
|
|
360
|
+
"inputs": [
|
|
361
|
+
{
|
|
362
|
+
"internalType": "address",
|
|
363
|
+
"name": "accessControlManager_",
|
|
364
|
+
"type": "address"
|
|
365
|
+
}
|
|
366
|
+
],
|
|
367
|
+
"name": "setAccessControlManager",
|
|
368
|
+
"outputs": [],
|
|
369
|
+
"stateMutability": "nonpayable",
|
|
370
|
+
"type": "function"
|
|
371
|
+
},
|
|
262
372
|
{
|
|
263
373
|
"inputs": [
|
|
264
374
|
{
|
|
@@ -400,6 +510,19 @@
|
|
|
400
510
|
"stateMutability": "view",
|
|
401
511
|
"type": "function"
|
|
402
512
|
},
|
|
513
|
+
{
|
|
514
|
+
"inputs": [],
|
|
515
|
+
"name": "vai",
|
|
516
|
+
"outputs": [
|
|
517
|
+
{
|
|
518
|
+
"internalType": "address",
|
|
519
|
+
"name": "",
|
|
520
|
+
"type": "address"
|
|
521
|
+
}
|
|
522
|
+
],
|
|
523
|
+
"stateMutability": "view",
|
|
524
|
+
"type": "function"
|
|
525
|
+
},
|
|
403
526
|
{
|
|
404
527
|
"inputs": [
|
|
405
528
|
{
|
|
@@ -422,87 +545,97 @@
|
|
|
422
545
|
"type": "constructor"
|
|
423
546
|
}
|
|
424
547
|
],
|
|
425
|
-
"transactionHash": "
|
|
548
|
+
"transactionHash": "0x68c6bcb470c140dbf3e0e77a004bf5f5c43892d5517ce8f7e48860338fb15a5a",
|
|
426
549
|
"receipt": {
|
|
427
550
|
"to": null,
|
|
428
|
-
"from": "
|
|
429
|
-
"contractAddress": "
|
|
430
|
-
"transactionIndex":
|
|
431
|
-
"gasUsed": "
|
|
432
|
-
"logsBloom": "
|
|
433
|
-
"blockHash": "
|
|
434
|
-
"transactionHash": "
|
|
551
|
+
"from": "0x8BDA9f9E1fEF0DFd404Fef338D9fE4c543d172e1",
|
|
552
|
+
"contractAddress": "0xBdA7a25316B8F97c9930A882c5c6B193C65595C4",
|
|
553
|
+
"transactionIndex": 0,
|
|
554
|
+
"gasUsed": "718353",
|
|
555
|
+
"logsBloom": "0x10000000000000000000000000000000400000000000000000800000000000000000000000000000000000000000008000000000000000000000000000008000000000000000000000000000002002000001040000000000000000000100000000000000020000000000000000080800000000800000000000000000000000400000000000000000000000000000000080000000000080000000000000800080000000000000000010000000000404000000000200800000000000000000000000000020000000000000000000040000000000000402000000000000000820000000000000000000000000000000000000000800000000000000000001000000",
|
|
556
|
+
"blockHash": "0x6123abee45eeb745013e91079fa49dc0eef6d97613356efc9cbe516544b2d0fe",
|
|
557
|
+
"transactionHash": "0x68c6bcb470c140dbf3e0e77a004bf5f5c43892d5517ce8f7e48860338fb15a5a",
|
|
435
558
|
"logs": [
|
|
436
559
|
{
|
|
437
|
-
"transactionIndex":
|
|
438
|
-
"blockNumber":
|
|
439
|
-
"transactionHash": "
|
|
440
|
-
"address": "
|
|
560
|
+
"transactionIndex": 0,
|
|
561
|
+
"blockNumber": 28099634,
|
|
562
|
+
"transactionHash": "0x68c6bcb470c140dbf3e0e77a004bf5f5c43892d5517ce8f7e48860338fb15a5a",
|
|
563
|
+
"address": "0xBdA7a25316B8F97c9930A882c5c6B193C65595C4",
|
|
441
564
|
"topics": [
|
|
442
565
|
"0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b",
|
|
443
|
-
"
|
|
566
|
+
"0x000000000000000000000000cb2ece619ba395cd6b0f30a9543029b9652c4094"
|
|
444
567
|
],
|
|
445
568
|
"data": "0x",
|
|
446
|
-
"logIndex":
|
|
447
|
-
"blockHash": "
|
|
569
|
+
"logIndex": 0,
|
|
570
|
+
"blockHash": "0x6123abee45eeb745013e91079fa49dc0eef6d97613356efc9cbe516544b2d0fe"
|
|
448
571
|
},
|
|
449
572
|
{
|
|
450
|
-
"transactionIndex":
|
|
451
|
-
"blockNumber":
|
|
452
|
-
"transactionHash": "
|
|
453
|
-
"address": "
|
|
573
|
+
"transactionIndex": 0,
|
|
574
|
+
"blockNumber": 28099634,
|
|
575
|
+
"transactionHash": "0x68c6bcb470c140dbf3e0e77a004bf5f5c43892d5517ce8f7e48860338fb15a5a",
|
|
576
|
+
"address": "0xBdA7a25316B8F97c9930A882c5c6B193C65595C4",
|
|
454
577
|
"topics": [
|
|
455
578
|
"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
|
|
456
579
|
"0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
457
|
-
"
|
|
580
|
+
"0x0000000000000000000000008bda9f9e1fef0dfd404fef338d9fe4c543d172e1"
|
|
458
581
|
],
|
|
459
582
|
"data": "0x",
|
|
583
|
+
"logIndex": 1,
|
|
584
|
+
"blockHash": "0x6123abee45eeb745013e91079fa49dc0eef6d97613356efc9cbe516544b2d0fe"
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"transactionIndex": 0,
|
|
588
|
+
"blockNumber": 28099634,
|
|
589
|
+
"transactionHash": "0x68c6bcb470c140dbf3e0e77a004bf5f5c43892d5517ce8f7e48860338fb15a5a",
|
|
590
|
+
"address": "0xBdA7a25316B8F97c9930A882c5c6B193C65595C4",
|
|
591
|
+
"topics": ["0x66fd58e82f7b31a2a5c30e0888f3093efe4e111b00cd2b0c31fe014601293aa0"],
|
|
592
|
+
"data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000004b79ee0b825b41d1f6756e05b973307c86f71769",
|
|
460
593
|
"logIndex": 2,
|
|
461
|
-
"blockHash": "
|
|
594
|
+
"blockHash": "0x6123abee45eeb745013e91079fa49dc0eef6d97613356efc9cbe516544b2d0fe"
|
|
462
595
|
},
|
|
463
596
|
{
|
|
464
|
-
"transactionIndex":
|
|
465
|
-
"blockNumber":
|
|
466
|
-
"transactionHash": "
|
|
467
|
-
"address": "
|
|
597
|
+
"transactionIndex": 0,
|
|
598
|
+
"blockNumber": 28099634,
|
|
599
|
+
"transactionHash": "0x68c6bcb470c140dbf3e0e77a004bf5f5c43892d5517ce8f7e48860338fb15a5a",
|
|
600
|
+
"address": "0xBdA7a25316B8F97c9930A882c5c6B193C65595C4",
|
|
468
601
|
"topics": [
|
|
469
602
|
"0xad50c6353c28bb4c67268a71d1f313fc9630fd4a91a6f3185270ba60a28710c1",
|
|
470
603
|
"0x000000000000000000000000d7308b14bf4008e7c7196ec35610b1427c5702ea"
|
|
471
604
|
],
|
|
472
605
|
"data": "0x",
|
|
473
606
|
"logIndex": 3,
|
|
474
|
-
"blockHash": "
|
|
607
|
+
"blockHash": "0x6123abee45eeb745013e91079fa49dc0eef6d97613356efc9cbe516544b2d0fe"
|
|
475
608
|
},
|
|
476
609
|
{
|
|
477
|
-
"transactionIndex":
|
|
478
|
-
"blockNumber":
|
|
479
|
-
"transactionHash": "
|
|
480
|
-
"address": "
|
|
610
|
+
"transactionIndex": 0,
|
|
611
|
+
"blockNumber": 28099634,
|
|
612
|
+
"transactionHash": "0x68c6bcb470c140dbf3e0e77a004bf5f5c43892d5517ce8f7e48860338fb15a5a",
|
|
613
|
+
"address": "0xBdA7a25316B8F97c9930A882c5c6B193C65595C4",
|
|
481
614
|
"topics": ["0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498"],
|
|
482
615
|
"data": "0x0000000000000000000000000000000000000000000000000000000000000001",
|
|
483
616
|
"logIndex": 4,
|
|
484
|
-
"blockHash": "
|
|
617
|
+
"blockHash": "0x6123abee45eeb745013e91079fa49dc0eef6d97613356efc9cbe516544b2d0fe"
|
|
485
618
|
},
|
|
486
619
|
{
|
|
487
|
-
"transactionIndex":
|
|
488
|
-
"blockNumber":
|
|
489
|
-
"transactionHash": "
|
|
490
|
-
"address": "
|
|
620
|
+
"transactionIndex": 0,
|
|
621
|
+
"blockNumber": 28099634,
|
|
622
|
+
"transactionHash": "0x68c6bcb470c140dbf3e0e77a004bf5f5c43892d5517ce8f7e48860338fb15a5a",
|
|
623
|
+
"address": "0xBdA7a25316B8F97c9930A882c5c6B193C65595C4",
|
|
491
624
|
"topics": ["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],
|
|
492
|
-
"data": "
|
|
625
|
+
"data": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000038b507cf36fcfb55aac365e32ba3946ad82713fe",
|
|
493
626
|
"logIndex": 5,
|
|
494
|
-
"blockHash": "
|
|
627
|
+
"blockHash": "0x6123abee45eeb745013e91079fa49dc0eef6d97613356efc9cbe516544b2d0fe"
|
|
495
628
|
}
|
|
496
629
|
],
|
|
497
|
-
"blockNumber":
|
|
498
|
-
"cumulativeGasUsed": "
|
|
630
|
+
"blockNumber": 28099634,
|
|
631
|
+
"cumulativeGasUsed": "718353",
|
|
499
632
|
"status": 1,
|
|
500
633
|
"byzantium": true
|
|
501
634
|
},
|
|
502
635
|
"args": [
|
|
503
|
-
"
|
|
504
|
-
"
|
|
505
|
-
"
|
|
636
|
+
"0xCB2eCe619bA395Cd6B0f30a9543029B9652C4094",
|
|
637
|
+
"0x38b507Cf36FCFB55aaC365e32Ba3946AD82713FE",
|
|
638
|
+
"0x485cc955000000000000000000000000d7308b14bf4008e7c7196ec35610b1427c5702ea0000000000000000000000004b79ee0b825b41d1f6756e05b973307c86f71769"
|
|
506
639
|
],
|
|
507
640
|
"numDeployments": 1,
|
|
508
641
|
"solcInputHash": "0e89febeebc7444140de8e67c9067d2c",
|
|
@@ -511,9 +644,9 @@
|
|
|
511
644
|
"deployedBytecode": "0x6080604052600436106100435760003560e01c80633659cfe61461005a5780634f1ef2861461007a5780635c60da1b1461008d578063f851a440146100cb57610052565b36610052576100506100e0565b005b6100506100e0565b34801561006657600080fd5b5061005061007536600461076c565b6100fa565b610050610088366004610787565b61015e565b34801561009957600080fd5b506100a26101ec565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100d757600080fd5b506100a2610244565b6100e86102f1565b6100f86100f36103e2565b610422565b565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614156101565761015381604051806020016040528060008152506000610446565b50565b6101536100e0565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614156101e4576101df8383838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525060019250610446915050565b505050565b6101df6100e0565b60003373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161415610239576102346103e2565b905090565b6102416100e0565b90565b60003373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016141561023957507f000000000000000000000000000000000000000000000000000000000000000090565b60606102ce83836040518060600160405280602781526020016108a460279139610471565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614156100f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b60006102347f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b3660008037600080366000845af43d6000803e808015610441573d6000f35b3d6000fd5b61044f83610599565b60008251118061045c5750805b156101df5761046b83836102a9565b50505050565b606073ffffffffffffffffffffffffffffffffffffffff84163b610517576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e7472616374000000000000000000000000000000000000000000000000000060648201526084016103d9565b6000808573ffffffffffffffffffffffffffffffffffffffff168560405161053f9190610836565b600060405180830381855af49150503d806000811461057a576040519150601f19603f3d011682016040523d82523d6000602084013e61057f565b606091505b509150915061058f8282866105e6565b9695505050505050565b6105a281610639565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606083156105f55750816102ce565b8251156106055782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d99190610852565b73ffffffffffffffffffffffffffffffffffffffff81163b6106dd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e74726163740000000000000000000000000000000000000060648201526084016103d9565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b803573ffffffffffffffffffffffffffffffffffffffff8116811461076757600080fd5b919050565b60006020828403121561077e57600080fd5b6102ce82610743565b60008060006040848603121561079c57600080fd5b6107a584610743565b9250602084013567ffffffffffffffff808211156107c257600080fd5b818601915086601f8301126107d657600080fd5b8135818111156107e557600080fd5b8760208285010111156107f757600080fd5b6020830194508093505050509250925092565b60005b8381101561082557818101518382015260200161080d565b8381111561046b5750506000910152565b6000825161084881846020870161080a565b9190910192915050565b602081526000825180602084015261087181604085016020870161080a565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212206f70214c51cdd41c05ba0ffeb72b309ca3c8be178fd6e73c12162330799984f364736f6c634300080a0033",
|
|
512
645
|
"execute": {
|
|
513
646
|
"methodName": "initialize",
|
|
514
|
-
"args": ["0xd7308b14BF4008e7C7196eC35610B1427C5702EA"]
|
|
647
|
+
"args": ["0xd7308b14BF4008e7C7196eC35610B1427C5702EA", "0x4b79ee0B825b41D1F6756E05b973307C86F71769"]
|
|
515
648
|
},
|
|
516
|
-
"implementation": "
|
|
649
|
+
"implementation": "0xCB2eCe619bA395Cd6B0f30a9543029B9652C4094",
|
|
517
650
|
"devdoc": {
|
|
518
651
|
"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.",
|
|
519
652
|
"kind": "dev",
|