@venusprotocol/oracle 1.6.11-dev.7 → 1.6.11-dev.8
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/deployments/bscmainnet/BinanceOracle.json +278 -36
- package/deployments/bscmainnet/BinanceOracle_Implementation.json +398 -28
- package/deployments/bscmainnet/BinanceOracle_Proxy.json +58 -34
- package/deployments/bscmainnet/BoundValidator.json +48 -48
- package/deployments/bscmainnet/BoundValidator_Implementation.json +36 -36
- package/deployments/bscmainnet/BoundValidator_Proxy.json +46 -46
- package/deployments/bscmainnet/ChainlinkOracle.json +55 -41
- package/deployments/bscmainnet/ChainlinkOracle_Implementation.json +36 -36
- package/deployments/bscmainnet/ChainlinkOracle_Proxy.json +53 -39
- package/deployments/bscmainnet/DefaultProxyAdmin.json +16 -16
- package/deployments/bscmainnet/PythOracle.json +54 -54
- package/deployments/bscmainnet/PythOracle_Implementation.json +38 -38
- package/deployments/bscmainnet/PythOracle_Proxy.json +52 -52
- package/deployments/bscmainnet/ResilientOracle.json +57 -43
- package/deployments/bscmainnet/ResilientOracle_Implementation.json +38 -38
- package/deployments/bscmainnet/ResilientOracle_Proxy.json +54 -40
- package/deployments/bscmainnet/TwapOracle.json +48 -61
- package/deployments/bscmainnet/TwapOracle_Implementation.json +49 -62
- package/deployments/bscmainnet/TwapOracle_Proxy.json +46 -46
- package/deployments/bscmainnet/solcInputs/3c9df0f4b407c3d8079629dd6ddb913e.json +180 -0
- package/dist/hardhat.config.d.ts.map +1 -1
- package/dist/hardhat.config.js +20 -4
- package/dist/hardhat.config.js.map +1 -1
- package/package.json +1 -1
- package/deployments/bscmainnet/solcInputs/68ea814c0d6925581f2bda5deba8ce4a.json +0 -60
- package/deployments/bscmainnet/solcInputs/8658c669dade0e9ab80874eab3bf3468.json +0 -117
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"address": "
|
|
2
|
+
"address": "0x833c980ADDAa4B9d1f8432EDdA51B89676702759",
|
|
3
3
|
"abi": [
|
|
4
4
|
{
|
|
5
5
|
"inputs": [
|
|
@@ -133,70 +133,84 @@
|
|
|
133
133
|
"type": "receive"
|
|
134
134
|
}
|
|
135
135
|
],
|
|
136
|
-
"transactionHash": "
|
|
136
|
+
"transactionHash": "0x4ade64c9104ec218c971e1b7b63c0687b307ed2c0e59551a7642ee11ca5a51c5",
|
|
137
137
|
"receipt": {
|
|
138
138
|
"to": null,
|
|
139
|
-
"from": "
|
|
140
|
-
"contractAddress": "
|
|
141
|
-
"transactionIndex":
|
|
142
|
-
"gasUsed": "
|
|
143
|
-
"logsBloom": "
|
|
144
|
-
"blockHash": "
|
|
145
|
-
"transactionHash": "
|
|
139
|
+
"from": "0xa05f990d647287e4E84715b813BC000aEA970467",
|
|
140
|
+
"contractAddress": "0x833c980ADDAa4B9d1f8432EDdA51B89676702759",
|
|
141
|
+
"transactionIndex": 107,
|
|
142
|
+
"gasUsed": "721330",
|
|
143
|
+
"logsBloom": "0x00000000000000000000000000000000400000000000000000901000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000008000000102000001000000000100000000000000000000000000020000000000000000000800000000800000000000000000000000400000000000000080100000000000000000000000000080000000000000800000000000000000000000000000000400000000000000808000000000000000000000000020000000000000000000040000000000000400000020000000000020000000000000000000000000000000000000000800000000000000000000000000",
|
|
144
|
+
"blockHash": "0xabafabfb68950e24735dd977f8bb3d0d63ad101dc125c128f959989b19d31938",
|
|
145
|
+
"transactionHash": "0x4ade64c9104ec218c971e1b7b63c0687b307ed2c0e59551a7642ee11ca5a51c5",
|
|
146
146
|
"logs": [
|
|
147
147
|
{
|
|
148
|
-
"transactionIndex":
|
|
149
|
-
"blockNumber":
|
|
150
|
-
"transactionHash": "
|
|
151
|
-
"address": "
|
|
148
|
+
"transactionIndex": 107,
|
|
149
|
+
"blockNumber": 27541065,
|
|
150
|
+
"transactionHash": "0x4ade64c9104ec218c971e1b7b63c0687b307ed2c0e59551a7642ee11ca5a51c5",
|
|
151
|
+
"address": "0x833c980ADDAa4B9d1f8432EDdA51B89676702759",
|
|
152
152
|
"topics": [
|
|
153
153
|
"0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b",
|
|
154
|
-
"
|
|
154
|
+
"0x000000000000000000000000786b9a0e499ad119710fb71e3bab9a2e6077bd40"
|
|
155
155
|
],
|
|
156
156
|
"data": "0x",
|
|
157
|
-
"logIndex":
|
|
158
|
-
"blockHash": "
|
|
157
|
+
"logIndex": 333,
|
|
158
|
+
"blockHash": "0xabafabfb68950e24735dd977f8bb3d0d63ad101dc125c128f959989b19d31938"
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
|
-
"transactionIndex":
|
|
162
|
-
"blockNumber":
|
|
163
|
-
"transactionHash": "
|
|
164
|
-
"address": "
|
|
161
|
+
"transactionIndex": 107,
|
|
162
|
+
"blockNumber": 27541065,
|
|
163
|
+
"transactionHash": "0x4ade64c9104ec218c971e1b7b63c0687b307ed2c0e59551a7642ee11ca5a51c5",
|
|
164
|
+
"address": "0x833c980ADDAa4B9d1f8432EDdA51B89676702759",
|
|
165
|
+
"topics": [
|
|
166
|
+
"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
|
|
167
|
+
"0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
168
|
+
"0x000000000000000000000000a05f990d647287e4e84715b813bc000aea970467"
|
|
169
|
+
],
|
|
170
|
+
"data": "0x",
|
|
171
|
+
"logIndex": 334,
|
|
172
|
+
"blockHash": "0xabafabfb68950e24735dd977f8bb3d0d63ad101dc125c128f959989b19d31938"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"transactionIndex": 107,
|
|
176
|
+
"blockNumber": 27541065,
|
|
177
|
+
"transactionHash": "0x4ade64c9104ec218c971e1b7b63c0687b307ed2c0e59551a7642ee11ca5a51c5",
|
|
178
|
+
"address": "0x833c980ADDAa4B9d1f8432EDdA51B89676702759",
|
|
165
179
|
"topics": ["0x66fd58e82f7b31a2a5c30e0888f3093efe4e111b00cd2b0c31fe014601293aa0"],
|
|
166
180
|
"data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000004788629abc6cfca10f9f969efdeaa1cf70c23555",
|
|
167
|
-
"logIndex":
|
|
168
|
-
"blockHash": "
|
|
181
|
+
"logIndex": 335,
|
|
182
|
+
"blockHash": "0xabafabfb68950e24735dd977f8bb3d0d63ad101dc125c128f959989b19d31938"
|
|
169
183
|
},
|
|
170
184
|
{
|
|
171
|
-
"transactionIndex":
|
|
172
|
-
"blockNumber":
|
|
173
|
-
"transactionHash": "
|
|
174
|
-
"address": "
|
|
185
|
+
"transactionIndex": 107,
|
|
186
|
+
"blockNumber": 27541065,
|
|
187
|
+
"transactionHash": "0x4ade64c9104ec218c971e1b7b63c0687b307ed2c0e59551a7642ee11ca5a51c5",
|
|
188
|
+
"address": "0x833c980ADDAa4B9d1f8432EDdA51B89676702759",
|
|
175
189
|
"topics": ["0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498"],
|
|
176
190
|
"data": "0x0000000000000000000000000000000000000000000000000000000000000001",
|
|
177
|
-
"logIndex":
|
|
178
|
-
"blockHash": "
|
|
191
|
+
"logIndex": 336,
|
|
192
|
+
"blockHash": "0xabafabfb68950e24735dd977f8bb3d0d63ad101dc125c128f959989b19d31938"
|
|
179
193
|
},
|
|
180
194
|
{
|
|
181
|
-
"transactionIndex":
|
|
182
|
-
"blockNumber":
|
|
183
|
-
"transactionHash": "
|
|
184
|
-
"address": "
|
|
195
|
+
"transactionIndex": 107,
|
|
196
|
+
"blockNumber": 27541065,
|
|
197
|
+
"transactionHash": "0x4ade64c9104ec218c971e1b7b63c0687b307ed2c0e59551a7642ee11ca5a51c5",
|
|
198
|
+
"address": "0x833c980ADDAa4B9d1f8432EDdA51B89676702759",
|
|
185
199
|
"topics": ["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],
|
|
186
|
-
"data": "
|
|
187
|
-
"logIndex":
|
|
188
|
-
"blockHash": "
|
|
200
|
+
"data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000adb35da0690a6dff4c9dac1638372272d2d0f91e",
|
|
201
|
+
"logIndex": 337,
|
|
202
|
+
"blockHash": "0xabafabfb68950e24735dd977f8bb3d0d63ad101dc125c128f959989b19d31938"
|
|
189
203
|
}
|
|
190
204
|
],
|
|
191
|
-
"blockNumber":
|
|
192
|
-
"cumulativeGasUsed": "
|
|
205
|
+
"blockNumber": 27541065,
|
|
206
|
+
"cumulativeGasUsed": "22012720",
|
|
193
207
|
"status": 1,
|
|
194
208
|
"byzantium": true
|
|
195
209
|
},
|
|
196
210
|
"args": [
|
|
197
|
-
"
|
|
198
|
-
"
|
|
199
|
-
"
|
|
211
|
+
"0x786B9a0E499aD119710fb71e3bAB9a2E6077BD40",
|
|
212
|
+
"0xAdb35Da0690a6dFF4C9dAc1638372272D2d0f91E",
|
|
213
|
+
"0x485cc955000000000000000000000000c3dbac666eb8db8b4d861b51e622ed632baf87860000000000000000000000004788629abc6cfca10f9f969efdeaa1cf70c23555"
|
|
200
214
|
],
|
|
201
215
|
"numDeployments": 1,
|
|
202
216
|
"solcInputHash": "0e89febeebc7444140de8e67c9067d2c",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"address": "
|
|
2
|
+
"address": "0x526C79F944A28EB5B653DF4c0f9E7467B9850Eea",
|
|
3
3
|
"abi": [
|
|
4
4
|
{
|
|
5
5
|
"anonymous": false,
|
|
@@ -320,7 +320,7 @@
|
|
|
320
320
|
"name": "accessControlManager",
|
|
321
321
|
"outputs": [
|
|
322
322
|
{
|
|
323
|
-
"internalType": "contract
|
|
323
|
+
"internalType": "contract IAccessControlManagerV8",
|
|
324
324
|
"name": "",
|
|
325
325
|
"type": "address"
|
|
326
326
|
}
|
|
@@ -405,19 +405,6 @@
|
|
|
405
405
|
"stateMutability": "view",
|
|
406
406
|
"type": "function"
|
|
407
407
|
},
|
|
408
|
-
{
|
|
409
|
-
"inputs": [],
|
|
410
|
-
"name": "expScale",
|
|
411
|
-
"outputs": [
|
|
412
|
-
{
|
|
413
|
-
"internalType": "uint256",
|
|
414
|
-
"name": "",
|
|
415
|
-
"type": "uint256"
|
|
416
|
-
}
|
|
417
|
-
],
|
|
418
|
-
"stateMutability": "view",
|
|
419
|
-
"type": "function"
|
|
420
|
-
},
|
|
421
408
|
{
|
|
422
409
|
"inputs": [
|
|
423
410
|
{
|
|
@@ -777,83 +764,83 @@
|
|
|
777
764
|
"type": "constructor"
|
|
778
765
|
}
|
|
779
766
|
],
|
|
780
|
-
"transactionHash": "
|
|
767
|
+
"transactionHash": "0x59634386d22736b6f9910b946f61d6d60c4164edf93591dea625d452055735b9",
|
|
781
768
|
"receipt": {
|
|
782
769
|
"to": null,
|
|
783
|
-
"from": "
|
|
784
|
-
"contractAddress": "
|
|
785
|
-
"transactionIndex":
|
|
786
|
-
"gasUsed": "
|
|
787
|
-
"logsBloom": "
|
|
788
|
-
"blockHash": "
|
|
789
|
-
"transactionHash": "
|
|
770
|
+
"from": "0xa05f990d647287e4E84715b813BC000aEA970467",
|
|
771
|
+
"contractAddress": "0x526C79F944A28EB5B653DF4c0f9E7467B9850Eea",
|
|
772
|
+
"transactionIndex": 85,
|
|
773
|
+
"gasUsed": "696513",
|
|
774
|
+
"logsBloom": "0x00000000000000000000000000000000400000000000000000800000000000000000000000200000000000000000000000000000000000000000000000048000000000000000000000008000000002000801000000000100000000000000002000000000020000000000000000000800000000800000000000000000000000400000000000000000000000000000000000000000000080000000000000800000000000000000001000000000000400000000000400808000000000000000000000000020000000000000000000040000000000000400000000000000000020000000000000000000000000000000000000000800000000000000000000000000",
|
|
775
|
+
"blockHash": "0xd5cf5efecfa34adc6101e7e9f8fb5b616ef44614703b14db4ab4e6df0f2ec376",
|
|
776
|
+
"transactionHash": "0x59634386d22736b6f9910b946f61d6d60c4164edf93591dea625d452055735b9",
|
|
790
777
|
"logs": [
|
|
791
778
|
{
|
|
792
|
-
"transactionIndex":
|
|
793
|
-
"blockNumber":
|
|
794
|
-
"transactionHash": "
|
|
795
|
-
"address": "
|
|
779
|
+
"transactionIndex": 85,
|
|
780
|
+
"blockNumber": 27541094,
|
|
781
|
+
"transactionHash": "0x59634386d22736b6f9910b946f61d6d60c4164edf93591dea625d452055735b9",
|
|
782
|
+
"address": "0x526C79F944A28EB5B653DF4c0f9E7467B9850Eea",
|
|
796
783
|
"topics": [
|
|
797
784
|
"0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b",
|
|
798
|
-
"
|
|
785
|
+
"0x000000000000000000000000ea24d9d32f350cc3b2581be42f62497910cddde2"
|
|
799
786
|
],
|
|
800
787
|
"data": "0x",
|
|
801
|
-
"logIndex":
|
|
802
|
-
"blockHash": "
|
|
788
|
+
"logIndex": 227,
|
|
789
|
+
"blockHash": "0xd5cf5efecfa34adc6101e7e9f8fb5b616ef44614703b14db4ab4e6df0f2ec376"
|
|
803
790
|
},
|
|
804
791
|
{
|
|
805
|
-
"transactionIndex":
|
|
806
|
-
"blockNumber":
|
|
807
|
-
"transactionHash": "
|
|
808
|
-
"address": "
|
|
792
|
+
"transactionIndex": 85,
|
|
793
|
+
"blockNumber": 27541094,
|
|
794
|
+
"transactionHash": "0x59634386d22736b6f9910b946f61d6d60c4164edf93591dea625d452055735b9",
|
|
795
|
+
"address": "0x526C79F944A28EB5B653DF4c0f9E7467B9850Eea",
|
|
809
796
|
"topics": [
|
|
810
797
|
"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
|
|
811
798
|
"0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
812
|
-
"
|
|
799
|
+
"0x000000000000000000000000a05f990d647287e4e84715b813bc000aea970467"
|
|
813
800
|
],
|
|
814
801
|
"data": "0x",
|
|
815
|
-
"logIndex":
|
|
816
|
-
"blockHash": "
|
|
802
|
+
"logIndex": 228,
|
|
803
|
+
"blockHash": "0xd5cf5efecfa34adc6101e7e9f8fb5b616ef44614703b14db4ab4e6df0f2ec376"
|
|
817
804
|
},
|
|
818
805
|
{
|
|
819
|
-
"transactionIndex":
|
|
820
|
-
"blockNumber":
|
|
821
|
-
"transactionHash": "
|
|
822
|
-
"address": "
|
|
806
|
+
"transactionIndex": 85,
|
|
807
|
+
"blockNumber": 27541094,
|
|
808
|
+
"transactionHash": "0x59634386d22736b6f9910b946f61d6d60c4164edf93591dea625d452055735b9",
|
|
809
|
+
"address": "0x526C79F944A28EB5B653DF4c0f9E7467B9850Eea",
|
|
823
810
|
"topics": ["0x66fd58e82f7b31a2a5c30e0888f3093efe4e111b00cd2b0c31fe014601293aa0"],
|
|
824
811
|
"data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000004788629abc6cfca10f9f969efdeaa1cf70c23555",
|
|
825
|
-
"logIndex":
|
|
826
|
-
"blockHash": "
|
|
812
|
+
"logIndex": 229,
|
|
813
|
+
"blockHash": "0xd5cf5efecfa34adc6101e7e9f8fb5b616ef44614703b14db4ab4e6df0f2ec376"
|
|
827
814
|
},
|
|
828
815
|
{
|
|
829
|
-
"transactionIndex":
|
|
830
|
-
"blockNumber":
|
|
831
|
-
"transactionHash": "
|
|
832
|
-
"address": "
|
|
816
|
+
"transactionIndex": 85,
|
|
817
|
+
"blockNumber": 27541094,
|
|
818
|
+
"transactionHash": "0x59634386d22736b6f9910b946f61d6d60c4164edf93591dea625d452055735b9",
|
|
819
|
+
"address": "0x526C79F944A28EB5B653DF4c0f9E7467B9850Eea",
|
|
833
820
|
"topics": ["0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498"],
|
|
834
821
|
"data": "0x0000000000000000000000000000000000000000000000000000000000000001",
|
|
835
|
-
"logIndex":
|
|
836
|
-
"blockHash": "
|
|
822
|
+
"logIndex": 230,
|
|
823
|
+
"blockHash": "0xd5cf5efecfa34adc6101e7e9f8fb5b616ef44614703b14db4ab4e6df0f2ec376"
|
|
837
824
|
},
|
|
838
825
|
{
|
|
839
|
-
"transactionIndex":
|
|
840
|
-
"blockNumber":
|
|
841
|
-
"transactionHash": "
|
|
842
|
-
"address": "
|
|
826
|
+
"transactionIndex": 85,
|
|
827
|
+
"blockNumber": 27541094,
|
|
828
|
+
"transactionHash": "0x59634386d22736b6f9910b946f61d6d60c4164edf93591dea625d452055735b9",
|
|
829
|
+
"address": "0x526C79F944A28EB5B653DF4c0f9E7467B9850Eea",
|
|
843
830
|
"topics": ["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],
|
|
844
|
-
"data": "
|
|
845
|
-
"logIndex":
|
|
846
|
-
"blockHash": "
|
|
831
|
+
"data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000adb35da0690a6dff4c9dac1638372272d2d0f91e",
|
|
832
|
+
"logIndex": 231,
|
|
833
|
+
"blockHash": "0xd5cf5efecfa34adc6101e7e9f8fb5b616ef44614703b14db4ab4e6df0f2ec376"
|
|
847
834
|
}
|
|
848
835
|
],
|
|
849
|
-
"blockNumber":
|
|
850
|
-
"cumulativeGasUsed": "
|
|
836
|
+
"blockNumber": 27541094,
|
|
837
|
+
"cumulativeGasUsed": "10560776",
|
|
851
838
|
"status": 1,
|
|
852
839
|
"byzantium": true
|
|
853
840
|
},
|
|
854
841
|
"args": [
|
|
855
|
-
"
|
|
856
|
-
"
|
|
842
|
+
"0xea24d9D32f350cc3B2581BE42f62497910CdDDE2",
|
|
843
|
+
"0xAdb35Da0690a6dFF4C9dAc1638372272D2d0f91E",
|
|
857
844
|
"0xc4d66de80000000000000000000000004788629abc6cfca10f9f969efdeaa1cf70c23555"
|
|
858
845
|
],
|
|
859
846
|
"numDeployments": 1,
|
|
@@ -865,7 +852,7 @@
|
|
|
865
852
|
"methodName": "initialize",
|
|
866
853
|
"args": ["0x4788629ABc6cFCA10F9f969efdEAa1cF70c23555"]
|
|
867
854
|
},
|
|
868
|
-
"implementation": "
|
|
855
|
+
"implementation": "0xea24d9D32f350cc3B2581BE42f62497910CdDDE2",
|
|
869
856
|
"devdoc": {
|
|
870
857
|
"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.",
|
|
871
858
|
"kind": "dev",
|