@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.
@@ -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,6 +10,46 @@ 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
+ },
13
53
  {
14
54
  inputs: [
15
55
  {
@@ -56,6 +96,85 @@ const _abi = [
56
96
  stateMutability: "view",
57
97
  type: "function",
58
98
  },
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
+ },
59
178
  ];
60
179
 
61
180
  export class PoolRegistryInterface__factory {