@venusprotocol/isolated-pools 3.5.0-dev.3 → 3.5.0-dev.4
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/zksyncsepolia/NativeTokenGateway_vWETH_Core.json +711 -0
- package/deployments/zksyncsepolia.json +379 -0
- package/deployments/zksyncsepolia_addresses.json +1 -0
- package/dist/deploy/007-deploy-pool-lens.js +0 -1
- package/dist/deploy/018-native-token-gateway.js +8 -0
- package/dist/deployments/zksyncsepolia.json +10424 -0
- package/dist/typechain/factories/IVToken__factory.d.ts +5 -1
- package/dist/typechain/factories/IVToken__factory.js +201 -1
- package/dist/typechain/factories/PoolRegistryInterface__factory.d.ts +2 -16
- package/dist/typechain/factories/PoolRegistryInterface__factory.js +0 -119
- package/package.json +1 -1
- package/typechain/IVToken.d.ts +341 -4
- package/typechain/PoolRegistryInterface.d.ts +0 -178
- package/typechain/factories/IVToken__factory.ts +201 -1
- package/typechain/factories/PoolRegistryInterface__factory.ts +0 -119
|
@@ -4696,6 +4696,385 @@
|
|
|
4696
4696
|
}
|
|
4697
4697
|
]
|
|
4698
4698
|
},
|
|
4699
|
+
"NativeTokenGateway_vWETH_Core": {
|
|
4700
|
+
"address": "0xC2bc5881f2c1ee08a1f0fee65Fbf2BB4C4DD81e9",
|
|
4701
|
+
"abi": [
|
|
4702
|
+
{
|
|
4703
|
+
"inputs": [
|
|
4704
|
+
{
|
|
4705
|
+
"internalType": "contract IVToken",
|
|
4706
|
+
"name": "vWrappedNativeToken",
|
|
4707
|
+
"type": "address"
|
|
4708
|
+
}
|
|
4709
|
+
],
|
|
4710
|
+
"stateMutability": "nonpayable",
|
|
4711
|
+
"type": "constructor"
|
|
4712
|
+
},
|
|
4713
|
+
{
|
|
4714
|
+
"inputs": [],
|
|
4715
|
+
"name": "NativeTokenTransferFailed",
|
|
4716
|
+
"type": "error"
|
|
4717
|
+
},
|
|
4718
|
+
{
|
|
4719
|
+
"inputs": [],
|
|
4720
|
+
"name": "ZeroAddressNotAllowed",
|
|
4721
|
+
"type": "error"
|
|
4722
|
+
},
|
|
4723
|
+
{
|
|
4724
|
+
"inputs": [],
|
|
4725
|
+
"name": "ZeroValueNotAllowed",
|
|
4726
|
+
"type": "error"
|
|
4727
|
+
},
|
|
4728
|
+
{
|
|
4729
|
+
"anonymous": false,
|
|
4730
|
+
"inputs": [
|
|
4731
|
+
{
|
|
4732
|
+
"indexed": true,
|
|
4733
|
+
"internalType": "address",
|
|
4734
|
+
"name": "previousOwner",
|
|
4735
|
+
"type": "address"
|
|
4736
|
+
},
|
|
4737
|
+
{
|
|
4738
|
+
"indexed": true,
|
|
4739
|
+
"internalType": "address",
|
|
4740
|
+
"name": "newOwner",
|
|
4741
|
+
"type": "address"
|
|
4742
|
+
}
|
|
4743
|
+
],
|
|
4744
|
+
"name": "OwnershipTransferStarted",
|
|
4745
|
+
"type": "event"
|
|
4746
|
+
},
|
|
4747
|
+
{
|
|
4748
|
+
"anonymous": false,
|
|
4749
|
+
"inputs": [
|
|
4750
|
+
{
|
|
4751
|
+
"indexed": true,
|
|
4752
|
+
"internalType": "address",
|
|
4753
|
+
"name": "previousOwner",
|
|
4754
|
+
"type": "address"
|
|
4755
|
+
},
|
|
4756
|
+
{
|
|
4757
|
+
"indexed": true,
|
|
4758
|
+
"internalType": "address",
|
|
4759
|
+
"name": "newOwner",
|
|
4760
|
+
"type": "address"
|
|
4761
|
+
}
|
|
4762
|
+
],
|
|
4763
|
+
"name": "OwnershipTransferred",
|
|
4764
|
+
"type": "event"
|
|
4765
|
+
},
|
|
4766
|
+
{
|
|
4767
|
+
"anonymous": false,
|
|
4768
|
+
"inputs": [
|
|
4769
|
+
{
|
|
4770
|
+
"indexed": true,
|
|
4771
|
+
"internalType": "address",
|
|
4772
|
+
"name": "receiver",
|
|
4773
|
+
"type": "address"
|
|
4774
|
+
},
|
|
4775
|
+
{
|
|
4776
|
+
"indexed": false,
|
|
4777
|
+
"internalType": "uint256",
|
|
4778
|
+
"name": "amount",
|
|
4779
|
+
"type": "uint256"
|
|
4780
|
+
}
|
|
4781
|
+
],
|
|
4782
|
+
"name": "SweepNative",
|
|
4783
|
+
"type": "event"
|
|
4784
|
+
},
|
|
4785
|
+
{
|
|
4786
|
+
"anonymous": false,
|
|
4787
|
+
"inputs": [
|
|
4788
|
+
{
|
|
4789
|
+
"indexed": true,
|
|
4790
|
+
"internalType": "address",
|
|
4791
|
+
"name": "token",
|
|
4792
|
+
"type": "address"
|
|
4793
|
+
},
|
|
4794
|
+
{
|
|
4795
|
+
"indexed": true,
|
|
4796
|
+
"internalType": "address",
|
|
4797
|
+
"name": "receiver",
|
|
4798
|
+
"type": "address"
|
|
4799
|
+
},
|
|
4800
|
+
{
|
|
4801
|
+
"indexed": false,
|
|
4802
|
+
"internalType": "uint256",
|
|
4803
|
+
"name": "amount",
|
|
4804
|
+
"type": "uint256"
|
|
4805
|
+
}
|
|
4806
|
+
],
|
|
4807
|
+
"name": "SweepToken",
|
|
4808
|
+
"type": "event"
|
|
4809
|
+
},
|
|
4810
|
+
{
|
|
4811
|
+
"anonymous": false,
|
|
4812
|
+
"inputs": [
|
|
4813
|
+
{
|
|
4814
|
+
"indexed": true,
|
|
4815
|
+
"internalType": "address",
|
|
4816
|
+
"name": "sender",
|
|
4817
|
+
"type": "address"
|
|
4818
|
+
},
|
|
4819
|
+
{
|
|
4820
|
+
"indexed": true,
|
|
4821
|
+
"internalType": "address",
|
|
4822
|
+
"name": "vToken",
|
|
4823
|
+
"type": "address"
|
|
4824
|
+
},
|
|
4825
|
+
{
|
|
4826
|
+
"indexed": false,
|
|
4827
|
+
"internalType": "uint256",
|
|
4828
|
+
"name": "amount",
|
|
4829
|
+
"type": "uint256"
|
|
4830
|
+
}
|
|
4831
|
+
],
|
|
4832
|
+
"name": "TokensBorrowedAndUnwrapped",
|
|
4833
|
+
"type": "event"
|
|
4834
|
+
},
|
|
4835
|
+
{
|
|
4836
|
+
"anonymous": false,
|
|
4837
|
+
"inputs": [
|
|
4838
|
+
{
|
|
4839
|
+
"indexed": true,
|
|
4840
|
+
"internalType": "address",
|
|
4841
|
+
"name": "sender",
|
|
4842
|
+
"type": "address"
|
|
4843
|
+
},
|
|
4844
|
+
{
|
|
4845
|
+
"indexed": true,
|
|
4846
|
+
"internalType": "address",
|
|
4847
|
+
"name": "vToken",
|
|
4848
|
+
"type": "address"
|
|
4849
|
+
},
|
|
4850
|
+
{
|
|
4851
|
+
"indexed": false,
|
|
4852
|
+
"internalType": "uint256",
|
|
4853
|
+
"name": "amount",
|
|
4854
|
+
"type": "uint256"
|
|
4855
|
+
}
|
|
4856
|
+
],
|
|
4857
|
+
"name": "TokensRedeemedAndUnwrapped",
|
|
4858
|
+
"type": "event"
|
|
4859
|
+
},
|
|
4860
|
+
{
|
|
4861
|
+
"anonymous": false,
|
|
4862
|
+
"inputs": [
|
|
4863
|
+
{
|
|
4864
|
+
"indexed": true,
|
|
4865
|
+
"internalType": "address",
|
|
4866
|
+
"name": "sender",
|
|
4867
|
+
"type": "address"
|
|
4868
|
+
},
|
|
4869
|
+
{
|
|
4870
|
+
"indexed": true,
|
|
4871
|
+
"internalType": "address",
|
|
4872
|
+
"name": "vToken",
|
|
4873
|
+
"type": "address"
|
|
4874
|
+
},
|
|
4875
|
+
{
|
|
4876
|
+
"indexed": false,
|
|
4877
|
+
"internalType": "uint256",
|
|
4878
|
+
"name": "amount",
|
|
4879
|
+
"type": "uint256"
|
|
4880
|
+
}
|
|
4881
|
+
],
|
|
4882
|
+
"name": "TokensWrappedAndRepaid",
|
|
4883
|
+
"type": "event"
|
|
4884
|
+
},
|
|
4885
|
+
{
|
|
4886
|
+
"anonymous": false,
|
|
4887
|
+
"inputs": [
|
|
4888
|
+
{
|
|
4889
|
+
"indexed": true,
|
|
4890
|
+
"internalType": "address",
|
|
4891
|
+
"name": "sender",
|
|
4892
|
+
"type": "address"
|
|
4893
|
+
},
|
|
4894
|
+
{
|
|
4895
|
+
"indexed": true,
|
|
4896
|
+
"internalType": "address",
|
|
4897
|
+
"name": "vToken",
|
|
4898
|
+
"type": "address"
|
|
4899
|
+
},
|
|
4900
|
+
{
|
|
4901
|
+
"indexed": false,
|
|
4902
|
+
"internalType": "uint256",
|
|
4903
|
+
"name": "amount",
|
|
4904
|
+
"type": "uint256"
|
|
4905
|
+
}
|
|
4906
|
+
],
|
|
4907
|
+
"name": "TokensWrappedAndSupplied",
|
|
4908
|
+
"type": "event"
|
|
4909
|
+
},
|
|
4910
|
+
{
|
|
4911
|
+
"stateMutability": "payable",
|
|
4912
|
+
"type": "fallback"
|
|
4913
|
+
},
|
|
4914
|
+
{
|
|
4915
|
+
"inputs": [],
|
|
4916
|
+
"name": "acceptOwnership",
|
|
4917
|
+
"outputs": [],
|
|
4918
|
+
"stateMutability": "nonpayable",
|
|
4919
|
+
"type": "function"
|
|
4920
|
+
},
|
|
4921
|
+
{
|
|
4922
|
+
"inputs": [
|
|
4923
|
+
{
|
|
4924
|
+
"internalType": "uint256",
|
|
4925
|
+
"name": "borrowAmount",
|
|
4926
|
+
"type": "uint256"
|
|
4927
|
+
}
|
|
4928
|
+
],
|
|
4929
|
+
"name": "borrowAndUnwrap",
|
|
4930
|
+
"outputs": [],
|
|
4931
|
+
"stateMutability": "nonpayable",
|
|
4932
|
+
"type": "function"
|
|
4933
|
+
},
|
|
4934
|
+
{
|
|
4935
|
+
"inputs": [],
|
|
4936
|
+
"name": "owner",
|
|
4937
|
+
"outputs": [
|
|
4938
|
+
{
|
|
4939
|
+
"internalType": "address",
|
|
4940
|
+
"name": "",
|
|
4941
|
+
"type": "address"
|
|
4942
|
+
}
|
|
4943
|
+
],
|
|
4944
|
+
"stateMutability": "view",
|
|
4945
|
+
"type": "function"
|
|
4946
|
+
},
|
|
4947
|
+
{
|
|
4948
|
+
"inputs": [],
|
|
4949
|
+
"name": "pendingOwner",
|
|
4950
|
+
"outputs": [
|
|
4951
|
+
{
|
|
4952
|
+
"internalType": "address",
|
|
4953
|
+
"name": "",
|
|
4954
|
+
"type": "address"
|
|
4955
|
+
}
|
|
4956
|
+
],
|
|
4957
|
+
"stateMutability": "view",
|
|
4958
|
+
"type": "function"
|
|
4959
|
+
},
|
|
4960
|
+
{
|
|
4961
|
+
"inputs": [
|
|
4962
|
+
{
|
|
4963
|
+
"internalType": "uint256",
|
|
4964
|
+
"name": "redeemTokens",
|
|
4965
|
+
"type": "uint256"
|
|
4966
|
+
}
|
|
4967
|
+
],
|
|
4968
|
+
"name": "redeemAndUnwrap",
|
|
4969
|
+
"outputs": [],
|
|
4970
|
+
"stateMutability": "nonpayable",
|
|
4971
|
+
"type": "function"
|
|
4972
|
+
},
|
|
4973
|
+
{
|
|
4974
|
+
"inputs": [
|
|
4975
|
+
{
|
|
4976
|
+
"internalType": "uint256",
|
|
4977
|
+
"name": "redeemAmount",
|
|
4978
|
+
"type": "uint256"
|
|
4979
|
+
}
|
|
4980
|
+
],
|
|
4981
|
+
"name": "redeemUnderlyingAndUnwrap",
|
|
4982
|
+
"outputs": [],
|
|
4983
|
+
"stateMutability": "nonpayable",
|
|
4984
|
+
"type": "function"
|
|
4985
|
+
},
|
|
4986
|
+
{
|
|
4987
|
+
"inputs": [],
|
|
4988
|
+
"name": "renounceOwnership",
|
|
4989
|
+
"outputs": [],
|
|
4990
|
+
"stateMutability": "nonpayable",
|
|
4991
|
+
"type": "function"
|
|
4992
|
+
},
|
|
4993
|
+
{
|
|
4994
|
+
"inputs": [],
|
|
4995
|
+
"name": "sweepNative",
|
|
4996
|
+
"outputs": [],
|
|
4997
|
+
"stateMutability": "nonpayable",
|
|
4998
|
+
"type": "function"
|
|
4999
|
+
},
|
|
5000
|
+
{
|
|
5001
|
+
"inputs": [
|
|
5002
|
+
{
|
|
5003
|
+
"internalType": "contract IERC20",
|
|
5004
|
+
"name": "token",
|
|
5005
|
+
"type": "address"
|
|
5006
|
+
}
|
|
5007
|
+
],
|
|
5008
|
+
"name": "sweepToken",
|
|
5009
|
+
"outputs": [],
|
|
5010
|
+
"stateMutability": "nonpayable",
|
|
5011
|
+
"type": "function"
|
|
5012
|
+
},
|
|
5013
|
+
{
|
|
5014
|
+
"inputs": [
|
|
5015
|
+
{
|
|
5016
|
+
"internalType": "address",
|
|
5017
|
+
"name": "newOwner",
|
|
5018
|
+
"type": "address"
|
|
5019
|
+
}
|
|
5020
|
+
],
|
|
5021
|
+
"name": "transferOwnership",
|
|
5022
|
+
"outputs": [],
|
|
5023
|
+
"stateMutability": "nonpayable",
|
|
5024
|
+
"type": "function"
|
|
5025
|
+
},
|
|
5026
|
+
{
|
|
5027
|
+
"inputs": [],
|
|
5028
|
+
"name": "vWNativeToken",
|
|
5029
|
+
"outputs": [
|
|
5030
|
+
{
|
|
5031
|
+
"internalType": "contract IVToken",
|
|
5032
|
+
"name": "",
|
|
5033
|
+
"type": "address"
|
|
5034
|
+
}
|
|
5035
|
+
],
|
|
5036
|
+
"stateMutability": "view",
|
|
5037
|
+
"type": "function"
|
|
5038
|
+
},
|
|
5039
|
+
{
|
|
5040
|
+
"inputs": [],
|
|
5041
|
+
"name": "wNativeToken",
|
|
5042
|
+
"outputs": [
|
|
5043
|
+
{
|
|
5044
|
+
"internalType": "contract IWrappedNative",
|
|
5045
|
+
"name": "",
|
|
5046
|
+
"type": "address"
|
|
5047
|
+
}
|
|
5048
|
+
],
|
|
5049
|
+
"stateMutability": "view",
|
|
5050
|
+
"type": "function"
|
|
5051
|
+
},
|
|
5052
|
+
{
|
|
5053
|
+
"inputs": [],
|
|
5054
|
+
"name": "wrapAndRepay",
|
|
5055
|
+
"outputs": [],
|
|
5056
|
+
"stateMutability": "payable",
|
|
5057
|
+
"type": "function"
|
|
5058
|
+
},
|
|
5059
|
+
{
|
|
5060
|
+
"inputs": [
|
|
5061
|
+
{
|
|
5062
|
+
"internalType": "address",
|
|
5063
|
+
"name": "minter",
|
|
5064
|
+
"type": "address"
|
|
5065
|
+
}
|
|
5066
|
+
],
|
|
5067
|
+
"name": "wrapAndSupply",
|
|
5068
|
+
"outputs": [],
|
|
5069
|
+
"stateMutability": "payable",
|
|
5070
|
+
"type": "function"
|
|
5071
|
+
},
|
|
5072
|
+
{
|
|
5073
|
+
"stateMutability": "payable",
|
|
5074
|
+
"type": "receive"
|
|
5075
|
+
}
|
|
5076
|
+
]
|
|
5077
|
+
},
|
|
4699
5078
|
"PoolLens": {
|
|
4700
5079
|
"address": "0x214Ed51c798EE53f0be79d810E9Fc91662FDE243",
|
|
4701
5080
|
"abi": [
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"MockUSDT": "0x9Bf62C9C6AaB7AB8e01271f0d7A401306579709B",
|
|
14
14
|
"MockWBTC": "0xeF891B3FA37FfD83Ce8cC7b682E4CADBD8fFc6F0",
|
|
15
15
|
"MockZK": "0x8A2E9048F5d658E88D6eD89DdD1F3B5cA0250B9F",
|
|
16
|
+
"NativeTokenGateway_vWETH_Core": "0xC2bc5881f2c1ee08a1f0fee65Fbf2BB4C4DD81e9",
|
|
16
17
|
"PoolLens": "0x214Ed51c798EE53f0be79d810E9Fc91662FDE243",
|
|
17
18
|
"PoolRegistry": "0x1401404e6279BB8C06E5E3999eCA3e2008B46A76",
|
|
18
19
|
"PoolRegistry_Implementation": "0x98b35ec24f05d803e861538482afd975769181c0",
|
|
@@ -9,6 +9,7 @@ const ethereum_json_1 = require("../deployments/ethereum.json");
|
|
|
9
9
|
const opbnbmainnet_json_1 = require("../deployments/opbnbmainnet.json");
|
|
10
10
|
const opbnbtestnet_json_1 = require("../deployments/opbnbtestnet.json");
|
|
11
11
|
const sepolia_json_1 = require("../deployments/sepolia.json");
|
|
12
|
+
const zksyncsepolia_json_1 = require("../deployments/zksyncsepolia.json");
|
|
12
13
|
const deploymentConfig_1 = require("../helpers/deploymentConfig");
|
|
13
14
|
const VWNativeInfo = {
|
|
14
15
|
bsctestnet: [
|
|
@@ -67,6 +68,12 @@ const VWNativeInfo = {
|
|
|
67
68
|
address: arbitrumone_json_1.contracts.VToken_vWETH_Core.address,
|
|
68
69
|
},
|
|
69
70
|
],
|
|
71
|
+
zksyncsepolia: [
|
|
72
|
+
{
|
|
73
|
+
name: "vWETH_Core",
|
|
74
|
+
address: zksyncsepolia_json_1.contracts.VToken_vWETH_Core.address,
|
|
75
|
+
},
|
|
76
|
+
],
|
|
70
77
|
};
|
|
71
78
|
const getVWNativeTokens = (networkName) => {
|
|
72
79
|
const vTokensInfo = VWNativeInfo[networkName];
|
|
@@ -88,6 +95,7 @@ const func = async function (hre) {
|
|
|
88
95
|
args: [vWNativeInfo.address],
|
|
89
96
|
log: true,
|
|
90
97
|
autoMine: true,
|
|
98
|
+
skipIfAlreadyDeployed: true,
|
|
91
99
|
});
|
|
92
100
|
const nativeTokenGateway = await hardhat_1.ethers.getContract(`NativeTokenGateway_${vWNativeInfo.name}`);
|
|
93
101
|
const targetOwner = preconfiguredAddresses.NormalTimelock || deployer;
|