@venusprotocol/oracle 1.3.2 → 1.4.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.
Files changed (50) hide show
  1. package/artifacts/build-info/2fde13baf96aae3a4a0595eaa19cc540.json +1 -0
  2. package/artifacts/build-info/99d7aae43e9eacb55ec69b3cd6d3a70b.json +1 -0
  3. package/artifacts/contracts/PriceOracle.sol/PriceOracle.dbg.json +1 -1
  4. package/artifacts/contracts/PriceOracle.sol/PriceOracle.json +0 -6
  5. package/artifacts/contracts/ResilientOracle.sol/ResilientOracle.dbg.json +1 -1
  6. package/artifacts/contracts/ResilientOracle.sol/ResilientOracle.json +10 -10
  7. package/contracts/PriceOracle.sol +4 -4
  8. package/contracts/ResilientOracle.sol +27 -24
  9. package/deploy/{oracles.d.ts → 1-deploy-oracles.d.ts} +1 -1
  10. package/deploy/1-deploy-oracles.d.ts.map +1 -0
  11. package/deploy/{oracles.js → 1-deploy-oracles.js} +22 -8
  12. package/deploy/1-deploy-oracles.js.map +1 -0
  13. package/deploy/2-configure-feeds.d.ts +4 -0
  14. package/deploy/2-configure-feeds.d.ts.map +1 -0
  15. package/deploy/2-configure-feeds.js +90 -0
  16. package/deploy/2-configure-feeds.js.map +1 -0
  17. package/deployments/bsctestnet/.chainId +1 -0
  18. package/deployments/bsctestnet/BinanceOracle.json +290 -0
  19. package/deployments/bsctestnet/BinanceOracle_Implementation.json +140 -0
  20. package/deployments/{localhost/ChainlinkOracle_Proxy.json → bsctestnet/BinanceOracle_Proxy.json} +36 -46
  21. package/deployments/{localhost → bsctestnet}/BoundValidator.json +40 -40
  22. package/deployments/{localhost → bsctestnet}/BoundValidator_Implementation.json +19 -19
  23. package/deployments/{localhost → bsctestnet}/BoundValidator_Proxy.json +39 -39
  24. package/deployments/{localhost/PivotTwapOracle.json → bsctestnet/ChainlinkOracle.json} +214 -61
  25. package/deployments/bsctestnet/ChainlinkOracle_Implementation.json +553 -0
  26. package/deployments/{localhost/PivotTwapOracle_Proxy.json → bsctestnet/ChainlinkOracle_Proxy.json} +39 -43
  27. package/deployments/{localhost → bsctestnet}/DefaultProxyAdmin.json +19 -19
  28. package/deployments/{localhost → bsctestnet}/PythOracle.json +178 -49
  29. package/deployments/{localhost → bsctestnet}/PythOracle_Implementation.json +247 -45
  30. package/deployments/{localhost → bsctestnet}/PythOracle_Proxy.json +53 -40
  31. package/deployments/{localhost → bsctestnet}/ResilientOracle.json +51 -51
  32. package/deployments/bsctestnet/ResilientOracle_Implementation.json +746 -0
  33. package/deployments/{localhost → bsctestnet}/ResilientOracle_Proxy.json +41 -41
  34. package/deployments/{localhost/BinanceOracle.json → bsctestnet/TwapOracle.json} +419 -53
  35. package/deployments/bsctestnet/TwapOracle_Implementation.json +842 -0
  36. package/deployments/{localhost/BinanceOracle_Proxy.json → bsctestnet/TwapOracle_Proxy.json} +41 -41
  37. package/deployments/bsctestnet/solcInputs/09bc2981019c6dcce653b90bac585fe0.json +81 -0
  38. package/deployments/{localhost → bsctestnet}/solcInputs/0e89febeebc7444140de8e67c9067d2c.json +0 -0
  39. package/deployments/{localhost/solcInputs/468ec7a31e2db8855c82fb8141193271.json → bsctestnet/solcInputs/5dedb37ab8105f1f71e53a3f865859c5.json} +7 -4
  40. package/deployments/{localhost/solcInputs/50629170e50dc9fec79dac585e95ac05.json → bsctestnet/solcInputs/bb71c6049f6b7b21a6581f40daf802bc.json} +31 -31
  41. package/package.json +2 -2
  42. package/artifacts/build-info/766f05630947fa6d366a667b66c1141b.json +0 -1
  43. package/deploy/oracles.d.ts.map +0 -1
  44. package/deploy/oracles.js.map +0 -1
  45. package/deployments/localhost/.chainId +0 -1
  46. package/deployments/localhost/BinanceOracle_Implementation.json +0 -305
  47. package/deployments/localhost/ChainlinkOracle.json +0 -370
  48. package/deployments/localhost/ChainlinkOracle_Implementation.json +0 -273
  49. package/deployments/localhost/PivotTwapOracle_Implementation.json +0 -304
  50. package/deployments/localhost/ResilientOracle_Implementation.json +0 -746
@@ -1,5 +1,5 @@
1
1
  {
2
- "address": "0xA51c1fc2f0D1a1b8494Ed1FE312d7C3a78Ed91C0",
2
+ "address": "0x42Bc1dde9Fd73022F390d0E6e39172b5BD7A0174",
3
3
  "abi": [
4
4
  {
5
5
  "anonymous": false,
@@ -111,6 +111,37 @@
111
111
  "stateMutability": "payable",
112
112
  "type": "receive"
113
113
  },
114
+ {
115
+ "anonymous": false,
116
+ "inputs": [
117
+ {
118
+ "indexed": true,
119
+ "internalType": "address",
120
+ "name": "asset",
121
+ "type": "address"
122
+ },
123
+ {
124
+ "indexed": false,
125
+ "internalType": "uint256",
126
+ "name": "price",
127
+ "type": "uint256"
128
+ },
129
+ {
130
+ "indexed": false,
131
+ "internalType": "uint256",
132
+ "name": "oldTimestamp",
133
+ "type": "uint256"
134
+ },
135
+ {
136
+ "indexed": false,
137
+ "internalType": "uint256",
138
+ "name": "newTimestamp",
139
+ "type": "uint256"
140
+ }
141
+ ],
142
+ "name": "AnchorPriceUpdated",
143
+ "type": "event"
144
+ },
114
145
  {
115
146
  "anonymous": false,
116
147
  "inputs": [
@@ -144,14 +175,83 @@
144
175
  "type": "event"
145
176
  },
146
177
  {
178
+ "anonymous": false,
179
+ "inputs": [
180
+ {
181
+ "indexed": true,
182
+ "internalType": "address",
183
+ "name": "asset",
184
+ "type": "address"
185
+ },
186
+ {
187
+ "indexed": true,
188
+ "internalType": "address",
189
+ "name": "pancakePool",
190
+ "type": "address"
191
+ },
192
+ {
193
+ "indexed": true,
194
+ "internalType": "uint256",
195
+ "name": "anchorPeriod",
196
+ "type": "uint256"
197
+ }
198
+ ],
199
+ "name": "TokenConfigAdded",
200
+ "type": "event"
201
+ },
202
+ {
203
+ "anonymous": false,
147
204
  "inputs": [
205
+ {
206
+ "indexed": true,
207
+ "internalType": "address",
208
+ "name": "asset",
209
+ "type": "address"
210
+ },
211
+ {
212
+ "indexed": false,
213
+ "internalType": "uint256",
214
+ "name": "oldTimestamp",
215
+ "type": "uint256"
216
+ },
217
+ {
218
+ "indexed": false,
219
+ "internalType": "uint256",
220
+ "name": "oldAcc",
221
+ "type": "uint256"
222
+ },
223
+ {
224
+ "indexed": false,
225
+ "internalType": "uint256",
226
+ "name": "newTimestamp",
227
+ "type": "uint256"
228
+ },
229
+ {
230
+ "indexed": false,
231
+ "internalType": "uint256",
232
+ "name": "newAcc",
233
+ "type": "uint256"
234
+ }
235
+ ],
236
+ "name": "TwapWindowUpdated",
237
+ "type": "event"
238
+ },
239
+ {
240
+ "inputs": [],
241
+ "name": "WBNB",
242
+ "outputs": [
148
243
  {
149
244
  "internalType": "address",
150
245
  "name": "",
151
246
  "type": "address"
152
247
  }
153
248
  ],
154
- "name": "assetPrices",
249
+ "stateMutability": "view",
250
+ "type": "function"
251
+ },
252
+ {
253
+ "inputs": [],
254
+ "name": "bnbBaseUnit",
155
255
  "outputs": [
156
256
  {
157
257
  "internalType": "uint256",
@@ -164,12 +264,76 @@
164
264
  },
165
265
  {
166
266
  "inputs": [],
167
- "name": "feedRegistry",
267
+ "name": "busdBaseUnit",
168
268
  "outputs": [
169
269
  {
170
- "internalType": "contract FeedRegistryInterface",
270
+ "internalType": "uint256",
171
271
  "name": "",
172
- "type": "address"
272
+ "type": "uint256"
273
+ }
274
+ ],
275
+ "stateMutability": "view",
276
+ "type": "function"
277
+ },
278
+ {
279
+ "inputs": [
280
+ {
281
+ "components": [
282
+ {
283
+ "internalType": "address",
284
+ "name": "asset",
285
+ "type": "address"
286
+ },
287
+ {
288
+ "internalType": "uint256",
289
+ "name": "baseUnit",
290
+ "type": "uint256"
291
+ },
292
+ {
293
+ "internalType": "address",
294
+ "name": "pancakePool",
295
+ "type": "address"
296
+ },
297
+ {
298
+ "internalType": "bool",
299
+ "name": "isBnbBased",
300
+ "type": "bool"
301
+ },
302
+ {
303
+ "internalType": "bool",
304
+ "name": "isReversedPool",
305
+ "type": "bool"
306
+ },
307
+ {
308
+ "internalType": "uint256",
309
+ "name": "anchorPeriod",
310
+ "type": "uint256"
311
+ }
312
+ ],
313
+ "internalType": "struct TokenConfig",
314
+ "name": "config",
315
+ "type": "tuple"
316
+ }
317
+ ],
318
+ "name": "currentCumulativePrice",
319
+ "outputs": [
320
+ {
321
+ "internalType": "uint256",
322
+ "name": "",
323
+ "type": "uint256"
324
+ }
325
+ ],
326
+ "stateMutability": "view",
327
+ "type": "function"
328
+ },
329
+ {
330
+ "inputs": [],
331
+ "name": "expScale",
332
+ "outputs": [
333
+ {
334
+ "internalType": "uint256",
335
+ "name": "",
336
+ "type": "uint256"
173
337
  }
174
338
  ],
175
339
  "stateMutability": "view",
@@ -197,8 +361,8 @@
197
361
  {
198
362
  "inputs": [
199
363
  {
200
- "internalType": "contract FeedRegistryInterface",
201
- "name": "feed",
364
+ "internalType": "address",
365
+ "name": "WBNB_",
202
366
  "type": "address"
203
367
  }
204
368
  ],
@@ -207,6 +371,54 @@
207
371
  "stateMutability": "nonpayable",
208
372
  "type": "function"
209
373
  },
374
+ {
375
+ "inputs": [
376
+ {
377
+ "internalType": "address",
378
+ "name": "",
379
+ "type": "address"
380
+ }
381
+ ],
382
+ "name": "newObservations",
383
+ "outputs": [
384
+ {
385
+ "internalType": "uint256",
386
+ "name": "timestamp",
387
+ "type": "uint256"
388
+ },
389
+ {
390
+ "internalType": "uint256",
391
+ "name": "acc",
392
+ "type": "uint256"
393
+ }
394
+ ],
395
+ "stateMutability": "view",
396
+ "type": "function"
397
+ },
398
+ {
399
+ "inputs": [
400
+ {
401
+ "internalType": "address",
402
+ "name": "",
403
+ "type": "address"
404
+ }
405
+ ],
406
+ "name": "oldObservations",
407
+ "outputs": [
408
+ {
409
+ "internalType": "uint256",
410
+ "name": "timestamp",
411
+ "type": "uint256"
412
+ },
413
+ {
414
+ "internalType": "uint256",
415
+ "name": "acc",
416
+ "type": "uint256"
417
+ }
418
+ ],
419
+ "stateMutability": "view",
420
+ "type": "function"
421
+ },
210
422
  {
211
423
  "inputs": [],
212
424
  "name": "owner",
@@ -220,6 +432,25 @@
220
432
  "stateMutability": "view",
221
433
  "type": "function"
222
434
  },
435
+ {
436
+ "inputs": [
437
+ {
438
+ "internalType": "address",
439
+ "name": "",
440
+ "type": "address"
441
+ }
442
+ ],
443
+ "name": "prices",
444
+ "outputs": [
445
+ {
446
+ "internalType": "uint256",
447
+ "name": "",
448
+ "type": "uint256"
449
+ }
450
+ ],
451
+ "stateMutability": "view",
452
+ "type": "function"
453
+ },
223
454
  {
224
455
  "inputs": [],
225
456
  "name": "renounceOwnership",
@@ -227,8 +458,106 @@
227
458
  "stateMutability": "nonpayable",
228
459
  "type": "function"
229
460
  },
461
+ {
462
+ "inputs": [
463
+ {
464
+ "components": [
465
+ {
466
+ "internalType": "address",
467
+ "name": "asset",
468
+ "type": "address"
469
+ },
470
+ {
471
+ "internalType": "uint256",
472
+ "name": "baseUnit",
473
+ "type": "uint256"
474
+ },
475
+ {
476
+ "internalType": "address",
477
+ "name": "pancakePool",
478
+ "type": "address"
479
+ },
480
+ {
481
+ "internalType": "bool",
482
+ "name": "isBnbBased",
483
+ "type": "bool"
484
+ },
485
+ {
486
+ "internalType": "bool",
487
+ "name": "isReversedPool",
488
+ "type": "bool"
489
+ },
490
+ {
491
+ "internalType": "uint256",
492
+ "name": "anchorPeriod",
493
+ "type": "uint256"
494
+ }
495
+ ],
496
+ "internalType": "struct TokenConfig",
497
+ "name": "config",
498
+ "type": "tuple"
499
+ }
500
+ ],
501
+ "name": "setTokenConfig",
502
+ "outputs": [],
503
+ "stateMutability": "nonpayable",
504
+ "type": "function"
505
+ },
506
+ {
507
+ "inputs": [
508
+ {
509
+ "components": [
510
+ {
511
+ "internalType": "address",
512
+ "name": "asset",
513
+ "type": "address"
514
+ },
515
+ {
516
+ "internalType": "uint256",
517
+ "name": "baseUnit",
518
+ "type": "uint256"
519
+ },
520
+ {
521
+ "internalType": "address",
522
+ "name": "pancakePool",
523
+ "type": "address"
524
+ },
525
+ {
526
+ "internalType": "bool",
527
+ "name": "isBnbBased",
528
+ "type": "bool"
529
+ },
530
+ {
531
+ "internalType": "bool",
532
+ "name": "isReversedPool",
533
+ "type": "bool"
534
+ },
535
+ {
536
+ "internalType": "uint256",
537
+ "name": "anchorPeriod",
538
+ "type": "uint256"
539
+ }
540
+ ],
541
+ "internalType": "struct TokenConfig[]",
542
+ "name": "configs",
543
+ "type": "tuple[]"
544
+ }
545
+ ],
546
+ "name": "setTokenConfigs",
547
+ "outputs": [],
548
+ "stateMutability": "nonpayable",
549
+ "type": "function"
550
+ },
230
551
  {
231
552
  "inputs": [
553
+ {
554
+ "internalType": "address",
555
+ "name": "",
556
+ "type": "address"
557
+ }
558
+ ],
559
+ "name": "tokenConfigs",
560
+ "outputs": [
232
561
  {
233
562
  "internalType": "address",
234
563
  "name": "asset",
@@ -236,13 +565,31 @@
236
565
  },
237
566
  {
238
567
  "internalType": "uint256",
239
- "name": "price",
568
+ "name": "baseUnit",
569
+ "type": "uint256"
570
+ },
571
+ {
572
+ "internalType": "address",
573
+ "name": "pancakePool",
574
+ "type": "address"
575
+ },
576
+ {
577
+ "internalType": "bool",
578
+ "name": "isBnbBased",
579
+ "type": "bool"
580
+ },
581
+ {
582
+ "internalType": "bool",
583
+ "name": "isReversedPool",
584
+ "type": "bool"
585
+ },
586
+ {
587
+ "internalType": "uint256",
588
+ "name": "anchorPeriod",
240
589
  "type": "uint256"
241
590
  }
242
591
  ],
243
- "name": "setPrice",
244
- "outputs": [],
245
- "stateMutability": "nonpayable",
592
+ "stateMutability": "view",
246
593
  "type": "function"
247
594
  },
248
595
  {
@@ -258,6 +605,25 @@
258
605
  "stateMutability": "nonpayable",
259
606
  "type": "function"
260
607
  },
608
+ {
609
+ "inputs": [
610
+ {
611
+ "internalType": "address",
612
+ "name": "vToken",
613
+ "type": "address"
614
+ }
615
+ ],
616
+ "name": "updateTwap",
617
+ "outputs": [
618
+ {
619
+ "internalType": "uint256",
620
+ "name": "",
621
+ "type": "uint256"
622
+ }
623
+ ],
624
+ "stateMutability": "nonpayable",
625
+ "type": "function"
626
+ },
261
627
  {
262
628
  "inputs": [
263
629
  {
@@ -280,74 +646,74 @@
280
646
  "type": "constructor"
281
647
  }
282
648
  ],
283
- "transactionHash": "0xcec9e2f66df182c7d13a5a228f3f52481b0beebafe94a8ff354c8309deeeb19c",
649
+ "transactionHash": "0xb7e7f67087d096c201c7b6cac690e9edb30625f15d15c901a57c4fd1fa830b1b",
284
650
  "receipt": {
285
651
  "to": null,
286
- "from": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
287
- "contractAddress": "0xA51c1fc2f0D1a1b8494Ed1FE312d7C3a78Ed91C0",
288
- "transactionIndex": 0,
289
- "gasUsed": "694081",
290
- "logsBloom": "0x00000000000000000000000000000000400000000000000000800000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000002000002000001000000000000000000000000000000000000020000000000000100000800000000800000000000000400000000400000000000000000000000000000000000000000000480000000000000800000000000000000000000000000000400000000000000000000000000000000000000000020000000200000000000040000000000002400000000000000000020000000000000000000000000000002000000000000000000000000400000000000",
291
- "blockHash": "0xa03933221d9c3872c4a2b4cd6c2befc480c7a6d09c1fe6a39a1e3773f6957bc9",
292
- "transactionHash": "0xcec9e2f66df182c7d13a5a228f3f52481b0beebafe94a8ff354c8309deeeb19c",
652
+ "from": "0x2Ce1d0ffD7E869D9DF33e28552b12DdDed326706",
653
+ "contractAddress": "0x42Bc1dde9Fd73022F390d0E6e39172b5BD7A0174",
654
+ "transactionIndex": 4,
655
+ "gasUsed": "691794",
656
+ "logsBloom": "0x10000000000000000000000000000000400000000000000000800008000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000022000001000000000000000000000000000000000000020000000000004000000800000000800000000000000000000000400000000000000000000000000000000008000000000080000000000000801000000000000000000000000040000400000000000000000000000000000000000000000020000000000000000000040000000000000404000000000000000020000000000000000000000000000000000000000000000000000000000000000000",
657
+ "blockHash": "0xefbf0e6a150d54acecfe6f745d0128db0564a18e97e50d14422cdfdc71ba30b8",
658
+ "transactionHash": "0xb7e7f67087d096c201c7b6cac690e9edb30625f15d15c901a57c4fd1fa830b1b",
293
659
  "logs": [
294
660
  {
295
- "transactionIndex": 0,
296
- "blockNumber": 13,
297
- "transactionHash": "0xcec9e2f66df182c7d13a5a228f3f52481b0beebafe94a8ff354c8309deeeb19c",
298
- "address": "0xA51c1fc2f0D1a1b8494Ed1FE312d7C3a78Ed91C0",
661
+ "transactionIndex": 4,
662
+ "blockNumber": 24708548,
663
+ "transactionHash": "0xb7e7f67087d096c201c7b6cac690e9edb30625f15d15c901a57c4fd1fa830b1b",
664
+ "address": "0x42Bc1dde9Fd73022F390d0E6e39172b5BD7A0174",
299
665
  "topics": [
300
666
  "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b",
301
- "0x000000000000000000000000b7f8bc63bbcad18155201308c8f3540b07f84f5e"
667
+ "0x0000000000000000000000006c6d8723f2df765431c0493d088974a482424030"
302
668
  ],
303
669
  "data": "0x",
304
- "logIndex": 0,
305
- "blockHash": "0xa03933221d9c3872c4a2b4cd6c2befc480c7a6d09c1fe6a39a1e3773f6957bc9"
670
+ "logIndex": 6,
671
+ "blockHash": "0xefbf0e6a150d54acecfe6f745d0128db0564a18e97e50d14422cdfdc71ba30b8"
306
672
  },
307
673
  {
308
- "transactionIndex": 0,
309
- "blockNumber": 13,
310
- "transactionHash": "0xcec9e2f66df182c7d13a5a228f3f52481b0beebafe94a8ff354c8309deeeb19c",
311
- "address": "0xA51c1fc2f0D1a1b8494Ed1FE312d7C3a78Ed91C0",
674
+ "transactionIndex": 4,
675
+ "blockNumber": 24708548,
676
+ "transactionHash": "0xb7e7f67087d096c201c7b6cac690e9edb30625f15d15c901a57c4fd1fa830b1b",
677
+ "address": "0x42Bc1dde9Fd73022F390d0E6e39172b5BD7A0174",
312
678
  "topics": [
313
679
  "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
314
680
  "0x0000000000000000000000000000000000000000000000000000000000000000",
315
- "0x000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266"
681
+ "0x0000000000000000000000002ce1d0ffd7e869d9df33e28552b12ddded326706"
316
682
  ],
317
683
  "data": "0x",
318
- "logIndex": 1,
319
- "blockHash": "0xa03933221d9c3872c4a2b4cd6c2befc480c7a6d09c1fe6a39a1e3773f6957bc9"
684
+ "logIndex": 7,
685
+ "blockHash": "0xefbf0e6a150d54acecfe6f745d0128db0564a18e97e50d14422cdfdc71ba30b8"
320
686
  },
321
687
  {
322
- "transactionIndex": 0,
323
- "blockNumber": 13,
324
- "transactionHash": "0xcec9e2f66df182c7d13a5a228f3f52481b0beebafe94a8ff354c8309deeeb19c",
325
- "address": "0xA51c1fc2f0D1a1b8494Ed1FE312d7C3a78Ed91C0",
688
+ "transactionIndex": 4,
689
+ "blockNumber": 24708548,
690
+ "transactionHash": "0xb7e7f67087d096c201c7b6cac690e9edb30625f15d15c901a57c4fd1fa830b1b",
691
+ "address": "0x42Bc1dde9Fd73022F390d0E6e39172b5BD7A0174",
326
692
  "topics": ["0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498"],
327
693
  "data": "0x0000000000000000000000000000000000000000000000000000000000000001",
328
- "logIndex": 2,
329
- "blockHash": "0xa03933221d9c3872c4a2b4cd6c2befc480c7a6d09c1fe6a39a1e3773f6957bc9"
694
+ "logIndex": 8,
695
+ "blockHash": "0xefbf0e6a150d54acecfe6f745d0128db0564a18e97e50d14422cdfdc71ba30b8"
330
696
  },
331
697
  {
332
- "transactionIndex": 0,
333
- "blockNumber": 13,
334
- "transactionHash": "0xcec9e2f66df182c7d13a5a228f3f52481b0beebafe94a8ff354c8309deeeb19c",
335
- "address": "0xA51c1fc2f0D1a1b8494Ed1FE312d7C3a78Ed91C0",
698
+ "transactionIndex": 4,
699
+ "blockNumber": 24708548,
700
+ "transactionHash": "0xb7e7f67087d096c201c7b6cac690e9edb30625f15d15c901a57c4fd1fa830b1b",
701
+ "address": "0x42Bc1dde9Fd73022F390d0E6e39172b5BD7A0174",
336
702
  "topics": ["0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"],
337
- "data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000005fbdb2315678afecb367f032d93f642f64180aa3",
338
- "logIndex": 3,
339
- "blockHash": "0xa03933221d9c3872c4a2b4cd6c2befc480c7a6d09c1fe6a39a1e3773f6957bc9"
703
+ "data": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000088c90a298028f7c2ba3edc16382609e996f3aa9f",
704
+ "logIndex": 9,
705
+ "blockHash": "0xefbf0e6a150d54acecfe6f745d0128db0564a18e97e50d14422cdfdc71ba30b8"
340
706
  }
341
707
  ],
342
- "blockNumber": 13,
343
- "cumulativeGasUsed": "694081",
708
+ "blockNumber": 24708548,
709
+ "cumulativeGasUsed": "959091",
344
710
  "status": 1,
345
711
  "byzantium": true
346
712
  },
347
713
  "args": [
348
- "0xB7f8BC63BbcaD18155201308C8f3540b07f84F5e",
349
- "0x5FbDB2315678afecb367f032d93F642f64180aa3",
350
- "0xc4d66de8000000000000000000000000999dd49fefdc043fdac4fe12bb1e4bb31cb4c47b"
714
+ "0x6C6d8723f2dF765431c0493D088974a482424030",
715
+ "0x88c90A298028F7C2Ba3eDc16382609E996f3aa9F",
716
+ "0xc4d66de80000000000000000000000002e7222e51c0f6e98610a1543aa3836e092cde62c"
351
717
  ],
352
718
  "numDeployments": 1,
353
719
  "solcInputHash": "0e89febeebc7444140de8e67c9067d2c",
@@ -356,9 +722,9 @@
356
722
  "deployedBytecode": "0x6080604052600436106100435760003560e01c80633659cfe61461005a5780634f1ef2861461007a5780635c60da1b1461008d578063f851a440146100cb57610052565b36610052576100506100e0565b005b6100506100e0565b34801561006657600080fd5b5061005061007536600461076c565b6100fa565b610050610088366004610787565b61015e565b34801561009957600080fd5b506100a26101ec565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100d757600080fd5b506100a2610244565b6100e86102f1565b6100f86100f36103e2565b610422565b565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614156101565761015381604051806020016040528060008152506000610446565b50565b6101536100e0565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614156101e4576101df8383838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525060019250610446915050565b505050565b6101df6100e0565b60003373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161415610239576102346103e2565b905090565b6102416100e0565b90565b60003373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016141561023957507f000000000000000000000000000000000000000000000000000000000000000090565b60606102ce83836040518060600160405280602781526020016108a460279139610471565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff163b151590565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614156100f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f7879207461726760648201527f6574000000000000000000000000000000000000000000000000000000000000608482015260a4015b60405180910390fd5b60006102347f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b3660008037600080366000845af43d6000803e808015610441573d6000f35b3d6000fd5b61044f83610599565b60008251118061045c5750805b156101df5761046b83836102a9565b50505050565b606073ffffffffffffffffffffffffffffffffffffffff84163b610517576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e7472616374000000000000000000000000000000000000000000000000000060648201526084016103d9565b6000808573ffffffffffffffffffffffffffffffffffffffff168560405161053f9190610836565b600060405180830381855af49150503d806000811461057a576040519150601f19603f3d011682016040523d82523d6000602084013e61057f565b606091505b509150915061058f8282866105e6565b9695505050505050565b6105a281610639565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606083156105f55750816102ce565b8251156106055782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d99190610852565b73ffffffffffffffffffffffffffffffffffffffff81163b6106dd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e74726163740000000000000000000000000000000000000060648201526084016103d9565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b803573ffffffffffffffffffffffffffffffffffffffff8116811461076757600080fd5b919050565b60006020828403121561077e57600080fd5b6102ce82610743565b60008060006040848603121561079c57600080fd5b6107a584610743565b9250602084013567ffffffffffffffff808211156107c257600080fd5b818601915086601f8301126107d657600080fd5b8135818111156107e557600080fd5b8760208285010111156107f757600080fd5b6020830194508093505050509250925092565b60005b8381101561082557818101518382015260200161080d565b8381111561046b5750506000910152565b6000825161084881846020870161080a565b9190910192915050565b602081526000825180602084015261087181604085016020870161080a565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212206f70214c51cdd41c05ba0ffeb72b309ca3c8be178fd6e73c12162330799984f364736f6c634300080a0033",
357
723
  "execute": {
358
724
  "methodName": "initialize",
359
- "args": ["0x999DD49FeFdC043fDAC4FE12Bb1e4bb31cB4c47B"]
725
+ "args": ["0x2E7222e51c0f6e98610A1543Aa3836E092CDe62c"]
360
726
  },
361
- "implementation": "0xB7f8BC63BbcaD18155201308C8f3540b07f84F5e",
727
+ "implementation": "0x6C6d8723f2dF765431c0493D088974a482424030",
362
728
  "devdoc": {
363
729
  "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.",
364
730
  "kind": "dev",