@venusprotocol/oracle 1.5.1 → 1.6.0
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/artifacts/build-info/1d7bedd9b14544f287811332b9a539d7.json +1 -0
- package/artifacts/build-info/f6af69795174616b8b4a6373f9f1c538.json +1 -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 +2 -2
- package/artifacts/contracts/libraries/PancakeLibrary.sol/FixedPoint.dbg.json +1 -1
- package/artifacts/contracts/libraries/PancakeLibrary.sol/FixedPoint.json +2 -2
- 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/libraries/PancakeLibrary.sol/PancakeOracleLibrary.json +2 -2
- package/artifacts/contracts/oracles/BinanceOracle.sol/BinanceOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/BinanceOracle.sol/BinanceOracle.json +2 -2
- package/artifacts/contracts/oracles/BoundValidator.sol/BoundValidator.dbg.json +1 -1
- package/artifacts/contracts/oracles/BoundValidator.sol/BoundValidator.json +3 -3
- package/artifacts/contracts/oracles/ChainlinkOracle.sol/ChainlinkOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/ChainlinkOracle.sol/ChainlinkOracle.json +2 -2
- package/artifacts/contracts/oracles/PythOracle.sol/PythOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/PythOracle.sol/PythOracle.json +2 -2
- package/artifacts/contracts/oracles/TwapOracle.sol/TwapOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/TwapOracle.sol/TwapOracle.json +2 -2
- package/artifacts/contracts/oracles/mocks/MockBinanceOracle.sol/MockBinanceOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/mocks/MockBinanceOracle.sol/MockBinanceOracle.json +2 -2
- 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/oracles/mocks/MockTwapOracle.sol/MockTwapOracle.json +2 -2
- package/artifacts/contracts/test/MockPyth.sol/MockPyth.dbg.json +1 -1
- package/artifacts/contracts/test/MockPyth.sol/MockPyth.json +2 -2
- package/artifacts/contracts/test/MockSimpleOracle.sol/MockBoundValidator.dbg.json +1 -1
- package/artifacts/contracts/test/MockSimpleOracle.sol/MockBoundValidator.json +2 -2
- package/artifacts/contracts/test/MockSimpleOracle.sol/MockSimpleOracle.dbg.json +1 -1
- package/artifacts/contracts/test/MockSimpleOracle.sol/MockSimpleOracle.json +2 -2
- package/artifacts/contracts/test/MockV3Aggregator.sol/MockV3Aggregator.dbg.json +1 -1
- package/artifacts/contracts/test/MockV3Aggregator.sol/MockV3Aggregator.json +2 -2
- package/artifacts/contracts/test/PancakePairHarness.sol/Math.dbg.json +1 -1
- package/artifacts/contracts/test/PancakePairHarness.sol/Math.json +2 -2
- package/artifacts/contracts/test/PancakePairHarness.sol/PancakePairHarness.dbg.json +1 -1
- package/artifacts/contracts/test/PancakePairHarness.sol/PancakePairHarness.json +2 -2
- package/artifacts/contracts/test/PancakePairHarness.sol/UQ112x112.dbg.json +1 -1
- package/artifacts/contracts/test/PancakePairHarness.sol/UQ112x112.json +2 -2
- package/contracts/PriceOracle.sol +2 -2
- package/contracts/ResilientOracle.sol +127 -114
- package/contracts/libraries/PancakeLibrary.sol +8 -8
- package/contracts/oracles/BinanceOracle.sol +4 -4
- package/contracts/oracles/BoundValidator.sol +31 -29
- package/contracts/oracles/ChainlinkOracle.sol +85 -83
- package/contracts/oracles/PythOracle.sol +41 -41
- package/contracts/oracles/TwapOracle.sol +67 -67
- package/contracts/oracles/mocks/MockBinanceOracle.sol +4 -4
- package/contracts/oracles/mocks/MockChainlinkOracle.sol +4 -4
- package/contracts/oracles/mocks/MockPythOracle.sol +4 -4
- package/contracts/oracles/mocks/MockTwapOracle.sol +4 -4
- package/contracts/test/MockPyth.sol +13 -13
- package/contracts/test/MockSimpleOracle.sol +8 -8
- package/contracts/test/MockV3Aggregator.sol +18 -18
- package/contracts/test/PancakePairHarness.sol +10 -10
- package/deploy/1-deploy-oracles.d.ts +1 -3
- package/deploy/1-deploy-oracles.d.ts.map +1 -1
- package/deploy/1-deploy-oracles.js +2 -1
- package/deploy/1-deploy-oracles.js.map +1 -1
- package/deploy/2-configure-feeds.d.ts +1 -3
- package/deploy/2-configure-feeds.d.ts.map +1 -1
- package/deploy/2-configure-feeds.js +101 -87
- package/deploy/2-configure-feeds.js.map +1 -1
- package/deployments/bsctestnet/BinanceOracle.json +42 -29
- package/deployments/bsctestnet/BinanceOracle_Implementation.json +96 -23
- package/deployments/bsctestnet/BinanceOracle_Proxy.json +28 -28
- package/deployments/bsctestnet/BoundValidator.json +65 -39
- package/deployments/bsctestnet/BoundValidator_Implementation.json +113 -35
- package/deployments/bsctestnet/BoundValidator_Proxy.json +37 -37
- package/deployments/bsctestnet/ChainlinkOracle.json +64 -38
- package/deployments/bsctestnet/ChainlinkOracle_Implementation.json +122 -41
- package/deployments/bsctestnet/ChainlinkOracle_Proxy.json +37 -37
- package/deployments/bsctestnet/DefaultProxyAdmin.json +15 -15
- package/deployments/bsctestnet/PythOracle.json +71 -45
- package/deployments/bsctestnet/PythOracle_Implementation.json +128 -44
- package/deployments/bsctestnet/PythOracle_Proxy.json +44 -44
- package/deployments/bsctestnet/ResilientOracle.json +67 -54
- package/deployments/bsctestnet/ResilientOracle_Implementation.json +161 -63
- package/deployments/bsctestnet/ResilientOracle_Proxy.json +39 -39
- package/deployments/bsctestnet/TwapOracle.json +74 -71
- package/deployments/bsctestnet/TwapOracle_Implementation.json +163 -93
- package/deployments/bsctestnet/TwapOracle_Proxy.json +37 -41
- package/deployments/bsctestnet/solcInputs/6153c675ce838eebb6442d63350712be.json +144 -0
- package/package.json +4 -2
- package/artifacts/build-info/4f6308532d612c9477fab05b03e221e5.json +0 -1
- package/deployments/bsctestnet/solcInputs/09bc2981019c6dcce653b90bac585fe0.json +0 -81
- package/deployments/bsctestnet/solcInputs/5dedb37ab8105f1f71e53a3f865859c5.json +0 -57
- package/deployments/bsctestnet/solcInputs/bb71c6049f6b7b21a6581f40daf802bc.json +0 -138
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"address": "
|
|
2
|
+
"address": "0x488ac9A62a84a7c3541977a1256552107567E2D5",
|
|
3
3
|
"abi": [
|
|
4
4
|
{
|
|
5
5
|
"inputs": [
|
|
@@ -133,86 +133,86 @@
|
|
|
133
133
|
"type": "receive"
|
|
134
134
|
}
|
|
135
135
|
],
|
|
136
|
-
"transactionHash": "
|
|
136
|
+
"transactionHash": "0x78f3505111ac753efd548c94b35f359dad3c45c7ce5bcba69738e61c113c4813",
|
|
137
137
|
"receipt": {
|
|
138
138
|
"to": null,
|
|
139
139
|
"from": "0x2Ce1d0ffD7E869D9DF33e28552b12DdDed326706",
|
|
140
|
-
"contractAddress": "
|
|
141
|
-
"transactionIndex":
|
|
142
|
-
"gasUsed": "
|
|
143
|
-
"logsBloom": "
|
|
144
|
-
"blockHash": "
|
|
145
|
-
"transactionHash": "
|
|
140
|
+
"contractAddress": "0x488ac9A62a84a7c3541977a1256552107567E2D5",
|
|
141
|
+
"transactionIndex": 1,
|
|
142
|
+
"gasUsed": "692880",
|
|
143
|
+
"logsBloom": "0x10000000000000000000000000000000400000000000000000800008000000000000000000000000000040000000000000000000000000000000000000004000000000000000000000000020002002000001000000000000000001000100000000000000020000000000000000000800000000800000000000000000000000400000000000000000000000000000000000000000000080000000000000800000000000000000000000000000000c04000000000000000000000000000000000000000020000000000000000000040000000000000400000000000000000820100000000000000000000000000000000000000000000000010000000001000000",
|
|
144
|
+
"blockHash": "0x030744235d57428f5502c2cf00b34d1c1bb4c17ee0462b8fe42a17f9f269bcbd",
|
|
145
|
+
"transactionHash": "0x78f3505111ac753efd548c94b35f359dad3c45c7ce5bcba69738e61c113c4813",
|
|
146
146
|
"logs": [
|
|
147
147
|
{
|
|
148
|
-
"transactionIndex":
|
|
149
|
-
"blockNumber":
|
|
150
|
-
"transactionHash": "
|
|
151
|
-
"address": "
|
|
148
|
+
"transactionIndex": 1,
|
|
149
|
+
"blockNumber": 27096246,
|
|
150
|
+
"transactionHash": "0x78f3505111ac753efd548c94b35f359dad3c45c7ce5bcba69738e61c113c4813",
|
|
151
|
+
"address": "0x488ac9A62a84a7c3541977a1256552107567E2D5",
|
|
152
152
|
"topics": [
|
|
153
153
|
"0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b",
|
|
154
|
-
"
|
|
154
|
+
"0x000000000000000000000000b12348c67bba5efa6b86a167fcedd2dba3a3c934"
|
|
155
155
|
],
|
|
156
156
|
"data": "0x",
|
|
157
|
-
"logIndex":
|
|
158
|
-
"blockHash": "
|
|
157
|
+
"logIndex": 1,
|
|
158
|
+
"blockHash": "0x030744235d57428f5502c2cf00b34d1c1bb4c17ee0462b8fe42a17f9f269bcbd"
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
|
-
"transactionIndex":
|
|
162
|
-
"blockNumber":
|
|
163
|
-
"transactionHash": "
|
|
164
|
-
"address": "
|
|
161
|
+
"transactionIndex": 1,
|
|
162
|
+
"blockNumber": 27096246,
|
|
163
|
+
"transactionHash": "0x78f3505111ac753efd548c94b35f359dad3c45c7ce5bcba69738e61c113c4813",
|
|
164
|
+
"address": "0x488ac9A62a84a7c3541977a1256552107567E2D5",
|
|
165
165
|
"topics": [
|
|
166
166
|
"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
|
|
167
167
|
"0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
168
168
|
"0x0000000000000000000000002ce1d0ffd7e869d9df33e28552b12ddded326706"
|
|
169
169
|
],
|
|
170
170
|
"data": "0x",
|
|
171
|
-
"logIndex":
|
|
172
|
-
"blockHash": "
|
|
171
|
+
"logIndex": 2,
|
|
172
|
+
"blockHash": "0x030744235d57428f5502c2cf00b34d1c1bb4c17ee0462b8fe42a17f9f269bcbd"
|
|
173
173
|
},
|
|
174
174
|
{
|
|
175
|
-
"transactionIndex":
|
|
176
|
-
"blockNumber":
|
|
177
|
-
"transactionHash": "
|
|
178
|
-
"address": "
|
|
175
|
+
"transactionIndex": 1,
|
|
176
|
+
"blockNumber": 27096246,
|
|
177
|
+
"transactionHash": "0x78f3505111ac753efd548c94b35f359dad3c45c7ce5bcba69738e61c113c4813",
|
|
178
|
+
"address": "0x488ac9A62a84a7c3541977a1256552107567E2D5",
|
|
179
179
|
"topics": [
|
|
180
180
|
"0xad50c6353c28bb4c67268a71d1f313fc9630fd4a91a6f3185270ba60a28710c1",
|
|
181
181
|
"0x000000000000000000000000d7308b14bf4008e7c7196ec35610b1427c5702ea"
|
|
182
182
|
],
|
|
183
183
|
"data": "0x",
|
|
184
|
-
"logIndex":
|
|
185
|
-
"blockHash": "
|
|
184
|
+
"logIndex": 3,
|
|
185
|
+
"blockHash": "0x030744235d57428f5502c2cf00b34d1c1bb4c17ee0462b8fe42a17f9f269bcbd"
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
|
-
"transactionIndex":
|
|
189
|
-
"blockNumber":
|
|
190
|
-
"transactionHash": "
|
|
191
|
-
"address": "
|
|
188
|
+
"transactionIndex": 1,
|
|
189
|
+
"blockNumber": 27096246,
|
|
190
|
+
"transactionHash": "0x78f3505111ac753efd548c94b35f359dad3c45c7ce5bcba69738e61c113c4813",
|
|
191
|
+
"address": "0x488ac9A62a84a7c3541977a1256552107567E2D5",
|
|
192
192
|
"topics": ["0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498"],
|
|
193
193
|
"data": "0x0000000000000000000000000000000000000000000000000000000000000001",
|
|
194
|
-
"logIndex":
|
|
195
|
-
"blockHash": "
|
|
194
|
+
"logIndex": 4,
|
|
195
|
+
"blockHash": "0x030744235d57428f5502c2cf00b34d1c1bb4c17ee0462b8fe42a17f9f269bcbd"
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
|
-
"transactionIndex":
|
|
199
|
-
"blockNumber":
|
|
200
|
-
"transactionHash": "
|
|
201
|
-
"address": "
|
|
198
|
+
"transactionIndex": 1,
|
|
199
|
+
"blockNumber": 27096246,
|
|
200
|
+
"transactionHash": "0x78f3505111ac753efd548c94b35f359dad3c45c7ce5bcba69738e61c113c4813",
|
|
201
|
+
"address": "0x488ac9A62a84a7c3541977a1256552107567E2D5",
|
|
202
202
|
"topics": ["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],
|
|
203
|
-
"data": "
|
|
204
|
-
"logIndex":
|
|
205
|
-
"blockHash": "
|
|
203
|
+
"data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000003774cba06bde91a4841281c808ae57f54cb8da84",
|
|
204
|
+
"logIndex": 5,
|
|
205
|
+
"blockHash": "0x030744235d57428f5502c2cf00b34d1c1bb4c17ee0462b8fe42a17f9f269bcbd"
|
|
206
206
|
}
|
|
207
207
|
],
|
|
208
|
-
"blockNumber":
|
|
209
|
-
"cumulativeGasUsed": "
|
|
208
|
+
"blockNumber": 27096246,
|
|
209
|
+
"cumulativeGasUsed": "766250",
|
|
210
210
|
"status": 1,
|
|
211
211
|
"byzantium": true
|
|
212
212
|
},
|
|
213
213
|
"args": [
|
|
214
|
-
"
|
|
215
|
-
"
|
|
214
|
+
"0xB12348C67BBa5efA6b86A167FCedD2Dba3A3c934",
|
|
215
|
+
"0x3774CBA06bdE91A4841281C808AE57F54cb8dA84",
|
|
216
216
|
"0xc4d66de8000000000000000000000000d7308b14bf4008e7c7196ec35610b1427c5702ea"
|
|
217
217
|
],
|
|
218
218
|
"numDeployments": 1,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"address": "
|
|
2
|
+
"address": "0x4736CD7783736425b3855581c3d40FB153DAf322",
|
|
3
3
|
"abi": [
|
|
4
4
|
{
|
|
5
5
|
"anonymous": false,
|
|
@@ -111,19 +111,6 @@
|
|
|
111
111
|
"stateMutability": "payable",
|
|
112
112
|
"type": "receive"
|
|
113
113
|
},
|
|
114
|
-
{
|
|
115
|
-
"anonymous": false,
|
|
116
|
-
"inputs": [
|
|
117
|
-
{
|
|
118
|
-
"indexed": true,
|
|
119
|
-
"internalType": "bool",
|
|
120
|
-
"name": "isEnable",
|
|
121
|
-
"type": "bool"
|
|
122
|
-
}
|
|
123
|
-
],
|
|
124
|
-
"name": "GlobalEnable",
|
|
125
|
-
"type": "event"
|
|
126
|
-
},
|
|
127
114
|
{
|
|
128
115
|
"anonymous": false,
|
|
129
116
|
"inputs": [
|
|
@@ -263,6 +250,19 @@
|
|
|
263
250
|
"name": "Unpaused",
|
|
264
251
|
"type": "event"
|
|
265
252
|
},
|
|
253
|
+
{
|
|
254
|
+
"inputs": [],
|
|
255
|
+
"name": "BNB_ADDR",
|
|
256
|
+
"outputs": [
|
|
257
|
+
{
|
|
258
|
+
"internalType": "address",
|
|
259
|
+
"name": "",
|
|
260
|
+
"type": "address"
|
|
261
|
+
}
|
|
262
|
+
],
|
|
263
|
+
"stateMutability": "view",
|
|
264
|
+
"type": "function"
|
|
265
|
+
},
|
|
266
266
|
{
|
|
267
267
|
"inputs": [],
|
|
268
268
|
"name": "INVALID_PRICE",
|
|
@@ -565,6 +565,19 @@
|
|
|
565
565
|
"stateMutability": "nonpayable",
|
|
566
566
|
"type": "function"
|
|
567
567
|
},
|
|
568
|
+
{
|
|
569
|
+
"inputs": [],
|
|
570
|
+
"name": "vBnb",
|
|
571
|
+
"outputs": [
|
|
572
|
+
{
|
|
573
|
+
"internalType": "address",
|
|
574
|
+
"name": "",
|
|
575
|
+
"type": "address"
|
|
576
|
+
}
|
|
577
|
+
],
|
|
578
|
+
"stateMutability": "view",
|
|
579
|
+
"type": "function"
|
|
580
|
+
},
|
|
568
581
|
{
|
|
569
582
|
"inputs": [
|
|
570
583
|
{
|
|
@@ -587,74 +600,74 @@
|
|
|
587
600
|
"type": "constructor"
|
|
588
601
|
}
|
|
589
602
|
],
|
|
590
|
-
"transactionHash": "
|
|
603
|
+
"transactionHash": "0x4ab3ffc620545ce8774474d90ccef8516863e95f42a32446d2a931a902c3ff96",
|
|
591
604
|
"receipt": {
|
|
592
605
|
"to": null,
|
|
593
606
|
"from": "0x2Ce1d0ffD7E869D9DF33e28552b12DdDed326706",
|
|
594
|
-
"contractAddress": "
|
|
595
|
-
"transactionIndex":
|
|
596
|
-
"gasUsed": "
|
|
597
|
-
"logsBloom": "
|
|
598
|
-
"blockHash": "
|
|
599
|
-
"transactionHash": "
|
|
607
|
+
"contractAddress": "0x4736CD7783736425b3855581c3d40FB153DAf322",
|
|
608
|
+
"transactionIndex": 8,
|
|
609
|
+
"gasUsed": "695084",
|
|
610
|
+
"logsBloom": "0x10000000000000000000000000000000400000000000000000800008000000000000000000000000000000000000000000000000000000000000000000004000002000000000000000080000000002000001000000000000000000000000000000000000020000000000000000000800000000800000000000000000004000400000000001000000000000000000000000000000000080000000000000800000000080000000000000000000000400000000000000000000000000000000000000000020000000020000000000040000000000000400000000000000000020000000000000000000000000000000000000000000000000000000000000000000",
|
|
611
|
+
"blockHash": "0xcff93b2d9a31872704e18a6512952c0038db1f435955efc84f9b26793e0d2930",
|
|
612
|
+
"transactionHash": "0x4ab3ffc620545ce8774474d90ccef8516863e95f42a32446d2a931a902c3ff96",
|
|
600
613
|
"logs": [
|
|
601
614
|
{
|
|
602
|
-
"transactionIndex":
|
|
603
|
-
"blockNumber":
|
|
604
|
-
"transactionHash": "
|
|
605
|
-
"address": "
|
|
615
|
+
"transactionIndex": 8,
|
|
616
|
+
"blockNumber": 27096229,
|
|
617
|
+
"transactionHash": "0x4ab3ffc620545ce8774474d90ccef8516863e95f42a32446d2a931a902c3ff96",
|
|
618
|
+
"address": "0x4736CD7783736425b3855581c3d40FB153DAf322",
|
|
606
619
|
"topics": [
|
|
607
620
|
"0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b",
|
|
608
|
-
"
|
|
621
|
+
"0x000000000000000000000000f8c6f847f6b07fe6092097f4a5f47206244a14c1"
|
|
609
622
|
],
|
|
610
623
|
"data": "0x",
|
|
611
|
-
"logIndex":
|
|
612
|
-
"blockHash": "
|
|
624
|
+
"logIndex": 16,
|
|
625
|
+
"blockHash": "0xcff93b2d9a31872704e18a6512952c0038db1f435955efc84f9b26793e0d2930"
|
|
613
626
|
},
|
|
614
627
|
{
|
|
615
|
-
"transactionIndex":
|
|
616
|
-
"blockNumber":
|
|
617
|
-
"transactionHash": "
|
|
618
|
-
"address": "
|
|
628
|
+
"transactionIndex": 8,
|
|
629
|
+
"blockNumber": 27096229,
|
|
630
|
+
"transactionHash": "0x4ab3ffc620545ce8774474d90ccef8516863e95f42a32446d2a931a902c3ff96",
|
|
631
|
+
"address": "0x4736CD7783736425b3855581c3d40FB153DAf322",
|
|
619
632
|
"topics": [
|
|
620
633
|
"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
|
|
621
634
|
"0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
622
635
|
"0x0000000000000000000000002ce1d0ffd7e869d9df33e28552b12ddded326706"
|
|
623
636
|
],
|
|
624
637
|
"data": "0x",
|
|
625
|
-
"logIndex":
|
|
626
|
-
"blockHash": "
|
|
638
|
+
"logIndex": 17,
|
|
639
|
+
"blockHash": "0xcff93b2d9a31872704e18a6512952c0038db1f435955efc84f9b26793e0d2930"
|
|
627
640
|
},
|
|
628
641
|
{
|
|
629
|
-
"transactionIndex":
|
|
630
|
-
"blockNumber":
|
|
631
|
-
"transactionHash": "
|
|
632
|
-
"address": "
|
|
642
|
+
"transactionIndex": 8,
|
|
643
|
+
"blockNumber": 27096229,
|
|
644
|
+
"transactionHash": "0x4ab3ffc620545ce8774474d90ccef8516863e95f42a32446d2a931a902c3ff96",
|
|
645
|
+
"address": "0x4736CD7783736425b3855581c3d40FB153DAf322",
|
|
633
646
|
"topics": ["0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498"],
|
|
634
647
|
"data": "0x0000000000000000000000000000000000000000000000000000000000000001",
|
|
635
|
-
"logIndex":
|
|
636
|
-
"blockHash": "
|
|
648
|
+
"logIndex": 18,
|
|
649
|
+
"blockHash": "0xcff93b2d9a31872704e18a6512952c0038db1f435955efc84f9b26793e0d2930"
|
|
637
650
|
},
|
|
638
651
|
{
|
|
639
|
-
"transactionIndex":
|
|
640
|
-
"blockNumber":
|
|
641
|
-
"transactionHash": "
|
|
642
|
-
"address": "
|
|
652
|
+
"transactionIndex": 8,
|
|
653
|
+
"blockNumber": 27096229,
|
|
654
|
+
"transactionHash": "0x4ab3ffc620545ce8774474d90ccef8516863e95f42a32446d2a931a902c3ff96",
|
|
655
|
+
"address": "0x4736CD7783736425b3855581c3d40FB153DAf322",
|
|
643
656
|
"topics": ["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],
|
|
644
|
-
"data": "
|
|
645
|
-
"logIndex":
|
|
646
|
-
"blockHash": "
|
|
657
|
+
"data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000003774cba06bde91a4841281c808ae57f54cb8da84",
|
|
658
|
+
"logIndex": 19,
|
|
659
|
+
"blockHash": "0xcff93b2d9a31872704e18a6512952c0038db1f435955efc84f9b26793e0d2930"
|
|
647
660
|
}
|
|
648
661
|
],
|
|
649
|
-
"blockNumber":
|
|
650
|
-
"cumulativeGasUsed": "
|
|
662
|
+
"blockNumber": 27096229,
|
|
663
|
+
"cumulativeGasUsed": "1959639",
|
|
651
664
|
"status": 1,
|
|
652
665
|
"byzantium": true
|
|
653
666
|
},
|
|
654
667
|
"args": [
|
|
655
|
-
"
|
|
656
|
-
"
|
|
657
|
-
"
|
|
668
|
+
"0xf8c6f847f6B07Fe6092097f4a5f47206244A14C1",
|
|
669
|
+
"0x3774CBA06bdE91A4841281C808AE57F54cb8dA84",
|
|
670
|
+
"0xc4d66de8000000000000000000000000d4372973fe457e03139280590d34198b920c8213"
|
|
658
671
|
],
|
|
659
672
|
"numDeployments": 1,
|
|
660
673
|
"solcInputHash": "0e89febeebc7444140de8e67c9067d2c",
|
|
@@ -663,9 +676,9 @@
|
|
|
663
676
|
"deployedBytecode": "0x6080604052600436106100435760003560e01c80633659cfe61461005a5780634f1ef2861461007a5780635c60da1b1461008d578063f851a440146100cb57610052565b36610052576100506100e0565b005b6100506100e0565b34801561006657600080fd5b5061005061007536600461076c565b6100fa565b610050610088366004610787565b61015e565b34801561009957600080fd5b506100a26101ec565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100d757600080fd5b506100a2610244565b6100e86102f1565b6100f86100f36103e2565b610422565b565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614156101565761015381604051806020016040528060008152506000610446565b50565b6101536100e0565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614156101e4576101df8383838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525060019250610446915050565b505050565b6101df6100e0565b60003373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161415610239576102346103e2565b905090565b6102416100e0565b90565b60003373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016141561023957507f000000000000000000000000000000000000000000000000000000000000000090565b60606102ce83836040518060600160405280602781526020016108a460279139610471565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614156100f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b60006102347f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b3660008037600080366000845af43d6000803e808015610441573d6000f35b3d6000fd5b61044f83610599565b60008251118061045c5750805b156101df5761046b83836102a9565b50505050565b606073ffffffffffffffffffffffffffffffffffffffff84163b610517576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e7472616374000000000000000000000000000000000000000000000000000060648201526084016103d9565b6000808573ffffffffffffffffffffffffffffffffffffffff168560405161053f9190610836565b600060405180830381855af49150503d806000811461057a576040519150601f19603f3d011682016040523d82523d6000602084013e61057f565b606091505b509150915061058f8282866105e6565b9695505050505050565b6105a281610639565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606083156105f55750816102ce565b8251156106055782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d99190610852565b73ffffffffffffffffffffffffffffffffffffffff81163b6106dd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e74726163740000000000000000000000000000000000000060648201526084016103d9565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b803573ffffffffffffffffffffffffffffffffffffffff8116811461076757600080fd5b919050565b60006020828403121561077e57600080fd5b6102ce82610743565b60008060006040848603121561079c57600080fd5b6107a584610743565b9250602084013567ffffffffffffffff808211156107c257600080fd5b818601915086601f8301126107d657600080fd5b8135818111156107e557600080fd5b8760208285010111156107f757600080fd5b6020830194508093505050509250925092565b60005b8381101561082557818101518382015260200161080d565b8381111561046b5750506000910152565b6000825161084881846020870161080a565b9190910192915050565b602081526000825180602084015261087181604085016020870161080a565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212206f70214c51cdd41c05ba0ffeb72b309ca3c8be178fd6e73c12162330799984f364736f6c634300080a0033",
|
|
664
677
|
"execute": {
|
|
665
678
|
"methodName": "initialize",
|
|
666
|
-
"args": ["
|
|
679
|
+
"args": ["0xD4372973fE457e03139280590D34198b920C8213"]
|
|
667
680
|
},
|
|
668
|
-
"implementation": "
|
|
681
|
+
"implementation": "0xf8c6f847f6B07Fe6092097f4a5f47206244A14C1",
|
|
669
682
|
"devdoc": {
|
|
670
683
|
"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.",
|
|
671
684
|
"kind": "dev",
|