@wildcatfi/wildcat-sdk 1.0.15 → 2.0.1

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.
Files changed (195) hide show
  1. package/README.md +88 -0
  2. package/dist/account.d.ts +42 -43
  3. package/dist/account.d.ts.map +1 -1
  4. package/dist/account.js +120 -95
  5. package/dist/account.js.map +1 -1
  6. package/dist/constants.d.ts +16 -8
  7. package/dist/constants.d.ts.map +1 -1
  8. package/dist/constants.js +30 -12
  9. package/dist/constants.js.map +1 -1
  10. package/dist/controller.d.ts +43 -11
  11. package/dist/controller.d.ts.map +1 -1
  12. package/dist/controller.js +119 -21
  13. package/dist/controller.js.map +1 -1
  14. package/dist/index.d.ts +17 -8
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +30 -8
  17. package/dist/index.js.map +1 -1
  18. package/dist/market.d.ts +107 -0
  19. package/dist/market.d.ts.map +1 -0
  20. package/dist/market.js +265 -0
  21. package/dist/market.js.map +1 -0
  22. package/dist/mockerc20factory.js +1 -1
  23. package/dist/mockerc20factory.js.map +1 -1
  24. package/dist/token.d.ts +3 -3
  25. package/dist/token.d.ts.map +1 -1
  26. package/dist/token.js +18 -18
  27. package/dist/token.js.map +1 -1
  28. package/dist/typechain/IERC20.d.ts +42 -1
  29. package/dist/typechain/IERC20.d.ts.map +1 -1
  30. package/dist/typechain/MarketLens.d.ts +705 -0
  31. package/dist/typechain/MarketLens.d.ts.map +1 -0
  32. package/dist/typechain/{mock/index.js → MarketLens.js} +1 -1
  33. package/dist/typechain/MarketLens.js.map +1 -0
  34. package/dist/typechain/MockArchControllerOwner.d.ts +130 -0
  35. package/dist/typechain/MockArchControllerOwner.d.ts.map +1 -0
  36. package/dist/typechain/{WildcatVaultController.js → MockArchControllerOwner.js} +1 -1
  37. package/dist/typechain/MockArchControllerOwner.js.map +1 -0
  38. package/dist/typechain/{mock/MockERC20Factory.d.ts → MockERC20Factory.d.ts} +4 -3
  39. package/dist/typechain/MockERC20Factory.d.ts.map +1 -0
  40. package/dist/typechain/MockERC20Factory.js.map +1 -0
  41. package/dist/typechain/WildcatArchController.d.ts +525 -0
  42. package/dist/typechain/WildcatArchController.d.ts.map +1 -0
  43. package/dist/typechain/{VaultLens.js → WildcatArchController.js} +1 -1
  44. package/dist/typechain/WildcatArchController.js.map +1 -0
  45. package/dist/typechain/WildcatMarket.d.ts +1060 -0
  46. package/dist/typechain/WildcatMarket.d.ts.map +1 -0
  47. package/dist/typechain/{DebtTokenBase.js → WildcatMarket.js} +1 -1
  48. package/dist/typechain/WildcatMarket.js.map +1 -0
  49. package/dist/typechain/WildcatMarketController.d.ts +437 -0
  50. package/dist/typechain/WildcatMarketController.d.ts.map +1 -0
  51. package/dist/typechain/{WildcatVaultFactory.js → WildcatMarketController.js} +1 -1
  52. package/dist/typechain/WildcatMarketController.js.map +1 -0
  53. package/dist/typechain/WildcatMarketControllerFactory.d.ts +375 -0
  54. package/dist/typechain/WildcatMarketControllerFactory.d.ts.map +1 -0
  55. package/dist/typechain/WildcatMarketControllerFactory.js +3 -0
  56. package/dist/typechain/WildcatMarketControllerFactory.js.map +1 -0
  57. package/dist/typechain/common.d.ts.map +1 -1
  58. package/dist/typechain/factories/IERC20__factory.d.ts +44 -0
  59. package/dist/typechain/factories/IERC20__factory.d.ts.map +1 -1
  60. package/dist/typechain/factories/IERC20__factory.js +57 -0
  61. package/dist/typechain/factories/IERC20__factory.js.map +1 -1
  62. package/dist/typechain/factories/MarketLens__factory.d.ts +3428 -0
  63. package/dist/typechain/factories/MarketLens__factory.d.ts.map +1 -0
  64. package/dist/typechain/factories/MarketLens__factory.js +4389 -0
  65. package/dist/typechain/factories/MarketLens__factory.js.map +1 -0
  66. package/dist/typechain/factories/MockArchControllerOwner__factory.d.ts +85 -0
  67. package/dist/typechain/factories/MockArchControllerOwner__factory.d.ts.map +1 -0
  68. package/dist/typechain/factories/MockArchControllerOwner__factory.js +118 -0
  69. package/dist/typechain/factories/MockArchControllerOwner__factory.js.map +1 -0
  70. package/dist/typechain/factories/MockERC20Factory__factory.d.ts +52 -0
  71. package/dist/typechain/factories/MockERC20Factory__factory.d.ts.map +1 -0
  72. package/dist/typechain/factories/MockERC20Factory__factory.js +75 -0
  73. package/dist/typechain/factories/MockERC20Factory__factory.js.map +1 -0
  74. package/dist/typechain/factories/WildcatArchController__factory.d.ts +536 -0
  75. package/dist/typechain/factories/WildcatArchController__factory.d.ts.map +1 -0
  76. package/dist/typechain/factories/WildcatArchController__factory.js +705 -0
  77. package/dist/typechain/factories/WildcatArchController__factory.js.map +1 -0
  78. package/dist/typechain/factories/WildcatMarketControllerFactory__factory.d.ts +431 -0
  79. package/dist/typechain/factories/WildcatMarketControllerFactory__factory.d.ts.map +1 -0
  80. package/dist/typechain/factories/WildcatMarketControllerFactory__factory.js +561 -0
  81. package/dist/typechain/factories/WildcatMarketControllerFactory__factory.js.map +1 -0
  82. package/dist/typechain/factories/WildcatMarketController__factory.d.ts +517 -0
  83. package/dist/typechain/factories/WildcatMarketController__factory.d.ts.map +1 -0
  84. package/dist/typechain/factories/WildcatMarketController__factory.js +677 -0
  85. package/dist/typechain/factories/WildcatMarketController__factory.js.map +1 -0
  86. package/dist/typechain/factories/{WildcatVaultToken__factory.d.ts → WildcatMarket__factory.d.ts} +640 -93
  87. package/dist/typechain/factories/{VaultLens__factory.d.ts.map → WildcatMarket__factory.d.ts.map} +1 -1
  88. package/dist/typechain/factories/{WildcatVaultToken__factory.js → WildcatMarket__factory.js} +795 -97
  89. package/dist/typechain/factories/WildcatMarket__factory.js.map +1 -0
  90. package/dist/typechain/factories/index.d.ts +7 -5
  91. package/dist/typechain/factories/index.d.ts.map +1 -1
  92. package/dist/typechain/factories/index.js +15 -24
  93. package/dist/typechain/factories/index.js.map +1 -1
  94. package/dist/typechain/index.d.ts +21 -9
  95. package/dist/typechain/index.d.ts.map +1 -1
  96. package/dist/typechain/index.js +29 -3
  97. package/dist/typechain/index.js.map +1 -1
  98. package/dist/utils/assert.d.ts +2 -0
  99. package/dist/utils/assert.d.ts.map +1 -0
  100. package/dist/utils/assert.js +16 -0
  101. package/dist/utils/assert.js.map +1 -0
  102. package/dist/utils/index.d.ts +5 -0
  103. package/dist/utils/index.d.ts.map +1 -0
  104. package/dist/utils/index.js +21 -0
  105. package/dist/utils/index.js.map +1 -0
  106. package/dist/utils/math.d.ts +5 -0
  107. package/dist/utils/math.d.ts.map +1 -0
  108. package/dist/utils/math.js +26 -0
  109. package/dist/utils/math.js.map +1 -0
  110. package/dist/{misc.d.ts → utils/misc.d.ts} +3 -0
  111. package/dist/utils/misc.d.ts.map +1 -0
  112. package/dist/{misc.js → utils/misc.js} +12 -1
  113. package/dist/utils/misc.js.map +1 -0
  114. package/dist/utils/type-parsers.d.ts +24 -0
  115. package/dist/utils/type-parsers.d.ts.map +1 -0
  116. package/dist/utils/type-parsers.js +21 -0
  117. package/dist/utils/type-parsers.js.map +1 -0
  118. package/dist/withdrawal-batch.d.ts +28 -0
  119. package/dist/withdrawal-batch.d.ts.map +1 -0
  120. package/dist/withdrawal-batch.js +45 -0
  121. package/dist/withdrawal-batch.js.map +1 -0
  122. package/dist/withdrawal-status.d.ts +53 -0
  123. package/dist/withdrawal-status.d.ts.map +1 -0
  124. package/dist/withdrawal-status.js +187 -0
  125. package/dist/withdrawal-status.js.map +1 -0
  126. package/package.json +3 -2
  127. package/dist/factory.d.ts +0 -28
  128. package/dist/factory.d.ts.map +0 -1
  129. package/dist/factory.js +0 -50
  130. package/dist/factory.js.map +0 -1
  131. package/dist/misc.d.ts.map +0 -1
  132. package/dist/misc.js.map +0 -1
  133. package/dist/typechain/DebtTokenBase.d.ts +0 -508
  134. package/dist/typechain/DebtTokenBase.d.ts.map +0 -1
  135. package/dist/typechain/DebtTokenBase.js.map +0 -1
  136. package/dist/typechain/VaultLens.d.ts +0 -338
  137. package/dist/typechain/VaultLens.d.ts.map +0 -1
  138. package/dist/typechain/VaultLens.js.map +0 -1
  139. package/dist/typechain/WildcatVaultController.d.ts +0 -331
  140. package/dist/typechain/WildcatVaultController.d.ts.map +0 -1
  141. package/dist/typechain/WildcatVaultController.js.map +0 -1
  142. package/dist/typechain/WildcatVaultFactory.d.ts +0 -161
  143. package/dist/typechain/WildcatVaultFactory.d.ts.map +0 -1
  144. package/dist/typechain/WildcatVaultFactory.js.map +0 -1
  145. package/dist/typechain/WildcatVaultToken.d.ts +0 -653
  146. package/dist/typechain/WildcatVaultToken.d.ts.map +0 -1
  147. package/dist/typechain/WildcatVaultToken.js +0 -3
  148. package/dist/typechain/WildcatVaultToken.js.map +0 -1
  149. package/dist/typechain/factories/VaultLens__factory.d.ts +0 -1540
  150. package/dist/typechain/factories/VaultLens__factory.js +0 -1981
  151. package/dist/typechain/factories/VaultLens__factory.js.map +0 -1
  152. package/dist/typechain/factories/WildcatVaultController__factory.d.ts +0 -440
  153. package/dist/typechain/factories/WildcatVaultController__factory.d.ts.map +0 -1
  154. package/dist/typechain/factories/WildcatVaultController__factory.js +0 -573
  155. package/dist/typechain/factories/WildcatVaultController__factory.js.map +0 -1
  156. package/dist/typechain/factories/WildcatVaultFactory__factory.d.ts +0 -225
  157. package/dist/typechain/factories/WildcatVaultFactory__factory.d.ts.map +0 -1
  158. package/dist/typechain/factories/WildcatVaultFactory__factory.js +0 -299
  159. package/dist/typechain/factories/WildcatVaultFactory__factory.js.map +0 -1
  160. package/dist/typechain/factories/WildcatVaultToken__factory.d.ts.map +0 -1
  161. package/dist/typechain/factories/WildcatVaultToken__factory.js.map +0 -1
  162. package/dist/typechain/factories/mock/ERC20__factory.d.ts +0 -237
  163. package/dist/typechain/factories/mock/ERC20__factory.d.ts.map +0 -1
  164. package/dist/typechain/factories/mock/ERC20__factory.js +0 -317
  165. package/dist/typechain/factories/mock/ERC20__factory.js.map +0 -1
  166. package/dist/typechain/factories/mock/MockERC20Factory__factory.d.ts +0 -65
  167. package/dist/typechain/factories/mock/MockERC20Factory__factory.d.ts.map +0 -1
  168. package/dist/typechain/factories/mock/MockERC20Factory__factory.js +0 -98
  169. package/dist/typechain/factories/mock/MockERC20Factory__factory.js.map +0 -1
  170. package/dist/typechain/factories/mock/MockERC20__factory.d.ts +0 -292
  171. package/dist/typechain/factories/mock/MockERC20__factory.d.ts.map +0 -1
  172. package/dist/typechain/factories/mock/MockERC20__factory.js +0 -394
  173. package/dist/typechain/factories/mock/MockERC20__factory.js.map +0 -1
  174. package/dist/typechain/factories/mock/index.d.ts +0 -4
  175. package/dist/typechain/factories/mock/index.d.ts.map +0 -1
  176. package/dist/typechain/factories/mock/index.js +0 -13
  177. package/dist/typechain/factories/mock/index.js.map +0 -1
  178. package/dist/typechain/mock/ERC20.d.ts +0 -207
  179. package/dist/typechain/mock/ERC20.d.ts.map +0 -1
  180. package/dist/typechain/mock/ERC20.js +0 -3
  181. package/dist/typechain/mock/ERC20.js.map +0 -1
  182. package/dist/typechain/mock/MockERC20.d.ts +0 -247
  183. package/dist/typechain/mock/MockERC20.d.ts.map +0 -1
  184. package/dist/typechain/mock/MockERC20.js +0 -3
  185. package/dist/typechain/mock/MockERC20.js.map +0 -1
  186. package/dist/typechain/mock/MockERC20Factory.d.ts.map +0 -1
  187. package/dist/typechain/mock/MockERC20Factory.js.map +0 -1
  188. package/dist/typechain/mock/index.d.ts +0 -4
  189. package/dist/typechain/mock/index.d.ts.map +0 -1
  190. package/dist/typechain/mock/index.js.map +0 -1
  191. package/dist/vault.d.ts +0 -89
  192. package/dist/vault.d.ts.map +0 -1
  193. package/dist/vault.js +0 -218
  194. package/dist/vault.js.map +0 -1
  195. /package/dist/typechain/{mock/MockERC20Factory.js → MockERC20Factory.js} +0 -0
@@ -1,1981 +0,0 @@
1
- "use strict";
2
- /* Autogenerated file. Do not edit manually. */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.VaultLens__factory = void 0;
7
- const ethers_1 = require("ethers");
8
- const _abi = [
9
- {
10
- inputs: [],
11
- name: "factory",
12
- outputs: [
13
- {
14
- internalType: "address",
15
- name: "",
16
- type: "address",
17
- },
18
- ],
19
- stateMutability: "view",
20
- type: "function",
21
- },
22
- {
23
- inputs: [
24
- {
25
- internalType: "address",
26
- name: "vault",
27
- type: "address",
28
- },
29
- {
30
- internalType: "address",
31
- name: "account",
32
- type: "address",
33
- },
34
- ],
35
- name: "getAccountVaultInfo",
36
- outputs: [
37
- {
38
- components: [
39
- {
40
- internalType: "uint256",
41
- name: "scaledBalance",
42
- type: "uint256",
43
- },
44
- {
45
- internalType: "uint256",
46
- name: "normalizedBalance",
47
- type: "uint256",
48
- },
49
- {
50
- internalType: "uint256",
51
- name: "underlyingBalance",
52
- type: "uint256",
53
- },
54
- {
55
- internalType: "uint256",
56
- name: "underlyingApproval",
57
- type: "uint256",
58
- },
59
- ],
60
- internalType: "struct AccountVaultInfo",
61
- name: "info",
62
- type: "tuple",
63
- },
64
- ],
65
- stateMutability: "view",
66
- type: "function",
67
- },
68
- {
69
- inputs: [
70
- {
71
- internalType: "address",
72
- name: "account",
73
- type: "address",
74
- },
75
- {
76
- internalType: "address[]",
77
- name: "vaults",
78
- type: "address[]",
79
- },
80
- ],
81
- name: "getAccountVaultsInfo",
82
- outputs: [
83
- {
84
- components: [
85
- {
86
- internalType: "uint256",
87
- name: "scaledBalance",
88
- type: "uint256",
89
- },
90
- {
91
- internalType: "uint256",
92
- name: "normalizedBalance",
93
- type: "uint256",
94
- },
95
- {
96
- internalType: "uint256",
97
- name: "underlyingBalance",
98
- type: "uint256",
99
- },
100
- {
101
- internalType: "uint256",
102
- name: "underlyingApproval",
103
- type: "uint256",
104
- },
105
- ],
106
- internalType: "struct AccountVaultInfo[]",
107
- name: "info",
108
- type: "tuple[]",
109
- },
110
- ],
111
- stateMutability: "view",
112
- type: "function",
113
- },
114
- {
115
- inputs: [],
116
- name: "getAllVaultsData",
117
- outputs: [
118
- {
119
- components: [
120
- {
121
- components: [
122
- {
123
- internalType: "address",
124
- name: "token",
125
- type: "address",
126
- },
127
- {
128
- internalType: "string",
129
- name: "name",
130
- type: "string",
131
- },
132
- {
133
- internalType: "string",
134
- name: "symbol",
135
- type: "string",
136
- },
137
- {
138
- internalType: "uint256",
139
- name: "decimals",
140
- type: "uint256",
141
- },
142
- {
143
- internalType: "bool",
144
- name: "isMock",
145
- type: "bool",
146
- },
147
- ],
148
- internalType: "struct TokenMetadata",
149
- name: "vaultToken",
150
- type: "tuple",
151
- },
152
- {
153
- components: [
154
- {
155
- internalType: "address",
156
- name: "token",
157
- type: "address",
158
- },
159
- {
160
- internalType: "string",
161
- name: "name",
162
- type: "string",
163
- },
164
- {
165
- internalType: "string",
166
- name: "symbol",
167
- type: "string",
168
- },
169
- {
170
- internalType: "uint256",
171
- name: "decimals",
172
- type: "uint256",
173
- },
174
- {
175
- internalType: "bool",
176
- name: "isMock",
177
- type: "bool",
178
- },
179
- ],
180
- internalType: "struct TokenMetadata",
181
- name: "underlyingToken",
182
- type: "tuple",
183
- },
184
- {
185
- internalType: "address",
186
- name: "borrower",
187
- type: "address",
188
- },
189
- {
190
- internalType: "address",
191
- name: "controller",
192
- type: "address",
193
- },
194
- {
195
- internalType: "address",
196
- name: "feeRecipient",
197
- type: "address",
198
- },
199
- {
200
- internalType: "uint256",
201
- name: "interestFeeBips",
202
- type: "uint256",
203
- },
204
- {
205
- internalType: "uint256",
206
- name: "penaltyFeeBips",
207
- type: "uint256",
208
- },
209
- {
210
- internalType: "uint256",
211
- name: "gracePeriod",
212
- type: "uint256",
213
- },
214
- {
215
- internalType: "uint256",
216
- name: "liquidityCoverageRatio",
217
- type: "uint256",
218
- },
219
- {
220
- internalType: "bool",
221
- name: "temporaryLiquidityCoverage",
222
- type: "bool",
223
- },
224
- {
225
- internalType: "uint256",
226
- name: "originalLiquidityCoverageRatio",
227
- type: "uint256",
228
- },
229
- {
230
- internalType: "uint256",
231
- name: "temporaryLiquidityCoverageExpiry",
232
- type: "uint256",
233
- },
234
- {
235
- internalType: "uint256",
236
- name: "annualInterestBips",
237
- type: "uint256",
238
- },
239
- {
240
- internalType: "uint256",
241
- name: "borrowableAssets",
242
- type: "uint256",
243
- },
244
- {
245
- internalType: "uint256",
246
- name: "totalSupply",
247
- type: "uint256",
248
- },
249
- {
250
- internalType: "uint256",
251
- name: "maxTotalSupply",
252
- type: "uint256",
253
- },
254
- {
255
- internalType: "uint256",
256
- name: "scaledTotalSupply",
257
- type: "uint256",
258
- },
259
- {
260
- internalType: "uint256",
261
- name: "totalAssets",
262
- type: "uint256",
263
- },
264
- {
265
- internalType: "uint256",
266
- name: "coverageLiquidity",
267
- type: "uint256",
268
- },
269
- {
270
- internalType: "uint256",
271
- name: "scaleFactor",
272
- type: "uint256",
273
- },
274
- {
275
- internalType: "uint256",
276
- name: "lastAccruedProtocolFees",
277
- type: "uint256",
278
- },
279
- {
280
- internalType: "bool",
281
- name: "isDelinquent",
282
- type: "bool",
283
- },
284
- {
285
- internalType: "uint256",
286
- name: "timeDelinquent",
287
- type: "uint256",
288
- },
289
- {
290
- internalType: "uint256",
291
- name: "lastInterestAccruedTimestamp",
292
- type: "uint256",
293
- },
294
- ],
295
- internalType: "struct VaultData[]",
296
- name: "data",
297
- type: "tuple[]",
298
- },
299
- ],
300
- stateMutability: "view",
301
- type: "function",
302
- },
303
- {
304
- inputs: [
305
- {
306
- internalType: "address",
307
- name: "account",
308
- type: "address",
309
- },
310
- ],
311
- name: "getAllVaultsDataWithAccount",
312
- outputs: [
313
- {
314
- components: [
315
- {
316
- components: [
317
- {
318
- components: [
319
- {
320
- internalType: "address",
321
- name: "token",
322
- type: "address",
323
- },
324
- {
325
- internalType: "string",
326
- name: "name",
327
- type: "string",
328
- },
329
- {
330
- internalType: "string",
331
- name: "symbol",
332
- type: "string",
333
- },
334
- {
335
- internalType: "uint256",
336
- name: "decimals",
337
- type: "uint256",
338
- },
339
- {
340
- internalType: "bool",
341
- name: "isMock",
342
- type: "bool",
343
- },
344
- ],
345
- internalType: "struct TokenMetadata",
346
- name: "vaultToken",
347
- type: "tuple",
348
- },
349
- {
350
- components: [
351
- {
352
- internalType: "address",
353
- name: "token",
354
- type: "address",
355
- },
356
- {
357
- internalType: "string",
358
- name: "name",
359
- type: "string",
360
- },
361
- {
362
- internalType: "string",
363
- name: "symbol",
364
- type: "string",
365
- },
366
- {
367
- internalType: "uint256",
368
- name: "decimals",
369
- type: "uint256",
370
- },
371
- {
372
- internalType: "bool",
373
- name: "isMock",
374
- type: "bool",
375
- },
376
- ],
377
- internalType: "struct TokenMetadata",
378
- name: "underlyingToken",
379
- type: "tuple",
380
- },
381
- {
382
- internalType: "address",
383
- name: "borrower",
384
- type: "address",
385
- },
386
- {
387
- internalType: "address",
388
- name: "controller",
389
- type: "address",
390
- },
391
- {
392
- internalType: "address",
393
- name: "feeRecipient",
394
- type: "address",
395
- },
396
- {
397
- internalType: "uint256",
398
- name: "interestFeeBips",
399
- type: "uint256",
400
- },
401
- {
402
- internalType: "uint256",
403
- name: "penaltyFeeBips",
404
- type: "uint256",
405
- },
406
- {
407
- internalType: "uint256",
408
- name: "gracePeriod",
409
- type: "uint256",
410
- },
411
- {
412
- internalType: "uint256",
413
- name: "liquidityCoverageRatio",
414
- type: "uint256",
415
- },
416
- {
417
- internalType: "bool",
418
- name: "temporaryLiquidityCoverage",
419
- type: "bool",
420
- },
421
- {
422
- internalType: "uint256",
423
- name: "originalLiquidityCoverageRatio",
424
- type: "uint256",
425
- },
426
- {
427
- internalType: "uint256",
428
- name: "temporaryLiquidityCoverageExpiry",
429
- type: "uint256",
430
- },
431
- {
432
- internalType: "uint256",
433
- name: "annualInterestBips",
434
- type: "uint256",
435
- },
436
- {
437
- internalType: "uint256",
438
- name: "borrowableAssets",
439
- type: "uint256",
440
- },
441
- {
442
- internalType: "uint256",
443
- name: "totalSupply",
444
- type: "uint256",
445
- },
446
- {
447
- internalType: "uint256",
448
- name: "maxTotalSupply",
449
- type: "uint256",
450
- },
451
- {
452
- internalType: "uint256",
453
- name: "scaledTotalSupply",
454
- type: "uint256",
455
- },
456
- {
457
- internalType: "uint256",
458
- name: "totalAssets",
459
- type: "uint256",
460
- },
461
- {
462
- internalType: "uint256",
463
- name: "coverageLiquidity",
464
- type: "uint256",
465
- },
466
- {
467
- internalType: "uint256",
468
- name: "scaleFactor",
469
- type: "uint256",
470
- },
471
- {
472
- internalType: "uint256",
473
- name: "lastAccruedProtocolFees",
474
- type: "uint256",
475
- },
476
- {
477
- internalType: "bool",
478
- name: "isDelinquent",
479
- type: "bool",
480
- },
481
- {
482
- internalType: "uint256",
483
- name: "timeDelinquent",
484
- type: "uint256",
485
- },
486
- {
487
- internalType: "uint256",
488
- name: "lastInterestAccruedTimestamp",
489
- type: "uint256",
490
- },
491
- ],
492
- internalType: "struct VaultData",
493
- name: "vault",
494
- type: "tuple",
495
- },
496
- {
497
- components: [
498
- {
499
- internalType: "uint256",
500
- name: "scaledBalance",
501
- type: "uint256",
502
- },
503
- {
504
- internalType: "uint256",
505
- name: "normalizedBalance",
506
- type: "uint256",
507
- },
508
- {
509
- internalType: "uint256",
510
- name: "underlyingBalance",
511
- type: "uint256",
512
- },
513
- {
514
- internalType: "uint256",
515
- name: "underlyingApproval",
516
- type: "uint256",
517
- },
518
- ],
519
- internalType: "struct AccountVaultInfo",
520
- name: "account",
521
- type: "tuple",
522
- },
523
- ],
524
- internalType: "struct VaultDataWithAccount[]",
525
- name: "data",
526
- type: "tuple[]",
527
- },
528
- ],
529
- stateMutability: "view",
530
- type: "function",
531
- },
532
- {
533
- inputs: [
534
- {
535
- internalType: "address",
536
- name: "vault",
537
- type: "address",
538
- },
539
- ],
540
- name: "getControlStatus",
541
- outputs: [
542
- {
543
- components: [
544
- {
545
- internalType: "bool",
546
- name: "temporaryLiquidityCoverage",
547
- type: "bool",
548
- },
549
- {
550
- internalType: "uint256",
551
- name: "originalLiquidityCoverageRatio",
552
- type: "uint256",
553
- },
554
- {
555
- internalType: "uint256",
556
- name: "temporaryLiquidityCoverageExpiry",
557
- type: "uint256",
558
- },
559
- ],
560
- internalType: "struct ControlStatus",
561
- name: "status",
562
- type: "tuple",
563
- },
564
- ],
565
- stateMutability: "view",
566
- type: "function",
567
- },
568
- {
569
- inputs: [
570
- {
571
- internalType: "uint256",
572
- name: "start",
573
- type: "uint256",
574
- },
575
- {
576
- internalType: "uint256",
577
- name: "length",
578
- type: "uint256",
579
- },
580
- ],
581
- name: "getPaginatedVaultsData",
582
- outputs: [
583
- {
584
- components: [
585
- {
586
- components: [
587
- {
588
- internalType: "address",
589
- name: "token",
590
- type: "address",
591
- },
592
- {
593
- internalType: "string",
594
- name: "name",
595
- type: "string",
596
- },
597
- {
598
- internalType: "string",
599
- name: "symbol",
600
- type: "string",
601
- },
602
- {
603
- internalType: "uint256",
604
- name: "decimals",
605
- type: "uint256",
606
- },
607
- {
608
- internalType: "bool",
609
- name: "isMock",
610
- type: "bool",
611
- },
612
- ],
613
- internalType: "struct TokenMetadata",
614
- name: "vaultToken",
615
- type: "tuple",
616
- },
617
- {
618
- components: [
619
- {
620
- internalType: "address",
621
- name: "token",
622
- type: "address",
623
- },
624
- {
625
- internalType: "string",
626
- name: "name",
627
- type: "string",
628
- },
629
- {
630
- internalType: "string",
631
- name: "symbol",
632
- type: "string",
633
- },
634
- {
635
- internalType: "uint256",
636
- name: "decimals",
637
- type: "uint256",
638
- },
639
- {
640
- internalType: "bool",
641
- name: "isMock",
642
- type: "bool",
643
- },
644
- ],
645
- internalType: "struct TokenMetadata",
646
- name: "underlyingToken",
647
- type: "tuple",
648
- },
649
- {
650
- internalType: "address",
651
- name: "borrower",
652
- type: "address",
653
- },
654
- {
655
- internalType: "address",
656
- name: "controller",
657
- type: "address",
658
- },
659
- {
660
- internalType: "address",
661
- name: "feeRecipient",
662
- type: "address",
663
- },
664
- {
665
- internalType: "uint256",
666
- name: "interestFeeBips",
667
- type: "uint256",
668
- },
669
- {
670
- internalType: "uint256",
671
- name: "penaltyFeeBips",
672
- type: "uint256",
673
- },
674
- {
675
- internalType: "uint256",
676
- name: "gracePeriod",
677
- type: "uint256",
678
- },
679
- {
680
- internalType: "uint256",
681
- name: "liquidityCoverageRatio",
682
- type: "uint256",
683
- },
684
- {
685
- internalType: "bool",
686
- name: "temporaryLiquidityCoverage",
687
- type: "bool",
688
- },
689
- {
690
- internalType: "uint256",
691
- name: "originalLiquidityCoverageRatio",
692
- type: "uint256",
693
- },
694
- {
695
- internalType: "uint256",
696
- name: "temporaryLiquidityCoverageExpiry",
697
- type: "uint256",
698
- },
699
- {
700
- internalType: "uint256",
701
- name: "annualInterestBips",
702
- type: "uint256",
703
- },
704
- {
705
- internalType: "uint256",
706
- name: "borrowableAssets",
707
- type: "uint256",
708
- },
709
- {
710
- internalType: "uint256",
711
- name: "totalSupply",
712
- type: "uint256",
713
- },
714
- {
715
- internalType: "uint256",
716
- name: "maxTotalSupply",
717
- type: "uint256",
718
- },
719
- {
720
- internalType: "uint256",
721
- name: "scaledTotalSupply",
722
- type: "uint256",
723
- },
724
- {
725
- internalType: "uint256",
726
- name: "totalAssets",
727
- type: "uint256",
728
- },
729
- {
730
- internalType: "uint256",
731
- name: "coverageLiquidity",
732
- type: "uint256",
733
- },
734
- {
735
- internalType: "uint256",
736
- name: "scaleFactor",
737
- type: "uint256",
738
- },
739
- {
740
- internalType: "uint256",
741
- name: "lastAccruedProtocolFees",
742
- type: "uint256",
743
- },
744
- {
745
- internalType: "bool",
746
- name: "isDelinquent",
747
- type: "bool",
748
- },
749
- {
750
- internalType: "uint256",
751
- name: "timeDelinquent",
752
- type: "uint256",
753
- },
754
- {
755
- internalType: "uint256",
756
- name: "lastInterestAccruedTimestamp",
757
- type: "uint256",
758
- },
759
- ],
760
- internalType: "struct VaultData[]",
761
- name: "data",
762
- type: "tuple[]",
763
- },
764
- ],
765
- stateMutability: "view",
766
- type: "function",
767
- },
768
- {
769
- inputs: [
770
- {
771
- internalType: "address",
772
- name: "account",
773
- type: "address",
774
- },
775
- {
776
- internalType: "uint256",
777
- name: "start",
778
- type: "uint256",
779
- },
780
- {
781
- internalType: "uint256",
782
- name: "length",
783
- type: "uint256",
784
- },
785
- ],
786
- name: "getPaginatedVaultsDataWithAccount",
787
- outputs: [
788
- {
789
- components: [
790
- {
791
- components: [
792
- {
793
- components: [
794
- {
795
- internalType: "address",
796
- name: "token",
797
- type: "address",
798
- },
799
- {
800
- internalType: "string",
801
- name: "name",
802
- type: "string",
803
- },
804
- {
805
- internalType: "string",
806
- name: "symbol",
807
- type: "string",
808
- },
809
- {
810
- internalType: "uint256",
811
- name: "decimals",
812
- type: "uint256",
813
- },
814
- {
815
- internalType: "bool",
816
- name: "isMock",
817
- type: "bool",
818
- },
819
- ],
820
- internalType: "struct TokenMetadata",
821
- name: "vaultToken",
822
- type: "tuple",
823
- },
824
- {
825
- components: [
826
- {
827
- internalType: "address",
828
- name: "token",
829
- type: "address",
830
- },
831
- {
832
- internalType: "string",
833
- name: "name",
834
- type: "string",
835
- },
836
- {
837
- internalType: "string",
838
- name: "symbol",
839
- type: "string",
840
- },
841
- {
842
- internalType: "uint256",
843
- name: "decimals",
844
- type: "uint256",
845
- },
846
- {
847
- internalType: "bool",
848
- name: "isMock",
849
- type: "bool",
850
- },
851
- ],
852
- internalType: "struct TokenMetadata",
853
- name: "underlyingToken",
854
- type: "tuple",
855
- },
856
- {
857
- internalType: "address",
858
- name: "borrower",
859
- type: "address",
860
- },
861
- {
862
- internalType: "address",
863
- name: "controller",
864
- type: "address",
865
- },
866
- {
867
- internalType: "address",
868
- name: "feeRecipient",
869
- type: "address",
870
- },
871
- {
872
- internalType: "uint256",
873
- name: "interestFeeBips",
874
- type: "uint256",
875
- },
876
- {
877
- internalType: "uint256",
878
- name: "penaltyFeeBips",
879
- type: "uint256",
880
- },
881
- {
882
- internalType: "uint256",
883
- name: "gracePeriod",
884
- type: "uint256",
885
- },
886
- {
887
- internalType: "uint256",
888
- name: "liquidityCoverageRatio",
889
- type: "uint256",
890
- },
891
- {
892
- internalType: "bool",
893
- name: "temporaryLiquidityCoverage",
894
- type: "bool",
895
- },
896
- {
897
- internalType: "uint256",
898
- name: "originalLiquidityCoverageRatio",
899
- type: "uint256",
900
- },
901
- {
902
- internalType: "uint256",
903
- name: "temporaryLiquidityCoverageExpiry",
904
- type: "uint256",
905
- },
906
- {
907
- internalType: "uint256",
908
- name: "annualInterestBips",
909
- type: "uint256",
910
- },
911
- {
912
- internalType: "uint256",
913
- name: "borrowableAssets",
914
- type: "uint256",
915
- },
916
- {
917
- internalType: "uint256",
918
- name: "totalSupply",
919
- type: "uint256",
920
- },
921
- {
922
- internalType: "uint256",
923
- name: "maxTotalSupply",
924
- type: "uint256",
925
- },
926
- {
927
- internalType: "uint256",
928
- name: "scaledTotalSupply",
929
- type: "uint256",
930
- },
931
- {
932
- internalType: "uint256",
933
- name: "totalAssets",
934
- type: "uint256",
935
- },
936
- {
937
- internalType: "uint256",
938
- name: "coverageLiquidity",
939
- type: "uint256",
940
- },
941
- {
942
- internalType: "uint256",
943
- name: "scaleFactor",
944
- type: "uint256",
945
- },
946
- {
947
- internalType: "uint256",
948
- name: "lastAccruedProtocolFees",
949
- type: "uint256",
950
- },
951
- {
952
- internalType: "bool",
953
- name: "isDelinquent",
954
- type: "bool",
955
- },
956
- {
957
- internalType: "uint256",
958
- name: "timeDelinquent",
959
- type: "uint256",
960
- },
961
- {
962
- internalType: "uint256",
963
- name: "lastInterestAccruedTimestamp",
964
- type: "uint256",
965
- },
966
- ],
967
- internalType: "struct VaultData",
968
- name: "vault",
969
- type: "tuple",
970
- },
971
- {
972
- components: [
973
- {
974
- internalType: "uint256",
975
- name: "scaledBalance",
976
- type: "uint256",
977
- },
978
- {
979
- internalType: "uint256",
980
- name: "normalizedBalance",
981
- type: "uint256",
982
- },
983
- {
984
- internalType: "uint256",
985
- name: "underlyingBalance",
986
- type: "uint256",
987
- },
988
- {
989
- internalType: "uint256",
990
- name: "underlyingApproval",
991
- type: "uint256",
992
- },
993
- ],
994
- internalType: "struct AccountVaultInfo",
995
- name: "account",
996
- type: "tuple",
997
- },
998
- ],
999
- internalType: "struct VaultDataWithAccount[]",
1000
- name: "data",
1001
- type: "tuple[]",
1002
- },
1003
- ],
1004
- stateMutability: "view",
1005
- type: "function",
1006
- },
1007
- {
1008
- inputs: [
1009
- {
1010
- internalType: "address",
1011
- name: "token",
1012
- type: "address",
1013
- },
1014
- ],
1015
- name: "getTokenInfo",
1016
- outputs: [
1017
- {
1018
- components: [
1019
- {
1020
- internalType: "address",
1021
- name: "token",
1022
- type: "address",
1023
- },
1024
- {
1025
- internalType: "string",
1026
- name: "name",
1027
- type: "string",
1028
- },
1029
- {
1030
- internalType: "string",
1031
- name: "symbol",
1032
- type: "string",
1033
- },
1034
- {
1035
- internalType: "uint256",
1036
- name: "decimals",
1037
- type: "uint256",
1038
- },
1039
- {
1040
- internalType: "bool",
1041
- name: "isMock",
1042
- type: "bool",
1043
- },
1044
- ],
1045
- internalType: "struct TokenMetadata",
1046
- name: "info",
1047
- type: "tuple",
1048
- },
1049
- ],
1050
- stateMutability: "view",
1051
- type: "function",
1052
- },
1053
- {
1054
- inputs: [
1055
- {
1056
- internalType: "address[]",
1057
- name: "tokens",
1058
- type: "address[]",
1059
- },
1060
- ],
1061
- name: "getTokensInfo",
1062
- outputs: [
1063
- {
1064
- components: [
1065
- {
1066
- internalType: "address",
1067
- name: "token",
1068
- type: "address",
1069
- },
1070
- {
1071
- internalType: "string",
1072
- name: "name",
1073
- type: "string",
1074
- },
1075
- {
1076
- internalType: "string",
1077
- name: "symbol",
1078
- type: "string",
1079
- },
1080
- {
1081
- internalType: "uint256",
1082
- name: "decimals",
1083
- type: "uint256",
1084
- },
1085
- {
1086
- internalType: "bool",
1087
- name: "isMock",
1088
- type: "bool",
1089
- },
1090
- ],
1091
- internalType: "struct TokenMetadata[]",
1092
- name: "info",
1093
- type: "tuple[]",
1094
- },
1095
- ],
1096
- stateMutability: "view",
1097
- type: "function",
1098
- },
1099
- {
1100
- inputs: [
1101
- {
1102
- internalType: "address",
1103
- name: "vault",
1104
- type: "address",
1105
- },
1106
- ],
1107
- name: "getVaultData",
1108
- outputs: [
1109
- {
1110
- components: [
1111
- {
1112
- components: [
1113
- {
1114
- internalType: "address",
1115
- name: "token",
1116
- type: "address",
1117
- },
1118
- {
1119
- internalType: "string",
1120
- name: "name",
1121
- type: "string",
1122
- },
1123
- {
1124
- internalType: "string",
1125
- name: "symbol",
1126
- type: "string",
1127
- },
1128
- {
1129
- internalType: "uint256",
1130
- name: "decimals",
1131
- type: "uint256",
1132
- },
1133
- {
1134
- internalType: "bool",
1135
- name: "isMock",
1136
- type: "bool",
1137
- },
1138
- ],
1139
- internalType: "struct TokenMetadata",
1140
- name: "vaultToken",
1141
- type: "tuple",
1142
- },
1143
- {
1144
- components: [
1145
- {
1146
- internalType: "address",
1147
- name: "token",
1148
- type: "address",
1149
- },
1150
- {
1151
- internalType: "string",
1152
- name: "name",
1153
- type: "string",
1154
- },
1155
- {
1156
- internalType: "string",
1157
- name: "symbol",
1158
- type: "string",
1159
- },
1160
- {
1161
- internalType: "uint256",
1162
- name: "decimals",
1163
- type: "uint256",
1164
- },
1165
- {
1166
- internalType: "bool",
1167
- name: "isMock",
1168
- type: "bool",
1169
- },
1170
- ],
1171
- internalType: "struct TokenMetadata",
1172
- name: "underlyingToken",
1173
- type: "tuple",
1174
- },
1175
- {
1176
- internalType: "address",
1177
- name: "borrower",
1178
- type: "address",
1179
- },
1180
- {
1181
- internalType: "address",
1182
- name: "controller",
1183
- type: "address",
1184
- },
1185
- {
1186
- internalType: "address",
1187
- name: "feeRecipient",
1188
- type: "address",
1189
- },
1190
- {
1191
- internalType: "uint256",
1192
- name: "interestFeeBips",
1193
- type: "uint256",
1194
- },
1195
- {
1196
- internalType: "uint256",
1197
- name: "penaltyFeeBips",
1198
- type: "uint256",
1199
- },
1200
- {
1201
- internalType: "uint256",
1202
- name: "gracePeriod",
1203
- type: "uint256",
1204
- },
1205
- {
1206
- internalType: "uint256",
1207
- name: "liquidityCoverageRatio",
1208
- type: "uint256",
1209
- },
1210
- {
1211
- internalType: "bool",
1212
- name: "temporaryLiquidityCoverage",
1213
- type: "bool",
1214
- },
1215
- {
1216
- internalType: "uint256",
1217
- name: "originalLiquidityCoverageRatio",
1218
- type: "uint256",
1219
- },
1220
- {
1221
- internalType: "uint256",
1222
- name: "temporaryLiquidityCoverageExpiry",
1223
- type: "uint256",
1224
- },
1225
- {
1226
- internalType: "uint256",
1227
- name: "annualInterestBips",
1228
- type: "uint256",
1229
- },
1230
- {
1231
- internalType: "uint256",
1232
- name: "borrowableAssets",
1233
- type: "uint256",
1234
- },
1235
- {
1236
- internalType: "uint256",
1237
- name: "totalSupply",
1238
- type: "uint256",
1239
- },
1240
- {
1241
- internalType: "uint256",
1242
- name: "maxTotalSupply",
1243
- type: "uint256",
1244
- },
1245
- {
1246
- internalType: "uint256",
1247
- name: "scaledTotalSupply",
1248
- type: "uint256",
1249
- },
1250
- {
1251
- internalType: "uint256",
1252
- name: "totalAssets",
1253
- type: "uint256",
1254
- },
1255
- {
1256
- internalType: "uint256",
1257
- name: "coverageLiquidity",
1258
- type: "uint256",
1259
- },
1260
- {
1261
- internalType: "uint256",
1262
- name: "scaleFactor",
1263
- type: "uint256",
1264
- },
1265
- {
1266
- internalType: "uint256",
1267
- name: "lastAccruedProtocolFees",
1268
- type: "uint256",
1269
- },
1270
- {
1271
- internalType: "bool",
1272
- name: "isDelinquent",
1273
- type: "bool",
1274
- },
1275
- {
1276
- internalType: "uint256",
1277
- name: "timeDelinquent",
1278
- type: "uint256",
1279
- },
1280
- {
1281
- internalType: "uint256",
1282
- name: "lastInterestAccruedTimestamp",
1283
- type: "uint256",
1284
- },
1285
- ],
1286
- internalType: "struct VaultData",
1287
- name: "data",
1288
- type: "tuple",
1289
- },
1290
- ],
1291
- stateMutability: "view",
1292
- type: "function",
1293
- },
1294
- {
1295
- inputs: [
1296
- {
1297
- internalType: "address",
1298
- name: "account",
1299
- type: "address",
1300
- },
1301
- {
1302
- internalType: "address",
1303
- name: "vault",
1304
- type: "address",
1305
- },
1306
- ],
1307
- name: "getVaultDataWithAccount",
1308
- outputs: [
1309
- {
1310
- components: [
1311
- {
1312
- components: [
1313
- {
1314
- components: [
1315
- {
1316
- internalType: "address",
1317
- name: "token",
1318
- type: "address",
1319
- },
1320
- {
1321
- internalType: "string",
1322
- name: "name",
1323
- type: "string",
1324
- },
1325
- {
1326
- internalType: "string",
1327
- name: "symbol",
1328
- type: "string",
1329
- },
1330
- {
1331
- internalType: "uint256",
1332
- name: "decimals",
1333
- type: "uint256",
1334
- },
1335
- {
1336
- internalType: "bool",
1337
- name: "isMock",
1338
- type: "bool",
1339
- },
1340
- ],
1341
- internalType: "struct TokenMetadata",
1342
- name: "vaultToken",
1343
- type: "tuple",
1344
- },
1345
- {
1346
- components: [
1347
- {
1348
- internalType: "address",
1349
- name: "token",
1350
- type: "address",
1351
- },
1352
- {
1353
- internalType: "string",
1354
- name: "name",
1355
- type: "string",
1356
- },
1357
- {
1358
- internalType: "string",
1359
- name: "symbol",
1360
- type: "string",
1361
- },
1362
- {
1363
- internalType: "uint256",
1364
- name: "decimals",
1365
- type: "uint256",
1366
- },
1367
- {
1368
- internalType: "bool",
1369
- name: "isMock",
1370
- type: "bool",
1371
- },
1372
- ],
1373
- internalType: "struct TokenMetadata",
1374
- name: "underlyingToken",
1375
- type: "tuple",
1376
- },
1377
- {
1378
- internalType: "address",
1379
- name: "borrower",
1380
- type: "address",
1381
- },
1382
- {
1383
- internalType: "address",
1384
- name: "controller",
1385
- type: "address",
1386
- },
1387
- {
1388
- internalType: "address",
1389
- name: "feeRecipient",
1390
- type: "address",
1391
- },
1392
- {
1393
- internalType: "uint256",
1394
- name: "interestFeeBips",
1395
- type: "uint256",
1396
- },
1397
- {
1398
- internalType: "uint256",
1399
- name: "penaltyFeeBips",
1400
- type: "uint256",
1401
- },
1402
- {
1403
- internalType: "uint256",
1404
- name: "gracePeriod",
1405
- type: "uint256",
1406
- },
1407
- {
1408
- internalType: "uint256",
1409
- name: "liquidityCoverageRatio",
1410
- type: "uint256",
1411
- },
1412
- {
1413
- internalType: "bool",
1414
- name: "temporaryLiquidityCoverage",
1415
- type: "bool",
1416
- },
1417
- {
1418
- internalType: "uint256",
1419
- name: "originalLiquidityCoverageRatio",
1420
- type: "uint256",
1421
- },
1422
- {
1423
- internalType: "uint256",
1424
- name: "temporaryLiquidityCoverageExpiry",
1425
- type: "uint256",
1426
- },
1427
- {
1428
- internalType: "uint256",
1429
- name: "annualInterestBips",
1430
- type: "uint256",
1431
- },
1432
- {
1433
- internalType: "uint256",
1434
- name: "borrowableAssets",
1435
- type: "uint256",
1436
- },
1437
- {
1438
- internalType: "uint256",
1439
- name: "totalSupply",
1440
- type: "uint256",
1441
- },
1442
- {
1443
- internalType: "uint256",
1444
- name: "maxTotalSupply",
1445
- type: "uint256",
1446
- },
1447
- {
1448
- internalType: "uint256",
1449
- name: "scaledTotalSupply",
1450
- type: "uint256",
1451
- },
1452
- {
1453
- internalType: "uint256",
1454
- name: "totalAssets",
1455
- type: "uint256",
1456
- },
1457
- {
1458
- internalType: "uint256",
1459
- name: "coverageLiquidity",
1460
- type: "uint256",
1461
- },
1462
- {
1463
- internalType: "uint256",
1464
- name: "scaleFactor",
1465
- type: "uint256",
1466
- },
1467
- {
1468
- internalType: "uint256",
1469
- name: "lastAccruedProtocolFees",
1470
- type: "uint256",
1471
- },
1472
- {
1473
- internalType: "bool",
1474
- name: "isDelinquent",
1475
- type: "bool",
1476
- },
1477
- {
1478
- internalType: "uint256",
1479
- name: "timeDelinquent",
1480
- type: "uint256",
1481
- },
1482
- {
1483
- internalType: "uint256",
1484
- name: "lastInterestAccruedTimestamp",
1485
- type: "uint256",
1486
- },
1487
- ],
1488
- internalType: "struct VaultData",
1489
- name: "vault",
1490
- type: "tuple",
1491
- },
1492
- {
1493
- components: [
1494
- {
1495
- internalType: "uint256",
1496
- name: "scaledBalance",
1497
- type: "uint256",
1498
- },
1499
- {
1500
- internalType: "uint256",
1501
- name: "normalizedBalance",
1502
- type: "uint256",
1503
- },
1504
- {
1505
- internalType: "uint256",
1506
- name: "underlyingBalance",
1507
- type: "uint256",
1508
- },
1509
- {
1510
- internalType: "uint256",
1511
- name: "underlyingApproval",
1512
- type: "uint256",
1513
- },
1514
- ],
1515
- internalType: "struct AccountVaultInfo",
1516
- name: "account",
1517
- type: "tuple",
1518
- },
1519
- ],
1520
- internalType: "struct VaultDataWithAccount",
1521
- name: "data",
1522
- type: "tuple",
1523
- },
1524
- ],
1525
- stateMutability: "view",
1526
- type: "function",
1527
- },
1528
- {
1529
- inputs: [],
1530
- name: "getVaultsCount",
1531
- outputs: [
1532
- {
1533
- internalType: "uint256",
1534
- name: "",
1535
- type: "uint256",
1536
- },
1537
- ],
1538
- stateMutability: "view",
1539
- type: "function",
1540
- },
1541
- {
1542
- inputs: [
1543
- {
1544
- internalType: "address[]",
1545
- name: "vaults",
1546
- type: "address[]",
1547
- },
1548
- ],
1549
- name: "getVaultsData",
1550
- outputs: [
1551
- {
1552
- components: [
1553
- {
1554
- components: [
1555
- {
1556
- internalType: "address",
1557
- name: "token",
1558
- type: "address",
1559
- },
1560
- {
1561
- internalType: "string",
1562
- name: "name",
1563
- type: "string",
1564
- },
1565
- {
1566
- internalType: "string",
1567
- name: "symbol",
1568
- type: "string",
1569
- },
1570
- {
1571
- internalType: "uint256",
1572
- name: "decimals",
1573
- type: "uint256",
1574
- },
1575
- {
1576
- internalType: "bool",
1577
- name: "isMock",
1578
- type: "bool",
1579
- },
1580
- ],
1581
- internalType: "struct TokenMetadata",
1582
- name: "vaultToken",
1583
- type: "tuple",
1584
- },
1585
- {
1586
- components: [
1587
- {
1588
- internalType: "address",
1589
- name: "token",
1590
- type: "address",
1591
- },
1592
- {
1593
- internalType: "string",
1594
- name: "name",
1595
- type: "string",
1596
- },
1597
- {
1598
- internalType: "string",
1599
- name: "symbol",
1600
- type: "string",
1601
- },
1602
- {
1603
- internalType: "uint256",
1604
- name: "decimals",
1605
- type: "uint256",
1606
- },
1607
- {
1608
- internalType: "bool",
1609
- name: "isMock",
1610
- type: "bool",
1611
- },
1612
- ],
1613
- internalType: "struct TokenMetadata",
1614
- name: "underlyingToken",
1615
- type: "tuple",
1616
- },
1617
- {
1618
- internalType: "address",
1619
- name: "borrower",
1620
- type: "address",
1621
- },
1622
- {
1623
- internalType: "address",
1624
- name: "controller",
1625
- type: "address",
1626
- },
1627
- {
1628
- internalType: "address",
1629
- name: "feeRecipient",
1630
- type: "address",
1631
- },
1632
- {
1633
- internalType: "uint256",
1634
- name: "interestFeeBips",
1635
- type: "uint256",
1636
- },
1637
- {
1638
- internalType: "uint256",
1639
- name: "penaltyFeeBips",
1640
- type: "uint256",
1641
- },
1642
- {
1643
- internalType: "uint256",
1644
- name: "gracePeriod",
1645
- type: "uint256",
1646
- },
1647
- {
1648
- internalType: "uint256",
1649
- name: "liquidityCoverageRatio",
1650
- type: "uint256",
1651
- },
1652
- {
1653
- internalType: "bool",
1654
- name: "temporaryLiquidityCoverage",
1655
- type: "bool",
1656
- },
1657
- {
1658
- internalType: "uint256",
1659
- name: "originalLiquidityCoverageRatio",
1660
- type: "uint256",
1661
- },
1662
- {
1663
- internalType: "uint256",
1664
- name: "temporaryLiquidityCoverageExpiry",
1665
- type: "uint256",
1666
- },
1667
- {
1668
- internalType: "uint256",
1669
- name: "annualInterestBips",
1670
- type: "uint256",
1671
- },
1672
- {
1673
- internalType: "uint256",
1674
- name: "borrowableAssets",
1675
- type: "uint256",
1676
- },
1677
- {
1678
- internalType: "uint256",
1679
- name: "totalSupply",
1680
- type: "uint256",
1681
- },
1682
- {
1683
- internalType: "uint256",
1684
- name: "maxTotalSupply",
1685
- type: "uint256",
1686
- },
1687
- {
1688
- internalType: "uint256",
1689
- name: "scaledTotalSupply",
1690
- type: "uint256",
1691
- },
1692
- {
1693
- internalType: "uint256",
1694
- name: "totalAssets",
1695
- type: "uint256",
1696
- },
1697
- {
1698
- internalType: "uint256",
1699
- name: "coverageLiquidity",
1700
- type: "uint256",
1701
- },
1702
- {
1703
- internalType: "uint256",
1704
- name: "scaleFactor",
1705
- type: "uint256",
1706
- },
1707
- {
1708
- internalType: "uint256",
1709
- name: "lastAccruedProtocolFees",
1710
- type: "uint256",
1711
- },
1712
- {
1713
- internalType: "bool",
1714
- name: "isDelinquent",
1715
- type: "bool",
1716
- },
1717
- {
1718
- internalType: "uint256",
1719
- name: "timeDelinquent",
1720
- type: "uint256",
1721
- },
1722
- {
1723
- internalType: "uint256",
1724
- name: "lastInterestAccruedTimestamp",
1725
- type: "uint256",
1726
- },
1727
- ],
1728
- internalType: "struct VaultData[]",
1729
- name: "data",
1730
- type: "tuple[]",
1731
- },
1732
- ],
1733
- stateMutability: "view",
1734
- type: "function",
1735
- },
1736
- {
1737
- inputs: [
1738
- {
1739
- internalType: "address",
1740
- name: "account",
1741
- type: "address",
1742
- },
1743
- {
1744
- internalType: "address[]",
1745
- name: "vaults",
1746
- type: "address[]",
1747
- },
1748
- ],
1749
- name: "getVaultsDataWithAccount",
1750
- outputs: [
1751
- {
1752
- components: [
1753
- {
1754
- components: [
1755
- {
1756
- components: [
1757
- {
1758
- internalType: "address",
1759
- name: "token",
1760
- type: "address",
1761
- },
1762
- {
1763
- internalType: "string",
1764
- name: "name",
1765
- type: "string",
1766
- },
1767
- {
1768
- internalType: "string",
1769
- name: "symbol",
1770
- type: "string",
1771
- },
1772
- {
1773
- internalType: "uint256",
1774
- name: "decimals",
1775
- type: "uint256",
1776
- },
1777
- {
1778
- internalType: "bool",
1779
- name: "isMock",
1780
- type: "bool",
1781
- },
1782
- ],
1783
- internalType: "struct TokenMetadata",
1784
- name: "vaultToken",
1785
- type: "tuple",
1786
- },
1787
- {
1788
- components: [
1789
- {
1790
- internalType: "address",
1791
- name: "token",
1792
- type: "address",
1793
- },
1794
- {
1795
- internalType: "string",
1796
- name: "name",
1797
- type: "string",
1798
- },
1799
- {
1800
- internalType: "string",
1801
- name: "symbol",
1802
- type: "string",
1803
- },
1804
- {
1805
- internalType: "uint256",
1806
- name: "decimals",
1807
- type: "uint256",
1808
- },
1809
- {
1810
- internalType: "bool",
1811
- name: "isMock",
1812
- type: "bool",
1813
- },
1814
- ],
1815
- internalType: "struct TokenMetadata",
1816
- name: "underlyingToken",
1817
- type: "tuple",
1818
- },
1819
- {
1820
- internalType: "address",
1821
- name: "borrower",
1822
- type: "address",
1823
- },
1824
- {
1825
- internalType: "address",
1826
- name: "controller",
1827
- type: "address",
1828
- },
1829
- {
1830
- internalType: "address",
1831
- name: "feeRecipient",
1832
- type: "address",
1833
- },
1834
- {
1835
- internalType: "uint256",
1836
- name: "interestFeeBips",
1837
- type: "uint256",
1838
- },
1839
- {
1840
- internalType: "uint256",
1841
- name: "penaltyFeeBips",
1842
- type: "uint256",
1843
- },
1844
- {
1845
- internalType: "uint256",
1846
- name: "gracePeriod",
1847
- type: "uint256",
1848
- },
1849
- {
1850
- internalType: "uint256",
1851
- name: "liquidityCoverageRatio",
1852
- type: "uint256",
1853
- },
1854
- {
1855
- internalType: "bool",
1856
- name: "temporaryLiquidityCoverage",
1857
- type: "bool",
1858
- },
1859
- {
1860
- internalType: "uint256",
1861
- name: "originalLiquidityCoverageRatio",
1862
- type: "uint256",
1863
- },
1864
- {
1865
- internalType: "uint256",
1866
- name: "temporaryLiquidityCoverageExpiry",
1867
- type: "uint256",
1868
- },
1869
- {
1870
- internalType: "uint256",
1871
- name: "annualInterestBips",
1872
- type: "uint256",
1873
- },
1874
- {
1875
- internalType: "uint256",
1876
- name: "borrowableAssets",
1877
- type: "uint256",
1878
- },
1879
- {
1880
- internalType: "uint256",
1881
- name: "totalSupply",
1882
- type: "uint256",
1883
- },
1884
- {
1885
- internalType: "uint256",
1886
- name: "maxTotalSupply",
1887
- type: "uint256",
1888
- },
1889
- {
1890
- internalType: "uint256",
1891
- name: "scaledTotalSupply",
1892
- type: "uint256",
1893
- },
1894
- {
1895
- internalType: "uint256",
1896
- name: "totalAssets",
1897
- type: "uint256",
1898
- },
1899
- {
1900
- internalType: "uint256",
1901
- name: "coverageLiquidity",
1902
- type: "uint256",
1903
- },
1904
- {
1905
- internalType: "uint256",
1906
- name: "scaleFactor",
1907
- type: "uint256",
1908
- },
1909
- {
1910
- internalType: "uint256",
1911
- name: "lastAccruedProtocolFees",
1912
- type: "uint256",
1913
- },
1914
- {
1915
- internalType: "bool",
1916
- name: "isDelinquent",
1917
- type: "bool",
1918
- },
1919
- {
1920
- internalType: "uint256",
1921
- name: "timeDelinquent",
1922
- type: "uint256",
1923
- },
1924
- {
1925
- internalType: "uint256",
1926
- name: "lastInterestAccruedTimestamp",
1927
- type: "uint256",
1928
- },
1929
- ],
1930
- internalType: "struct VaultData",
1931
- name: "vault",
1932
- type: "tuple",
1933
- },
1934
- {
1935
- components: [
1936
- {
1937
- internalType: "uint256",
1938
- name: "scaledBalance",
1939
- type: "uint256",
1940
- },
1941
- {
1942
- internalType: "uint256",
1943
- name: "normalizedBalance",
1944
- type: "uint256",
1945
- },
1946
- {
1947
- internalType: "uint256",
1948
- name: "underlyingBalance",
1949
- type: "uint256",
1950
- },
1951
- {
1952
- internalType: "uint256",
1953
- name: "underlyingApproval",
1954
- type: "uint256",
1955
- },
1956
- ],
1957
- internalType: "struct AccountVaultInfo",
1958
- name: "account",
1959
- type: "tuple",
1960
- },
1961
- ],
1962
- internalType: "struct VaultDataWithAccount[]",
1963
- name: "data",
1964
- type: "tuple[]",
1965
- },
1966
- ],
1967
- stateMutability: "view",
1968
- type: "function",
1969
- },
1970
- ];
1971
- class VaultLens__factory {
1972
- static createInterface() {
1973
- return new ethers_1.utils.Interface(_abi);
1974
- }
1975
- static connect(address, signerOrProvider) {
1976
- return new ethers_1.Contract(address, _abi, signerOrProvider);
1977
- }
1978
- }
1979
- VaultLens__factory.abi = _abi;
1980
- exports.VaultLens__factory = VaultLens__factory;
1981
- //# sourceMappingURL=VaultLens__factory.js.map