@venusprotocol/oracle 2.7.0-dev.1 → 2.7.0-dev.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/deployments/bscmainnet/BNBxOracle.json +41 -30
- package/deployments/bscmainnet/BNBxOracle_Implementation.json +11 -11
- package/deployments/bscmainnet/BNBxOracle_Proxy.json +40 -29
- package/deployments/bscmainnet.json +3 -3
- package/deployments/bscmainnet_addresses.json +3 -3
- package/deployments/ethereum/pufETHOneJumpRedStoneOracle.json +295 -0
- package/deployments/ethereum/pufETHOneJumpRedStoneOracle_Implementation.json +204 -0
- package/deployments/ethereum/pufETHOneJumpRedStoneOracle_Proxy.json +213 -0
- package/deployments/ethereum/solcInputs/20abf9c935c457314764c04a2f2833b7.json +325 -0
- package/deployments/ethereum.json +465 -0
- package/deployments/ethereum_addresses.json +3 -0
- package/deployments/sepolia/pufETHOneJumpRedStoneOracle.json +295 -0
- package/deployments/sepolia/pufETHOneJumpRedStoneOracle_Implementation.json +204 -0
- package/deployments/sepolia/pufETHOneJumpRedStoneOracle_Proxy.json +213 -0
- package/deployments/sepolia/solcInputs/20abf9c935c457314764c04a2f2833b7.json +325 -0
- package/deployments/sepolia.json +465 -0
- package/deployments/sepolia_addresses.json +3 -0
- package/dist/deploy/14-deploy-pufETH-oracle.d.ts +4 -0
- package/dist/deploy/14-deploy-pufETH-oracle.d.ts.map +1 -0
- package/dist/deploy/14-deploy-pufETH-oracle.js +31 -0
- package/dist/deploy/14-deploy-pufETH-oracle.js.map +1 -0
- package/dist/helpers/deploymentConfig.d.ts.map +1 -1
- package/dist/helpers/deploymentConfig.js +3 -1
- package/dist/helpers/deploymentConfig.js.map +1 -1
- package/package.json +1 -1
package/deployments/sepolia.json
CHANGED
|
@@ -10450,6 +10450,471 @@
|
|
|
10450
10450
|
}
|
|
10451
10451
|
]
|
|
10452
10452
|
},
|
|
10453
|
+
"pufETHOneJumpRedStoneOracle": {
|
|
10454
|
+
"address": "0xB6aA35247097a2711CF4941DECD00b858124d959",
|
|
10455
|
+
"abi": [
|
|
10456
|
+
{
|
|
10457
|
+
"anonymous": false,
|
|
10458
|
+
"inputs": [
|
|
10459
|
+
{
|
|
10460
|
+
"indexed": false,
|
|
10461
|
+
"internalType": "address",
|
|
10462
|
+
"name": "previousAdmin",
|
|
10463
|
+
"type": "address"
|
|
10464
|
+
},
|
|
10465
|
+
{
|
|
10466
|
+
"indexed": false,
|
|
10467
|
+
"internalType": "address",
|
|
10468
|
+
"name": "newAdmin",
|
|
10469
|
+
"type": "address"
|
|
10470
|
+
}
|
|
10471
|
+
],
|
|
10472
|
+
"name": "AdminChanged",
|
|
10473
|
+
"type": "event"
|
|
10474
|
+
},
|
|
10475
|
+
{
|
|
10476
|
+
"anonymous": false,
|
|
10477
|
+
"inputs": [
|
|
10478
|
+
{
|
|
10479
|
+
"indexed": true,
|
|
10480
|
+
"internalType": "address",
|
|
10481
|
+
"name": "beacon",
|
|
10482
|
+
"type": "address"
|
|
10483
|
+
}
|
|
10484
|
+
],
|
|
10485
|
+
"name": "BeaconUpgraded",
|
|
10486
|
+
"type": "event"
|
|
10487
|
+
},
|
|
10488
|
+
{
|
|
10489
|
+
"anonymous": false,
|
|
10490
|
+
"inputs": [
|
|
10491
|
+
{
|
|
10492
|
+
"indexed": true,
|
|
10493
|
+
"internalType": "address",
|
|
10494
|
+
"name": "implementation",
|
|
10495
|
+
"type": "address"
|
|
10496
|
+
}
|
|
10497
|
+
],
|
|
10498
|
+
"name": "Upgraded",
|
|
10499
|
+
"type": "event"
|
|
10500
|
+
},
|
|
10501
|
+
{
|
|
10502
|
+
"stateMutability": "payable",
|
|
10503
|
+
"type": "fallback"
|
|
10504
|
+
},
|
|
10505
|
+
{
|
|
10506
|
+
"inputs": [],
|
|
10507
|
+
"name": "admin",
|
|
10508
|
+
"outputs": [
|
|
10509
|
+
{
|
|
10510
|
+
"internalType": "address",
|
|
10511
|
+
"name": "admin_",
|
|
10512
|
+
"type": "address"
|
|
10513
|
+
}
|
|
10514
|
+
],
|
|
10515
|
+
"stateMutability": "nonpayable",
|
|
10516
|
+
"type": "function"
|
|
10517
|
+
},
|
|
10518
|
+
{
|
|
10519
|
+
"inputs": [],
|
|
10520
|
+
"name": "implementation",
|
|
10521
|
+
"outputs": [
|
|
10522
|
+
{
|
|
10523
|
+
"internalType": "address",
|
|
10524
|
+
"name": "implementation_",
|
|
10525
|
+
"type": "address"
|
|
10526
|
+
}
|
|
10527
|
+
],
|
|
10528
|
+
"stateMutability": "nonpayable",
|
|
10529
|
+
"type": "function"
|
|
10530
|
+
},
|
|
10531
|
+
{
|
|
10532
|
+
"inputs": [
|
|
10533
|
+
{
|
|
10534
|
+
"internalType": "address",
|
|
10535
|
+
"name": "newImplementation",
|
|
10536
|
+
"type": "address"
|
|
10537
|
+
}
|
|
10538
|
+
],
|
|
10539
|
+
"name": "upgradeTo",
|
|
10540
|
+
"outputs": [],
|
|
10541
|
+
"stateMutability": "nonpayable",
|
|
10542
|
+
"type": "function"
|
|
10543
|
+
},
|
|
10544
|
+
{
|
|
10545
|
+
"inputs": [
|
|
10546
|
+
{
|
|
10547
|
+
"internalType": "address",
|
|
10548
|
+
"name": "newImplementation",
|
|
10549
|
+
"type": "address"
|
|
10550
|
+
},
|
|
10551
|
+
{
|
|
10552
|
+
"internalType": "bytes",
|
|
10553
|
+
"name": "data",
|
|
10554
|
+
"type": "bytes"
|
|
10555
|
+
}
|
|
10556
|
+
],
|
|
10557
|
+
"name": "upgradeToAndCall",
|
|
10558
|
+
"outputs": [],
|
|
10559
|
+
"stateMutability": "payable",
|
|
10560
|
+
"type": "function"
|
|
10561
|
+
},
|
|
10562
|
+
{
|
|
10563
|
+
"stateMutability": "payable",
|
|
10564
|
+
"type": "receive"
|
|
10565
|
+
},
|
|
10566
|
+
{
|
|
10567
|
+
"inputs": [],
|
|
10568
|
+
"name": "InvalidTokenAddress",
|
|
10569
|
+
"type": "error"
|
|
10570
|
+
},
|
|
10571
|
+
{
|
|
10572
|
+
"inputs": [],
|
|
10573
|
+
"name": "ZeroAddressNotAllowed",
|
|
10574
|
+
"type": "error"
|
|
10575
|
+
},
|
|
10576
|
+
{
|
|
10577
|
+
"inputs": [],
|
|
10578
|
+
"name": "CORRELATED_TOKEN",
|
|
10579
|
+
"outputs": [
|
|
10580
|
+
{
|
|
10581
|
+
"internalType": "address",
|
|
10582
|
+
"name": "",
|
|
10583
|
+
"type": "address"
|
|
10584
|
+
}
|
|
10585
|
+
],
|
|
10586
|
+
"stateMutability": "view",
|
|
10587
|
+
"type": "function"
|
|
10588
|
+
},
|
|
10589
|
+
{
|
|
10590
|
+
"inputs": [],
|
|
10591
|
+
"name": "INTERMEDIATE_ORACLE",
|
|
10592
|
+
"outputs": [
|
|
10593
|
+
{
|
|
10594
|
+
"internalType": "contract OracleInterface",
|
|
10595
|
+
"name": "",
|
|
10596
|
+
"type": "address"
|
|
10597
|
+
}
|
|
10598
|
+
],
|
|
10599
|
+
"stateMutability": "view",
|
|
10600
|
+
"type": "function"
|
|
10601
|
+
},
|
|
10602
|
+
{
|
|
10603
|
+
"inputs": [],
|
|
10604
|
+
"name": "RESILIENT_ORACLE",
|
|
10605
|
+
"outputs": [
|
|
10606
|
+
{
|
|
10607
|
+
"internalType": "contract OracleInterface",
|
|
10608
|
+
"name": "",
|
|
10609
|
+
"type": "address"
|
|
10610
|
+
}
|
|
10611
|
+
],
|
|
10612
|
+
"stateMutability": "view",
|
|
10613
|
+
"type": "function"
|
|
10614
|
+
},
|
|
10615
|
+
{
|
|
10616
|
+
"inputs": [],
|
|
10617
|
+
"name": "UNDERLYING_TOKEN",
|
|
10618
|
+
"outputs": [
|
|
10619
|
+
{
|
|
10620
|
+
"internalType": "address",
|
|
10621
|
+
"name": "",
|
|
10622
|
+
"type": "address"
|
|
10623
|
+
}
|
|
10624
|
+
],
|
|
10625
|
+
"stateMutability": "view",
|
|
10626
|
+
"type": "function"
|
|
10627
|
+
},
|
|
10628
|
+
{
|
|
10629
|
+
"inputs": [
|
|
10630
|
+
{
|
|
10631
|
+
"internalType": "address",
|
|
10632
|
+
"name": "asset",
|
|
10633
|
+
"type": "address"
|
|
10634
|
+
}
|
|
10635
|
+
],
|
|
10636
|
+
"name": "getPrice",
|
|
10637
|
+
"outputs": [
|
|
10638
|
+
{
|
|
10639
|
+
"internalType": "uint256",
|
|
10640
|
+
"name": "",
|
|
10641
|
+
"type": "uint256"
|
|
10642
|
+
}
|
|
10643
|
+
],
|
|
10644
|
+
"stateMutability": "view",
|
|
10645
|
+
"type": "function"
|
|
10646
|
+
},
|
|
10647
|
+
{
|
|
10648
|
+
"inputs": [
|
|
10649
|
+
{
|
|
10650
|
+
"internalType": "address",
|
|
10651
|
+
"name": "_logic",
|
|
10652
|
+
"type": "address"
|
|
10653
|
+
},
|
|
10654
|
+
{
|
|
10655
|
+
"internalType": "address",
|
|
10656
|
+
"name": "admin_",
|
|
10657
|
+
"type": "address"
|
|
10658
|
+
},
|
|
10659
|
+
{
|
|
10660
|
+
"internalType": "bytes",
|
|
10661
|
+
"name": "_data",
|
|
10662
|
+
"type": "bytes"
|
|
10663
|
+
}
|
|
10664
|
+
],
|
|
10665
|
+
"stateMutability": "payable",
|
|
10666
|
+
"type": "constructor"
|
|
10667
|
+
}
|
|
10668
|
+
]
|
|
10669
|
+
},
|
|
10670
|
+
"pufETHOneJumpRedStoneOracle_Implementation": {
|
|
10671
|
+
"address": "0x41D699a58D83440853a25E2194992c0C9e332144",
|
|
10672
|
+
"abi": [
|
|
10673
|
+
{
|
|
10674
|
+
"inputs": [
|
|
10675
|
+
{
|
|
10676
|
+
"internalType": "address",
|
|
10677
|
+
"name": "correlatedToken",
|
|
10678
|
+
"type": "address"
|
|
10679
|
+
},
|
|
10680
|
+
{
|
|
10681
|
+
"internalType": "address",
|
|
10682
|
+
"name": "underlyingToken",
|
|
10683
|
+
"type": "address"
|
|
10684
|
+
},
|
|
10685
|
+
{
|
|
10686
|
+
"internalType": "address",
|
|
10687
|
+
"name": "resilientOracle",
|
|
10688
|
+
"type": "address"
|
|
10689
|
+
},
|
|
10690
|
+
{
|
|
10691
|
+
"internalType": "address",
|
|
10692
|
+
"name": "intermediateOracle",
|
|
10693
|
+
"type": "address"
|
|
10694
|
+
}
|
|
10695
|
+
],
|
|
10696
|
+
"stateMutability": "nonpayable",
|
|
10697
|
+
"type": "constructor"
|
|
10698
|
+
},
|
|
10699
|
+
{
|
|
10700
|
+
"inputs": [],
|
|
10701
|
+
"name": "InvalidTokenAddress",
|
|
10702
|
+
"type": "error"
|
|
10703
|
+
},
|
|
10704
|
+
{
|
|
10705
|
+
"inputs": [],
|
|
10706
|
+
"name": "ZeroAddressNotAllowed",
|
|
10707
|
+
"type": "error"
|
|
10708
|
+
},
|
|
10709
|
+
{
|
|
10710
|
+
"inputs": [],
|
|
10711
|
+
"name": "CORRELATED_TOKEN",
|
|
10712
|
+
"outputs": [
|
|
10713
|
+
{
|
|
10714
|
+
"internalType": "address",
|
|
10715
|
+
"name": "",
|
|
10716
|
+
"type": "address"
|
|
10717
|
+
}
|
|
10718
|
+
],
|
|
10719
|
+
"stateMutability": "view",
|
|
10720
|
+
"type": "function"
|
|
10721
|
+
},
|
|
10722
|
+
{
|
|
10723
|
+
"inputs": [],
|
|
10724
|
+
"name": "INTERMEDIATE_ORACLE",
|
|
10725
|
+
"outputs": [
|
|
10726
|
+
{
|
|
10727
|
+
"internalType": "contract OracleInterface",
|
|
10728
|
+
"name": "",
|
|
10729
|
+
"type": "address"
|
|
10730
|
+
}
|
|
10731
|
+
],
|
|
10732
|
+
"stateMutability": "view",
|
|
10733
|
+
"type": "function"
|
|
10734
|
+
},
|
|
10735
|
+
{
|
|
10736
|
+
"inputs": [],
|
|
10737
|
+
"name": "RESILIENT_ORACLE",
|
|
10738
|
+
"outputs": [
|
|
10739
|
+
{
|
|
10740
|
+
"internalType": "contract OracleInterface",
|
|
10741
|
+
"name": "",
|
|
10742
|
+
"type": "address"
|
|
10743
|
+
}
|
|
10744
|
+
],
|
|
10745
|
+
"stateMutability": "view",
|
|
10746
|
+
"type": "function"
|
|
10747
|
+
},
|
|
10748
|
+
{
|
|
10749
|
+
"inputs": [],
|
|
10750
|
+
"name": "UNDERLYING_TOKEN",
|
|
10751
|
+
"outputs": [
|
|
10752
|
+
{
|
|
10753
|
+
"internalType": "address",
|
|
10754
|
+
"name": "",
|
|
10755
|
+
"type": "address"
|
|
10756
|
+
}
|
|
10757
|
+
],
|
|
10758
|
+
"stateMutability": "view",
|
|
10759
|
+
"type": "function"
|
|
10760
|
+
},
|
|
10761
|
+
{
|
|
10762
|
+
"inputs": [
|
|
10763
|
+
{
|
|
10764
|
+
"internalType": "address",
|
|
10765
|
+
"name": "asset",
|
|
10766
|
+
"type": "address"
|
|
10767
|
+
}
|
|
10768
|
+
],
|
|
10769
|
+
"name": "getPrice",
|
|
10770
|
+
"outputs": [
|
|
10771
|
+
{
|
|
10772
|
+
"internalType": "uint256",
|
|
10773
|
+
"name": "",
|
|
10774
|
+
"type": "uint256"
|
|
10775
|
+
}
|
|
10776
|
+
],
|
|
10777
|
+
"stateMutability": "view",
|
|
10778
|
+
"type": "function"
|
|
10779
|
+
}
|
|
10780
|
+
]
|
|
10781
|
+
},
|
|
10782
|
+
"pufETHOneJumpRedStoneOracle_Proxy": {
|
|
10783
|
+
"address": "0xB6aA35247097a2711CF4941DECD00b858124d959",
|
|
10784
|
+
"abi": [
|
|
10785
|
+
{
|
|
10786
|
+
"inputs": [
|
|
10787
|
+
{
|
|
10788
|
+
"internalType": "address",
|
|
10789
|
+
"name": "_logic",
|
|
10790
|
+
"type": "address"
|
|
10791
|
+
},
|
|
10792
|
+
{
|
|
10793
|
+
"internalType": "address",
|
|
10794
|
+
"name": "admin_",
|
|
10795
|
+
"type": "address"
|
|
10796
|
+
},
|
|
10797
|
+
{
|
|
10798
|
+
"internalType": "bytes",
|
|
10799
|
+
"name": "_data",
|
|
10800
|
+
"type": "bytes"
|
|
10801
|
+
}
|
|
10802
|
+
],
|
|
10803
|
+
"stateMutability": "payable",
|
|
10804
|
+
"type": "constructor"
|
|
10805
|
+
},
|
|
10806
|
+
{
|
|
10807
|
+
"anonymous": false,
|
|
10808
|
+
"inputs": [
|
|
10809
|
+
{
|
|
10810
|
+
"indexed": false,
|
|
10811
|
+
"internalType": "address",
|
|
10812
|
+
"name": "previousAdmin",
|
|
10813
|
+
"type": "address"
|
|
10814
|
+
},
|
|
10815
|
+
{
|
|
10816
|
+
"indexed": false,
|
|
10817
|
+
"internalType": "address",
|
|
10818
|
+
"name": "newAdmin",
|
|
10819
|
+
"type": "address"
|
|
10820
|
+
}
|
|
10821
|
+
],
|
|
10822
|
+
"name": "AdminChanged",
|
|
10823
|
+
"type": "event"
|
|
10824
|
+
},
|
|
10825
|
+
{
|
|
10826
|
+
"anonymous": false,
|
|
10827
|
+
"inputs": [
|
|
10828
|
+
{
|
|
10829
|
+
"indexed": true,
|
|
10830
|
+
"internalType": "address",
|
|
10831
|
+
"name": "beacon",
|
|
10832
|
+
"type": "address"
|
|
10833
|
+
}
|
|
10834
|
+
],
|
|
10835
|
+
"name": "BeaconUpgraded",
|
|
10836
|
+
"type": "event"
|
|
10837
|
+
},
|
|
10838
|
+
{
|
|
10839
|
+
"anonymous": false,
|
|
10840
|
+
"inputs": [
|
|
10841
|
+
{
|
|
10842
|
+
"indexed": true,
|
|
10843
|
+
"internalType": "address",
|
|
10844
|
+
"name": "implementation",
|
|
10845
|
+
"type": "address"
|
|
10846
|
+
}
|
|
10847
|
+
],
|
|
10848
|
+
"name": "Upgraded",
|
|
10849
|
+
"type": "event"
|
|
10850
|
+
},
|
|
10851
|
+
{
|
|
10852
|
+
"stateMutability": "payable",
|
|
10853
|
+
"type": "fallback"
|
|
10854
|
+
},
|
|
10855
|
+
{
|
|
10856
|
+
"inputs": [],
|
|
10857
|
+
"name": "admin",
|
|
10858
|
+
"outputs": [
|
|
10859
|
+
{
|
|
10860
|
+
"internalType": "address",
|
|
10861
|
+
"name": "admin_",
|
|
10862
|
+
"type": "address"
|
|
10863
|
+
}
|
|
10864
|
+
],
|
|
10865
|
+
"stateMutability": "nonpayable",
|
|
10866
|
+
"type": "function"
|
|
10867
|
+
},
|
|
10868
|
+
{
|
|
10869
|
+
"inputs": [],
|
|
10870
|
+
"name": "implementation",
|
|
10871
|
+
"outputs": [
|
|
10872
|
+
{
|
|
10873
|
+
"internalType": "address",
|
|
10874
|
+
"name": "implementation_",
|
|
10875
|
+
"type": "address"
|
|
10876
|
+
}
|
|
10877
|
+
],
|
|
10878
|
+
"stateMutability": "nonpayable",
|
|
10879
|
+
"type": "function"
|
|
10880
|
+
},
|
|
10881
|
+
{
|
|
10882
|
+
"inputs": [
|
|
10883
|
+
{
|
|
10884
|
+
"internalType": "address",
|
|
10885
|
+
"name": "newImplementation",
|
|
10886
|
+
"type": "address"
|
|
10887
|
+
}
|
|
10888
|
+
],
|
|
10889
|
+
"name": "upgradeTo",
|
|
10890
|
+
"outputs": [],
|
|
10891
|
+
"stateMutability": "nonpayable",
|
|
10892
|
+
"type": "function"
|
|
10893
|
+
},
|
|
10894
|
+
{
|
|
10895
|
+
"inputs": [
|
|
10896
|
+
{
|
|
10897
|
+
"internalType": "address",
|
|
10898
|
+
"name": "newImplementation",
|
|
10899
|
+
"type": "address"
|
|
10900
|
+
},
|
|
10901
|
+
{
|
|
10902
|
+
"internalType": "bytes",
|
|
10903
|
+
"name": "data",
|
|
10904
|
+
"type": "bytes"
|
|
10905
|
+
}
|
|
10906
|
+
],
|
|
10907
|
+
"name": "upgradeToAndCall",
|
|
10908
|
+
"outputs": [],
|
|
10909
|
+
"stateMutability": "payable",
|
|
10910
|
+
"type": "function"
|
|
10911
|
+
},
|
|
10912
|
+
{
|
|
10913
|
+
"stateMutability": "payable",
|
|
10914
|
+
"type": "receive"
|
|
10915
|
+
}
|
|
10916
|
+
]
|
|
10917
|
+
},
|
|
10453
10918
|
"rsETHOneJumpChainlinkOracle": {
|
|
10454
10919
|
"address": "0xDAF249b4A937385dB567B73630539BacDBB04342",
|
|
10455
10920
|
"abi": [
|
|
@@ -48,6 +48,9 @@
|
|
|
48
48
|
"ezETHOneJumpRedStoneOracle": "0x32Aba08E2150BB3D07d77c4945dc7238382FB8eD",
|
|
49
49
|
"ezETHOneJumpRedStoneOracle_Implementation": "0xd9D769D926b029Df2d83D7d6187c3E33e249FaAE",
|
|
50
50
|
"ezETHOneJumpRedStoneOracle_Proxy": "0x32Aba08E2150BB3D07d77c4945dc7238382FB8eD",
|
|
51
|
+
"pufETHOneJumpRedStoneOracle": "0xB6aA35247097a2711CF4941DECD00b858124d959",
|
|
52
|
+
"pufETHOneJumpRedStoneOracle_Implementation": "0x41D699a58D83440853a25E2194992c0C9e332144",
|
|
53
|
+
"pufETHOneJumpRedStoneOracle_Proxy": "0xB6aA35247097a2711CF4941DECD00b858124d959",
|
|
51
54
|
"rsETHOneJumpChainlinkOracle": "0xDAF249b4A937385dB567B73630539BacDBB04342",
|
|
52
55
|
"rsETHOneJumpChainlinkOracle_Implementation": "0x4024F4d7ca04655eF9fc6C0F31419731d1349a40",
|
|
53
56
|
"rsETHOneJumpChainlinkOracle_Proxy": "0xDAF249b4A937385dB567B73630539BacDBB04342",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"14-deploy-pufETH-oracle.d.ts","sourceRoot":"","sources":["../../deploy/14-deploy-pufETH-oracle.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAK3D,QAAA,MAAM,IAAI,EAAE,cAqBX,CAAC;AAIF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const hardhat_1 = __importDefault(require("hardhat"));
|
|
7
|
+
const deploymentConfig_1 = require("../helpers/deploymentConfig");
|
|
8
|
+
const func = async function ({ getNamedAccounts, deployments, network }) {
|
|
9
|
+
const { deploy } = deployments;
|
|
10
|
+
const { deployer } = await getNamedAccounts();
|
|
11
|
+
const proxyOwnerAddress = deploymentConfig_1.ADDRESSES[network.name].timelock;
|
|
12
|
+
const { pufETH, WETH } = deploymentConfig_1.ADDRESSES[network.name];
|
|
13
|
+
const redStoneOracle = await hardhat_1.default.ethers.getContract("RedStoneOracle");
|
|
14
|
+
const resilientOracle = await hardhat_1.default.ethers.getContract("ResilientOracle");
|
|
15
|
+
await deploy("pufETHOneJumpRedStoneOracle", {
|
|
16
|
+
contract: "OneJumpOracle",
|
|
17
|
+
from: deployer,
|
|
18
|
+
log: true,
|
|
19
|
+
deterministicDeployment: false,
|
|
20
|
+
args: [pufETH, WETH, resilientOracle.address, redStoneOracle.address],
|
|
21
|
+
proxy: {
|
|
22
|
+
owner: proxyOwnerAddress,
|
|
23
|
+
proxyContract: "OptimizedTransparentProxy",
|
|
24
|
+
},
|
|
25
|
+
skipIfAlreadyDeployed: true,
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
func.skip = async () => hardhat_1.default.network.name !== "ethereum" && hardhat_1.default.network.name !== "sepolia";
|
|
29
|
+
func.tags = ["pufETHOneJumpRedStoneOracle"];
|
|
30
|
+
exports.default = func;
|
|
31
|
+
//# sourceMappingURL=14-deploy-pufETH-oracle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"14-deploy-pufETH-oracle.js","sourceRoot":"","sources":["../../deploy/14-deploy-pufETH-oracle.ts"],"names":[],"mappings":";;;;;AAAA,sDAA0B;AAI1B,kEAAwD;AAExD,MAAM,IAAI,GAAmB,KAAK,WAAW,EAAE,gBAAgB,EAAE,WAAW,EAAE,OAAO,EAA6B;IAChH,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,CAAC;IAC/B,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,gBA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KAAK,IAAI,CAAC;IAC7D,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC9C,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,MAAM,EAAE,CAAC;CACnD;AAED,MAAM,WAAW,OAAO;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAG5C,CAAC;AAEF,eAAO,MAAM,QAAQ,+CAA+C,CAAC;AACrE,eAAO,MAAM,oBAAoB,QAAe,CAAC;AAGjD,eAAO,MAAM,YAAY,+CAA+B,CAAC;AAEzD,eAAO,MAAM,SAAS,EAAE,sBA2JvB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,MA8G3B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,MAkB1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,MAIpB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,MAq0BpB,CAAC;AAEF,eAAO,MAAM,cAAc,QAAa,QAAQ,OAAO,CA0EtD,CAAC;AAEF,eAAO,MAAM,kBAAkB,YAAmB,MAAM,KAAG,QAAQ,OAAO,MAAM,EAAE,OAAO,CAAC,CAQzF,CAAC"}
|
|
@@ -52,7 +52,7 @@ exports.ADDRESSES = {
|
|
|
52
52
|
sidRegistryAddress: "0x08CEd32a7f3eeC915Ba84415e9C07a7286977956",
|
|
53
53
|
acm: bscmainnet_json_1.default.contracts.AccessControlManager.address,
|
|
54
54
|
timelock: bscmainnet_json_1.default.contracts.NormalTimelock.address,
|
|
55
|
-
BNBxStakeManager: "
|
|
55
|
+
BNBxStakeManager: "0x3b961e83400D51e6E1AF5c450d3C7d7b80588d28",
|
|
56
56
|
BNBx: "0x1bdd3cf7f79cfb8edbb955f20ad99211551ba275",
|
|
57
57
|
stkBNBStakePool: "0xC228CefDF841dEfDbD5B3a18dFD414cC0dbfa0D8",
|
|
58
58
|
stkBNB: "0xc2E9d07F66A89c44062459A47a0D2Dc038E4fb16",
|
|
@@ -83,6 +83,7 @@ exports.ADDRESSES = {
|
|
|
83
83
|
weETHs: "0xE233527306c2fa1E159e251a2E5893334505A5E0",
|
|
84
84
|
eBTC: "0xd48392CCf3fe028023D0783E570DFc71996859d7",
|
|
85
85
|
WBTC: "0x92A2928f5634BEa89A195e7BeCF0f0FEEDAB885b",
|
|
86
|
+
pufETH: "0x6D9f78b57AEeB0543a3c3B32Cc038bFB14a4bA68",
|
|
86
87
|
},
|
|
87
88
|
ethereum: {
|
|
88
89
|
vBNBAddress: hardhat_1.ethers.constants.AddressZero,
|
|
@@ -111,6 +112,7 @@ exports.ADDRESSES = {
|
|
|
111
112
|
eBTC: "0x657e8c867d8b37dcc18fa4caead9c45eb088c642",
|
|
112
113
|
WBTC: "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
|
|
113
114
|
eBTC_Accountant: "0x1b293DC39F94157fA0D1D36d7e0090C8B8B8c13F",
|
|
115
|
+
pufETH: "0xD9A442856C234a39a81a089C06451EBAa4306a72",
|
|
114
116
|
},
|
|
115
117
|
opbnbtestnet: {
|
|
116
118
|
vBNBAddress: hardhat_1.ethers.constants.AddressZero,
|