@venusprotocol/isolated-pools 4.1.0-dev.3 → 4.1.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/unichainmainnet/NativeTokenGateway_vWETH_Core.json +599 -0
- package/deployments/unichainmainnet/solcInputs/2040335765422e1de87160c828624fdd.json +406 -0
- package/deployments/unichainmainnet.json +379 -0
- package/deployments/unichainmainnet_addresses.json +1 -0
- package/dist/deploy/018-native-token-gateway.js +7 -0
- package/dist/deployments/unichainmainnet.json +9418 -0
- package/dist/typechain/factories/IVToken__factory.d.ts +1 -5
- package/dist/typechain/factories/IVToken__factory.js +1 -201
- package/package.json +5 -5
- package/typechain/IVToken.d.ts +4 -341
- package/typechain/factories/IVToken__factory.ts +1 -201
|
@@ -3912,6 +3912,385 @@
|
|
|
3912
3912
|
}
|
|
3913
3913
|
]
|
|
3914
3914
|
},
|
|
3915
|
+
"NativeTokenGateway_vWETH_Core": {
|
|
3916
|
+
"address": "0x4441aE3bCEd3210edbA35d0F7348C493E79F1C52",
|
|
3917
|
+
"abi": [
|
|
3918
|
+
{
|
|
3919
|
+
"inputs": [
|
|
3920
|
+
{
|
|
3921
|
+
"internalType": "contract IVToken",
|
|
3922
|
+
"name": "vWrappedNativeToken",
|
|
3923
|
+
"type": "address"
|
|
3924
|
+
}
|
|
3925
|
+
],
|
|
3926
|
+
"stateMutability": "nonpayable",
|
|
3927
|
+
"type": "constructor"
|
|
3928
|
+
},
|
|
3929
|
+
{
|
|
3930
|
+
"inputs": [],
|
|
3931
|
+
"name": "NativeTokenTransferFailed",
|
|
3932
|
+
"type": "error"
|
|
3933
|
+
},
|
|
3934
|
+
{
|
|
3935
|
+
"inputs": [],
|
|
3936
|
+
"name": "ZeroAddressNotAllowed",
|
|
3937
|
+
"type": "error"
|
|
3938
|
+
},
|
|
3939
|
+
{
|
|
3940
|
+
"inputs": [],
|
|
3941
|
+
"name": "ZeroValueNotAllowed",
|
|
3942
|
+
"type": "error"
|
|
3943
|
+
},
|
|
3944
|
+
{
|
|
3945
|
+
"anonymous": false,
|
|
3946
|
+
"inputs": [
|
|
3947
|
+
{
|
|
3948
|
+
"indexed": true,
|
|
3949
|
+
"internalType": "address",
|
|
3950
|
+
"name": "previousOwner",
|
|
3951
|
+
"type": "address"
|
|
3952
|
+
},
|
|
3953
|
+
{
|
|
3954
|
+
"indexed": true,
|
|
3955
|
+
"internalType": "address",
|
|
3956
|
+
"name": "newOwner",
|
|
3957
|
+
"type": "address"
|
|
3958
|
+
}
|
|
3959
|
+
],
|
|
3960
|
+
"name": "OwnershipTransferStarted",
|
|
3961
|
+
"type": "event"
|
|
3962
|
+
},
|
|
3963
|
+
{
|
|
3964
|
+
"anonymous": false,
|
|
3965
|
+
"inputs": [
|
|
3966
|
+
{
|
|
3967
|
+
"indexed": true,
|
|
3968
|
+
"internalType": "address",
|
|
3969
|
+
"name": "previousOwner",
|
|
3970
|
+
"type": "address"
|
|
3971
|
+
},
|
|
3972
|
+
{
|
|
3973
|
+
"indexed": true,
|
|
3974
|
+
"internalType": "address",
|
|
3975
|
+
"name": "newOwner",
|
|
3976
|
+
"type": "address"
|
|
3977
|
+
}
|
|
3978
|
+
],
|
|
3979
|
+
"name": "OwnershipTransferred",
|
|
3980
|
+
"type": "event"
|
|
3981
|
+
},
|
|
3982
|
+
{
|
|
3983
|
+
"anonymous": false,
|
|
3984
|
+
"inputs": [
|
|
3985
|
+
{
|
|
3986
|
+
"indexed": true,
|
|
3987
|
+
"internalType": "address",
|
|
3988
|
+
"name": "receiver",
|
|
3989
|
+
"type": "address"
|
|
3990
|
+
},
|
|
3991
|
+
{
|
|
3992
|
+
"indexed": false,
|
|
3993
|
+
"internalType": "uint256",
|
|
3994
|
+
"name": "amount",
|
|
3995
|
+
"type": "uint256"
|
|
3996
|
+
}
|
|
3997
|
+
],
|
|
3998
|
+
"name": "SweepNative",
|
|
3999
|
+
"type": "event"
|
|
4000
|
+
},
|
|
4001
|
+
{
|
|
4002
|
+
"anonymous": false,
|
|
4003
|
+
"inputs": [
|
|
4004
|
+
{
|
|
4005
|
+
"indexed": true,
|
|
4006
|
+
"internalType": "address",
|
|
4007
|
+
"name": "token",
|
|
4008
|
+
"type": "address"
|
|
4009
|
+
},
|
|
4010
|
+
{
|
|
4011
|
+
"indexed": true,
|
|
4012
|
+
"internalType": "address",
|
|
4013
|
+
"name": "receiver",
|
|
4014
|
+
"type": "address"
|
|
4015
|
+
},
|
|
4016
|
+
{
|
|
4017
|
+
"indexed": false,
|
|
4018
|
+
"internalType": "uint256",
|
|
4019
|
+
"name": "amount",
|
|
4020
|
+
"type": "uint256"
|
|
4021
|
+
}
|
|
4022
|
+
],
|
|
4023
|
+
"name": "SweepToken",
|
|
4024
|
+
"type": "event"
|
|
4025
|
+
},
|
|
4026
|
+
{
|
|
4027
|
+
"anonymous": false,
|
|
4028
|
+
"inputs": [
|
|
4029
|
+
{
|
|
4030
|
+
"indexed": true,
|
|
4031
|
+
"internalType": "address",
|
|
4032
|
+
"name": "sender",
|
|
4033
|
+
"type": "address"
|
|
4034
|
+
},
|
|
4035
|
+
{
|
|
4036
|
+
"indexed": true,
|
|
4037
|
+
"internalType": "address",
|
|
4038
|
+
"name": "vToken",
|
|
4039
|
+
"type": "address"
|
|
4040
|
+
},
|
|
4041
|
+
{
|
|
4042
|
+
"indexed": false,
|
|
4043
|
+
"internalType": "uint256",
|
|
4044
|
+
"name": "amount",
|
|
4045
|
+
"type": "uint256"
|
|
4046
|
+
}
|
|
4047
|
+
],
|
|
4048
|
+
"name": "TokensBorrowedAndUnwrapped",
|
|
4049
|
+
"type": "event"
|
|
4050
|
+
},
|
|
4051
|
+
{
|
|
4052
|
+
"anonymous": false,
|
|
4053
|
+
"inputs": [
|
|
4054
|
+
{
|
|
4055
|
+
"indexed": true,
|
|
4056
|
+
"internalType": "address",
|
|
4057
|
+
"name": "sender",
|
|
4058
|
+
"type": "address"
|
|
4059
|
+
},
|
|
4060
|
+
{
|
|
4061
|
+
"indexed": true,
|
|
4062
|
+
"internalType": "address",
|
|
4063
|
+
"name": "vToken",
|
|
4064
|
+
"type": "address"
|
|
4065
|
+
},
|
|
4066
|
+
{
|
|
4067
|
+
"indexed": false,
|
|
4068
|
+
"internalType": "uint256",
|
|
4069
|
+
"name": "amount",
|
|
4070
|
+
"type": "uint256"
|
|
4071
|
+
}
|
|
4072
|
+
],
|
|
4073
|
+
"name": "TokensRedeemedAndUnwrapped",
|
|
4074
|
+
"type": "event"
|
|
4075
|
+
},
|
|
4076
|
+
{
|
|
4077
|
+
"anonymous": false,
|
|
4078
|
+
"inputs": [
|
|
4079
|
+
{
|
|
4080
|
+
"indexed": true,
|
|
4081
|
+
"internalType": "address",
|
|
4082
|
+
"name": "sender",
|
|
4083
|
+
"type": "address"
|
|
4084
|
+
},
|
|
4085
|
+
{
|
|
4086
|
+
"indexed": true,
|
|
4087
|
+
"internalType": "address",
|
|
4088
|
+
"name": "vToken",
|
|
4089
|
+
"type": "address"
|
|
4090
|
+
},
|
|
4091
|
+
{
|
|
4092
|
+
"indexed": false,
|
|
4093
|
+
"internalType": "uint256",
|
|
4094
|
+
"name": "amount",
|
|
4095
|
+
"type": "uint256"
|
|
4096
|
+
}
|
|
4097
|
+
],
|
|
4098
|
+
"name": "TokensWrappedAndRepaid",
|
|
4099
|
+
"type": "event"
|
|
4100
|
+
},
|
|
4101
|
+
{
|
|
4102
|
+
"anonymous": false,
|
|
4103
|
+
"inputs": [
|
|
4104
|
+
{
|
|
4105
|
+
"indexed": true,
|
|
4106
|
+
"internalType": "address",
|
|
4107
|
+
"name": "sender",
|
|
4108
|
+
"type": "address"
|
|
4109
|
+
},
|
|
4110
|
+
{
|
|
4111
|
+
"indexed": true,
|
|
4112
|
+
"internalType": "address",
|
|
4113
|
+
"name": "vToken",
|
|
4114
|
+
"type": "address"
|
|
4115
|
+
},
|
|
4116
|
+
{
|
|
4117
|
+
"indexed": false,
|
|
4118
|
+
"internalType": "uint256",
|
|
4119
|
+
"name": "amount",
|
|
4120
|
+
"type": "uint256"
|
|
4121
|
+
}
|
|
4122
|
+
],
|
|
4123
|
+
"name": "TokensWrappedAndSupplied",
|
|
4124
|
+
"type": "event"
|
|
4125
|
+
},
|
|
4126
|
+
{
|
|
4127
|
+
"stateMutability": "payable",
|
|
4128
|
+
"type": "fallback"
|
|
4129
|
+
},
|
|
4130
|
+
{
|
|
4131
|
+
"inputs": [],
|
|
4132
|
+
"name": "acceptOwnership",
|
|
4133
|
+
"outputs": [],
|
|
4134
|
+
"stateMutability": "nonpayable",
|
|
4135
|
+
"type": "function"
|
|
4136
|
+
},
|
|
4137
|
+
{
|
|
4138
|
+
"inputs": [
|
|
4139
|
+
{
|
|
4140
|
+
"internalType": "uint256",
|
|
4141
|
+
"name": "borrowAmount",
|
|
4142
|
+
"type": "uint256"
|
|
4143
|
+
}
|
|
4144
|
+
],
|
|
4145
|
+
"name": "borrowAndUnwrap",
|
|
4146
|
+
"outputs": [],
|
|
4147
|
+
"stateMutability": "nonpayable",
|
|
4148
|
+
"type": "function"
|
|
4149
|
+
},
|
|
4150
|
+
{
|
|
4151
|
+
"inputs": [],
|
|
4152
|
+
"name": "owner",
|
|
4153
|
+
"outputs": [
|
|
4154
|
+
{
|
|
4155
|
+
"internalType": "address",
|
|
4156
|
+
"name": "",
|
|
4157
|
+
"type": "address"
|
|
4158
|
+
}
|
|
4159
|
+
],
|
|
4160
|
+
"stateMutability": "view",
|
|
4161
|
+
"type": "function"
|
|
4162
|
+
},
|
|
4163
|
+
{
|
|
4164
|
+
"inputs": [],
|
|
4165
|
+
"name": "pendingOwner",
|
|
4166
|
+
"outputs": [
|
|
4167
|
+
{
|
|
4168
|
+
"internalType": "address",
|
|
4169
|
+
"name": "",
|
|
4170
|
+
"type": "address"
|
|
4171
|
+
}
|
|
4172
|
+
],
|
|
4173
|
+
"stateMutability": "view",
|
|
4174
|
+
"type": "function"
|
|
4175
|
+
},
|
|
4176
|
+
{
|
|
4177
|
+
"inputs": [
|
|
4178
|
+
{
|
|
4179
|
+
"internalType": "uint256",
|
|
4180
|
+
"name": "redeemTokens",
|
|
4181
|
+
"type": "uint256"
|
|
4182
|
+
}
|
|
4183
|
+
],
|
|
4184
|
+
"name": "redeemAndUnwrap",
|
|
4185
|
+
"outputs": [],
|
|
4186
|
+
"stateMutability": "nonpayable",
|
|
4187
|
+
"type": "function"
|
|
4188
|
+
},
|
|
4189
|
+
{
|
|
4190
|
+
"inputs": [
|
|
4191
|
+
{
|
|
4192
|
+
"internalType": "uint256",
|
|
4193
|
+
"name": "redeemAmount",
|
|
4194
|
+
"type": "uint256"
|
|
4195
|
+
}
|
|
4196
|
+
],
|
|
4197
|
+
"name": "redeemUnderlyingAndUnwrap",
|
|
4198
|
+
"outputs": [],
|
|
4199
|
+
"stateMutability": "nonpayable",
|
|
4200
|
+
"type": "function"
|
|
4201
|
+
},
|
|
4202
|
+
{
|
|
4203
|
+
"inputs": [],
|
|
4204
|
+
"name": "renounceOwnership",
|
|
4205
|
+
"outputs": [],
|
|
4206
|
+
"stateMutability": "nonpayable",
|
|
4207
|
+
"type": "function"
|
|
4208
|
+
},
|
|
4209
|
+
{
|
|
4210
|
+
"inputs": [],
|
|
4211
|
+
"name": "sweepNative",
|
|
4212
|
+
"outputs": [],
|
|
4213
|
+
"stateMutability": "nonpayable",
|
|
4214
|
+
"type": "function"
|
|
4215
|
+
},
|
|
4216
|
+
{
|
|
4217
|
+
"inputs": [
|
|
4218
|
+
{
|
|
4219
|
+
"internalType": "contract IERC20",
|
|
4220
|
+
"name": "token",
|
|
4221
|
+
"type": "address"
|
|
4222
|
+
}
|
|
4223
|
+
],
|
|
4224
|
+
"name": "sweepToken",
|
|
4225
|
+
"outputs": [],
|
|
4226
|
+
"stateMutability": "nonpayable",
|
|
4227
|
+
"type": "function"
|
|
4228
|
+
},
|
|
4229
|
+
{
|
|
4230
|
+
"inputs": [
|
|
4231
|
+
{
|
|
4232
|
+
"internalType": "address",
|
|
4233
|
+
"name": "newOwner",
|
|
4234
|
+
"type": "address"
|
|
4235
|
+
}
|
|
4236
|
+
],
|
|
4237
|
+
"name": "transferOwnership",
|
|
4238
|
+
"outputs": [],
|
|
4239
|
+
"stateMutability": "nonpayable",
|
|
4240
|
+
"type": "function"
|
|
4241
|
+
},
|
|
4242
|
+
{
|
|
4243
|
+
"inputs": [],
|
|
4244
|
+
"name": "vWNativeToken",
|
|
4245
|
+
"outputs": [
|
|
4246
|
+
{
|
|
4247
|
+
"internalType": "contract IVToken",
|
|
4248
|
+
"name": "",
|
|
4249
|
+
"type": "address"
|
|
4250
|
+
}
|
|
4251
|
+
],
|
|
4252
|
+
"stateMutability": "view",
|
|
4253
|
+
"type": "function"
|
|
4254
|
+
},
|
|
4255
|
+
{
|
|
4256
|
+
"inputs": [],
|
|
4257
|
+
"name": "wNativeToken",
|
|
4258
|
+
"outputs": [
|
|
4259
|
+
{
|
|
4260
|
+
"internalType": "contract IWrappedNative",
|
|
4261
|
+
"name": "",
|
|
4262
|
+
"type": "address"
|
|
4263
|
+
}
|
|
4264
|
+
],
|
|
4265
|
+
"stateMutability": "view",
|
|
4266
|
+
"type": "function"
|
|
4267
|
+
},
|
|
4268
|
+
{
|
|
4269
|
+
"inputs": [],
|
|
4270
|
+
"name": "wrapAndRepay",
|
|
4271
|
+
"outputs": [],
|
|
4272
|
+
"stateMutability": "payable",
|
|
4273
|
+
"type": "function"
|
|
4274
|
+
},
|
|
4275
|
+
{
|
|
4276
|
+
"inputs": [
|
|
4277
|
+
{
|
|
4278
|
+
"internalType": "address",
|
|
4279
|
+
"name": "minter",
|
|
4280
|
+
"type": "address"
|
|
4281
|
+
}
|
|
4282
|
+
],
|
|
4283
|
+
"name": "wrapAndSupply",
|
|
4284
|
+
"outputs": [],
|
|
4285
|
+
"stateMutability": "payable",
|
|
4286
|
+
"type": "function"
|
|
4287
|
+
},
|
|
4288
|
+
{
|
|
4289
|
+
"stateMutability": "payable",
|
|
4290
|
+
"type": "receive"
|
|
4291
|
+
}
|
|
4292
|
+
]
|
|
4293
|
+
},
|
|
3915
4294
|
"PoolLens": {
|
|
3916
4295
|
"address": "0xe192aeDBDBd235DBF33Ea1444f2B908Ea3E78419",
|
|
3917
4296
|
"abi": [
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"JumpRateModelV2_base0bps_slope2000bps_jump25000bps_kink8000bps": "0x897aD981078d1dBA52069f4BdC7F9441B0B94B76",
|
|
11
11
|
"JumpRateModelV2_base0bps_slope300bps_jump30000bps_kink8000bps": "0x1cC9De442f893a0C4e1E6ffB1Ac404DDb9B67ab4",
|
|
12
12
|
"JumpRateModelV2_base0bps_slope350bps_jump25000bps_kink8000bps": "0xb41aDec3D6dCc376164D071Cb5ed70388335e471",
|
|
13
|
+
"NativeTokenGateway_vWETH_Core": "0x4441aE3bCEd3210edbA35d0F7348C493E79F1C52",
|
|
13
14
|
"PoolLens": "0xe192aeDBDBd235DBF33Ea1444f2B908Ea3E78419",
|
|
14
15
|
"PoolRegistry": "0x0C52403E16BcB8007C1e54887E1dFC1eC9765D7C",
|
|
15
16
|
"PoolRegistry_Implementation": "0xBAb8c229B6C19c443b942F228B076Ca0d4f2260E",
|
|
@@ -13,6 +13,7 @@ const opbnbtestnet_json_1 = require("../deployments/opbnbtestnet.json");
|
|
|
13
13
|
const opmainnet_json_1 = require("../deployments/opmainnet.json");
|
|
14
14
|
const opsepolia_json_1 = require("../deployments/opsepolia.json");
|
|
15
15
|
const sepolia_json_1 = require("../deployments/sepolia.json");
|
|
16
|
+
const unichainmainnet_json_1 = require("../deployments/unichainmainnet.json");
|
|
16
17
|
const unichainsepolia_json_1 = require("../deployments/unichainsepolia.json");
|
|
17
18
|
const zksyncmainnet_json_1 = require("../deployments/zksyncmainnet.json");
|
|
18
19
|
const zksyncsepolia_json_1 = require("../deployments/zksyncsepolia.json");
|
|
@@ -124,6 +125,12 @@ const VWNativeInfo = {
|
|
|
124
125
|
address: unichainsepolia_json_1.contracts.VToken_vWETH_Core.address,
|
|
125
126
|
},
|
|
126
127
|
],
|
|
128
|
+
unichainmainnet: [
|
|
129
|
+
{
|
|
130
|
+
name: "vWETH_Core",
|
|
131
|
+
address: unichainmainnet_json_1.contracts.VToken_vWETH_Core.address,
|
|
132
|
+
},
|
|
133
|
+
],
|
|
127
134
|
};
|
|
128
135
|
const getVWNativeTokens = (networkName) => {
|
|
129
136
|
const vTokensInfo = VWNativeInfo[networkName];
|