@venusprotocol/isolated-pools 3.1.0 → 3.2.0-dev.1

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.
@@ -4336,6 +4336,385 @@
4336
4336
  }
4337
4337
  ]
4338
4338
  },
4339
+ "NativeTokenGateway_vWETH_Core": {
4340
+ "address": "0xa9D6d0dc76a9f0B87E52df1326F2f0E4e422BC52",
4341
+ "abi": [
4342
+ {
4343
+ "inputs": [
4344
+ {
4345
+ "internalType": "contract IVToken",
4346
+ "name": "vWrappedNativeToken",
4347
+ "type": "address"
4348
+ }
4349
+ ],
4350
+ "stateMutability": "nonpayable",
4351
+ "type": "constructor"
4352
+ },
4353
+ {
4354
+ "inputs": [],
4355
+ "name": "NativeTokenTransferFailed",
4356
+ "type": "error"
4357
+ },
4358
+ {
4359
+ "inputs": [],
4360
+ "name": "ZeroAddressNotAllowed",
4361
+ "type": "error"
4362
+ },
4363
+ {
4364
+ "inputs": [],
4365
+ "name": "ZeroValueNotAllowed",
4366
+ "type": "error"
4367
+ },
4368
+ {
4369
+ "anonymous": false,
4370
+ "inputs": [
4371
+ {
4372
+ "indexed": true,
4373
+ "internalType": "address",
4374
+ "name": "previousOwner",
4375
+ "type": "address"
4376
+ },
4377
+ {
4378
+ "indexed": true,
4379
+ "internalType": "address",
4380
+ "name": "newOwner",
4381
+ "type": "address"
4382
+ }
4383
+ ],
4384
+ "name": "OwnershipTransferStarted",
4385
+ "type": "event"
4386
+ },
4387
+ {
4388
+ "anonymous": false,
4389
+ "inputs": [
4390
+ {
4391
+ "indexed": true,
4392
+ "internalType": "address",
4393
+ "name": "previousOwner",
4394
+ "type": "address"
4395
+ },
4396
+ {
4397
+ "indexed": true,
4398
+ "internalType": "address",
4399
+ "name": "newOwner",
4400
+ "type": "address"
4401
+ }
4402
+ ],
4403
+ "name": "OwnershipTransferred",
4404
+ "type": "event"
4405
+ },
4406
+ {
4407
+ "anonymous": false,
4408
+ "inputs": [
4409
+ {
4410
+ "indexed": true,
4411
+ "internalType": "address",
4412
+ "name": "receiver",
4413
+ "type": "address"
4414
+ },
4415
+ {
4416
+ "indexed": false,
4417
+ "internalType": "uint256",
4418
+ "name": "amount",
4419
+ "type": "uint256"
4420
+ }
4421
+ ],
4422
+ "name": "SweepNative",
4423
+ "type": "event"
4424
+ },
4425
+ {
4426
+ "anonymous": false,
4427
+ "inputs": [
4428
+ {
4429
+ "indexed": true,
4430
+ "internalType": "address",
4431
+ "name": "token",
4432
+ "type": "address"
4433
+ },
4434
+ {
4435
+ "indexed": true,
4436
+ "internalType": "address",
4437
+ "name": "receiver",
4438
+ "type": "address"
4439
+ },
4440
+ {
4441
+ "indexed": false,
4442
+ "internalType": "uint256",
4443
+ "name": "amount",
4444
+ "type": "uint256"
4445
+ }
4446
+ ],
4447
+ "name": "SweepToken",
4448
+ "type": "event"
4449
+ },
4450
+ {
4451
+ "anonymous": false,
4452
+ "inputs": [
4453
+ {
4454
+ "indexed": true,
4455
+ "internalType": "address",
4456
+ "name": "sender",
4457
+ "type": "address"
4458
+ },
4459
+ {
4460
+ "indexed": true,
4461
+ "internalType": "address",
4462
+ "name": "vToken",
4463
+ "type": "address"
4464
+ },
4465
+ {
4466
+ "indexed": false,
4467
+ "internalType": "uint256",
4468
+ "name": "amount",
4469
+ "type": "uint256"
4470
+ }
4471
+ ],
4472
+ "name": "TokensBorrowedAndUnwrapped",
4473
+ "type": "event"
4474
+ },
4475
+ {
4476
+ "anonymous": false,
4477
+ "inputs": [
4478
+ {
4479
+ "indexed": true,
4480
+ "internalType": "address",
4481
+ "name": "sender",
4482
+ "type": "address"
4483
+ },
4484
+ {
4485
+ "indexed": true,
4486
+ "internalType": "address",
4487
+ "name": "vToken",
4488
+ "type": "address"
4489
+ },
4490
+ {
4491
+ "indexed": false,
4492
+ "internalType": "uint256",
4493
+ "name": "amount",
4494
+ "type": "uint256"
4495
+ }
4496
+ ],
4497
+ "name": "TokensRedeemedAndUnwrapped",
4498
+ "type": "event"
4499
+ },
4500
+ {
4501
+ "anonymous": false,
4502
+ "inputs": [
4503
+ {
4504
+ "indexed": true,
4505
+ "internalType": "address",
4506
+ "name": "sender",
4507
+ "type": "address"
4508
+ },
4509
+ {
4510
+ "indexed": true,
4511
+ "internalType": "address",
4512
+ "name": "vToken",
4513
+ "type": "address"
4514
+ },
4515
+ {
4516
+ "indexed": false,
4517
+ "internalType": "uint256",
4518
+ "name": "amount",
4519
+ "type": "uint256"
4520
+ }
4521
+ ],
4522
+ "name": "TokensWrappedAndRepaid",
4523
+ "type": "event"
4524
+ },
4525
+ {
4526
+ "anonymous": false,
4527
+ "inputs": [
4528
+ {
4529
+ "indexed": true,
4530
+ "internalType": "address",
4531
+ "name": "sender",
4532
+ "type": "address"
4533
+ },
4534
+ {
4535
+ "indexed": true,
4536
+ "internalType": "address",
4537
+ "name": "vToken",
4538
+ "type": "address"
4539
+ },
4540
+ {
4541
+ "indexed": false,
4542
+ "internalType": "uint256",
4543
+ "name": "amount",
4544
+ "type": "uint256"
4545
+ }
4546
+ ],
4547
+ "name": "TokensWrappedAndSupplied",
4548
+ "type": "event"
4549
+ },
4550
+ {
4551
+ "stateMutability": "payable",
4552
+ "type": "fallback"
4553
+ },
4554
+ {
4555
+ "inputs": [],
4556
+ "name": "acceptOwnership",
4557
+ "outputs": [],
4558
+ "stateMutability": "nonpayable",
4559
+ "type": "function"
4560
+ },
4561
+ {
4562
+ "inputs": [
4563
+ {
4564
+ "internalType": "uint256",
4565
+ "name": "borrowAmount",
4566
+ "type": "uint256"
4567
+ }
4568
+ ],
4569
+ "name": "borrowAndUnwrap",
4570
+ "outputs": [],
4571
+ "stateMutability": "nonpayable",
4572
+ "type": "function"
4573
+ },
4574
+ {
4575
+ "inputs": [],
4576
+ "name": "owner",
4577
+ "outputs": [
4578
+ {
4579
+ "internalType": "address",
4580
+ "name": "",
4581
+ "type": "address"
4582
+ }
4583
+ ],
4584
+ "stateMutability": "view",
4585
+ "type": "function"
4586
+ },
4587
+ {
4588
+ "inputs": [],
4589
+ "name": "pendingOwner",
4590
+ "outputs": [
4591
+ {
4592
+ "internalType": "address",
4593
+ "name": "",
4594
+ "type": "address"
4595
+ }
4596
+ ],
4597
+ "stateMutability": "view",
4598
+ "type": "function"
4599
+ },
4600
+ {
4601
+ "inputs": [
4602
+ {
4603
+ "internalType": "uint256",
4604
+ "name": "redeemTokens",
4605
+ "type": "uint256"
4606
+ }
4607
+ ],
4608
+ "name": "redeemAndUnwrap",
4609
+ "outputs": [],
4610
+ "stateMutability": "nonpayable",
4611
+ "type": "function"
4612
+ },
4613
+ {
4614
+ "inputs": [
4615
+ {
4616
+ "internalType": "uint256",
4617
+ "name": "redeemAmount",
4618
+ "type": "uint256"
4619
+ }
4620
+ ],
4621
+ "name": "redeemUnderlyingAndUnwrap",
4622
+ "outputs": [],
4623
+ "stateMutability": "nonpayable",
4624
+ "type": "function"
4625
+ },
4626
+ {
4627
+ "inputs": [],
4628
+ "name": "renounceOwnership",
4629
+ "outputs": [],
4630
+ "stateMutability": "nonpayable",
4631
+ "type": "function"
4632
+ },
4633
+ {
4634
+ "inputs": [],
4635
+ "name": "sweepNative",
4636
+ "outputs": [],
4637
+ "stateMutability": "nonpayable",
4638
+ "type": "function"
4639
+ },
4640
+ {
4641
+ "inputs": [
4642
+ {
4643
+ "internalType": "contract IERC20",
4644
+ "name": "token",
4645
+ "type": "address"
4646
+ }
4647
+ ],
4648
+ "name": "sweepToken",
4649
+ "outputs": [],
4650
+ "stateMutability": "nonpayable",
4651
+ "type": "function"
4652
+ },
4653
+ {
4654
+ "inputs": [
4655
+ {
4656
+ "internalType": "address",
4657
+ "name": "newOwner",
4658
+ "type": "address"
4659
+ }
4660
+ ],
4661
+ "name": "transferOwnership",
4662
+ "outputs": [],
4663
+ "stateMutability": "nonpayable",
4664
+ "type": "function"
4665
+ },
4666
+ {
4667
+ "inputs": [],
4668
+ "name": "vWNativeToken",
4669
+ "outputs": [
4670
+ {
4671
+ "internalType": "contract IVToken",
4672
+ "name": "",
4673
+ "type": "address"
4674
+ }
4675
+ ],
4676
+ "stateMutability": "view",
4677
+ "type": "function"
4678
+ },
4679
+ {
4680
+ "inputs": [],
4681
+ "name": "wNativeToken",
4682
+ "outputs": [
4683
+ {
4684
+ "internalType": "contract IWrappedNative",
4685
+ "name": "",
4686
+ "type": "address"
4687
+ }
4688
+ ],
4689
+ "stateMutability": "view",
4690
+ "type": "function"
4691
+ },
4692
+ {
4693
+ "inputs": [],
4694
+ "name": "wrapAndRepay",
4695
+ "outputs": [],
4696
+ "stateMutability": "payable",
4697
+ "type": "function"
4698
+ },
4699
+ {
4700
+ "inputs": [
4701
+ {
4702
+ "internalType": "address",
4703
+ "name": "minter",
4704
+ "type": "address"
4705
+ }
4706
+ ],
4707
+ "name": "wrapAndSupply",
4708
+ "outputs": [],
4709
+ "stateMutability": "payable",
4710
+ "type": "function"
4711
+ },
4712
+ {
4713
+ "stateMutability": "payable",
4714
+ "type": "receive"
4715
+ }
4716
+ ]
4717
+ },
4339
4718
  "PoolLens": {
4340
4719
  "address": "0x70f8364D42A4F6C95D10Fb1dfB7793f0EAd0585e",
4341
4720
  "abi": [
@@ -12,6 +12,7 @@
12
12
  "MockUSDC": "0x86f096B1D970990091319835faF3Ee011708eAe8",
13
13
  "MockUSDT": "0xf3118a17863996B9F2A073c9A66Faaa664355cf8",
14
14
  "MockWBTC": "0xFb8d93FD3Cf18386a5564bb5619cD1FdB130dF7D",
15
+ "NativeTokenGateway_vWETH_Core": "0xa9D6d0dc76a9f0B87E52df1326F2f0E4e422BC52",
15
16
  "PoolLens": "0x70f8364D42A4F6C95D10Fb1dfB7793f0EAd0585e",
16
17
  "PoolRegistry": "0x6866b2BDaaEf6648ddd5b678B3e9f3352bF3d2A5",
17
18
  "PoolRegistry_Implementation": "0x1B052EdDD0a0072875cD3CECBf9D78E95a2aa078",
@@ -53,6 +53,12 @@ const VWNativeInfo = {
53
53
  address: opbnbmainnet_json_1.contracts.VToken_vWBNB_Core.address,
54
54
  },
55
55
  ],
56
+ arbitrumsepolia: [
57
+ {
58
+ name: "vWETH_Core",
59
+ address: "0xef6DF2bE5d6Ad0291eDb1160fEf7a4ED2528fAfb",
60
+ },
61
+ ],
56
62
  };
57
63
  const getVWNativeTokens = (networkName) => {
58
64
  const vTokensInfo = VWNativeInfo[networkName];
@@ -37,7 +37,8 @@ exports.blocksPerYear = {
37
37
  opbnbtestnet: exports.OPBNB_BLOCKS_PER_YEAR,
38
38
  opbnbmainnet: exports.OPBNB_BLOCKS_PER_YEAR,
39
39
  arbitrumsepolia: 0,
40
- arbitrumone: 0, // for time based contracts
40
+ arbitrumone: 0,
41
+ isTimeBased: 0, // for time based contracts
41
42
  };
42
43
  exports.SEPOLIA_MULTISIG = "0x94fa6078b6b8a26f0b6edffbe6501b22a10470fb";
43
44
  exports.ETHEREUM_MULTISIG = "0x285960C5B22fD66A736C7136967A3eB15e93CC67";
@@ -94,6 +94,7 @@ const getUnregisteredRewardsDistributors = async (poolConfig, hre) => {
94
94
  exports.getUnregisteredRewardsDistributors = getUnregisteredRewardsDistributors;
95
95
  const getBlockOrTimestampBasedDeploymentInfo = (network) => {
96
96
  const isTimeBased = process.env.IS_TIME_BASED_DEPLOYMENT === "true";
97
- return { isTimeBased: isTimeBased, blocksPerYear: deploymentConfig_1.blocksPerYear[network] };
97
+ const blocksPerYearKey = isTimeBased ? "isTimeBased" : network;
98
+ return { isTimeBased: isTimeBased, blocksPerYear: deploymentConfig_1.blocksPerYear[blocksPerYearKey] };
98
99
  };
99
100
  exports.getBlockOrTimestampBasedDeploymentInfo = getBlockOrTimestampBasedDeploymentInfo;
@@ -3,7 +3,11 @@ import { Provider } from "@ethersproject/providers";
3
3
  import type { IVToken, IVTokenInterface } from "../IVToken";
4
4
  export declare class IVToken__factory {
5
5
  static readonly abi: {
6
- inputs: never[];
6
+ inputs: {
7
+ internalType: string;
8
+ name: string;
9
+ type: string;
10
+ }[];
7
11
  name: string;
8
12
  outputs: {
9
13
  internalType: string;
@@ -6,6 +6,206 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.IVToken__factory = void 0;
7
7
  const ethers_1 = require("ethers");
8
8
  const _abi = [
9
+ {
10
+ inputs: [
11
+ {
12
+ internalType: "address",
13
+ name: "account",
14
+ type: "address",
15
+ },
16
+ ],
17
+ name: "borrowBalanceCurrent",
18
+ outputs: [
19
+ {
20
+ internalType: "uint256",
21
+ name: "",
22
+ type: "uint256",
23
+ },
24
+ ],
25
+ stateMutability: "nonpayable",
26
+ type: "function",
27
+ },
28
+ {
29
+ inputs: [
30
+ {
31
+ internalType: "address",
32
+ name: "borrower",
33
+ type: "address",
34
+ },
35
+ {
36
+ internalType: "uint256",
37
+ name: "borrowAmount",
38
+ type: "uint256",
39
+ },
40
+ ],
41
+ name: "borrowBehalf",
42
+ outputs: [
43
+ {
44
+ internalType: "uint256",
45
+ name: "",
46
+ type: "uint256",
47
+ },
48
+ ],
49
+ stateMutability: "nonpayable",
50
+ type: "function",
51
+ },
52
+ {
53
+ inputs: [],
54
+ name: "exchangeRateCurrent",
55
+ outputs: [
56
+ {
57
+ internalType: "uint256",
58
+ name: "",
59
+ type: "uint256",
60
+ },
61
+ ],
62
+ stateMutability: "nonpayable",
63
+ type: "function",
64
+ },
65
+ {
66
+ inputs: [
67
+ {
68
+ internalType: "address",
69
+ name: "receiver",
70
+ type: "address",
71
+ },
72
+ {
73
+ internalType: "uint256",
74
+ name: "mintAmount",
75
+ type: "uint256",
76
+ },
77
+ ],
78
+ name: "mintBehalf",
79
+ outputs: [
80
+ {
81
+ internalType: "uint256",
82
+ name: "",
83
+ type: "uint256",
84
+ },
85
+ ],
86
+ stateMutability: "nonpayable",
87
+ type: "function",
88
+ },
89
+ {
90
+ inputs: [
91
+ {
92
+ internalType: "uint256",
93
+ name: "redeemTokens",
94
+ type: "uint256",
95
+ },
96
+ ],
97
+ name: "redeem",
98
+ outputs: [
99
+ {
100
+ internalType: "uint256",
101
+ name: "",
102
+ type: "uint256",
103
+ },
104
+ ],
105
+ stateMutability: "nonpayable",
106
+ type: "function",
107
+ },
108
+ {
109
+ inputs: [
110
+ {
111
+ internalType: "address",
112
+ name: "redeemer",
113
+ type: "address",
114
+ },
115
+ {
116
+ internalType: "uint256",
117
+ name: "redeemTokens",
118
+ type: "uint256",
119
+ },
120
+ ],
121
+ name: "redeemBehalf",
122
+ outputs: [
123
+ {
124
+ internalType: "uint256",
125
+ name: "",
126
+ type: "uint256",
127
+ },
128
+ ],
129
+ stateMutability: "nonpayable",
130
+ type: "function",
131
+ },
132
+ {
133
+ inputs: [
134
+ {
135
+ internalType: "address",
136
+ name: "redeemer",
137
+ type: "address",
138
+ },
139
+ {
140
+ internalType: "uint256",
141
+ name: "redeemAmount",
142
+ type: "uint256",
143
+ },
144
+ ],
145
+ name: "redeemUnderlyingBehalf",
146
+ outputs: [
147
+ {
148
+ internalType: "uint256",
149
+ name: "",
150
+ type: "uint256",
151
+ },
152
+ ],
153
+ stateMutability: "nonpayable",
154
+ type: "function",
155
+ },
156
+ {
157
+ inputs: [
158
+ {
159
+ internalType: "address",
160
+ name: "borrower",
161
+ type: "address",
162
+ },
163
+ {
164
+ internalType: "uint256",
165
+ name: "repayAmount",
166
+ type: "uint256",
167
+ },
168
+ ],
169
+ name: "repayBorrowBehalf",
170
+ outputs: [
171
+ {
172
+ internalType: "uint256",
173
+ name: "",
174
+ type: "uint256",
175
+ },
176
+ ],
177
+ stateMutability: "nonpayable",
178
+ type: "function",
179
+ },
180
+ {
181
+ inputs: [
182
+ {
183
+ internalType: "address",
184
+ name: "from",
185
+ type: "address",
186
+ },
187
+ {
188
+ internalType: "address",
189
+ name: "to",
190
+ type: "address",
191
+ },
192
+ {
193
+ internalType: "uint256",
194
+ name: "amount",
195
+ type: "uint256",
196
+ },
197
+ ],
198
+ name: "transferFrom",
199
+ outputs: [
200
+ {
201
+ internalType: "bool",
202
+ name: "",
203
+ type: "bool",
204
+ },
205
+ ],
206
+ stateMutability: "nonpayable",
207
+ type: "function",
208
+ },
9
209
  {
10
210
  inputs: [],
11
211
  name: "underlying",
@@ -16,7 +216,7 @@ const _abi = [
16
216
  type: "address",
17
217
  },
18
218
  ],
19
- stateMutability: "view",
219
+ stateMutability: "nonpayable",
20
220
  type: "function",
21
221
  },
22
222
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@venusprotocol/isolated-pools",
3
- "version": "3.1.0",
3
+ "version": "3.2.0-dev.1",
4
4
  "description": "",
5
5
  "files": [
6
6
  "artifacts",