@venusprotocol/isolated-pools 3.5.0-dev.4 → 3.5.0-dev.6

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.
@@ -11,7 +11,6 @@ import {
11
11
  PopulatedTransaction,
12
12
  BaseContract,
13
13
  ContractTransaction,
14
- Overrides,
15
14
  CallOverrides,
16
15
  } from "ethers";
17
16
  import { BytesLike } from "@ethersproject/bytes";
@@ -21,89 +20,14 @@ import type { TypedEventFilter, TypedEvent, TypedListener } from "./common";
21
20
 
22
21
  interface IVTokenInterface extends ethers.utils.Interface {
23
22
  functions: {
24
- "borrowBalanceCurrent(address)": FunctionFragment;
25
- "borrowBehalf(address,uint256)": FunctionFragment;
26
- "exchangeRateCurrent()": FunctionFragment;
27
- "mintBehalf(address,uint256)": FunctionFragment;
28
- "redeem(uint256)": FunctionFragment;
29
- "redeemBehalf(address,uint256)": FunctionFragment;
30
- "redeemUnderlyingBehalf(address,uint256)": FunctionFragment;
31
- "repayBorrowBehalf(address,uint256)": FunctionFragment;
32
- "transferFrom(address,address,uint256)": FunctionFragment;
33
23
  "underlying()": FunctionFragment;
34
24
  };
35
25
 
36
- encodeFunctionData(
37
- functionFragment: "borrowBalanceCurrent",
38
- values: [string]
39
- ): string;
40
- encodeFunctionData(
41
- functionFragment: "borrowBehalf",
42
- values: [string, BigNumberish]
43
- ): string;
44
- encodeFunctionData(
45
- functionFragment: "exchangeRateCurrent",
46
- values?: undefined
47
- ): string;
48
- encodeFunctionData(
49
- functionFragment: "mintBehalf",
50
- values: [string, BigNumberish]
51
- ): string;
52
- encodeFunctionData(
53
- functionFragment: "redeem",
54
- values: [BigNumberish]
55
- ): string;
56
- encodeFunctionData(
57
- functionFragment: "redeemBehalf",
58
- values: [string, BigNumberish]
59
- ): string;
60
- encodeFunctionData(
61
- functionFragment: "redeemUnderlyingBehalf",
62
- values: [string, BigNumberish]
63
- ): string;
64
- encodeFunctionData(
65
- functionFragment: "repayBorrowBehalf",
66
- values: [string, BigNumberish]
67
- ): string;
68
- encodeFunctionData(
69
- functionFragment: "transferFrom",
70
- values: [string, string, BigNumberish]
71
- ): string;
72
26
  encodeFunctionData(
73
27
  functionFragment: "underlying",
74
28
  values?: undefined
75
29
  ): string;
76
30
 
77
- decodeFunctionResult(
78
- functionFragment: "borrowBalanceCurrent",
79
- data: BytesLike
80
- ): Result;
81
- decodeFunctionResult(
82
- functionFragment: "borrowBehalf",
83
- data: BytesLike
84
- ): Result;
85
- decodeFunctionResult(
86
- functionFragment: "exchangeRateCurrent",
87
- data: BytesLike
88
- ): Result;
89
- decodeFunctionResult(functionFragment: "mintBehalf", data: BytesLike): Result;
90
- decodeFunctionResult(functionFragment: "redeem", data: BytesLike): Result;
91
- decodeFunctionResult(
92
- functionFragment: "redeemBehalf",
93
- data: BytesLike
94
- ): Result;
95
- decodeFunctionResult(
96
- functionFragment: "redeemUnderlyingBehalf",
97
- data: BytesLike
98
- ): Result;
99
- decodeFunctionResult(
100
- functionFragment: "repayBorrowBehalf",
101
- data: BytesLike
102
- ): Result;
103
- decodeFunctionResult(
104
- functionFragment: "transferFrom",
105
- data: BytesLike
106
- ): Result;
107
31
  decodeFunctionResult(functionFragment: "underlying", data: BytesLike): Result;
108
32
 
109
33
  events: {};
@@ -153,283 +77,22 @@ export class IVToken extends BaseContract {
153
77
  interface: IVTokenInterface;
154
78
 
155
79
  functions: {
156
- borrowBalanceCurrent(
157
- account: string,
158
- overrides?: Overrides & { from?: string | Promise<string> }
159
- ): Promise<ContractTransaction>;
160
-
161
- borrowBehalf(
162
- borrower: string,
163
- borrowAmount: BigNumberish,
164
- overrides?: Overrides & { from?: string | Promise<string> }
165
- ): Promise<ContractTransaction>;
166
-
167
- exchangeRateCurrent(
168
- overrides?: Overrides & { from?: string | Promise<string> }
169
- ): Promise<ContractTransaction>;
170
-
171
- mintBehalf(
172
- receiver: string,
173
- mintAmount: BigNumberish,
174
- overrides?: Overrides & { from?: string | Promise<string> }
175
- ): Promise<ContractTransaction>;
176
-
177
- redeem(
178
- redeemTokens: BigNumberish,
179
- overrides?: Overrides & { from?: string | Promise<string> }
180
- ): Promise<ContractTransaction>;
181
-
182
- redeemBehalf(
183
- redeemer: string,
184
- redeemTokens: BigNumberish,
185
- overrides?: Overrides & { from?: string | Promise<string> }
186
- ): Promise<ContractTransaction>;
187
-
188
- redeemUnderlyingBehalf(
189
- redeemer: string,
190
- redeemAmount: BigNumberish,
191
- overrides?: Overrides & { from?: string | Promise<string> }
192
- ): Promise<ContractTransaction>;
193
-
194
- repayBorrowBehalf(
195
- borrower: string,
196
- repayAmount: BigNumberish,
197
- overrides?: Overrides & { from?: string | Promise<string> }
198
- ): Promise<ContractTransaction>;
199
-
200
- transferFrom(
201
- from: string,
202
- to: string,
203
- amount: BigNumberish,
204
- overrides?: Overrides & { from?: string | Promise<string> }
205
- ): Promise<ContractTransaction>;
206
-
207
- underlying(
208
- overrides?: Overrides & { from?: string | Promise<string> }
209
- ): Promise<ContractTransaction>;
80
+ underlying(overrides?: CallOverrides): Promise<[string]>;
210
81
  };
211
82
 
212
- borrowBalanceCurrent(
213
- account: string,
214
- overrides?: Overrides & { from?: string | Promise<string> }
215
- ): Promise<ContractTransaction>;
216
-
217
- borrowBehalf(
218
- borrower: string,
219
- borrowAmount: BigNumberish,
220
- overrides?: Overrides & { from?: string | Promise<string> }
221
- ): Promise<ContractTransaction>;
222
-
223
- exchangeRateCurrent(
224
- overrides?: Overrides & { from?: string | Promise<string> }
225
- ): Promise<ContractTransaction>;
226
-
227
- mintBehalf(
228
- receiver: string,
229
- mintAmount: BigNumberish,
230
- overrides?: Overrides & { from?: string | Promise<string> }
231
- ): Promise<ContractTransaction>;
232
-
233
- redeem(
234
- redeemTokens: BigNumberish,
235
- overrides?: Overrides & { from?: string | Promise<string> }
236
- ): Promise<ContractTransaction>;
237
-
238
- redeemBehalf(
239
- redeemer: string,
240
- redeemTokens: BigNumberish,
241
- overrides?: Overrides & { from?: string | Promise<string> }
242
- ): Promise<ContractTransaction>;
243
-
244
- redeemUnderlyingBehalf(
245
- redeemer: string,
246
- redeemAmount: BigNumberish,
247
- overrides?: Overrides & { from?: string | Promise<string> }
248
- ): Promise<ContractTransaction>;
249
-
250
- repayBorrowBehalf(
251
- borrower: string,
252
- repayAmount: BigNumberish,
253
- overrides?: Overrides & { from?: string | Promise<string> }
254
- ): Promise<ContractTransaction>;
255
-
256
- transferFrom(
257
- from: string,
258
- to: string,
259
- amount: BigNumberish,
260
- overrides?: Overrides & { from?: string | Promise<string> }
261
- ): Promise<ContractTransaction>;
262
-
263
- underlying(
264
- overrides?: Overrides & { from?: string | Promise<string> }
265
- ): Promise<ContractTransaction>;
83
+ underlying(overrides?: CallOverrides): Promise<string>;
266
84
 
267
85
  callStatic: {
268
- borrowBalanceCurrent(
269
- account: string,
270
- overrides?: CallOverrides
271
- ): Promise<BigNumber>;
272
-
273
- borrowBehalf(
274
- borrower: string,
275
- borrowAmount: BigNumberish,
276
- overrides?: CallOverrides
277
- ): Promise<BigNumber>;
278
-
279
- exchangeRateCurrent(overrides?: CallOverrides): Promise<BigNumber>;
280
-
281
- mintBehalf(
282
- receiver: string,
283
- mintAmount: BigNumberish,
284
- overrides?: CallOverrides
285
- ): Promise<BigNumber>;
286
-
287
- redeem(
288
- redeemTokens: BigNumberish,
289
- overrides?: CallOverrides
290
- ): Promise<BigNumber>;
291
-
292
- redeemBehalf(
293
- redeemer: string,
294
- redeemTokens: BigNumberish,
295
- overrides?: CallOverrides
296
- ): Promise<BigNumber>;
297
-
298
- redeemUnderlyingBehalf(
299
- redeemer: string,
300
- redeemAmount: BigNumberish,
301
- overrides?: CallOverrides
302
- ): Promise<BigNumber>;
303
-
304
- repayBorrowBehalf(
305
- borrower: string,
306
- repayAmount: BigNumberish,
307
- overrides?: CallOverrides
308
- ): Promise<BigNumber>;
309
-
310
- transferFrom(
311
- from: string,
312
- to: string,
313
- amount: BigNumberish,
314
- overrides?: CallOverrides
315
- ): Promise<boolean>;
316
-
317
86
  underlying(overrides?: CallOverrides): Promise<string>;
318
87
  };
319
88
 
320
89
  filters: {};
321
90
 
322
91
  estimateGas: {
323
- borrowBalanceCurrent(
324
- account: string,
325
- overrides?: Overrides & { from?: string | Promise<string> }
326
- ): Promise<BigNumber>;
327
-
328
- borrowBehalf(
329
- borrower: string,
330
- borrowAmount: BigNumberish,
331
- overrides?: Overrides & { from?: string | Promise<string> }
332
- ): Promise<BigNumber>;
333
-
334
- exchangeRateCurrent(
335
- overrides?: Overrides & { from?: string | Promise<string> }
336
- ): Promise<BigNumber>;
337
-
338
- mintBehalf(
339
- receiver: string,
340
- mintAmount: BigNumberish,
341
- overrides?: Overrides & { from?: string | Promise<string> }
342
- ): Promise<BigNumber>;
343
-
344
- redeem(
345
- redeemTokens: BigNumberish,
346
- overrides?: Overrides & { from?: string | Promise<string> }
347
- ): Promise<BigNumber>;
348
-
349
- redeemBehalf(
350
- redeemer: string,
351
- redeemTokens: BigNumberish,
352
- overrides?: Overrides & { from?: string | Promise<string> }
353
- ): Promise<BigNumber>;
354
-
355
- redeemUnderlyingBehalf(
356
- redeemer: string,
357
- redeemAmount: BigNumberish,
358
- overrides?: Overrides & { from?: string | Promise<string> }
359
- ): Promise<BigNumber>;
360
-
361
- repayBorrowBehalf(
362
- borrower: string,
363
- repayAmount: BigNumberish,
364
- overrides?: Overrides & { from?: string | Promise<string> }
365
- ): Promise<BigNumber>;
366
-
367
- transferFrom(
368
- from: string,
369
- to: string,
370
- amount: BigNumberish,
371
- overrides?: Overrides & { from?: string | Promise<string> }
372
- ): Promise<BigNumber>;
373
-
374
- underlying(
375
- overrides?: Overrides & { from?: string | Promise<string> }
376
- ): Promise<BigNumber>;
92
+ underlying(overrides?: CallOverrides): Promise<BigNumber>;
377
93
  };
378
94
 
379
95
  populateTransaction: {
380
- borrowBalanceCurrent(
381
- account: string,
382
- overrides?: Overrides & { from?: string | Promise<string> }
383
- ): Promise<PopulatedTransaction>;
384
-
385
- borrowBehalf(
386
- borrower: string,
387
- borrowAmount: BigNumberish,
388
- overrides?: Overrides & { from?: string | Promise<string> }
389
- ): Promise<PopulatedTransaction>;
390
-
391
- exchangeRateCurrent(
392
- overrides?: Overrides & { from?: string | Promise<string> }
393
- ): Promise<PopulatedTransaction>;
394
-
395
- mintBehalf(
396
- receiver: string,
397
- mintAmount: BigNumberish,
398
- overrides?: Overrides & { from?: string | Promise<string> }
399
- ): Promise<PopulatedTransaction>;
400
-
401
- redeem(
402
- redeemTokens: BigNumberish,
403
- overrides?: Overrides & { from?: string | Promise<string> }
404
- ): Promise<PopulatedTransaction>;
405
-
406
- redeemBehalf(
407
- redeemer: string,
408
- redeemTokens: BigNumberish,
409
- overrides?: Overrides & { from?: string | Promise<string> }
410
- ): Promise<PopulatedTransaction>;
411
-
412
- redeemUnderlyingBehalf(
413
- redeemer: string,
414
- redeemAmount: BigNumberish,
415
- overrides?: Overrides & { from?: string | Promise<string> }
416
- ): Promise<PopulatedTransaction>;
417
-
418
- repayBorrowBehalf(
419
- borrower: string,
420
- repayAmount: BigNumberish,
421
- overrides?: Overrides & { from?: string | Promise<string> }
422
- ): Promise<PopulatedTransaction>;
423
-
424
- transferFrom(
425
- from: string,
426
- to: string,
427
- amount: BigNumberish,
428
- overrides?: Overrides & { from?: string | Promise<string> }
429
- ): Promise<PopulatedTransaction>;
430
-
431
- underlying(
432
- overrides?: Overrides & { from?: string | Promise<string> }
433
- ): Promise<PopulatedTransaction>;
96
+ underlying(overrides?: CallOverrides): Promise<PopulatedTransaction>;
434
97
  };
435
98
  }
@@ -20,18 +20,54 @@ import type { TypedEventFilter, TypedEvent, TypedListener } from "./common";
20
20
 
21
21
  interface PoolRegistryInterfaceInterface extends ethers.utils.Interface {
22
22
  functions: {
23
+ "getAllPools()": FunctionFragment;
23
24
  "getPoolByComptroller(address)": FunctionFragment;
25
+ "getPoolsSupportedByAsset(address)": FunctionFragment;
26
+ "getVTokenForAsset(address,address)": FunctionFragment;
27
+ "getVenusPoolMetadata(address)": FunctionFragment;
24
28
  };
25
29
 
30
+ encodeFunctionData(
31
+ functionFragment: "getAllPools",
32
+ values?: undefined
33
+ ): string;
26
34
  encodeFunctionData(
27
35
  functionFragment: "getPoolByComptroller",
28
36
  values: [string]
29
37
  ): string;
38
+ encodeFunctionData(
39
+ functionFragment: "getPoolsSupportedByAsset",
40
+ values: [string]
41
+ ): string;
42
+ encodeFunctionData(
43
+ functionFragment: "getVTokenForAsset",
44
+ values: [string, string]
45
+ ): string;
46
+ encodeFunctionData(
47
+ functionFragment: "getVenusPoolMetadata",
48
+ values: [string]
49
+ ): string;
30
50
 
51
+ decodeFunctionResult(
52
+ functionFragment: "getAllPools",
53
+ data: BytesLike
54
+ ): Result;
31
55
  decodeFunctionResult(
32
56
  functionFragment: "getPoolByComptroller",
33
57
  data: BytesLike
34
58
  ): Result;
59
+ decodeFunctionResult(
60
+ functionFragment: "getPoolsSupportedByAsset",
61
+ data: BytesLike
62
+ ): Result;
63
+ decodeFunctionResult(
64
+ functionFragment: "getVTokenForAsset",
65
+ data: BytesLike
66
+ ): Result;
67
+ decodeFunctionResult(
68
+ functionFragment: "getVenusPoolMetadata",
69
+ data: BytesLike
70
+ ): Result;
35
71
 
36
72
  events: {};
37
73
  }
@@ -80,6 +116,20 @@ export class PoolRegistryInterface extends BaseContract {
80
116
  interface: PoolRegistryInterfaceInterface;
81
117
 
82
118
  functions: {
119
+ getAllPools(
120
+ overrides?: CallOverrides
121
+ ): Promise<
122
+ [
123
+ ([string, string, string, BigNumber, BigNumber] & {
124
+ name: string;
125
+ creator: string;
126
+ comptroller: string;
127
+ blockPosted: BigNumber;
128
+ timestampPosted: BigNumber;
129
+ })[]
130
+ ]
131
+ >;
132
+
83
133
  getPoolByComptroller(
84
134
  comptroller: string,
85
135
  overrides?: CallOverrides
@@ -94,8 +144,44 @@ export class PoolRegistryInterface extends BaseContract {
94
144
  }
95
145
  ]
96
146
  >;
147
+
148
+ getPoolsSupportedByAsset(
149
+ asset: string,
150
+ overrides?: CallOverrides
151
+ ): Promise<[string[]]>;
152
+
153
+ getVTokenForAsset(
154
+ comptroller: string,
155
+ asset: string,
156
+ overrides?: CallOverrides
157
+ ): Promise<[string]>;
158
+
159
+ getVenusPoolMetadata(
160
+ comptroller: string,
161
+ overrides?: CallOverrides
162
+ ): Promise<
163
+ [
164
+ [string, string, string] & {
165
+ category: string;
166
+ logoURL: string;
167
+ description: string;
168
+ }
169
+ ]
170
+ >;
97
171
  };
98
172
 
173
+ getAllPools(
174
+ overrides?: CallOverrides
175
+ ): Promise<
176
+ ([string, string, string, BigNumber, BigNumber] & {
177
+ name: string;
178
+ creator: string;
179
+ comptroller: string;
180
+ blockPosted: BigNumber;
181
+ timestampPosted: BigNumber;
182
+ })[]
183
+ >;
184
+
99
185
  getPoolByComptroller(
100
186
  comptroller: string,
101
187
  overrides?: CallOverrides
@@ -109,7 +195,41 @@ export class PoolRegistryInterface extends BaseContract {
109
195
  }
110
196
  >;
111
197
 
198
+ getPoolsSupportedByAsset(
199
+ asset: string,
200
+ overrides?: CallOverrides
201
+ ): Promise<string[]>;
202
+
203
+ getVTokenForAsset(
204
+ comptroller: string,
205
+ asset: string,
206
+ overrides?: CallOverrides
207
+ ): Promise<string>;
208
+
209
+ getVenusPoolMetadata(
210
+ comptroller: string,
211
+ overrides?: CallOverrides
212
+ ): Promise<
213
+ [string, string, string] & {
214
+ category: string;
215
+ logoURL: string;
216
+ description: string;
217
+ }
218
+ >;
219
+
112
220
  callStatic: {
221
+ getAllPools(
222
+ overrides?: CallOverrides
223
+ ): Promise<
224
+ ([string, string, string, BigNumber, BigNumber] & {
225
+ name: string;
226
+ creator: string;
227
+ comptroller: string;
228
+ blockPosted: BigNumber;
229
+ timestampPosted: BigNumber;
230
+ })[]
231
+ >;
232
+
113
233
  getPoolByComptroller(
114
234
  comptroller: string,
115
235
  overrides?: CallOverrides
@@ -122,21 +242,79 @@ export class PoolRegistryInterface extends BaseContract {
122
242
  timestampPosted: BigNumber;
123
243
  }
124
244
  >;
245
+
246
+ getPoolsSupportedByAsset(
247
+ asset: string,
248
+ overrides?: CallOverrides
249
+ ): Promise<string[]>;
250
+
251
+ getVTokenForAsset(
252
+ comptroller: string,
253
+ asset: string,
254
+ overrides?: CallOverrides
255
+ ): Promise<string>;
256
+
257
+ getVenusPoolMetadata(
258
+ comptroller: string,
259
+ overrides?: CallOverrides
260
+ ): Promise<
261
+ [string, string, string] & {
262
+ category: string;
263
+ logoURL: string;
264
+ description: string;
265
+ }
266
+ >;
125
267
  };
126
268
 
127
269
  filters: {};
128
270
 
129
271
  estimateGas: {
272
+ getAllPools(overrides?: CallOverrides): Promise<BigNumber>;
273
+
130
274
  getPoolByComptroller(
131
275
  comptroller: string,
132
276
  overrides?: CallOverrides
133
277
  ): Promise<BigNumber>;
278
+
279
+ getPoolsSupportedByAsset(
280
+ asset: string,
281
+ overrides?: CallOverrides
282
+ ): Promise<BigNumber>;
283
+
284
+ getVTokenForAsset(
285
+ comptroller: string,
286
+ asset: string,
287
+ overrides?: CallOverrides
288
+ ): Promise<BigNumber>;
289
+
290
+ getVenusPoolMetadata(
291
+ comptroller: string,
292
+ overrides?: CallOverrides
293
+ ): Promise<BigNumber>;
134
294
  };
135
295
 
136
296
  populateTransaction: {
297
+ getAllPools(overrides?: CallOverrides): Promise<PopulatedTransaction>;
298
+
137
299
  getPoolByComptroller(
138
300
  comptroller: string,
139
301
  overrides?: CallOverrides
140
302
  ): Promise<PopulatedTransaction>;
303
+
304
+ getPoolsSupportedByAsset(
305
+ asset: string,
306
+ overrides?: CallOverrides
307
+ ): Promise<PopulatedTransaction>;
308
+
309
+ getVTokenForAsset(
310
+ comptroller: string,
311
+ asset: string,
312
+ overrides?: CallOverrides
313
+ ): Promise<PopulatedTransaction>;
314
+
315
+ getVenusPoolMetadata(
316
+ comptroller: string,
317
+ overrides?: CallOverrides
318
+ ): Promise<PopulatedTransaction>;
141
319
  };
142
320
  }