@venusprotocol/isolated-pools 3.3.0-dev.2 → 3.3.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/deployments/arbitrumone/NativeTokenGateway_vWETH_Core.json +599 -0
- package/deployments/arbitrumone.json +379 -0
- package/deployments/arbitrumone_addresses.json +1 -0
- package/dist/deploy/018-native-token-gateway.js +7 -0
- package/dist/deployments/arbitrumone.json +9214 -0
- package/dist/typechain/factories/IVToken__factory.d.ts +5 -1
- package/dist/typechain/factories/IVToken__factory.js +201 -1
- package/package.json +1 -1
- package/typechain/IVToken.d.ts +341 -4
- package/typechain/factories/IVToken__factory.ts +201 -1
|
@@ -3460,6 +3460,385 @@
|
|
|
3460
3460
|
}
|
|
3461
3461
|
]
|
|
3462
3462
|
},
|
|
3463
|
+
"NativeTokenGateway_vWETH_Core": {
|
|
3464
|
+
"address": "0xc8e51418cadc001157506b306C6d0b878f1ff755",
|
|
3465
|
+
"abi": [
|
|
3466
|
+
{
|
|
3467
|
+
"inputs": [
|
|
3468
|
+
{
|
|
3469
|
+
"internalType": "contract IVToken",
|
|
3470
|
+
"name": "vWrappedNativeToken",
|
|
3471
|
+
"type": "address"
|
|
3472
|
+
}
|
|
3473
|
+
],
|
|
3474
|
+
"stateMutability": "nonpayable",
|
|
3475
|
+
"type": "constructor"
|
|
3476
|
+
},
|
|
3477
|
+
{
|
|
3478
|
+
"inputs": [],
|
|
3479
|
+
"name": "NativeTokenTransferFailed",
|
|
3480
|
+
"type": "error"
|
|
3481
|
+
},
|
|
3482
|
+
{
|
|
3483
|
+
"inputs": [],
|
|
3484
|
+
"name": "ZeroAddressNotAllowed",
|
|
3485
|
+
"type": "error"
|
|
3486
|
+
},
|
|
3487
|
+
{
|
|
3488
|
+
"inputs": [],
|
|
3489
|
+
"name": "ZeroValueNotAllowed",
|
|
3490
|
+
"type": "error"
|
|
3491
|
+
},
|
|
3492
|
+
{
|
|
3493
|
+
"anonymous": false,
|
|
3494
|
+
"inputs": [
|
|
3495
|
+
{
|
|
3496
|
+
"indexed": true,
|
|
3497
|
+
"internalType": "address",
|
|
3498
|
+
"name": "previousOwner",
|
|
3499
|
+
"type": "address"
|
|
3500
|
+
},
|
|
3501
|
+
{
|
|
3502
|
+
"indexed": true,
|
|
3503
|
+
"internalType": "address",
|
|
3504
|
+
"name": "newOwner",
|
|
3505
|
+
"type": "address"
|
|
3506
|
+
}
|
|
3507
|
+
],
|
|
3508
|
+
"name": "OwnershipTransferStarted",
|
|
3509
|
+
"type": "event"
|
|
3510
|
+
},
|
|
3511
|
+
{
|
|
3512
|
+
"anonymous": false,
|
|
3513
|
+
"inputs": [
|
|
3514
|
+
{
|
|
3515
|
+
"indexed": true,
|
|
3516
|
+
"internalType": "address",
|
|
3517
|
+
"name": "previousOwner",
|
|
3518
|
+
"type": "address"
|
|
3519
|
+
},
|
|
3520
|
+
{
|
|
3521
|
+
"indexed": true,
|
|
3522
|
+
"internalType": "address",
|
|
3523
|
+
"name": "newOwner",
|
|
3524
|
+
"type": "address"
|
|
3525
|
+
}
|
|
3526
|
+
],
|
|
3527
|
+
"name": "OwnershipTransferred",
|
|
3528
|
+
"type": "event"
|
|
3529
|
+
},
|
|
3530
|
+
{
|
|
3531
|
+
"anonymous": false,
|
|
3532
|
+
"inputs": [
|
|
3533
|
+
{
|
|
3534
|
+
"indexed": true,
|
|
3535
|
+
"internalType": "address",
|
|
3536
|
+
"name": "receiver",
|
|
3537
|
+
"type": "address"
|
|
3538
|
+
},
|
|
3539
|
+
{
|
|
3540
|
+
"indexed": false,
|
|
3541
|
+
"internalType": "uint256",
|
|
3542
|
+
"name": "amount",
|
|
3543
|
+
"type": "uint256"
|
|
3544
|
+
}
|
|
3545
|
+
],
|
|
3546
|
+
"name": "SweepNative",
|
|
3547
|
+
"type": "event"
|
|
3548
|
+
},
|
|
3549
|
+
{
|
|
3550
|
+
"anonymous": false,
|
|
3551
|
+
"inputs": [
|
|
3552
|
+
{
|
|
3553
|
+
"indexed": true,
|
|
3554
|
+
"internalType": "address",
|
|
3555
|
+
"name": "token",
|
|
3556
|
+
"type": "address"
|
|
3557
|
+
},
|
|
3558
|
+
{
|
|
3559
|
+
"indexed": true,
|
|
3560
|
+
"internalType": "address",
|
|
3561
|
+
"name": "receiver",
|
|
3562
|
+
"type": "address"
|
|
3563
|
+
},
|
|
3564
|
+
{
|
|
3565
|
+
"indexed": false,
|
|
3566
|
+
"internalType": "uint256",
|
|
3567
|
+
"name": "amount",
|
|
3568
|
+
"type": "uint256"
|
|
3569
|
+
}
|
|
3570
|
+
],
|
|
3571
|
+
"name": "SweepToken",
|
|
3572
|
+
"type": "event"
|
|
3573
|
+
},
|
|
3574
|
+
{
|
|
3575
|
+
"anonymous": false,
|
|
3576
|
+
"inputs": [
|
|
3577
|
+
{
|
|
3578
|
+
"indexed": true,
|
|
3579
|
+
"internalType": "address",
|
|
3580
|
+
"name": "sender",
|
|
3581
|
+
"type": "address"
|
|
3582
|
+
},
|
|
3583
|
+
{
|
|
3584
|
+
"indexed": true,
|
|
3585
|
+
"internalType": "address",
|
|
3586
|
+
"name": "vToken",
|
|
3587
|
+
"type": "address"
|
|
3588
|
+
},
|
|
3589
|
+
{
|
|
3590
|
+
"indexed": false,
|
|
3591
|
+
"internalType": "uint256",
|
|
3592
|
+
"name": "amount",
|
|
3593
|
+
"type": "uint256"
|
|
3594
|
+
}
|
|
3595
|
+
],
|
|
3596
|
+
"name": "TokensBorrowedAndUnwrapped",
|
|
3597
|
+
"type": "event"
|
|
3598
|
+
},
|
|
3599
|
+
{
|
|
3600
|
+
"anonymous": false,
|
|
3601
|
+
"inputs": [
|
|
3602
|
+
{
|
|
3603
|
+
"indexed": true,
|
|
3604
|
+
"internalType": "address",
|
|
3605
|
+
"name": "sender",
|
|
3606
|
+
"type": "address"
|
|
3607
|
+
},
|
|
3608
|
+
{
|
|
3609
|
+
"indexed": true,
|
|
3610
|
+
"internalType": "address",
|
|
3611
|
+
"name": "vToken",
|
|
3612
|
+
"type": "address"
|
|
3613
|
+
},
|
|
3614
|
+
{
|
|
3615
|
+
"indexed": false,
|
|
3616
|
+
"internalType": "uint256",
|
|
3617
|
+
"name": "amount",
|
|
3618
|
+
"type": "uint256"
|
|
3619
|
+
}
|
|
3620
|
+
],
|
|
3621
|
+
"name": "TokensRedeemedAndUnwrapped",
|
|
3622
|
+
"type": "event"
|
|
3623
|
+
},
|
|
3624
|
+
{
|
|
3625
|
+
"anonymous": false,
|
|
3626
|
+
"inputs": [
|
|
3627
|
+
{
|
|
3628
|
+
"indexed": true,
|
|
3629
|
+
"internalType": "address",
|
|
3630
|
+
"name": "sender",
|
|
3631
|
+
"type": "address"
|
|
3632
|
+
},
|
|
3633
|
+
{
|
|
3634
|
+
"indexed": true,
|
|
3635
|
+
"internalType": "address",
|
|
3636
|
+
"name": "vToken",
|
|
3637
|
+
"type": "address"
|
|
3638
|
+
},
|
|
3639
|
+
{
|
|
3640
|
+
"indexed": false,
|
|
3641
|
+
"internalType": "uint256",
|
|
3642
|
+
"name": "amount",
|
|
3643
|
+
"type": "uint256"
|
|
3644
|
+
}
|
|
3645
|
+
],
|
|
3646
|
+
"name": "TokensWrappedAndRepaid",
|
|
3647
|
+
"type": "event"
|
|
3648
|
+
},
|
|
3649
|
+
{
|
|
3650
|
+
"anonymous": false,
|
|
3651
|
+
"inputs": [
|
|
3652
|
+
{
|
|
3653
|
+
"indexed": true,
|
|
3654
|
+
"internalType": "address",
|
|
3655
|
+
"name": "sender",
|
|
3656
|
+
"type": "address"
|
|
3657
|
+
},
|
|
3658
|
+
{
|
|
3659
|
+
"indexed": true,
|
|
3660
|
+
"internalType": "address",
|
|
3661
|
+
"name": "vToken",
|
|
3662
|
+
"type": "address"
|
|
3663
|
+
},
|
|
3664
|
+
{
|
|
3665
|
+
"indexed": false,
|
|
3666
|
+
"internalType": "uint256",
|
|
3667
|
+
"name": "amount",
|
|
3668
|
+
"type": "uint256"
|
|
3669
|
+
}
|
|
3670
|
+
],
|
|
3671
|
+
"name": "TokensWrappedAndSupplied",
|
|
3672
|
+
"type": "event"
|
|
3673
|
+
},
|
|
3674
|
+
{
|
|
3675
|
+
"stateMutability": "payable",
|
|
3676
|
+
"type": "fallback"
|
|
3677
|
+
},
|
|
3678
|
+
{
|
|
3679
|
+
"inputs": [],
|
|
3680
|
+
"name": "acceptOwnership",
|
|
3681
|
+
"outputs": [],
|
|
3682
|
+
"stateMutability": "nonpayable",
|
|
3683
|
+
"type": "function"
|
|
3684
|
+
},
|
|
3685
|
+
{
|
|
3686
|
+
"inputs": [
|
|
3687
|
+
{
|
|
3688
|
+
"internalType": "uint256",
|
|
3689
|
+
"name": "borrowAmount",
|
|
3690
|
+
"type": "uint256"
|
|
3691
|
+
}
|
|
3692
|
+
],
|
|
3693
|
+
"name": "borrowAndUnwrap",
|
|
3694
|
+
"outputs": [],
|
|
3695
|
+
"stateMutability": "nonpayable",
|
|
3696
|
+
"type": "function"
|
|
3697
|
+
},
|
|
3698
|
+
{
|
|
3699
|
+
"inputs": [],
|
|
3700
|
+
"name": "owner",
|
|
3701
|
+
"outputs": [
|
|
3702
|
+
{
|
|
3703
|
+
"internalType": "address",
|
|
3704
|
+
"name": "",
|
|
3705
|
+
"type": "address"
|
|
3706
|
+
}
|
|
3707
|
+
],
|
|
3708
|
+
"stateMutability": "view",
|
|
3709
|
+
"type": "function"
|
|
3710
|
+
},
|
|
3711
|
+
{
|
|
3712
|
+
"inputs": [],
|
|
3713
|
+
"name": "pendingOwner",
|
|
3714
|
+
"outputs": [
|
|
3715
|
+
{
|
|
3716
|
+
"internalType": "address",
|
|
3717
|
+
"name": "",
|
|
3718
|
+
"type": "address"
|
|
3719
|
+
}
|
|
3720
|
+
],
|
|
3721
|
+
"stateMutability": "view",
|
|
3722
|
+
"type": "function"
|
|
3723
|
+
},
|
|
3724
|
+
{
|
|
3725
|
+
"inputs": [
|
|
3726
|
+
{
|
|
3727
|
+
"internalType": "uint256",
|
|
3728
|
+
"name": "redeemTokens",
|
|
3729
|
+
"type": "uint256"
|
|
3730
|
+
}
|
|
3731
|
+
],
|
|
3732
|
+
"name": "redeemAndUnwrap",
|
|
3733
|
+
"outputs": [],
|
|
3734
|
+
"stateMutability": "nonpayable",
|
|
3735
|
+
"type": "function"
|
|
3736
|
+
},
|
|
3737
|
+
{
|
|
3738
|
+
"inputs": [
|
|
3739
|
+
{
|
|
3740
|
+
"internalType": "uint256",
|
|
3741
|
+
"name": "redeemAmount",
|
|
3742
|
+
"type": "uint256"
|
|
3743
|
+
}
|
|
3744
|
+
],
|
|
3745
|
+
"name": "redeemUnderlyingAndUnwrap",
|
|
3746
|
+
"outputs": [],
|
|
3747
|
+
"stateMutability": "nonpayable",
|
|
3748
|
+
"type": "function"
|
|
3749
|
+
},
|
|
3750
|
+
{
|
|
3751
|
+
"inputs": [],
|
|
3752
|
+
"name": "renounceOwnership",
|
|
3753
|
+
"outputs": [],
|
|
3754
|
+
"stateMutability": "nonpayable",
|
|
3755
|
+
"type": "function"
|
|
3756
|
+
},
|
|
3757
|
+
{
|
|
3758
|
+
"inputs": [],
|
|
3759
|
+
"name": "sweepNative",
|
|
3760
|
+
"outputs": [],
|
|
3761
|
+
"stateMutability": "nonpayable",
|
|
3762
|
+
"type": "function"
|
|
3763
|
+
},
|
|
3764
|
+
{
|
|
3765
|
+
"inputs": [
|
|
3766
|
+
{
|
|
3767
|
+
"internalType": "contract IERC20",
|
|
3768
|
+
"name": "token",
|
|
3769
|
+
"type": "address"
|
|
3770
|
+
}
|
|
3771
|
+
],
|
|
3772
|
+
"name": "sweepToken",
|
|
3773
|
+
"outputs": [],
|
|
3774
|
+
"stateMutability": "nonpayable",
|
|
3775
|
+
"type": "function"
|
|
3776
|
+
},
|
|
3777
|
+
{
|
|
3778
|
+
"inputs": [
|
|
3779
|
+
{
|
|
3780
|
+
"internalType": "address",
|
|
3781
|
+
"name": "newOwner",
|
|
3782
|
+
"type": "address"
|
|
3783
|
+
}
|
|
3784
|
+
],
|
|
3785
|
+
"name": "transferOwnership",
|
|
3786
|
+
"outputs": [],
|
|
3787
|
+
"stateMutability": "nonpayable",
|
|
3788
|
+
"type": "function"
|
|
3789
|
+
},
|
|
3790
|
+
{
|
|
3791
|
+
"inputs": [],
|
|
3792
|
+
"name": "vWNativeToken",
|
|
3793
|
+
"outputs": [
|
|
3794
|
+
{
|
|
3795
|
+
"internalType": "contract IVToken",
|
|
3796
|
+
"name": "",
|
|
3797
|
+
"type": "address"
|
|
3798
|
+
}
|
|
3799
|
+
],
|
|
3800
|
+
"stateMutability": "view",
|
|
3801
|
+
"type": "function"
|
|
3802
|
+
},
|
|
3803
|
+
{
|
|
3804
|
+
"inputs": [],
|
|
3805
|
+
"name": "wNativeToken",
|
|
3806
|
+
"outputs": [
|
|
3807
|
+
{
|
|
3808
|
+
"internalType": "contract IWrappedNative",
|
|
3809
|
+
"name": "",
|
|
3810
|
+
"type": "address"
|
|
3811
|
+
}
|
|
3812
|
+
],
|
|
3813
|
+
"stateMutability": "view",
|
|
3814
|
+
"type": "function"
|
|
3815
|
+
},
|
|
3816
|
+
{
|
|
3817
|
+
"inputs": [],
|
|
3818
|
+
"name": "wrapAndRepay",
|
|
3819
|
+
"outputs": [],
|
|
3820
|
+
"stateMutability": "payable",
|
|
3821
|
+
"type": "function"
|
|
3822
|
+
},
|
|
3823
|
+
{
|
|
3824
|
+
"inputs": [
|
|
3825
|
+
{
|
|
3826
|
+
"internalType": "address",
|
|
3827
|
+
"name": "minter",
|
|
3828
|
+
"type": "address"
|
|
3829
|
+
}
|
|
3830
|
+
],
|
|
3831
|
+
"name": "wrapAndSupply",
|
|
3832
|
+
"outputs": [],
|
|
3833
|
+
"stateMutability": "payable",
|
|
3834
|
+
"type": "function"
|
|
3835
|
+
},
|
|
3836
|
+
{
|
|
3837
|
+
"stateMutability": "payable",
|
|
3838
|
+
"type": "receive"
|
|
3839
|
+
}
|
|
3840
|
+
]
|
|
3841
|
+
},
|
|
3463
3842
|
"PoolLens": {
|
|
3464
3843
|
"address": "0x53F34FF95367B2A4542461a6A63fD321F8da22AD",
|
|
3465
3844
|
"abi": [
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"JumpRateModelV2_base0bps_slope1500bps_jump25000bps_kink4500bps": "0x390D1C248217615D79f74f2453D682906Bd2dD20",
|
|
10
10
|
"JumpRateModelV2_base0bps_slope350bps_jump25000bps_kink8000bps": "0x305f960b00594200ed80373B61b38e669651469E",
|
|
11
11
|
"JumpRateModelV2_base0bps_slope875bps_jump25000bps_kink8000bps": "0xC7EDE29FE265aA46C1Bbc62Dc7e0f3565cce3Db6",
|
|
12
|
+
"NativeTokenGateway_vWETH_Core": "0xc8e51418cadc001157506b306C6d0b878f1ff755",
|
|
12
13
|
"PoolLens": "0x53F34FF95367B2A4542461a6A63fD321F8da22AD",
|
|
13
14
|
"PoolRegistry": "0x382238f07Bc4Fe4aA99e561adE8A4164b5f815DA",
|
|
14
15
|
"PoolRegistry_Implementation": "0xc9A9594e774F9454e4665126C72Eb62643253aB0",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const hardhat_1 = require("hardhat");
|
|
4
|
+
const arbitrumone_json_1 = require("../deployments/arbitrumone.json");
|
|
4
5
|
const arbitrumsepolia_json_1 = require("../deployments/arbitrumsepolia.json");
|
|
5
6
|
const bscmainnet_json_1 = require("../deployments/bscmainnet.json");
|
|
6
7
|
const bsctestnet_json_1 = require("../deployments/bsctestnet.json");
|
|
@@ -60,6 +61,12 @@ const VWNativeInfo = {
|
|
|
60
61
|
address: arbitrumsepolia_json_1.contracts.VToken_vWETH_Core.address,
|
|
61
62
|
},
|
|
62
63
|
],
|
|
64
|
+
arbitrumone: [
|
|
65
|
+
{
|
|
66
|
+
name: "vWETH_Core",
|
|
67
|
+
address: arbitrumone_json_1.contracts.VToken_vWETH_Core.address,
|
|
68
|
+
},
|
|
69
|
+
],
|
|
63
70
|
};
|
|
64
71
|
const getVWNativeTokens = (networkName) => {
|
|
65
72
|
const vTokensInfo = VWNativeInfo[networkName];
|