@venusprotocol/isolated-pools 3.1.0-dev.3 → 3.1.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.
@@ -6091,6 +6091,315 @@
6091
6091
  }
6092
6092
  ]
6093
6093
  },
6094
+ "MockPT-weETH-26DEC2024": {
6095
+ "address": "0x56107201d3e4b7Db92dEa0Edb9e0454346AEb8B5",
6096
+ "abi": [
6097
+ {
6098
+ "inputs": [
6099
+ {
6100
+ "internalType": "string",
6101
+ "name": "name_",
6102
+ "type": "string"
6103
+ },
6104
+ {
6105
+ "internalType": "string",
6106
+ "name": "symbol_",
6107
+ "type": "string"
6108
+ },
6109
+ {
6110
+ "internalType": "uint8",
6111
+ "name": "decimals_",
6112
+ "type": "uint8"
6113
+ }
6114
+ ],
6115
+ "stateMutability": "nonpayable",
6116
+ "type": "constructor"
6117
+ },
6118
+ {
6119
+ "anonymous": false,
6120
+ "inputs": [
6121
+ {
6122
+ "indexed": true,
6123
+ "internalType": "address",
6124
+ "name": "owner",
6125
+ "type": "address"
6126
+ },
6127
+ {
6128
+ "indexed": true,
6129
+ "internalType": "address",
6130
+ "name": "spender",
6131
+ "type": "address"
6132
+ },
6133
+ {
6134
+ "indexed": false,
6135
+ "internalType": "uint256",
6136
+ "name": "value",
6137
+ "type": "uint256"
6138
+ }
6139
+ ],
6140
+ "name": "Approval",
6141
+ "type": "event"
6142
+ },
6143
+ {
6144
+ "anonymous": false,
6145
+ "inputs": [
6146
+ {
6147
+ "indexed": true,
6148
+ "internalType": "address",
6149
+ "name": "from",
6150
+ "type": "address"
6151
+ },
6152
+ {
6153
+ "indexed": true,
6154
+ "internalType": "address",
6155
+ "name": "to",
6156
+ "type": "address"
6157
+ },
6158
+ {
6159
+ "indexed": false,
6160
+ "internalType": "uint256",
6161
+ "name": "value",
6162
+ "type": "uint256"
6163
+ }
6164
+ ],
6165
+ "name": "Transfer",
6166
+ "type": "event"
6167
+ },
6168
+ {
6169
+ "inputs": [
6170
+ {
6171
+ "internalType": "address",
6172
+ "name": "owner",
6173
+ "type": "address"
6174
+ },
6175
+ {
6176
+ "internalType": "address",
6177
+ "name": "spender",
6178
+ "type": "address"
6179
+ }
6180
+ ],
6181
+ "name": "allowance",
6182
+ "outputs": [
6183
+ {
6184
+ "internalType": "uint256",
6185
+ "name": "",
6186
+ "type": "uint256"
6187
+ }
6188
+ ],
6189
+ "stateMutability": "view",
6190
+ "type": "function"
6191
+ },
6192
+ {
6193
+ "inputs": [
6194
+ {
6195
+ "internalType": "address",
6196
+ "name": "spender",
6197
+ "type": "address"
6198
+ },
6199
+ {
6200
+ "internalType": "uint256",
6201
+ "name": "amount",
6202
+ "type": "uint256"
6203
+ }
6204
+ ],
6205
+ "name": "approve",
6206
+ "outputs": [
6207
+ {
6208
+ "internalType": "bool",
6209
+ "name": "",
6210
+ "type": "bool"
6211
+ }
6212
+ ],
6213
+ "stateMutability": "nonpayable",
6214
+ "type": "function"
6215
+ },
6216
+ {
6217
+ "inputs": [
6218
+ {
6219
+ "internalType": "address",
6220
+ "name": "account",
6221
+ "type": "address"
6222
+ }
6223
+ ],
6224
+ "name": "balanceOf",
6225
+ "outputs": [
6226
+ {
6227
+ "internalType": "uint256",
6228
+ "name": "",
6229
+ "type": "uint256"
6230
+ }
6231
+ ],
6232
+ "stateMutability": "view",
6233
+ "type": "function"
6234
+ },
6235
+ {
6236
+ "inputs": [],
6237
+ "name": "decimals",
6238
+ "outputs": [
6239
+ {
6240
+ "internalType": "uint8",
6241
+ "name": "",
6242
+ "type": "uint8"
6243
+ }
6244
+ ],
6245
+ "stateMutability": "view",
6246
+ "type": "function"
6247
+ },
6248
+ {
6249
+ "inputs": [
6250
+ {
6251
+ "internalType": "address",
6252
+ "name": "spender",
6253
+ "type": "address"
6254
+ },
6255
+ {
6256
+ "internalType": "uint256",
6257
+ "name": "subtractedValue",
6258
+ "type": "uint256"
6259
+ }
6260
+ ],
6261
+ "name": "decreaseAllowance",
6262
+ "outputs": [
6263
+ {
6264
+ "internalType": "bool",
6265
+ "name": "",
6266
+ "type": "bool"
6267
+ }
6268
+ ],
6269
+ "stateMutability": "nonpayable",
6270
+ "type": "function"
6271
+ },
6272
+ {
6273
+ "inputs": [
6274
+ {
6275
+ "internalType": "uint256",
6276
+ "name": "amount",
6277
+ "type": "uint256"
6278
+ }
6279
+ ],
6280
+ "name": "faucet",
6281
+ "outputs": [],
6282
+ "stateMutability": "nonpayable",
6283
+ "type": "function"
6284
+ },
6285
+ {
6286
+ "inputs": [
6287
+ {
6288
+ "internalType": "address",
6289
+ "name": "spender",
6290
+ "type": "address"
6291
+ },
6292
+ {
6293
+ "internalType": "uint256",
6294
+ "name": "addedValue",
6295
+ "type": "uint256"
6296
+ }
6297
+ ],
6298
+ "name": "increaseAllowance",
6299
+ "outputs": [
6300
+ {
6301
+ "internalType": "bool",
6302
+ "name": "",
6303
+ "type": "bool"
6304
+ }
6305
+ ],
6306
+ "stateMutability": "nonpayable",
6307
+ "type": "function"
6308
+ },
6309
+ {
6310
+ "inputs": [],
6311
+ "name": "name",
6312
+ "outputs": [
6313
+ {
6314
+ "internalType": "string",
6315
+ "name": "",
6316
+ "type": "string"
6317
+ }
6318
+ ],
6319
+ "stateMutability": "view",
6320
+ "type": "function"
6321
+ },
6322
+ {
6323
+ "inputs": [],
6324
+ "name": "symbol",
6325
+ "outputs": [
6326
+ {
6327
+ "internalType": "string",
6328
+ "name": "",
6329
+ "type": "string"
6330
+ }
6331
+ ],
6332
+ "stateMutability": "view",
6333
+ "type": "function"
6334
+ },
6335
+ {
6336
+ "inputs": [],
6337
+ "name": "totalSupply",
6338
+ "outputs": [
6339
+ {
6340
+ "internalType": "uint256",
6341
+ "name": "",
6342
+ "type": "uint256"
6343
+ }
6344
+ ],
6345
+ "stateMutability": "view",
6346
+ "type": "function"
6347
+ },
6348
+ {
6349
+ "inputs": [
6350
+ {
6351
+ "internalType": "address",
6352
+ "name": "to",
6353
+ "type": "address"
6354
+ },
6355
+ {
6356
+ "internalType": "uint256",
6357
+ "name": "amount",
6358
+ "type": "uint256"
6359
+ }
6360
+ ],
6361
+ "name": "transfer",
6362
+ "outputs": [
6363
+ {
6364
+ "internalType": "bool",
6365
+ "name": "",
6366
+ "type": "bool"
6367
+ }
6368
+ ],
6369
+ "stateMutability": "nonpayable",
6370
+ "type": "function"
6371
+ },
6372
+ {
6373
+ "inputs": [
6374
+ {
6375
+ "internalType": "address",
6376
+ "name": "from",
6377
+ "type": "address"
6378
+ },
6379
+ {
6380
+ "internalType": "address",
6381
+ "name": "to",
6382
+ "type": "address"
6383
+ },
6384
+ {
6385
+ "internalType": "uint256",
6386
+ "name": "amount",
6387
+ "type": "uint256"
6388
+ }
6389
+ ],
6390
+ "name": "transferFrom",
6391
+ "outputs": [
6392
+ {
6393
+ "internalType": "bool",
6394
+ "name": "",
6395
+ "type": "bool"
6396
+ }
6397
+ ],
6398
+ "stateMutability": "nonpayable",
6399
+ "type": "function"
6400
+ }
6401
+ ]
6402
+ },
6094
6403
  "MockUSDC": {
6095
6404
  "address": "0x772d68929655ce7234C8C94256526ddA66Ef641E",
6096
6405
  "abi": [
@@ -23756,6 +24065,80 @@
23756
24065
  }
23757
24066
  ]
23758
24067
  },
24068
+ "VToken_vPT-weETH-26DEC2024_LiquidStakedETH": {
24069
+ "address": "0x3AF2bE7AbEF0f840b196D99d79F4B803a5dB14a1",
24070
+ "abi": [
24071
+ {
24072
+ "inputs": [
24073
+ {
24074
+ "internalType": "address",
24075
+ "name": "beacon",
24076
+ "type": "address"
24077
+ },
24078
+ {
24079
+ "internalType": "bytes",
24080
+ "name": "data",
24081
+ "type": "bytes"
24082
+ }
24083
+ ],
24084
+ "stateMutability": "payable",
24085
+ "type": "constructor"
24086
+ },
24087
+ {
24088
+ "anonymous": false,
24089
+ "inputs": [
24090
+ {
24091
+ "indexed": false,
24092
+ "internalType": "address",
24093
+ "name": "previousAdmin",
24094
+ "type": "address"
24095
+ },
24096
+ {
24097
+ "indexed": false,
24098
+ "internalType": "address",
24099
+ "name": "newAdmin",
24100
+ "type": "address"
24101
+ }
24102
+ ],
24103
+ "name": "AdminChanged",
24104
+ "type": "event"
24105
+ },
24106
+ {
24107
+ "anonymous": false,
24108
+ "inputs": [
24109
+ {
24110
+ "indexed": true,
24111
+ "internalType": "address",
24112
+ "name": "beacon",
24113
+ "type": "address"
24114
+ }
24115
+ ],
24116
+ "name": "BeaconUpgraded",
24117
+ "type": "event"
24118
+ },
24119
+ {
24120
+ "anonymous": false,
24121
+ "inputs": [
24122
+ {
24123
+ "indexed": true,
24124
+ "internalType": "address",
24125
+ "name": "implementation",
24126
+ "type": "address"
24127
+ }
24128
+ ],
24129
+ "name": "Upgraded",
24130
+ "type": "event"
24131
+ },
24132
+ {
24133
+ "stateMutability": "payable",
24134
+ "type": "fallback"
24135
+ },
24136
+ {
24137
+ "stateMutability": "payable",
24138
+ "type": "receive"
24139
+ }
24140
+ ]
24141
+ },
23759
24142
  "VToken_vUSDC_Core": {
23760
24143
  "address": "0xF87bceab8DD37489015B426bA931e08A4D787616",
23761
24144
  "abi": [
@@ -2319,6 +2319,13 @@ exports.globalConfig = {
2319
2319
  decimals: 18,
2320
2320
  tokenAddress: hardhat_1.ethers.constants.AddressZero,
2321
2321
  },
2322
+ {
2323
+ isMock: true,
2324
+ name: "PT ether.fi weETH 26DEC2024",
2325
+ symbol: "PT-weETH-26DEC2024",
2326
+ decimals: 18,
2327
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
2328
+ },
2322
2329
  ],
2323
2330
  poolConfig: [
2324
2331
  {
@@ -2670,6 +2677,24 @@ exports.globalConfig = {
2670
2677
  reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
2671
2678
  vTokenReceiver: exports.preconfiguredAddresses.sepolia.VTreasury,
2672
2679
  },
2680
+ {
2681
+ name: "Venus PT-wETH-26DEC2024 (Liquid Staked ETH)",
2682
+ asset: "PT-weETH-26DEC2024",
2683
+ symbol: "vPT-weETH-26DEC2024_LiquidStakedETH",
2684
+ rateModel: InterestRateModels.JumpRate.toString(),
2685
+ baseRatePerYear: "0",
2686
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
2687
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("0.75", 18),
2688
+ kink_: (0, utils_1.convertToUnit)("0.45", 18),
2689
+ collateralFactor: (0, utils_1.convertToUnit)("0.75", 18),
2690
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.80", 18),
2691
+ reserveFactor: (0, utils_1.convertToUnit)("0.20", 18),
2692
+ initialSupply: (0, utils_1.convertToUnit)("1.799618792392372642", 18),
2693
+ supplyCap: (0, utils_1.convertToUnit)(3750, 18),
2694
+ borrowCap: (0, utils_1.convertToUnit)(375, 18),
2695
+ reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
2696
+ vTokenReceiver: exports.preconfiguredAddresses.sepolia.VTreasury,
2697
+ },
2673
2698
  ],
2674
2699
  rewards: [
2675
2700
  // XVS Rewards Over 90 days (648000 blocks)
@@ -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-dev.3",
3
+ "version": "3.1.0-dev.4",
4
4
  "description": "",
5
5
  "files": [
6
6
  "artifacts",