@venusprotocol/isolated-pools 4.2.0-dev.11 → 4.2.0-dev.12

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.
@@ -20,54 +20,18 @@ import type { TypedEventFilter, TypedEvent, TypedListener } from "./common";
20
20
 
21
21
  interface PoolRegistryInterfaceInterface extends ethers.utils.Interface {
22
22
  functions: {
23
- "getAllPools()": FunctionFragment;
24
23
  "getPoolByComptroller(address)": FunctionFragment;
25
- "getPoolsSupportedByAsset(address)": FunctionFragment;
26
- "getVTokenForAsset(address,address)": FunctionFragment;
27
- "getVenusPoolMetadata(address)": FunctionFragment;
28
24
  };
29
25
 
30
- encodeFunctionData(
31
- functionFragment: "getAllPools",
32
- values?: undefined
33
- ): string;
34
26
  encodeFunctionData(
35
27
  functionFragment: "getPoolByComptroller",
36
28
  values: [string]
37
29
  ): 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;
50
30
 
51
- decodeFunctionResult(
52
- functionFragment: "getAllPools",
53
- data: BytesLike
54
- ): Result;
55
31
  decodeFunctionResult(
56
32
  functionFragment: "getPoolByComptroller",
57
33
  data: BytesLike
58
34
  ): 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;
71
35
 
72
36
  events: {};
73
37
  }
@@ -116,20 +80,6 @@ export class PoolRegistryInterface extends BaseContract {
116
80
  interface: PoolRegistryInterfaceInterface;
117
81
 
118
82
  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
-
133
83
  getPoolByComptroller(
134
84
  comptroller: string,
135
85
  overrides?: CallOverrides
@@ -144,44 +94,8 @@ export class PoolRegistryInterface extends BaseContract {
144
94
  }
145
95
  ]
146
96
  >;
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
- >;
171
97
  };
172
98
 
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
-
185
99
  getPoolByComptroller(
186
100
  comptroller: string,
187
101
  overrides?: CallOverrides
@@ -195,41 +109,7 @@ export class PoolRegistryInterface extends BaseContract {
195
109
  }
196
110
  >;
197
111
 
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
-
220
112
  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
-
233
113
  getPoolByComptroller(
234
114
  comptroller: string,
235
115
  overrides?: CallOverrides
@@ -242,79 +122,21 @@ export class PoolRegistryInterface extends BaseContract {
242
122
  timestampPosted: BigNumber;
243
123
  }
244
124
  >;
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
- >;
267
125
  };
268
126
 
269
127
  filters: {};
270
128
 
271
129
  estimateGas: {
272
- getAllPools(overrides?: CallOverrides): Promise<BigNumber>;
273
-
274
130
  getPoolByComptroller(
275
131
  comptroller: string,
276
132
  overrides?: CallOverrides
277
133
  ): 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>;
294
134
  };
295
135
 
296
136
  populateTransaction: {
297
- getAllPools(overrides?: CallOverrides): Promise<PopulatedTransaction>;
298
-
299
137
  getPoolByComptroller(
300
138
  comptroller: string,
301
139
  overrides?: CallOverrides
302
140
  ): 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>;
319
141
  };
320
142
  }
@@ -7,206 +7,6 @@ import { Provider } from "@ethersproject/providers";
7
7
  import type { IVToken, IVTokenInterface } from "../IVToken";
8
8
 
9
9
  const _abi = [
10
- {
11
- inputs: [
12
- {
13
- internalType: "address",
14
- name: "account",
15
- type: "address",
16
- },
17
- ],
18
- name: "borrowBalanceCurrent",
19
- outputs: [
20
- {
21
- internalType: "uint256",
22
- name: "",
23
- type: "uint256",
24
- },
25
- ],
26
- stateMutability: "nonpayable",
27
- type: "function",
28
- },
29
- {
30
- inputs: [
31
- {
32
- internalType: "address",
33
- name: "borrower",
34
- type: "address",
35
- },
36
- {
37
- internalType: "uint256",
38
- name: "borrowAmount",
39
- type: "uint256",
40
- },
41
- ],
42
- name: "borrowBehalf",
43
- outputs: [
44
- {
45
- internalType: "uint256",
46
- name: "",
47
- type: "uint256",
48
- },
49
- ],
50
- stateMutability: "nonpayable",
51
- type: "function",
52
- },
53
- {
54
- inputs: [],
55
- name: "exchangeRateCurrent",
56
- outputs: [
57
- {
58
- internalType: "uint256",
59
- name: "",
60
- type: "uint256",
61
- },
62
- ],
63
- stateMutability: "nonpayable",
64
- type: "function",
65
- },
66
- {
67
- inputs: [
68
- {
69
- internalType: "address",
70
- name: "receiver",
71
- type: "address",
72
- },
73
- {
74
- internalType: "uint256",
75
- name: "mintAmount",
76
- type: "uint256",
77
- },
78
- ],
79
- name: "mintBehalf",
80
- outputs: [
81
- {
82
- internalType: "uint256",
83
- name: "",
84
- type: "uint256",
85
- },
86
- ],
87
- stateMutability: "nonpayable",
88
- type: "function",
89
- },
90
- {
91
- inputs: [
92
- {
93
- internalType: "uint256",
94
- name: "redeemTokens",
95
- type: "uint256",
96
- },
97
- ],
98
- name: "redeem",
99
- outputs: [
100
- {
101
- internalType: "uint256",
102
- name: "",
103
- type: "uint256",
104
- },
105
- ],
106
- stateMutability: "nonpayable",
107
- type: "function",
108
- },
109
- {
110
- inputs: [
111
- {
112
- internalType: "address",
113
- name: "redeemer",
114
- type: "address",
115
- },
116
- {
117
- internalType: "uint256",
118
- name: "redeemTokens",
119
- type: "uint256",
120
- },
121
- ],
122
- name: "redeemBehalf",
123
- outputs: [
124
- {
125
- internalType: "uint256",
126
- name: "",
127
- type: "uint256",
128
- },
129
- ],
130
- stateMutability: "nonpayable",
131
- type: "function",
132
- },
133
- {
134
- inputs: [
135
- {
136
- internalType: "address",
137
- name: "redeemer",
138
- type: "address",
139
- },
140
- {
141
- internalType: "uint256",
142
- name: "redeemAmount",
143
- type: "uint256",
144
- },
145
- ],
146
- name: "redeemUnderlyingBehalf",
147
- outputs: [
148
- {
149
- internalType: "uint256",
150
- name: "",
151
- type: "uint256",
152
- },
153
- ],
154
- stateMutability: "nonpayable",
155
- type: "function",
156
- },
157
- {
158
- inputs: [
159
- {
160
- internalType: "address",
161
- name: "borrower",
162
- type: "address",
163
- },
164
- {
165
- internalType: "uint256",
166
- name: "repayAmount",
167
- type: "uint256",
168
- },
169
- ],
170
- name: "repayBorrowBehalf",
171
- outputs: [
172
- {
173
- internalType: "uint256",
174
- name: "",
175
- type: "uint256",
176
- },
177
- ],
178
- stateMutability: "nonpayable",
179
- type: "function",
180
- },
181
- {
182
- inputs: [
183
- {
184
- internalType: "address",
185
- name: "from",
186
- type: "address",
187
- },
188
- {
189
- internalType: "address",
190
- name: "to",
191
- type: "address",
192
- },
193
- {
194
- internalType: "uint256",
195
- name: "amount",
196
- type: "uint256",
197
- },
198
- ],
199
- name: "transferFrom",
200
- outputs: [
201
- {
202
- internalType: "bool",
203
- name: "",
204
- type: "bool",
205
- },
206
- ],
207
- stateMutability: "nonpayable",
208
- type: "function",
209
- },
210
10
  {
211
11
  inputs: [],
212
12
  name: "underlying",
@@ -217,7 +17,7 @@ const _abi = [
217
17
  type: "address",
218
18
  },
219
19
  ],
220
- stateMutability: "nonpayable",
20
+ stateMutability: "view",
221
21
  type: "function",
222
22
  },
223
23
  ];
@@ -10,46 +10,6 @@ import type {
10
10
  } from "../PoolRegistryInterface";
11
11
 
12
12
  const _abi = [
13
- {
14
- inputs: [],
15
- name: "getAllPools",
16
- outputs: [
17
- {
18
- components: [
19
- {
20
- internalType: "string",
21
- name: "name",
22
- type: "string",
23
- },
24
- {
25
- internalType: "address",
26
- name: "creator",
27
- type: "address",
28
- },
29
- {
30
- internalType: "address",
31
- name: "comptroller",
32
- type: "address",
33
- },
34
- {
35
- internalType: "uint256",
36
- name: "blockPosted",
37
- type: "uint256",
38
- },
39
- {
40
- internalType: "uint256",
41
- name: "timestampPosted",
42
- type: "uint256",
43
- },
44
- ],
45
- internalType: "struct PoolRegistryInterface.VenusPool[]",
46
- name: "",
47
- type: "tuple[]",
48
- },
49
- ],
50
- stateMutability: "view",
51
- type: "function",
52
- },
53
13
  {
54
14
  inputs: [
55
15
  {
@@ -96,85 +56,6 @@ const _abi = [
96
56
  stateMutability: "view",
97
57
  type: "function",
98
58
  },
99
- {
100
- inputs: [
101
- {
102
- internalType: "address",
103
- name: "asset",
104
- type: "address",
105
- },
106
- ],
107
- name: "getPoolsSupportedByAsset",
108
- outputs: [
109
- {
110
- internalType: "address[]",
111
- name: "",
112
- type: "address[]",
113
- },
114
- ],
115
- stateMutability: "view",
116
- type: "function",
117
- },
118
- {
119
- inputs: [
120
- {
121
- internalType: "address",
122
- name: "comptroller",
123
- type: "address",
124
- },
125
- {
126
- internalType: "address",
127
- name: "asset",
128
- type: "address",
129
- },
130
- ],
131
- name: "getVTokenForAsset",
132
- outputs: [
133
- {
134
- internalType: "address",
135
- name: "",
136
- type: "address",
137
- },
138
- ],
139
- stateMutability: "view",
140
- type: "function",
141
- },
142
- {
143
- inputs: [
144
- {
145
- internalType: "address",
146
- name: "comptroller",
147
- type: "address",
148
- },
149
- ],
150
- name: "getVenusPoolMetadata",
151
- outputs: [
152
- {
153
- components: [
154
- {
155
- internalType: "string",
156
- name: "category",
157
- type: "string",
158
- },
159
- {
160
- internalType: "string",
161
- name: "logoURL",
162
- type: "string",
163
- },
164
- {
165
- internalType: "string",
166
- name: "description",
167
- type: "string",
168
- },
169
- ],
170
- internalType: "struct PoolRegistryInterface.VenusPoolMetaData",
171
- name: "",
172
- type: "tuple",
173
- },
174
- ],
175
- stateMutability: "view",
176
- type: "function",
177
- },
178
59
  ];
179
60
 
180
61
  export class PoolRegistryInterface__factory {