@venusprotocol/isolated-pools 4.3.0-dev.6 → 4.3.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/dist/typechain/factories/IVToken__factory.d.ts +1 -5
- package/dist/typechain/factories/IVToken__factory.js +1 -201
- package/dist/typechain/factories/PoolRegistryInterface__factory.d.ts +2 -16
- package/dist/typechain/factories/PoolRegistryInterface__factory.js +0 -119
- package/package.json +1 -1
- package/typechain/IVToken.d.ts +4 -341
- package/typechain/PoolRegistryInterface.d.ts +0 -178
- package/typechain/factories/IVToken__factory.ts +1 -201
- package/typechain/factories/PoolRegistryInterface__factory.ts +0 -119
|
@@ -3,11 +3,7 @@ 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:
|
|
7
|
-
internalType: string;
|
|
8
|
-
name: string;
|
|
9
|
-
type: string;
|
|
10
|
-
}[];
|
|
6
|
+
inputs: never[];
|
|
11
7
|
name: string;
|
|
12
8
|
outputs: {
|
|
13
9
|
internalType: string;
|
|
@@ -6,206 +6,6 @@ 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
|
-
},
|
|
209
9
|
{
|
|
210
10
|
inputs: [],
|
|
211
11
|
name: "underlying",
|
|
@@ -216,7 +16,7 @@ const _abi = [
|
|
|
216
16
|
type: "address",
|
|
217
17
|
},
|
|
218
18
|
],
|
|
219
|
-
stateMutability: "
|
|
19
|
+
stateMutability: "view",
|
|
220
20
|
type: "function",
|
|
221
21
|
},
|
|
222
22
|
];
|
|
@@ -2,7 +2,7 @@ import { Signer } from "ethers";
|
|
|
2
2
|
import { Provider } from "@ethersproject/providers";
|
|
3
3
|
import type { PoolRegistryInterface, PoolRegistryInterfaceInterface } from "../PoolRegistryInterface";
|
|
4
4
|
export declare class PoolRegistryInterface__factory {
|
|
5
|
-
static readonly abi:
|
|
5
|
+
static readonly abi: {
|
|
6
6
|
inputs: {
|
|
7
7
|
internalType: string;
|
|
8
8
|
name: string;
|
|
@@ -21,21 +21,7 @@ export declare class PoolRegistryInterface__factory {
|
|
|
21
21
|
}[];
|
|
22
22
|
stateMutability: string;
|
|
23
23
|
type: string;
|
|
24
|
-
}
|
|
25
|
-
inputs: {
|
|
26
|
-
internalType: string;
|
|
27
|
-
name: string;
|
|
28
|
-
type: string;
|
|
29
|
-
}[];
|
|
30
|
-
name: string;
|
|
31
|
-
outputs: {
|
|
32
|
-
internalType: string;
|
|
33
|
-
name: string;
|
|
34
|
-
type: string;
|
|
35
|
-
}[];
|
|
36
|
-
stateMutability: string;
|
|
37
|
-
type: string;
|
|
38
|
-
})[];
|
|
24
|
+
}[];
|
|
39
25
|
static createInterface(): PoolRegistryInterfaceInterface;
|
|
40
26
|
static connect(address: string, signerOrProvider: Signer | Provider): PoolRegistryInterface;
|
|
41
27
|
}
|
|
@@ -6,46 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.PoolRegistryInterface__factory = void 0;
|
|
7
7
|
const ethers_1 = require("ethers");
|
|
8
8
|
const _abi = [
|
|
9
|
-
{
|
|
10
|
-
inputs: [],
|
|
11
|
-
name: "getAllPools",
|
|
12
|
-
outputs: [
|
|
13
|
-
{
|
|
14
|
-
components: [
|
|
15
|
-
{
|
|
16
|
-
internalType: "string",
|
|
17
|
-
name: "name",
|
|
18
|
-
type: "string",
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
internalType: "address",
|
|
22
|
-
name: "creator",
|
|
23
|
-
type: "address",
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
internalType: "address",
|
|
27
|
-
name: "comptroller",
|
|
28
|
-
type: "address",
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
internalType: "uint256",
|
|
32
|
-
name: "blockPosted",
|
|
33
|
-
type: "uint256",
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
internalType: "uint256",
|
|
37
|
-
name: "timestampPosted",
|
|
38
|
-
type: "uint256",
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
internalType: "struct PoolRegistryInterface.VenusPool[]",
|
|
42
|
-
name: "",
|
|
43
|
-
type: "tuple[]",
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
stateMutability: "view",
|
|
47
|
-
type: "function",
|
|
48
|
-
},
|
|
49
9
|
{
|
|
50
10
|
inputs: [
|
|
51
11
|
{
|
|
@@ -92,85 +52,6 @@ const _abi = [
|
|
|
92
52
|
stateMutability: "view",
|
|
93
53
|
type: "function",
|
|
94
54
|
},
|
|
95
|
-
{
|
|
96
|
-
inputs: [
|
|
97
|
-
{
|
|
98
|
-
internalType: "address",
|
|
99
|
-
name: "asset",
|
|
100
|
-
type: "address",
|
|
101
|
-
},
|
|
102
|
-
],
|
|
103
|
-
name: "getPoolsSupportedByAsset",
|
|
104
|
-
outputs: [
|
|
105
|
-
{
|
|
106
|
-
internalType: "address[]",
|
|
107
|
-
name: "",
|
|
108
|
-
type: "address[]",
|
|
109
|
-
},
|
|
110
|
-
],
|
|
111
|
-
stateMutability: "view",
|
|
112
|
-
type: "function",
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
inputs: [
|
|
116
|
-
{
|
|
117
|
-
internalType: "address",
|
|
118
|
-
name: "comptroller",
|
|
119
|
-
type: "address",
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
internalType: "address",
|
|
123
|
-
name: "asset",
|
|
124
|
-
type: "address",
|
|
125
|
-
},
|
|
126
|
-
],
|
|
127
|
-
name: "getVTokenForAsset",
|
|
128
|
-
outputs: [
|
|
129
|
-
{
|
|
130
|
-
internalType: "address",
|
|
131
|
-
name: "",
|
|
132
|
-
type: "address",
|
|
133
|
-
},
|
|
134
|
-
],
|
|
135
|
-
stateMutability: "view",
|
|
136
|
-
type: "function",
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
inputs: [
|
|
140
|
-
{
|
|
141
|
-
internalType: "address",
|
|
142
|
-
name: "comptroller",
|
|
143
|
-
type: "address",
|
|
144
|
-
},
|
|
145
|
-
],
|
|
146
|
-
name: "getVenusPoolMetadata",
|
|
147
|
-
outputs: [
|
|
148
|
-
{
|
|
149
|
-
components: [
|
|
150
|
-
{
|
|
151
|
-
internalType: "string",
|
|
152
|
-
name: "category",
|
|
153
|
-
type: "string",
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
internalType: "string",
|
|
157
|
-
name: "logoURL",
|
|
158
|
-
type: "string",
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
internalType: "string",
|
|
162
|
-
name: "description",
|
|
163
|
-
type: "string",
|
|
164
|
-
},
|
|
165
|
-
],
|
|
166
|
-
internalType: "struct PoolRegistryInterface.VenusPoolMetaData",
|
|
167
|
-
name: "",
|
|
168
|
-
type: "tuple",
|
|
169
|
-
},
|
|
170
|
-
],
|
|
171
|
-
stateMutability: "view",
|
|
172
|
-
type: "function",
|
|
173
|
-
},
|
|
174
55
|
];
|
|
175
56
|
class PoolRegistryInterface__factory {
|
|
176
57
|
static createInterface() {
|
package/package.json
CHANGED
package/typechain/IVToken.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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,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: "
|
|
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 {
|