@wildcatfi/wildcat-sdk 1.0.14 → 2.0.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.
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 +127 -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 +105 -0
  19. package/dist/market.d.ts.map +1 -0
  20. package/dist/market.js +263 -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 +2 -3
  25. package/dist/token.d.ts.map +1 -1
  26. package/dist/token.js +7 -8
  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 +25 -0
  119. package/dist/withdrawal-batch.d.ts.map +1 -0
  120. package/dist/withdrawal-batch.js +38 -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
@@ -0,0 +1,4389 @@
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.MarketLens__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ inputs: [],
11
+ name: "archController",
12
+ outputs: [
13
+ {
14
+ internalType: "address",
15
+ name: "",
16
+ type: "address",
17
+ },
18
+ ],
19
+ stateMutability: "view",
20
+ type: "function",
21
+ },
22
+ {
23
+ inputs: [],
24
+ name: "controllerFactory",
25
+ outputs: [
26
+ {
27
+ internalType: "address",
28
+ name: "",
29
+ type: "address",
30
+ },
31
+ ],
32
+ stateMutability: "view",
33
+ type: "function",
34
+ },
35
+ {
36
+ inputs: [],
37
+ name: "getAllControllersDataForBorrowers",
38
+ outputs: [
39
+ {
40
+ components: [
41
+ {
42
+ internalType: "address",
43
+ name: "borrower",
44
+ type: "address",
45
+ },
46
+ {
47
+ internalType: "address",
48
+ name: "controller",
49
+ type: "address",
50
+ },
51
+ {
52
+ internalType: "address",
53
+ name: "controllerFactory",
54
+ type: "address",
55
+ },
56
+ {
57
+ internalType: "bool",
58
+ name: "isRegisteredBorrower",
59
+ type: "bool",
60
+ },
61
+ {
62
+ internalType: "bool",
63
+ name: "hasDeployedController",
64
+ type: "bool",
65
+ },
66
+ {
67
+ components: [
68
+ {
69
+ internalType: "address",
70
+ name: "feeRecipient",
71
+ type: "address",
72
+ },
73
+ {
74
+ internalType: "uint16",
75
+ name: "protocolFeeBips",
76
+ type: "uint16",
77
+ },
78
+ {
79
+ components: [
80
+ {
81
+ internalType: "address",
82
+ name: "token",
83
+ type: "address",
84
+ },
85
+ {
86
+ internalType: "string",
87
+ name: "name",
88
+ type: "string",
89
+ },
90
+ {
91
+ internalType: "string",
92
+ name: "symbol",
93
+ type: "string",
94
+ },
95
+ {
96
+ internalType: "uint256",
97
+ name: "decimals",
98
+ type: "uint256",
99
+ },
100
+ {
101
+ internalType: "bool",
102
+ name: "isMock",
103
+ type: "bool",
104
+ },
105
+ ],
106
+ internalType: "struct TokenMetadata",
107
+ name: "originationFeeToken",
108
+ type: "tuple",
109
+ },
110
+ {
111
+ internalType: "uint256",
112
+ name: "originationFeeAmount",
113
+ type: "uint256",
114
+ },
115
+ ],
116
+ internalType: "struct FeeConfiguration",
117
+ name: "fees",
118
+ type: "tuple",
119
+ },
120
+ {
121
+ components: [
122
+ {
123
+ internalType: "uint32",
124
+ name: "minimumDelinquencyGracePeriod",
125
+ type: "uint32",
126
+ },
127
+ {
128
+ internalType: "uint32",
129
+ name: "maximumDelinquencyGracePeriod",
130
+ type: "uint32",
131
+ },
132
+ {
133
+ internalType: "uint16",
134
+ name: "minimumReserveRatioBips",
135
+ type: "uint16",
136
+ },
137
+ {
138
+ internalType: "uint16",
139
+ name: "maximumReserveRatioBips",
140
+ type: "uint16",
141
+ },
142
+ {
143
+ internalType: "uint16",
144
+ name: "minimumDelinquencyFeeBips",
145
+ type: "uint16",
146
+ },
147
+ {
148
+ internalType: "uint16",
149
+ name: "maximumDelinquencyFeeBips",
150
+ type: "uint16",
151
+ },
152
+ {
153
+ internalType: "uint32",
154
+ name: "minimumWithdrawalBatchDuration",
155
+ type: "uint32",
156
+ },
157
+ {
158
+ internalType: "uint32",
159
+ name: "maximumWithdrawalBatchDuration",
160
+ type: "uint32",
161
+ },
162
+ {
163
+ internalType: "uint16",
164
+ name: "minimumAnnualInterestBips",
165
+ type: "uint16",
166
+ },
167
+ {
168
+ internalType: "uint16",
169
+ name: "maximumAnnualInterestBips",
170
+ type: "uint16",
171
+ },
172
+ ],
173
+ internalType: "struct MarketParameterConstraints",
174
+ name: "constraints",
175
+ type: "tuple",
176
+ },
177
+ {
178
+ components: [
179
+ {
180
+ components: [
181
+ {
182
+ internalType: "address",
183
+ name: "token",
184
+ type: "address",
185
+ },
186
+ {
187
+ internalType: "string",
188
+ name: "name",
189
+ type: "string",
190
+ },
191
+ {
192
+ internalType: "string",
193
+ name: "symbol",
194
+ type: "string",
195
+ },
196
+ {
197
+ internalType: "uint256",
198
+ name: "decimals",
199
+ type: "uint256",
200
+ },
201
+ {
202
+ internalType: "bool",
203
+ name: "isMock",
204
+ type: "bool",
205
+ },
206
+ ],
207
+ internalType: "struct TokenMetadata",
208
+ name: "marketToken",
209
+ type: "tuple",
210
+ },
211
+ {
212
+ components: [
213
+ {
214
+ internalType: "address",
215
+ name: "token",
216
+ type: "address",
217
+ },
218
+ {
219
+ internalType: "string",
220
+ name: "name",
221
+ type: "string",
222
+ },
223
+ {
224
+ internalType: "string",
225
+ name: "symbol",
226
+ type: "string",
227
+ },
228
+ {
229
+ internalType: "uint256",
230
+ name: "decimals",
231
+ type: "uint256",
232
+ },
233
+ {
234
+ internalType: "bool",
235
+ name: "isMock",
236
+ type: "bool",
237
+ },
238
+ ],
239
+ internalType: "struct TokenMetadata",
240
+ name: "underlyingToken",
241
+ type: "tuple",
242
+ },
243
+ {
244
+ internalType: "address",
245
+ name: "borrower",
246
+ type: "address",
247
+ },
248
+ {
249
+ internalType: "address",
250
+ name: "controller",
251
+ type: "address",
252
+ },
253
+ {
254
+ internalType: "address",
255
+ name: "feeRecipient",
256
+ type: "address",
257
+ },
258
+ {
259
+ internalType: "uint256",
260
+ name: "protocolFeeBips",
261
+ type: "uint256",
262
+ },
263
+ {
264
+ internalType: "uint256",
265
+ name: "delinquencyFeeBips",
266
+ type: "uint256",
267
+ },
268
+ {
269
+ internalType: "uint256",
270
+ name: "delinquencyGracePeriod",
271
+ type: "uint256",
272
+ },
273
+ {
274
+ internalType: "uint256",
275
+ name: "reserveRatioBips",
276
+ type: "uint256",
277
+ },
278
+ {
279
+ internalType: "uint256",
280
+ name: "annualInterestBips",
281
+ type: "uint256",
282
+ },
283
+ {
284
+ internalType: "bool",
285
+ name: "temporaryReserveRatio",
286
+ type: "bool",
287
+ },
288
+ {
289
+ internalType: "uint256",
290
+ name: "originalReserveRatioBips",
291
+ type: "uint256",
292
+ },
293
+ {
294
+ internalType: "uint256",
295
+ name: "temporaryReserveRatioExpiry",
296
+ type: "uint256",
297
+ },
298
+ {
299
+ internalType: "bool",
300
+ name: "isClosed",
301
+ type: "bool",
302
+ },
303
+ {
304
+ internalType: "uint256",
305
+ name: "scaleFactor",
306
+ type: "uint256",
307
+ },
308
+ {
309
+ internalType: "uint256",
310
+ name: "totalSupply",
311
+ type: "uint256",
312
+ },
313
+ {
314
+ internalType: "uint256",
315
+ name: "maxTotalSupply",
316
+ type: "uint256",
317
+ },
318
+ {
319
+ internalType: "uint256",
320
+ name: "scaledTotalSupply",
321
+ type: "uint256",
322
+ },
323
+ {
324
+ internalType: "uint256",
325
+ name: "totalAssets",
326
+ type: "uint256",
327
+ },
328
+ {
329
+ internalType: "uint256",
330
+ name: "lastAccruedProtocolFees",
331
+ type: "uint256",
332
+ },
333
+ {
334
+ internalType: "uint256",
335
+ name: "normalizedUnclaimedWithdrawals",
336
+ type: "uint256",
337
+ },
338
+ {
339
+ internalType: "uint256",
340
+ name: "scaledPendingWithdrawals",
341
+ type: "uint256",
342
+ },
343
+ {
344
+ internalType: "uint256",
345
+ name: "pendingWithdrawalExpiry",
346
+ type: "uint256",
347
+ },
348
+ {
349
+ internalType: "bool",
350
+ name: "isDelinquent",
351
+ type: "bool",
352
+ },
353
+ {
354
+ internalType: "uint256",
355
+ name: "timeDelinquent",
356
+ type: "uint256",
357
+ },
358
+ {
359
+ internalType: "uint256",
360
+ name: "lastInterestAccruedTimestamp",
361
+ type: "uint256",
362
+ },
363
+ {
364
+ internalType: "uint32[]",
365
+ name: "unpaidWithdrawalBatchExpiries",
366
+ type: "uint32[]",
367
+ },
368
+ {
369
+ internalType: "uint256",
370
+ name: "coverageLiquidity",
371
+ type: "uint256",
372
+ },
373
+ {
374
+ internalType: "uint256",
375
+ name: "borrowableAssets",
376
+ type: "uint256",
377
+ },
378
+ ],
379
+ internalType: "struct MarketData[]",
380
+ name: "markets",
381
+ type: "tuple[]",
382
+ },
383
+ {
384
+ internalType: "uint256",
385
+ name: "borrowerOriginationFeeBalance",
386
+ type: "uint256",
387
+ },
388
+ {
389
+ internalType: "uint256",
390
+ name: "borrowerOriginationFeeApproval",
391
+ type: "uint256",
392
+ },
393
+ ],
394
+ internalType: "struct ControllerData[]",
395
+ name: "data",
396
+ type: "tuple[]",
397
+ },
398
+ ],
399
+ stateMutability: "view",
400
+ type: "function",
401
+ },
402
+ {
403
+ inputs: [],
404
+ name: "getAllMarketsData",
405
+ outputs: [
406
+ {
407
+ components: [
408
+ {
409
+ components: [
410
+ {
411
+ internalType: "address",
412
+ name: "token",
413
+ type: "address",
414
+ },
415
+ {
416
+ internalType: "string",
417
+ name: "name",
418
+ type: "string",
419
+ },
420
+ {
421
+ internalType: "string",
422
+ name: "symbol",
423
+ type: "string",
424
+ },
425
+ {
426
+ internalType: "uint256",
427
+ name: "decimals",
428
+ type: "uint256",
429
+ },
430
+ {
431
+ internalType: "bool",
432
+ name: "isMock",
433
+ type: "bool",
434
+ },
435
+ ],
436
+ internalType: "struct TokenMetadata",
437
+ name: "marketToken",
438
+ type: "tuple",
439
+ },
440
+ {
441
+ components: [
442
+ {
443
+ internalType: "address",
444
+ name: "token",
445
+ type: "address",
446
+ },
447
+ {
448
+ internalType: "string",
449
+ name: "name",
450
+ type: "string",
451
+ },
452
+ {
453
+ internalType: "string",
454
+ name: "symbol",
455
+ type: "string",
456
+ },
457
+ {
458
+ internalType: "uint256",
459
+ name: "decimals",
460
+ type: "uint256",
461
+ },
462
+ {
463
+ internalType: "bool",
464
+ name: "isMock",
465
+ type: "bool",
466
+ },
467
+ ],
468
+ internalType: "struct TokenMetadata",
469
+ name: "underlyingToken",
470
+ type: "tuple",
471
+ },
472
+ {
473
+ internalType: "address",
474
+ name: "borrower",
475
+ type: "address",
476
+ },
477
+ {
478
+ internalType: "address",
479
+ name: "controller",
480
+ type: "address",
481
+ },
482
+ {
483
+ internalType: "address",
484
+ name: "feeRecipient",
485
+ type: "address",
486
+ },
487
+ {
488
+ internalType: "uint256",
489
+ name: "protocolFeeBips",
490
+ type: "uint256",
491
+ },
492
+ {
493
+ internalType: "uint256",
494
+ name: "delinquencyFeeBips",
495
+ type: "uint256",
496
+ },
497
+ {
498
+ internalType: "uint256",
499
+ name: "delinquencyGracePeriod",
500
+ type: "uint256",
501
+ },
502
+ {
503
+ internalType: "uint256",
504
+ name: "reserveRatioBips",
505
+ type: "uint256",
506
+ },
507
+ {
508
+ internalType: "uint256",
509
+ name: "annualInterestBips",
510
+ type: "uint256",
511
+ },
512
+ {
513
+ internalType: "bool",
514
+ name: "temporaryReserveRatio",
515
+ type: "bool",
516
+ },
517
+ {
518
+ internalType: "uint256",
519
+ name: "originalReserveRatioBips",
520
+ type: "uint256",
521
+ },
522
+ {
523
+ internalType: "uint256",
524
+ name: "temporaryReserveRatioExpiry",
525
+ type: "uint256",
526
+ },
527
+ {
528
+ internalType: "bool",
529
+ name: "isClosed",
530
+ type: "bool",
531
+ },
532
+ {
533
+ internalType: "uint256",
534
+ name: "scaleFactor",
535
+ type: "uint256",
536
+ },
537
+ {
538
+ internalType: "uint256",
539
+ name: "totalSupply",
540
+ type: "uint256",
541
+ },
542
+ {
543
+ internalType: "uint256",
544
+ name: "maxTotalSupply",
545
+ type: "uint256",
546
+ },
547
+ {
548
+ internalType: "uint256",
549
+ name: "scaledTotalSupply",
550
+ type: "uint256",
551
+ },
552
+ {
553
+ internalType: "uint256",
554
+ name: "totalAssets",
555
+ type: "uint256",
556
+ },
557
+ {
558
+ internalType: "uint256",
559
+ name: "lastAccruedProtocolFees",
560
+ type: "uint256",
561
+ },
562
+ {
563
+ internalType: "uint256",
564
+ name: "normalizedUnclaimedWithdrawals",
565
+ type: "uint256",
566
+ },
567
+ {
568
+ internalType: "uint256",
569
+ name: "scaledPendingWithdrawals",
570
+ type: "uint256",
571
+ },
572
+ {
573
+ internalType: "uint256",
574
+ name: "pendingWithdrawalExpiry",
575
+ type: "uint256",
576
+ },
577
+ {
578
+ internalType: "bool",
579
+ name: "isDelinquent",
580
+ type: "bool",
581
+ },
582
+ {
583
+ internalType: "uint256",
584
+ name: "timeDelinquent",
585
+ type: "uint256",
586
+ },
587
+ {
588
+ internalType: "uint256",
589
+ name: "lastInterestAccruedTimestamp",
590
+ type: "uint256",
591
+ },
592
+ {
593
+ internalType: "uint32[]",
594
+ name: "unpaidWithdrawalBatchExpiries",
595
+ type: "uint32[]",
596
+ },
597
+ {
598
+ internalType: "uint256",
599
+ name: "coverageLiquidity",
600
+ type: "uint256",
601
+ },
602
+ {
603
+ internalType: "uint256",
604
+ name: "borrowableAssets",
605
+ type: "uint256",
606
+ },
607
+ ],
608
+ internalType: "struct MarketData[]",
609
+ name: "data",
610
+ type: "tuple[]",
611
+ },
612
+ ],
613
+ stateMutability: "view",
614
+ type: "function",
615
+ },
616
+ {
617
+ inputs: [
618
+ {
619
+ internalType: "address",
620
+ name: "lender",
621
+ type: "address",
622
+ },
623
+ ],
624
+ name: "getAllMarketsDataWithLenderStatus",
625
+ outputs: [
626
+ {
627
+ components: [
628
+ {
629
+ components: [
630
+ {
631
+ components: [
632
+ {
633
+ internalType: "address",
634
+ name: "token",
635
+ type: "address",
636
+ },
637
+ {
638
+ internalType: "string",
639
+ name: "name",
640
+ type: "string",
641
+ },
642
+ {
643
+ internalType: "string",
644
+ name: "symbol",
645
+ type: "string",
646
+ },
647
+ {
648
+ internalType: "uint256",
649
+ name: "decimals",
650
+ type: "uint256",
651
+ },
652
+ {
653
+ internalType: "bool",
654
+ name: "isMock",
655
+ type: "bool",
656
+ },
657
+ ],
658
+ internalType: "struct TokenMetadata",
659
+ name: "marketToken",
660
+ type: "tuple",
661
+ },
662
+ {
663
+ components: [
664
+ {
665
+ internalType: "address",
666
+ name: "token",
667
+ type: "address",
668
+ },
669
+ {
670
+ internalType: "string",
671
+ name: "name",
672
+ type: "string",
673
+ },
674
+ {
675
+ internalType: "string",
676
+ name: "symbol",
677
+ type: "string",
678
+ },
679
+ {
680
+ internalType: "uint256",
681
+ name: "decimals",
682
+ type: "uint256",
683
+ },
684
+ {
685
+ internalType: "bool",
686
+ name: "isMock",
687
+ type: "bool",
688
+ },
689
+ ],
690
+ internalType: "struct TokenMetadata",
691
+ name: "underlyingToken",
692
+ type: "tuple",
693
+ },
694
+ {
695
+ internalType: "address",
696
+ name: "borrower",
697
+ type: "address",
698
+ },
699
+ {
700
+ internalType: "address",
701
+ name: "controller",
702
+ type: "address",
703
+ },
704
+ {
705
+ internalType: "address",
706
+ name: "feeRecipient",
707
+ type: "address",
708
+ },
709
+ {
710
+ internalType: "uint256",
711
+ name: "protocolFeeBips",
712
+ type: "uint256",
713
+ },
714
+ {
715
+ internalType: "uint256",
716
+ name: "delinquencyFeeBips",
717
+ type: "uint256",
718
+ },
719
+ {
720
+ internalType: "uint256",
721
+ name: "delinquencyGracePeriod",
722
+ type: "uint256",
723
+ },
724
+ {
725
+ internalType: "uint256",
726
+ name: "reserveRatioBips",
727
+ type: "uint256",
728
+ },
729
+ {
730
+ internalType: "uint256",
731
+ name: "annualInterestBips",
732
+ type: "uint256",
733
+ },
734
+ {
735
+ internalType: "bool",
736
+ name: "temporaryReserveRatio",
737
+ type: "bool",
738
+ },
739
+ {
740
+ internalType: "uint256",
741
+ name: "originalReserveRatioBips",
742
+ type: "uint256",
743
+ },
744
+ {
745
+ internalType: "uint256",
746
+ name: "temporaryReserveRatioExpiry",
747
+ type: "uint256",
748
+ },
749
+ {
750
+ internalType: "bool",
751
+ name: "isClosed",
752
+ type: "bool",
753
+ },
754
+ {
755
+ internalType: "uint256",
756
+ name: "scaleFactor",
757
+ type: "uint256",
758
+ },
759
+ {
760
+ internalType: "uint256",
761
+ name: "totalSupply",
762
+ type: "uint256",
763
+ },
764
+ {
765
+ internalType: "uint256",
766
+ name: "maxTotalSupply",
767
+ type: "uint256",
768
+ },
769
+ {
770
+ internalType: "uint256",
771
+ name: "scaledTotalSupply",
772
+ type: "uint256",
773
+ },
774
+ {
775
+ internalType: "uint256",
776
+ name: "totalAssets",
777
+ type: "uint256",
778
+ },
779
+ {
780
+ internalType: "uint256",
781
+ name: "lastAccruedProtocolFees",
782
+ type: "uint256",
783
+ },
784
+ {
785
+ internalType: "uint256",
786
+ name: "normalizedUnclaimedWithdrawals",
787
+ type: "uint256",
788
+ },
789
+ {
790
+ internalType: "uint256",
791
+ name: "scaledPendingWithdrawals",
792
+ type: "uint256",
793
+ },
794
+ {
795
+ internalType: "uint256",
796
+ name: "pendingWithdrawalExpiry",
797
+ type: "uint256",
798
+ },
799
+ {
800
+ internalType: "bool",
801
+ name: "isDelinquent",
802
+ type: "bool",
803
+ },
804
+ {
805
+ internalType: "uint256",
806
+ name: "timeDelinquent",
807
+ type: "uint256",
808
+ },
809
+ {
810
+ internalType: "uint256",
811
+ name: "lastInterestAccruedTimestamp",
812
+ type: "uint256",
813
+ },
814
+ {
815
+ internalType: "uint32[]",
816
+ name: "unpaidWithdrawalBatchExpiries",
817
+ type: "uint32[]",
818
+ },
819
+ {
820
+ internalType: "uint256",
821
+ name: "coverageLiquidity",
822
+ type: "uint256",
823
+ },
824
+ {
825
+ internalType: "uint256",
826
+ name: "borrowableAssets",
827
+ type: "uint256",
828
+ },
829
+ ],
830
+ internalType: "struct MarketData",
831
+ name: "market",
832
+ type: "tuple",
833
+ },
834
+ {
835
+ components: [
836
+ {
837
+ internalType: "address",
838
+ name: "lender",
839
+ type: "address",
840
+ },
841
+ {
842
+ internalType: "bool",
843
+ name: "isAuthorizedOnController",
844
+ type: "bool",
845
+ },
846
+ {
847
+ internalType: "enum AuthRole",
848
+ name: "role",
849
+ type: "uint8",
850
+ },
851
+ {
852
+ internalType: "uint256",
853
+ name: "scaledBalance",
854
+ type: "uint256",
855
+ },
856
+ {
857
+ internalType: "uint256",
858
+ name: "normalizedBalance",
859
+ type: "uint256",
860
+ },
861
+ {
862
+ internalType: "uint256",
863
+ name: "underlyingBalance",
864
+ type: "uint256",
865
+ },
866
+ {
867
+ internalType: "uint256",
868
+ name: "underlyingApproval",
869
+ type: "uint256",
870
+ },
871
+ ],
872
+ internalType: "struct MarketLenderStatus",
873
+ name: "lenderStatus",
874
+ type: "tuple",
875
+ },
876
+ ],
877
+ internalType: "struct MarketDataWithLenderStatus[]",
878
+ name: "data",
879
+ type: "tuple[]",
880
+ },
881
+ ],
882
+ stateMutability: "view",
883
+ type: "function",
884
+ },
885
+ {
886
+ inputs: [
887
+ {
888
+ internalType: "address",
889
+ name: "lender",
890
+ type: "address",
891
+ },
892
+ ],
893
+ name: "getAllMarketsLenderStatus",
894
+ outputs: [
895
+ {
896
+ components: [
897
+ {
898
+ internalType: "address",
899
+ name: "lender",
900
+ type: "address",
901
+ },
902
+ {
903
+ internalType: "bool",
904
+ name: "isAuthorizedOnController",
905
+ type: "bool",
906
+ },
907
+ {
908
+ internalType: "enum AuthRole",
909
+ name: "role",
910
+ type: "uint8",
911
+ },
912
+ {
913
+ internalType: "uint256",
914
+ name: "scaledBalance",
915
+ type: "uint256",
916
+ },
917
+ {
918
+ internalType: "uint256",
919
+ name: "normalizedBalance",
920
+ type: "uint256",
921
+ },
922
+ {
923
+ internalType: "uint256",
924
+ name: "underlyingBalance",
925
+ type: "uint256",
926
+ },
927
+ {
928
+ internalType: "uint256",
929
+ name: "underlyingApproval",
930
+ type: "uint256",
931
+ },
932
+ ],
933
+ internalType: "struct MarketLenderStatus[]",
934
+ name: "status",
935
+ type: "tuple[]",
936
+ },
937
+ ],
938
+ stateMutability: "view",
939
+ type: "function",
940
+ },
941
+ {
942
+ inputs: [],
943
+ name: "getArchControllerData",
944
+ outputs: [
945
+ {
946
+ components: [
947
+ {
948
+ internalType: "address",
949
+ name: "archController",
950
+ type: "address",
951
+ },
952
+ {
953
+ internalType: "uint256",
954
+ name: "borrowersCount",
955
+ type: "uint256",
956
+ },
957
+ {
958
+ internalType: "address[]",
959
+ name: "borrowers",
960
+ type: "address[]",
961
+ },
962
+ {
963
+ internalType: "uint256",
964
+ name: "controllerFactoriesCount",
965
+ type: "uint256",
966
+ },
967
+ {
968
+ internalType: "address[]",
969
+ name: "controllerFactories",
970
+ type: "address[]",
971
+ },
972
+ {
973
+ internalType: "uint256",
974
+ name: "controllersCount",
975
+ type: "uint256",
976
+ },
977
+ {
978
+ internalType: "address[]",
979
+ name: "controllers",
980
+ type: "address[]",
981
+ },
982
+ {
983
+ internalType: "uint256",
984
+ name: "marketsCount",
985
+ type: "uint256",
986
+ },
987
+ {
988
+ internalType: "address[]",
989
+ name: "markets",
990
+ type: "address[]",
991
+ },
992
+ ],
993
+ internalType: "struct ArchControllerData",
994
+ name: "data",
995
+ type: "tuple",
996
+ },
997
+ ],
998
+ stateMutability: "view",
999
+ type: "function",
1000
+ },
1001
+ {
1002
+ inputs: [
1003
+ {
1004
+ internalType: "address",
1005
+ name: "borrower",
1006
+ type: "address",
1007
+ },
1008
+ ],
1009
+ name: "getControllerDataForBorrower",
1010
+ outputs: [
1011
+ {
1012
+ components: [
1013
+ {
1014
+ internalType: "address",
1015
+ name: "borrower",
1016
+ type: "address",
1017
+ },
1018
+ {
1019
+ internalType: "address",
1020
+ name: "controller",
1021
+ type: "address",
1022
+ },
1023
+ {
1024
+ internalType: "address",
1025
+ name: "controllerFactory",
1026
+ type: "address",
1027
+ },
1028
+ {
1029
+ internalType: "bool",
1030
+ name: "isRegisteredBorrower",
1031
+ type: "bool",
1032
+ },
1033
+ {
1034
+ internalType: "bool",
1035
+ name: "hasDeployedController",
1036
+ type: "bool",
1037
+ },
1038
+ {
1039
+ components: [
1040
+ {
1041
+ internalType: "address",
1042
+ name: "feeRecipient",
1043
+ type: "address",
1044
+ },
1045
+ {
1046
+ internalType: "uint16",
1047
+ name: "protocolFeeBips",
1048
+ type: "uint16",
1049
+ },
1050
+ {
1051
+ components: [
1052
+ {
1053
+ internalType: "address",
1054
+ name: "token",
1055
+ type: "address",
1056
+ },
1057
+ {
1058
+ internalType: "string",
1059
+ name: "name",
1060
+ type: "string",
1061
+ },
1062
+ {
1063
+ internalType: "string",
1064
+ name: "symbol",
1065
+ type: "string",
1066
+ },
1067
+ {
1068
+ internalType: "uint256",
1069
+ name: "decimals",
1070
+ type: "uint256",
1071
+ },
1072
+ {
1073
+ internalType: "bool",
1074
+ name: "isMock",
1075
+ type: "bool",
1076
+ },
1077
+ ],
1078
+ internalType: "struct TokenMetadata",
1079
+ name: "originationFeeToken",
1080
+ type: "tuple",
1081
+ },
1082
+ {
1083
+ internalType: "uint256",
1084
+ name: "originationFeeAmount",
1085
+ type: "uint256",
1086
+ },
1087
+ ],
1088
+ internalType: "struct FeeConfiguration",
1089
+ name: "fees",
1090
+ type: "tuple",
1091
+ },
1092
+ {
1093
+ components: [
1094
+ {
1095
+ internalType: "uint32",
1096
+ name: "minimumDelinquencyGracePeriod",
1097
+ type: "uint32",
1098
+ },
1099
+ {
1100
+ internalType: "uint32",
1101
+ name: "maximumDelinquencyGracePeriod",
1102
+ type: "uint32",
1103
+ },
1104
+ {
1105
+ internalType: "uint16",
1106
+ name: "minimumReserveRatioBips",
1107
+ type: "uint16",
1108
+ },
1109
+ {
1110
+ internalType: "uint16",
1111
+ name: "maximumReserveRatioBips",
1112
+ type: "uint16",
1113
+ },
1114
+ {
1115
+ internalType: "uint16",
1116
+ name: "minimumDelinquencyFeeBips",
1117
+ type: "uint16",
1118
+ },
1119
+ {
1120
+ internalType: "uint16",
1121
+ name: "maximumDelinquencyFeeBips",
1122
+ type: "uint16",
1123
+ },
1124
+ {
1125
+ internalType: "uint32",
1126
+ name: "minimumWithdrawalBatchDuration",
1127
+ type: "uint32",
1128
+ },
1129
+ {
1130
+ internalType: "uint32",
1131
+ name: "maximumWithdrawalBatchDuration",
1132
+ type: "uint32",
1133
+ },
1134
+ {
1135
+ internalType: "uint16",
1136
+ name: "minimumAnnualInterestBips",
1137
+ type: "uint16",
1138
+ },
1139
+ {
1140
+ internalType: "uint16",
1141
+ name: "maximumAnnualInterestBips",
1142
+ type: "uint16",
1143
+ },
1144
+ ],
1145
+ internalType: "struct MarketParameterConstraints",
1146
+ name: "constraints",
1147
+ type: "tuple",
1148
+ },
1149
+ {
1150
+ components: [
1151
+ {
1152
+ components: [
1153
+ {
1154
+ internalType: "address",
1155
+ name: "token",
1156
+ type: "address",
1157
+ },
1158
+ {
1159
+ internalType: "string",
1160
+ name: "name",
1161
+ type: "string",
1162
+ },
1163
+ {
1164
+ internalType: "string",
1165
+ name: "symbol",
1166
+ type: "string",
1167
+ },
1168
+ {
1169
+ internalType: "uint256",
1170
+ name: "decimals",
1171
+ type: "uint256",
1172
+ },
1173
+ {
1174
+ internalType: "bool",
1175
+ name: "isMock",
1176
+ type: "bool",
1177
+ },
1178
+ ],
1179
+ internalType: "struct TokenMetadata",
1180
+ name: "marketToken",
1181
+ type: "tuple",
1182
+ },
1183
+ {
1184
+ components: [
1185
+ {
1186
+ internalType: "address",
1187
+ name: "token",
1188
+ type: "address",
1189
+ },
1190
+ {
1191
+ internalType: "string",
1192
+ name: "name",
1193
+ type: "string",
1194
+ },
1195
+ {
1196
+ internalType: "string",
1197
+ name: "symbol",
1198
+ type: "string",
1199
+ },
1200
+ {
1201
+ internalType: "uint256",
1202
+ name: "decimals",
1203
+ type: "uint256",
1204
+ },
1205
+ {
1206
+ internalType: "bool",
1207
+ name: "isMock",
1208
+ type: "bool",
1209
+ },
1210
+ ],
1211
+ internalType: "struct TokenMetadata",
1212
+ name: "underlyingToken",
1213
+ type: "tuple",
1214
+ },
1215
+ {
1216
+ internalType: "address",
1217
+ name: "borrower",
1218
+ type: "address",
1219
+ },
1220
+ {
1221
+ internalType: "address",
1222
+ name: "controller",
1223
+ type: "address",
1224
+ },
1225
+ {
1226
+ internalType: "address",
1227
+ name: "feeRecipient",
1228
+ type: "address",
1229
+ },
1230
+ {
1231
+ internalType: "uint256",
1232
+ name: "protocolFeeBips",
1233
+ type: "uint256",
1234
+ },
1235
+ {
1236
+ internalType: "uint256",
1237
+ name: "delinquencyFeeBips",
1238
+ type: "uint256",
1239
+ },
1240
+ {
1241
+ internalType: "uint256",
1242
+ name: "delinquencyGracePeriod",
1243
+ type: "uint256",
1244
+ },
1245
+ {
1246
+ internalType: "uint256",
1247
+ name: "reserveRatioBips",
1248
+ type: "uint256",
1249
+ },
1250
+ {
1251
+ internalType: "uint256",
1252
+ name: "annualInterestBips",
1253
+ type: "uint256",
1254
+ },
1255
+ {
1256
+ internalType: "bool",
1257
+ name: "temporaryReserveRatio",
1258
+ type: "bool",
1259
+ },
1260
+ {
1261
+ internalType: "uint256",
1262
+ name: "originalReserveRatioBips",
1263
+ type: "uint256",
1264
+ },
1265
+ {
1266
+ internalType: "uint256",
1267
+ name: "temporaryReserveRatioExpiry",
1268
+ type: "uint256",
1269
+ },
1270
+ {
1271
+ internalType: "bool",
1272
+ name: "isClosed",
1273
+ type: "bool",
1274
+ },
1275
+ {
1276
+ internalType: "uint256",
1277
+ name: "scaleFactor",
1278
+ type: "uint256",
1279
+ },
1280
+ {
1281
+ internalType: "uint256",
1282
+ name: "totalSupply",
1283
+ type: "uint256",
1284
+ },
1285
+ {
1286
+ internalType: "uint256",
1287
+ name: "maxTotalSupply",
1288
+ type: "uint256",
1289
+ },
1290
+ {
1291
+ internalType: "uint256",
1292
+ name: "scaledTotalSupply",
1293
+ type: "uint256",
1294
+ },
1295
+ {
1296
+ internalType: "uint256",
1297
+ name: "totalAssets",
1298
+ type: "uint256",
1299
+ },
1300
+ {
1301
+ internalType: "uint256",
1302
+ name: "lastAccruedProtocolFees",
1303
+ type: "uint256",
1304
+ },
1305
+ {
1306
+ internalType: "uint256",
1307
+ name: "normalizedUnclaimedWithdrawals",
1308
+ type: "uint256",
1309
+ },
1310
+ {
1311
+ internalType: "uint256",
1312
+ name: "scaledPendingWithdrawals",
1313
+ type: "uint256",
1314
+ },
1315
+ {
1316
+ internalType: "uint256",
1317
+ name: "pendingWithdrawalExpiry",
1318
+ type: "uint256",
1319
+ },
1320
+ {
1321
+ internalType: "bool",
1322
+ name: "isDelinquent",
1323
+ type: "bool",
1324
+ },
1325
+ {
1326
+ internalType: "uint256",
1327
+ name: "timeDelinquent",
1328
+ type: "uint256",
1329
+ },
1330
+ {
1331
+ internalType: "uint256",
1332
+ name: "lastInterestAccruedTimestamp",
1333
+ type: "uint256",
1334
+ },
1335
+ {
1336
+ internalType: "uint32[]",
1337
+ name: "unpaidWithdrawalBatchExpiries",
1338
+ type: "uint32[]",
1339
+ },
1340
+ {
1341
+ internalType: "uint256",
1342
+ name: "coverageLiquidity",
1343
+ type: "uint256",
1344
+ },
1345
+ {
1346
+ internalType: "uint256",
1347
+ name: "borrowableAssets",
1348
+ type: "uint256",
1349
+ },
1350
+ ],
1351
+ internalType: "struct MarketData[]",
1352
+ name: "markets",
1353
+ type: "tuple[]",
1354
+ },
1355
+ {
1356
+ internalType: "uint256",
1357
+ name: "borrowerOriginationFeeBalance",
1358
+ type: "uint256",
1359
+ },
1360
+ {
1361
+ internalType: "uint256",
1362
+ name: "borrowerOriginationFeeApproval",
1363
+ type: "uint256",
1364
+ },
1365
+ ],
1366
+ internalType: "struct ControllerData",
1367
+ name: "data",
1368
+ type: "tuple",
1369
+ },
1370
+ ],
1371
+ stateMutability: "view",
1372
+ type: "function",
1373
+ },
1374
+ {
1375
+ inputs: [
1376
+ {
1377
+ internalType: "address[]",
1378
+ name: "borrowers",
1379
+ type: "address[]",
1380
+ },
1381
+ ],
1382
+ name: "getControllersDataForBorrowers",
1383
+ outputs: [
1384
+ {
1385
+ components: [
1386
+ {
1387
+ internalType: "address",
1388
+ name: "borrower",
1389
+ type: "address",
1390
+ },
1391
+ {
1392
+ internalType: "address",
1393
+ name: "controller",
1394
+ type: "address",
1395
+ },
1396
+ {
1397
+ internalType: "address",
1398
+ name: "controllerFactory",
1399
+ type: "address",
1400
+ },
1401
+ {
1402
+ internalType: "bool",
1403
+ name: "isRegisteredBorrower",
1404
+ type: "bool",
1405
+ },
1406
+ {
1407
+ internalType: "bool",
1408
+ name: "hasDeployedController",
1409
+ type: "bool",
1410
+ },
1411
+ {
1412
+ components: [
1413
+ {
1414
+ internalType: "address",
1415
+ name: "feeRecipient",
1416
+ type: "address",
1417
+ },
1418
+ {
1419
+ internalType: "uint16",
1420
+ name: "protocolFeeBips",
1421
+ type: "uint16",
1422
+ },
1423
+ {
1424
+ components: [
1425
+ {
1426
+ internalType: "address",
1427
+ name: "token",
1428
+ type: "address",
1429
+ },
1430
+ {
1431
+ internalType: "string",
1432
+ name: "name",
1433
+ type: "string",
1434
+ },
1435
+ {
1436
+ internalType: "string",
1437
+ name: "symbol",
1438
+ type: "string",
1439
+ },
1440
+ {
1441
+ internalType: "uint256",
1442
+ name: "decimals",
1443
+ type: "uint256",
1444
+ },
1445
+ {
1446
+ internalType: "bool",
1447
+ name: "isMock",
1448
+ type: "bool",
1449
+ },
1450
+ ],
1451
+ internalType: "struct TokenMetadata",
1452
+ name: "originationFeeToken",
1453
+ type: "tuple",
1454
+ },
1455
+ {
1456
+ internalType: "uint256",
1457
+ name: "originationFeeAmount",
1458
+ type: "uint256",
1459
+ },
1460
+ ],
1461
+ internalType: "struct FeeConfiguration",
1462
+ name: "fees",
1463
+ type: "tuple",
1464
+ },
1465
+ {
1466
+ components: [
1467
+ {
1468
+ internalType: "uint32",
1469
+ name: "minimumDelinquencyGracePeriod",
1470
+ type: "uint32",
1471
+ },
1472
+ {
1473
+ internalType: "uint32",
1474
+ name: "maximumDelinquencyGracePeriod",
1475
+ type: "uint32",
1476
+ },
1477
+ {
1478
+ internalType: "uint16",
1479
+ name: "minimumReserveRatioBips",
1480
+ type: "uint16",
1481
+ },
1482
+ {
1483
+ internalType: "uint16",
1484
+ name: "maximumReserveRatioBips",
1485
+ type: "uint16",
1486
+ },
1487
+ {
1488
+ internalType: "uint16",
1489
+ name: "minimumDelinquencyFeeBips",
1490
+ type: "uint16",
1491
+ },
1492
+ {
1493
+ internalType: "uint16",
1494
+ name: "maximumDelinquencyFeeBips",
1495
+ type: "uint16",
1496
+ },
1497
+ {
1498
+ internalType: "uint32",
1499
+ name: "minimumWithdrawalBatchDuration",
1500
+ type: "uint32",
1501
+ },
1502
+ {
1503
+ internalType: "uint32",
1504
+ name: "maximumWithdrawalBatchDuration",
1505
+ type: "uint32",
1506
+ },
1507
+ {
1508
+ internalType: "uint16",
1509
+ name: "minimumAnnualInterestBips",
1510
+ type: "uint16",
1511
+ },
1512
+ {
1513
+ internalType: "uint16",
1514
+ name: "maximumAnnualInterestBips",
1515
+ type: "uint16",
1516
+ },
1517
+ ],
1518
+ internalType: "struct MarketParameterConstraints",
1519
+ name: "constraints",
1520
+ type: "tuple",
1521
+ },
1522
+ {
1523
+ components: [
1524
+ {
1525
+ components: [
1526
+ {
1527
+ internalType: "address",
1528
+ name: "token",
1529
+ type: "address",
1530
+ },
1531
+ {
1532
+ internalType: "string",
1533
+ name: "name",
1534
+ type: "string",
1535
+ },
1536
+ {
1537
+ internalType: "string",
1538
+ name: "symbol",
1539
+ type: "string",
1540
+ },
1541
+ {
1542
+ internalType: "uint256",
1543
+ name: "decimals",
1544
+ type: "uint256",
1545
+ },
1546
+ {
1547
+ internalType: "bool",
1548
+ name: "isMock",
1549
+ type: "bool",
1550
+ },
1551
+ ],
1552
+ internalType: "struct TokenMetadata",
1553
+ name: "marketToken",
1554
+ type: "tuple",
1555
+ },
1556
+ {
1557
+ components: [
1558
+ {
1559
+ internalType: "address",
1560
+ name: "token",
1561
+ type: "address",
1562
+ },
1563
+ {
1564
+ internalType: "string",
1565
+ name: "name",
1566
+ type: "string",
1567
+ },
1568
+ {
1569
+ internalType: "string",
1570
+ name: "symbol",
1571
+ type: "string",
1572
+ },
1573
+ {
1574
+ internalType: "uint256",
1575
+ name: "decimals",
1576
+ type: "uint256",
1577
+ },
1578
+ {
1579
+ internalType: "bool",
1580
+ name: "isMock",
1581
+ type: "bool",
1582
+ },
1583
+ ],
1584
+ internalType: "struct TokenMetadata",
1585
+ name: "underlyingToken",
1586
+ type: "tuple",
1587
+ },
1588
+ {
1589
+ internalType: "address",
1590
+ name: "borrower",
1591
+ type: "address",
1592
+ },
1593
+ {
1594
+ internalType: "address",
1595
+ name: "controller",
1596
+ type: "address",
1597
+ },
1598
+ {
1599
+ internalType: "address",
1600
+ name: "feeRecipient",
1601
+ type: "address",
1602
+ },
1603
+ {
1604
+ internalType: "uint256",
1605
+ name: "protocolFeeBips",
1606
+ type: "uint256",
1607
+ },
1608
+ {
1609
+ internalType: "uint256",
1610
+ name: "delinquencyFeeBips",
1611
+ type: "uint256",
1612
+ },
1613
+ {
1614
+ internalType: "uint256",
1615
+ name: "delinquencyGracePeriod",
1616
+ type: "uint256",
1617
+ },
1618
+ {
1619
+ internalType: "uint256",
1620
+ name: "reserveRatioBips",
1621
+ type: "uint256",
1622
+ },
1623
+ {
1624
+ internalType: "uint256",
1625
+ name: "annualInterestBips",
1626
+ type: "uint256",
1627
+ },
1628
+ {
1629
+ internalType: "bool",
1630
+ name: "temporaryReserveRatio",
1631
+ type: "bool",
1632
+ },
1633
+ {
1634
+ internalType: "uint256",
1635
+ name: "originalReserveRatioBips",
1636
+ type: "uint256",
1637
+ },
1638
+ {
1639
+ internalType: "uint256",
1640
+ name: "temporaryReserveRatioExpiry",
1641
+ type: "uint256",
1642
+ },
1643
+ {
1644
+ internalType: "bool",
1645
+ name: "isClosed",
1646
+ type: "bool",
1647
+ },
1648
+ {
1649
+ internalType: "uint256",
1650
+ name: "scaleFactor",
1651
+ type: "uint256",
1652
+ },
1653
+ {
1654
+ internalType: "uint256",
1655
+ name: "totalSupply",
1656
+ type: "uint256",
1657
+ },
1658
+ {
1659
+ internalType: "uint256",
1660
+ name: "maxTotalSupply",
1661
+ type: "uint256",
1662
+ },
1663
+ {
1664
+ internalType: "uint256",
1665
+ name: "scaledTotalSupply",
1666
+ type: "uint256",
1667
+ },
1668
+ {
1669
+ internalType: "uint256",
1670
+ name: "totalAssets",
1671
+ type: "uint256",
1672
+ },
1673
+ {
1674
+ internalType: "uint256",
1675
+ name: "lastAccruedProtocolFees",
1676
+ type: "uint256",
1677
+ },
1678
+ {
1679
+ internalType: "uint256",
1680
+ name: "normalizedUnclaimedWithdrawals",
1681
+ type: "uint256",
1682
+ },
1683
+ {
1684
+ internalType: "uint256",
1685
+ name: "scaledPendingWithdrawals",
1686
+ type: "uint256",
1687
+ },
1688
+ {
1689
+ internalType: "uint256",
1690
+ name: "pendingWithdrawalExpiry",
1691
+ type: "uint256",
1692
+ },
1693
+ {
1694
+ internalType: "bool",
1695
+ name: "isDelinquent",
1696
+ type: "bool",
1697
+ },
1698
+ {
1699
+ internalType: "uint256",
1700
+ name: "timeDelinquent",
1701
+ type: "uint256",
1702
+ },
1703
+ {
1704
+ internalType: "uint256",
1705
+ name: "lastInterestAccruedTimestamp",
1706
+ type: "uint256",
1707
+ },
1708
+ {
1709
+ internalType: "uint32[]",
1710
+ name: "unpaidWithdrawalBatchExpiries",
1711
+ type: "uint32[]",
1712
+ },
1713
+ {
1714
+ internalType: "uint256",
1715
+ name: "coverageLiquidity",
1716
+ type: "uint256",
1717
+ },
1718
+ {
1719
+ internalType: "uint256",
1720
+ name: "borrowableAssets",
1721
+ type: "uint256",
1722
+ },
1723
+ ],
1724
+ internalType: "struct MarketData[]",
1725
+ name: "markets",
1726
+ type: "tuple[]",
1727
+ },
1728
+ {
1729
+ internalType: "uint256",
1730
+ name: "borrowerOriginationFeeBalance",
1731
+ type: "uint256",
1732
+ },
1733
+ {
1734
+ internalType: "uint256",
1735
+ name: "borrowerOriginationFeeApproval",
1736
+ type: "uint256",
1737
+ },
1738
+ ],
1739
+ internalType: "struct ControllerData[]",
1740
+ name: "data",
1741
+ type: "tuple[]",
1742
+ },
1743
+ ],
1744
+ stateMutability: "view",
1745
+ type: "function",
1746
+ },
1747
+ {
1748
+ inputs: [
1749
+ {
1750
+ internalType: "address",
1751
+ name: "market",
1752
+ type: "address",
1753
+ },
1754
+ ],
1755
+ name: "getMarketData",
1756
+ outputs: [
1757
+ {
1758
+ components: [
1759
+ {
1760
+ components: [
1761
+ {
1762
+ internalType: "address",
1763
+ name: "token",
1764
+ type: "address",
1765
+ },
1766
+ {
1767
+ internalType: "string",
1768
+ name: "name",
1769
+ type: "string",
1770
+ },
1771
+ {
1772
+ internalType: "string",
1773
+ name: "symbol",
1774
+ type: "string",
1775
+ },
1776
+ {
1777
+ internalType: "uint256",
1778
+ name: "decimals",
1779
+ type: "uint256",
1780
+ },
1781
+ {
1782
+ internalType: "bool",
1783
+ name: "isMock",
1784
+ type: "bool",
1785
+ },
1786
+ ],
1787
+ internalType: "struct TokenMetadata",
1788
+ name: "marketToken",
1789
+ type: "tuple",
1790
+ },
1791
+ {
1792
+ components: [
1793
+ {
1794
+ internalType: "address",
1795
+ name: "token",
1796
+ type: "address",
1797
+ },
1798
+ {
1799
+ internalType: "string",
1800
+ name: "name",
1801
+ type: "string",
1802
+ },
1803
+ {
1804
+ internalType: "string",
1805
+ name: "symbol",
1806
+ type: "string",
1807
+ },
1808
+ {
1809
+ internalType: "uint256",
1810
+ name: "decimals",
1811
+ type: "uint256",
1812
+ },
1813
+ {
1814
+ internalType: "bool",
1815
+ name: "isMock",
1816
+ type: "bool",
1817
+ },
1818
+ ],
1819
+ internalType: "struct TokenMetadata",
1820
+ name: "underlyingToken",
1821
+ type: "tuple",
1822
+ },
1823
+ {
1824
+ internalType: "address",
1825
+ name: "borrower",
1826
+ type: "address",
1827
+ },
1828
+ {
1829
+ internalType: "address",
1830
+ name: "controller",
1831
+ type: "address",
1832
+ },
1833
+ {
1834
+ internalType: "address",
1835
+ name: "feeRecipient",
1836
+ type: "address",
1837
+ },
1838
+ {
1839
+ internalType: "uint256",
1840
+ name: "protocolFeeBips",
1841
+ type: "uint256",
1842
+ },
1843
+ {
1844
+ internalType: "uint256",
1845
+ name: "delinquencyFeeBips",
1846
+ type: "uint256",
1847
+ },
1848
+ {
1849
+ internalType: "uint256",
1850
+ name: "delinquencyGracePeriod",
1851
+ type: "uint256",
1852
+ },
1853
+ {
1854
+ internalType: "uint256",
1855
+ name: "reserveRatioBips",
1856
+ type: "uint256",
1857
+ },
1858
+ {
1859
+ internalType: "uint256",
1860
+ name: "annualInterestBips",
1861
+ type: "uint256",
1862
+ },
1863
+ {
1864
+ internalType: "bool",
1865
+ name: "temporaryReserveRatio",
1866
+ type: "bool",
1867
+ },
1868
+ {
1869
+ internalType: "uint256",
1870
+ name: "originalReserveRatioBips",
1871
+ type: "uint256",
1872
+ },
1873
+ {
1874
+ internalType: "uint256",
1875
+ name: "temporaryReserveRatioExpiry",
1876
+ type: "uint256",
1877
+ },
1878
+ {
1879
+ internalType: "bool",
1880
+ name: "isClosed",
1881
+ type: "bool",
1882
+ },
1883
+ {
1884
+ internalType: "uint256",
1885
+ name: "scaleFactor",
1886
+ type: "uint256",
1887
+ },
1888
+ {
1889
+ internalType: "uint256",
1890
+ name: "totalSupply",
1891
+ type: "uint256",
1892
+ },
1893
+ {
1894
+ internalType: "uint256",
1895
+ name: "maxTotalSupply",
1896
+ type: "uint256",
1897
+ },
1898
+ {
1899
+ internalType: "uint256",
1900
+ name: "scaledTotalSupply",
1901
+ type: "uint256",
1902
+ },
1903
+ {
1904
+ internalType: "uint256",
1905
+ name: "totalAssets",
1906
+ type: "uint256",
1907
+ },
1908
+ {
1909
+ internalType: "uint256",
1910
+ name: "lastAccruedProtocolFees",
1911
+ type: "uint256",
1912
+ },
1913
+ {
1914
+ internalType: "uint256",
1915
+ name: "normalizedUnclaimedWithdrawals",
1916
+ type: "uint256",
1917
+ },
1918
+ {
1919
+ internalType: "uint256",
1920
+ name: "scaledPendingWithdrawals",
1921
+ type: "uint256",
1922
+ },
1923
+ {
1924
+ internalType: "uint256",
1925
+ name: "pendingWithdrawalExpiry",
1926
+ type: "uint256",
1927
+ },
1928
+ {
1929
+ internalType: "bool",
1930
+ name: "isDelinquent",
1931
+ type: "bool",
1932
+ },
1933
+ {
1934
+ internalType: "uint256",
1935
+ name: "timeDelinquent",
1936
+ type: "uint256",
1937
+ },
1938
+ {
1939
+ internalType: "uint256",
1940
+ name: "lastInterestAccruedTimestamp",
1941
+ type: "uint256",
1942
+ },
1943
+ {
1944
+ internalType: "uint32[]",
1945
+ name: "unpaidWithdrawalBatchExpiries",
1946
+ type: "uint32[]",
1947
+ },
1948
+ {
1949
+ internalType: "uint256",
1950
+ name: "coverageLiquidity",
1951
+ type: "uint256",
1952
+ },
1953
+ {
1954
+ internalType: "uint256",
1955
+ name: "borrowableAssets",
1956
+ type: "uint256",
1957
+ },
1958
+ ],
1959
+ internalType: "struct MarketData",
1960
+ name: "data",
1961
+ type: "tuple",
1962
+ },
1963
+ ],
1964
+ stateMutability: "view",
1965
+ type: "function",
1966
+ },
1967
+ {
1968
+ inputs: [
1969
+ {
1970
+ internalType: "address",
1971
+ name: "lender",
1972
+ type: "address",
1973
+ },
1974
+ {
1975
+ internalType: "address",
1976
+ name: "market",
1977
+ type: "address",
1978
+ },
1979
+ ],
1980
+ name: "getMarketDataWithLenderStatus",
1981
+ outputs: [
1982
+ {
1983
+ components: [
1984
+ {
1985
+ components: [
1986
+ {
1987
+ components: [
1988
+ {
1989
+ internalType: "address",
1990
+ name: "token",
1991
+ type: "address",
1992
+ },
1993
+ {
1994
+ internalType: "string",
1995
+ name: "name",
1996
+ type: "string",
1997
+ },
1998
+ {
1999
+ internalType: "string",
2000
+ name: "symbol",
2001
+ type: "string",
2002
+ },
2003
+ {
2004
+ internalType: "uint256",
2005
+ name: "decimals",
2006
+ type: "uint256",
2007
+ },
2008
+ {
2009
+ internalType: "bool",
2010
+ name: "isMock",
2011
+ type: "bool",
2012
+ },
2013
+ ],
2014
+ internalType: "struct TokenMetadata",
2015
+ name: "marketToken",
2016
+ type: "tuple",
2017
+ },
2018
+ {
2019
+ components: [
2020
+ {
2021
+ internalType: "address",
2022
+ name: "token",
2023
+ type: "address",
2024
+ },
2025
+ {
2026
+ internalType: "string",
2027
+ name: "name",
2028
+ type: "string",
2029
+ },
2030
+ {
2031
+ internalType: "string",
2032
+ name: "symbol",
2033
+ type: "string",
2034
+ },
2035
+ {
2036
+ internalType: "uint256",
2037
+ name: "decimals",
2038
+ type: "uint256",
2039
+ },
2040
+ {
2041
+ internalType: "bool",
2042
+ name: "isMock",
2043
+ type: "bool",
2044
+ },
2045
+ ],
2046
+ internalType: "struct TokenMetadata",
2047
+ name: "underlyingToken",
2048
+ type: "tuple",
2049
+ },
2050
+ {
2051
+ internalType: "address",
2052
+ name: "borrower",
2053
+ type: "address",
2054
+ },
2055
+ {
2056
+ internalType: "address",
2057
+ name: "controller",
2058
+ type: "address",
2059
+ },
2060
+ {
2061
+ internalType: "address",
2062
+ name: "feeRecipient",
2063
+ type: "address",
2064
+ },
2065
+ {
2066
+ internalType: "uint256",
2067
+ name: "protocolFeeBips",
2068
+ type: "uint256",
2069
+ },
2070
+ {
2071
+ internalType: "uint256",
2072
+ name: "delinquencyFeeBips",
2073
+ type: "uint256",
2074
+ },
2075
+ {
2076
+ internalType: "uint256",
2077
+ name: "delinquencyGracePeriod",
2078
+ type: "uint256",
2079
+ },
2080
+ {
2081
+ internalType: "uint256",
2082
+ name: "reserveRatioBips",
2083
+ type: "uint256",
2084
+ },
2085
+ {
2086
+ internalType: "uint256",
2087
+ name: "annualInterestBips",
2088
+ type: "uint256",
2089
+ },
2090
+ {
2091
+ internalType: "bool",
2092
+ name: "temporaryReserveRatio",
2093
+ type: "bool",
2094
+ },
2095
+ {
2096
+ internalType: "uint256",
2097
+ name: "originalReserveRatioBips",
2098
+ type: "uint256",
2099
+ },
2100
+ {
2101
+ internalType: "uint256",
2102
+ name: "temporaryReserveRatioExpiry",
2103
+ type: "uint256",
2104
+ },
2105
+ {
2106
+ internalType: "bool",
2107
+ name: "isClosed",
2108
+ type: "bool",
2109
+ },
2110
+ {
2111
+ internalType: "uint256",
2112
+ name: "scaleFactor",
2113
+ type: "uint256",
2114
+ },
2115
+ {
2116
+ internalType: "uint256",
2117
+ name: "totalSupply",
2118
+ type: "uint256",
2119
+ },
2120
+ {
2121
+ internalType: "uint256",
2122
+ name: "maxTotalSupply",
2123
+ type: "uint256",
2124
+ },
2125
+ {
2126
+ internalType: "uint256",
2127
+ name: "scaledTotalSupply",
2128
+ type: "uint256",
2129
+ },
2130
+ {
2131
+ internalType: "uint256",
2132
+ name: "totalAssets",
2133
+ type: "uint256",
2134
+ },
2135
+ {
2136
+ internalType: "uint256",
2137
+ name: "lastAccruedProtocolFees",
2138
+ type: "uint256",
2139
+ },
2140
+ {
2141
+ internalType: "uint256",
2142
+ name: "normalizedUnclaimedWithdrawals",
2143
+ type: "uint256",
2144
+ },
2145
+ {
2146
+ internalType: "uint256",
2147
+ name: "scaledPendingWithdrawals",
2148
+ type: "uint256",
2149
+ },
2150
+ {
2151
+ internalType: "uint256",
2152
+ name: "pendingWithdrawalExpiry",
2153
+ type: "uint256",
2154
+ },
2155
+ {
2156
+ internalType: "bool",
2157
+ name: "isDelinquent",
2158
+ type: "bool",
2159
+ },
2160
+ {
2161
+ internalType: "uint256",
2162
+ name: "timeDelinquent",
2163
+ type: "uint256",
2164
+ },
2165
+ {
2166
+ internalType: "uint256",
2167
+ name: "lastInterestAccruedTimestamp",
2168
+ type: "uint256",
2169
+ },
2170
+ {
2171
+ internalType: "uint32[]",
2172
+ name: "unpaidWithdrawalBatchExpiries",
2173
+ type: "uint32[]",
2174
+ },
2175
+ {
2176
+ internalType: "uint256",
2177
+ name: "coverageLiquidity",
2178
+ type: "uint256",
2179
+ },
2180
+ {
2181
+ internalType: "uint256",
2182
+ name: "borrowableAssets",
2183
+ type: "uint256",
2184
+ },
2185
+ ],
2186
+ internalType: "struct MarketData",
2187
+ name: "market",
2188
+ type: "tuple",
2189
+ },
2190
+ {
2191
+ components: [
2192
+ {
2193
+ internalType: "address",
2194
+ name: "lender",
2195
+ type: "address",
2196
+ },
2197
+ {
2198
+ internalType: "bool",
2199
+ name: "isAuthorizedOnController",
2200
+ type: "bool",
2201
+ },
2202
+ {
2203
+ internalType: "enum AuthRole",
2204
+ name: "role",
2205
+ type: "uint8",
2206
+ },
2207
+ {
2208
+ internalType: "uint256",
2209
+ name: "scaledBalance",
2210
+ type: "uint256",
2211
+ },
2212
+ {
2213
+ internalType: "uint256",
2214
+ name: "normalizedBalance",
2215
+ type: "uint256",
2216
+ },
2217
+ {
2218
+ internalType: "uint256",
2219
+ name: "underlyingBalance",
2220
+ type: "uint256",
2221
+ },
2222
+ {
2223
+ internalType: "uint256",
2224
+ name: "underlyingApproval",
2225
+ type: "uint256",
2226
+ },
2227
+ ],
2228
+ internalType: "struct MarketLenderStatus",
2229
+ name: "lenderStatus",
2230
+ type: "tuple",
2231
+ },
2232
+ ],
2233
+ internalType: "struct MarketDataWithLenderStatus",
2234
+ name: "data",
2235
+ type: "tuple",
2236
+ },
2237
+ ],
2238
+ stateMutability: "view",
2239
+ type: "function",
2240
+ },
2241
+ {
2242
+ inputs: [
2243
+ {
2244
+ internalType: "address",
2245
+ name: "lender",
2246
+ type: "address",
2247
+ },
2248
+ {
2249
+ internalType: "address",
2250
+ name: "market",
2251
+ type: "address",
2252
+ },
2253
+ ],
2254
+ name: "getMarketLenderStatus",
2255
+ outputs: [
2256
+ {
2257
+ components: [
2258
+ {
2259
+ internalType: "address",
2260
+ name: "lender",
2261
+ type: "address",
2262
+ },
2263
+ {
2264
+ internalType: "bool",
2265
+ name: "isAuthorizedOnController",
2266
+ type: "bool",
2267
+ },
2268
+ {
2269
+ internalType: "enum AuthRole",
2270
+ name: "role",
2271
+ type: "uint8",
2272
+ },
2273
+ {
2274
+ internalType: "uint256",
2275
+ name: "scaledBalance",
2276
+ type: "uint256",
2277
+ },
2278
+ {
2279
+ internalType: "uint256",
2280
+ name: "normalizedBalance",
2281
+ type: "uint256",
2282
+ },
2283
+ {
2284
+ internalType: "uint256",
2285
+ name: "underlyingBalance",
2286
+ type: "uint256",
2287
+ },
2288
+ {
2289
+ internalType: "uint256",
2290
+ name: "underlyingApproval",
2291
+ type: "uint256",
2292
+ },
2293
+ ],
2294
+ internalType: "struct MarketLenderStatus",
2295
+ name: "status",
2296
+ type: "tuple",
2297
+ },
2298
+ ],
2299
+ stateMutability: "view",
2300
+ type: "function",
2301
+ },
2302
+ {
2303
+ inputs: [],
2304
+ name: "getMarketsCount",
2305
+ outputs: [
2306
+ {
2307
+ internalType: "uint256",
2308
+ name: "",
2309
+ type: "uint256",
2310
+ },
2311
+ ],
2312
+ stateMutability: "view",
2313
+ type: "function",
2314
+ },
2315
+ {
2316
+ inputs: [
2317
+ {
2318
+ internalType: "address[]",
2319
+ name: "markets",
2320
+ type: "address[]",
2321
+ },
2322
+ ],
2323
+ name: "getMarketsData",
2324
+ outputs: [
2325
+ {
2326
+ components: [
2327
+ {
2328
+ components: [
2329
+ {
2330
+ internalType: "address",
2331
+ name: "token",
2332
+ type: "address",
2333
+ },
2334
+ {
2335
+ internalType: "string",
2336
+ name: "name",
2337
+ type: "string",
2338
+ },
2339
+ {
2340
+ internalType: "string",
2341
+ name: "symbol",
2342
+ type: "string",
2343
+ },
2344
+ {
2345
+ internalType: "uint256",
2346
+ name: "decimals",
2347
+ type: "uint256",
2348
+ },
2349
+ {
2350
+ internalType: "bool",
2351
+ name: "isMock",
2352
+ type: "bool",
2353
+ },
2354
+ ],
2355
+ internalType: "struct TokenMetadata",
2356
+ name: "marketToken",
2357
+ type: "tuple",
2358
+ },
2359
+ {
2360
+ components: [
2361
+ {
2362
+ internalType: "address",
2363
+ name: "token",
2364
+ type: "address",
2365
+ },
2366
+ {
2367
+ internalType: "string",
2368
+ name: "name",
2369
+ type: "string",
2370
+ },
2371
+ {
2372
+ internalType: "string",
2373
+ name: "symbol",
2374
+ type: "string",
2375
+ },
2376
+ {
2377
+ internalType: "uint256",
2378
+ name: "decimals",
2379
+ type: "uint256",
2380
+ },
2381
+ {
2382
+ internalType: "bool",
2383
+ name: "isMock",
2384
+ type: "bool",
2385
+ },
2386
+ ],
2387
+ internalType: "struct TokenMetadata",
2388
+ name: "underlyingToken",
2389
+ type: "tuple",
2390
+ },
2391
+ {
2392
+ internalType: "address",
2393
+ name: "borrower",
2394
+ type: "address",
2395
+ },
2396
+ {
2397
+ internalType: "address",
2398
+ name: "controller",
2399
+ type: "address",
2400
+ },
2401
+ {
2402
+ internalType: "address",
2403
+ name: "feeRecipient",
2404
+ type: "address",
2405
+ },
2406
+ {
2407
+ internalType: "uint256",
2408
+ name: "protocolFeeBips",
2409
+ type: "uint256",
2410
+ },
2411
+ {
2412
+ internalType: "uint256",
2413
+ name: "delinquencyFeeBips",
2414
+ type: "uint256",
2415
+ },
2416
+ {
2417
+ internalType: "uint256",
2418
+ name: "delinquencyGracePeriod",
2419
+ type: "uint256",
2420
+ },
2421
+ {
2422
+ internalType: "uint256",
2423
+ name: "reserveRatioBips",
2424
+ type: "uint256",
2425
+ },
2426
+ {
2427
+ internalType: "uint256",
2428
+ name: "annualInterestBips",
2429
+ type: "uint256",
2430
+ },
2431
+ {
2432
+ internalType: "bool",
2433
+ name: "temporaryReserveRatio",
2434
+ type: "bool",
2435
+ },
2436
+ {
2437
+ internalType: "uint256",
2438
+ name: "originalReserveRatioBips",
2439
+ type: "uint256",
2440
+ },
2441
+ {
2442
+ internalType: "uint256",
2443
+ name: "temporaryReserveRatioExpiry",
2444
+ type: "uint256",
2445
+ },
2446
+ {
2447
+ internalType: "bool",
2448
+ name: "isClosed",
2449
+ type: "bool",
2450
+ },
2451
+ {
2452
+ internalType: "uint256",
2453
+ name: "scaleFactor",
2454
+ type: "uint256",
2455
+ },
2456
+ {
2457
+ internalType: "uint256",
2458
+ name: "totalSupply",
2459
+ type: "uint256",
2460
+ },
2461
+ {
2462
+ internalType: "uint256",
2463
+ name: "maxTotalSupply",
2464
+ type: "uint256",
2465
+ },
2466
+ {
2467
+ internalType: "uint256",
2468
+ name: "scaledTotalSupply",
2469
+ type: "uint256",
2470
+ },
2471
+ {
2472
+ internalType: "uint256",
2473
+ name: "totalAssets",
2474
+ type: "uint256",
2475
+ },
2476
+ {
2477
+ internalType: "uint256",
2478
+ name: "lastAccruedProtocolFees",
2479
+ type: "uint256",
2480
+ },
2481
+ {
2482
+ internalType: "uint256",
2483
+ name: "normalizedUnclaimedWithdrawals",
2484
+ type: "uint256",
2485
+ },
2486
+ {
2487
+ internalType: "uint256",
2488
+ name: "scaledPendingWithdrawals",
2489
+ type: "uint256",
2490
+ },
2491
+ {
2492
+ internalType: "uint256",
2493
+ name: "pendingWithdrawalExpiry",
2494
+ type: "uint256",
2495
+ },
2496
+ {
2497
+ internalType: "bool",
2498
+ name: "isDelinquent",
2499
+ type: "bool",
2500
+ },
2501
+ {
2502
+ internalType: "uint256",
2503
+ name: "timeDelinquent",
2504
+ type: "uint256",
2505
+ },
2506
+ {
2507
+ internalType: "uint256",
2508
+ name: "lastInterestAccruedTimestamp",
2509
+ type: "uint256",
2510
+ },
2511
+ {
2512
+ internalType: "uint32[]",
2513
+ name: "unpaidWithdrawalBatchExpiries",
2514
+ type: "uint32[]",
2515
+ },
2516
+ {
2517
+ internalType: "uint256",
2518
+ name: "coverageLiquidity",
2519
+ type: "uint256",
2520
+ },
2521
+ {
2522
+ internalType: "uint256",
2523
+ name: "borrowableAssets",
2524
+ type: "uint256",
2525
+ },
2526
+ ],
2527
+ internalType: "struct MarketData[]",
2528
+ name: "data",
2529
+ type: "tuple[]",
2530
+ },
2531
+ ],
2532
+ stateMutability: "view",
2533
+ type: "function",
2534
+ },
2535
+ {
2536
+ inputs: [
2537
+ {
2538
+ internalType: "address",
2539
+ name: "lender",
2540
+ type: "address",
2541
+ },
2542
+ {
2543
+ internalType: "address[]",
2544
+ name: "markets",
2545
+ type: "address[]",
2546
+ },
2547
+ ],
2548
+ name: "getMarketsDataWithLenderStatus",
2549
+ outputs: [
2550
+ {
2551
+ components: [
2552
+ {
2553
+ components: [
2554
+ {
2555
+ components: [
2556
+ {
2557
+ internalType: "address",
2558
+ name: "token",
2559
+ type: "address",
2560
+ },
2561
+ {
2562
+ internalType: "string",
2563
+ name: "name",
2564
+ type: "string",
2565
+ },
2566
+ {
2567
+ internalType: "string",
2568
+ name: "symbol",
2569
+ type: "string",
2570
+ },
2571
+ {
2572
+ internalType: "uint256",
2573
+ name: "decimals",
2574
+ type: "uint256",
2575
+ },
2576
+ {
2577
+ internalType: "bool",
2578
+ name: "isMock",
2579
+ type: "bool",
2580
+ },
2581
+ ],
2582
+ internalType: "struct TokenMetadata",
2583
+ name: "marketToken",
2584
+ type: "tuple",
2585
+ },
2586
+ {
2587
+ components: [
2588
+ {
2589
+ internalType: "address",
2590
+ name: "token",
2591
+ type: "address",
2592
+ },
2593
+ {
2594
+ internalType: "string",
2595
+ name: "name",
2596
+ type: "string",
2597
+ },
2598
+ {
2599
+ internalType: "string",
2600
+ name: "symbol",
2601
+ type: "string",
2602
+ },
2603
+ {
2604
+ internalType: "uint256",
2605
+ name: "decimals",
2606
+ type: "uint256",
2607
+ },
2608
+ {
2609
+ internalType: "bool",
2610
+ name: "isMock",
2611
+ type: "bool",
2612
+ },
2613
+ ],
2614
+ internalType: "struct TokenMetadata",
2615
+ name: "underlyingToken",
2616
+ type: "tuple",
2617
+ },
2618
+ {
2619
+ internalType: "address",
2620
+ name: "borrower",
2621
+ type: "address",
2622
+ },
2623
+ {
2624
+ internalType: "address",
2625
+ name: "controller",
2626
+ type: "address",
2627
+ },
2628
+ {
2629
+ internalType: "address",
2630
+ name: "feeRecipient",
2631
+ type: "address",
2632
+ },
2633
+ {
2634
+ internalType: "uint256",
2635
+ name: "protocolFeeBips",
2636
+ type: "uint256",
2637
+ },
2638
+ {
2639
+ internalType: "uint256",
2640
+ name: "delinquencyFeeBips",
2641
+ type: "uint256",
2642
+ },
2643
+ {
2644
+ internalType: "uint256",
2645
+ name: "delinquencyGracePeriod",
2646
+ type: "uint256",
2647
+ },
2648
+ {
2649
+ internalType: "uint256",
2650
+ name: "reserveRatioBips",
2651
+ type: "uint256",
2652
+ },
2653
+ {
2654
+ internalType: "uint256",
2655
+ name: "annualInterestBips",
2656
+ type: "uint256",
2657
+ },
2658
+ {
2659
+ internalType: "bool",
2660
+ name: "temporaryReserveRatio",
2661
+ type: "bool",
2662
+ },
2663
+ {
2664
+ internalType: "uint256",
2665
+ name: "originalReserveRatioBips",
2666
+ type: "uint256",
2667
+ },
2668
+ {
2669
+ internalType: "uint256",
2670
+ name: "temporaryReserveRatioExpiry",
2671
+ type: "uint256",
2672
+ },
2673
+ {
2674
+ internalType: "bool",
2675
+ name: "isClosed",
2676
+ type: "bool",
2677
+ },
2678
+ {
2679
+ internalType: "uint256",
2680
+ name: "scaleFactor",
2681
+ type: "uint256",
2682
+ },
2683
+ {
2684
+ internalType: "uint256",
2685
+ name: "totalSupply",
2686
+ type: "uint256",
2687
+ },
2688
+ {
2689
+ internalType: "uint256",
2690
+ name: "maxTotalSupply",
2691
+ type: "uint256",
2692
+ },
2693
+ {
2694
+ internalType: "uint256",
2695
+ name: "scaledTotalSupply",
2696
+ type: "uint256",
2697
+ },
2698
+ {
2699
+ internalType: "uint256",
2700
+ name: "totalAssets",
2701
+ type: "uint256",
2702
+ },
2703
+ {
2704
+ internalType: "uint256",
2705
+ name: "lastAccruedProtocolFees",
2706
+ type: "uint256",
2707
+ },
2708
+ {
2709
+ internalType: "uint256",
2710
+ name: "normalizedUnclaimedWithdrawals",
2711
+ type: "uint256",
2712
+ },
2713
+ {
2714
+ internalType: "uint256",
2715
+ name: "scaledPendingWithdrawals",
2716
+ type: "uint256",
2717
+ },
2718
+ {
2719
+ internalType: "uint256",
2720
+ name: "pendingWithdrawalExpiry",
2721
+ type: "uint256",
2722
+ },
2723
+ {
2724
+ internalType: "bool",
2725
+ name: "isDelinquent",
2726
+ type: "bool",
2727
+ },
2728
+ {
2729
+ internalType: "uint256",
2730
+ name: "timeDelinquent",
2731
+ type: "uint256",
2732
+ },
2733
+ {
2734
+ internalType: "uint256",
2735
+ name: "lastInterestAccruedTimestamp",
2736
+ type: "uint256",
2737
+ },
2738
+ {
2739
+ internalType: "uint32[]",
2740
+ name: "unpaidWithdrawalBatchExpiries",
2741
+ type: "uint32[]",
2742
+ },
2743
+ {
2744
+ internalType: "uint256",
2745
+ name: "coverageLiquidity",
2746
+ type: "uint256",
2747
+ },
2748
+ {
2749
+ internalType: "uint256",
2750
+ name: "borrowableAssets",
2751
+ type: "uint256",
2752
+ },
2753
+ ],
2754
+ internalType: "struct MarketData",
2755
+ name: "market",
2756
+ type: "tuple",
2757
+ },
2758
+ {
2759
+ components: [
2760
+ {
2761
+ internalType: "address",
2762
+ name: "lender",
2763
+ type: "address",
2764
+ },
2765
+ {
2766
+ internalType: "bool",
2767
+ name: "isAuthorizedOnController",
2768
+ type: "bool",
2769
+ },
2770
+ {
2771
+ internalType: "enum AuthRole",
2772
+ name: "role",
2773
+ type: "uint8",
2774
+ },
2775
+ {
2776
+ internalType: "uint256",
2777
+ name: "scaledBalance",
2778
+ type: "uint256",
2779
+ },
2780
+ {
2781
+ internalType: "uint256",
2782
+ name: "normalizedBalance",
2783
+ type: "uint256",
2784
+ },
2785
+ {
2786
+ internalType: "uint256",
2787
+ name: "underlyingBalance",
2788
+ type: "uint256",
2789
+ },
2790
+ {
2791
+ internalType: "uint256",
2792
+ name: "underlyingApproval",
2793
+ type: "uint256",
2794
+ },
2795
+ ],
2796
+ internalType: "struct MarketLenderStatus",
2797
+ name: "lenderStatus",
2798
+ type: "tuple",
2799
+ },
2800
+ ],
2801
+ internalType: "struct MarketDataWithLenderStatus[]",
2802
+ name: "data",
2803
+ type: "tuple[]",
2804
+ },
2805
+ ],
2806
+ stateMutability: "view",
2807
+ type: "function",
2808
+ },
2809
+ {
2810
+ inputs: [
2811
+ {
2812
+ internalType: "address",
2813
+ name: "lender",
2814
+ type: "address",
2815
+ },
2816
+ {
2817
+ internalType: "address[]",
2818
+ name: "market",
2819
+ type: "address[]",
2820
+ },
2821
+ ],
2822
+ name: "getMarketsLenderStatus",
2823
+ outputs: [
2824
+ {
2825
+ components: [
2826
+ {
2827
+ internalType: "address",
2828
+ name: "lender",
2829
+ type: "address",
2830
+ },
2831
+ {
2832
+ internalType: "bool",
2833
+ name: "isAuthorizedOnController",
2834
+ type: "bool",
2835
+ },
2836
+ {
2837
+ internalType: "enum AuthRole",
2838
+ name: "role",
2839
+ type: "uint8",
2840
+ },
2841
+ {
2842
+ internalType: "uint256",
2843
+ name: "scaledBalance",
2844
+ type: "uint256",
2845
+ },
2846
+ {
2847
+ internalType: "uint256",
2848
+ name: "normalizedBalance",
2849
+ type: "uint256",
2850
+ },
2851
+ {
2852
+ internalType: "uint256",
2853
+ name: "underlyingBalance",
2854
+ type: "uint256",
2855
+ },
2856
+ {
2857
+ internalType: "uint256",
2858
+ name: "underlyingApproval",
2859
+ type: "uint256",
2860
+ },
2861
+ ],
2862
+ internalType: "struct MarketLenderStatus[]",
2863
+ name: "status",
2864
+ type: "tuple[]",
2865
+ },
2866
+ ],
2867
+ stateMutability: "view",
2868
+ type: "function",
2869
+ },
2870
+ {
2871
+ inputs: [
2872
+ {
2873
+ components: [
2874
+ {
2875
+ internalType: "uint256",
2876
+ name: "start",
2877
+ type: "uint256",
2878
+ },
2879
+ {
2880
+ internalType: "uint256",
2881
+ name: "end",
2882
+ type: "uint256",
2883
+ },
2884
+ ],
2885
+ internalType: "struct SliceParameters",
2886
+ name: "borrowersSlice",
2887
+ type: "tuple",
2888
+ },
2889
+ {
2890
+ components: [
2891
+ {
2892
+ internalType: "uint256",
2893
+ name: "start",
2894
+ type: "uint256",
2895
+ },
2896
+ {
2897
+ internalType: "uint256",
2898
+ name: "end",
2899
+ type: "uint256",
2900
+ },
2901
+ ],
2902
+ internalType: "struct SliceParameters",
2903
+ name: "controllerFactoriesSlice",
2904
+ type: "tuple",
2905
+ },
2906
+ {
2907
+ components: [
2908
+ {
2909
+ internalType: "uint256",
2910
+ name: "start",
2911
+ type: "uint256",
2912
+ },
2913
+ {
2914
+ internalType: "uint256",
2915
+ name: "end",
2916
+ type: "uint256",
2917
+ },
2918
+ ],
2919
+ internalType: "struct SliceParameters",
2920
+ name: "controllersSlice",
2921
+ type: "tuple",
2922
+ },
2923
+ {
2924
+ components: [
2925
+ {
2926
+ internalType: "uint256",
2927
+ name: "start",
2928
+ type: "uint256",
2929
+ },
2930
+ {
2931
+ internalType: "uint256",
2932
+ name: "end",
2933
+ type: "uint256",
2934
+ },
2935
+ ],
2936
+ internalType: "struct SliceParameters",
2937
+ name: "marketsSlice",
2938
+ type: "tuple",
2939
+ },
2940
+ ],
2941
+ name: "getPaginatedArchControllerData",
2942
+ outputs: [
2943
+ {
2944
+ components: [
2945
+ {
2946
+ internalType: "address",
2947
+ name: "archController",
2948
+ type: "address",
2949
+ },
2950
+ {
2951
+ internalType: "uint256",
2952
+ name: "borrowersCount",
2953
+ type: "uint256",
2954
+ },
2955
+ {
2956
+ internalType: "address[]",
2957
+ name: "borrowers",
2958
+ type: "address[]",
2959
+ },
2960
+ {
2961
+ internalType: "uint256",
2962
+ name: "controllerFactoriesCount",
2963
+ type: "uint256",
2964
+ },
2965
+ {
2966
+ internalType: "address[]",
2967
+ name: "controllerFactories",
2968
+ type: "address[]",
2969
+ },
2970
+ {
2971
+ internalType: "uint256",
2972
+ name: "controllersCount",
2973
+ type: "uint256",
2974
+ },
2975
+ {
2976
+ internalType: "address[]",
2977
+ name: "controllers",
2978
+ type: "address[]",
2979
+ },
2980
+ {
2981
+ internalType: "uint256",
2982
+ name: "marketsCount",
2983
+ type: "uint256",
2984
+ },
2985
+ {
2986
+ internalType: "address[]",
2987
+ name: "markets",
2988
+ type: "address[]",
2989
+ },
2990
+ ],
2991
+ internalType: "struct ArchControllerData",
2992
+ name: "data",
2993
+ type: "tuple",
2994
+ },
2995
+ ],
2996
+ stateMutability: "view",
2997
+ type: "function",
2998
+ },
2999
+ {
3000
+ inputs: [
3001
+ {
3002
+ internalType: "uint256",
3003
+ name: "start",
3004
+ type: "uint256",
3005
+ },
3006
+ {
3007
+ internalType: "uint256",
3008
+ name: "end",
3009
+ type: "uint256",
3010
+ },
3011
+ ],
3012
+ name: "getPaginatedControllersDataForBorrowers",
3013
+ outputs: [
3014
+ {
3015
+ components: [
3016
+ {
3017
+ internalType: "address",
3018
+ name: "borrower",
3019
+ type: "address",
3020
+ },
3021
+ {
3022
+ internalType: "address",
3023
+ name: "controller",
3024
+ type: "address",
3025
+ },
3026
+ {
3027
+ internalType: "address",
3028
+ name: "controllerFactory",
3029
+ type: "address",
3030
+ },
3031
+ {
3032
+ internalType: "bool",
3033
+ name: "isRegisteredBorrower",
3034
+ type: "bool",
3035
+ },
3036
+ {
3037
+ internalType: "bool",
3038
+ name: "hasDeployedController",
3039
+ type: "bool",
3040
+ },
3041
+ {
3042
+ components: [
3043
+ {
3044
+ internalType: "address",
3045
+ name: "feeRecipient",
3046
+ type: "address",
3047
+ },
3048
+ {
3049
+ internalType: "uint16",
3050
+ name: "protocolFeeBips",
3051
+ type: "uint16",
3052
+ },
3053
+ {
3054
+ components: [
3055
+ {
3056
+ internalType: "address",
3057
+ name: "token",
3058
+ type: "address",
3059
+ },
3060
+ {
3061
+ internalType: "string",
3062
+ name: "name",
3063
+ type: "string",
3064
+ },
3065
+ {
3066
+ internalType: "string",
3067
+ name: "symbol",
3068
+ type: "string",
3069
+ },
3070
+ {
3071
+ internalType: "uint256",
3072
+ name: "decimals",
3073
+ type: "uint256",
3074
+ },
3075
+ {
3076
+ internalType: "bool",
3077
+ name: "isMock",
3078
+ type: "bool",
3079
+ },
3080
+ ],
3081
+ internalType: "struct TokenMetadata",
3082
+ name: "originationFeeToken",
3083
+ type: "tuple",
3084
+ },
3085
+ {
3086
+ internalType: "uint256",
3087
+ name: "originationFeeAmount",
3088
+ type: "uint256",
3089
+ },
3090
+ ],
3091
+ internalType: "struct FeeConfiguration",
3092
+ name: "fees",
3093
+ type: "tuple",
3094
+ },
3095
+ {
3096
+ components: [
3097
+ {
3098
+ internalType: "uint32",
3099
+ name: "minimumDelinquencyGracePeriod",
3100
+ type: "uint32",
3101
+ },
3102
+ {
3103
+ internalType: "uint32",
3104
+ name: "maximumDelinquencyGracePeriod",
3105
+ type: "uint32",
3106
+ },
3107
+ {
3108
+ internalType: "uint16",
3109
+ name: "minimumReserveRatioBips",
3110
+ type: "uint16",
3111
+ },
3112
+ {
3113
+ internalType: "uint16",
3114
+ name: "maximumReserveRatioBips",
3115
+ type: "uint16",
3116
+ },
3117
+ {
3118
+ internalType: "uint16",
3119
+ name: "minimumDelinquencyFeeBips",
3120
+ type: "uint16",
3121
+ },
3122
+ {
3123
+ internalType: "uint16",
3124
+ name: "maximumDelinquencyFeeBips",
3125
+ type: "uint16",
3126
+ },
3127
+ {
3128
+ internalType: "uint32",
3129
+ name: "minimumWithdrawalBatchDuration",
3130
+ type: "uint32",
3131
+ },
3132
+ {
3133
+ internalType: "uint32",
3134
+ name: "maximumWithdrawalBatchDuration",
3135
+ type: "uint32",
3136
+ },
3137
+ {
3138
+ internalType: "uint16",
3139
+ name: "minimumAnnualInterestBips",
3140
+ type: "uint16",
3141
+ },
3142
+ {
3143
+ internalType: "uint16",
3144
+ name: "maximumAnnualInterestBips",
3145
+ type: "uint16",
3146
+ },
3147
+ ],
3148
+ internalType: "struct MarketParameterConstraints",
3149
+ name: "constraints",
3150
+ type: "tuple",
3151
+ },
3152
+ {
3153
+ components: [
3154
+ {
3155
+ components: [
3156
+ {
3157
+ internalType: "address",
3158
+ name: "token",
3159
+ type: "address",
3160
+ },
3161
+ {
3162
+ internalType: "string",
3163
+ name: "name",
3164
+ type: "string",
3165
+ },
3166
+ {
3167
+ internalType: "string",
3168
+ name: "symbol",
3169
+ type: "string",
3170
+ },
3171
+ {
3172
+ internalType: "uint256",
3173
+ name: "decimals",
3174
+ type: "uint256",
3175
+ },
3176
+ {
3177
+ internalType: "bool",
3178
+ name: "isMock",
3179
+ type: "bool",
3180
+ },
3181
+ ],
3182
+ internalType: "struct TokenMetadata",
3183
+ name: "marketToken",
3184
+ type: "tuple",
3185
+ },
3186
+ {
3187
+ components: [
3188
+ {
3189
+ internalType: "address",
3190
+ name: "token",
3191
+ type: "address",
3192
+ },
3193
+ {
3194
+ internalType: "string",
3195
+ name: "name",
3196
+ type: "string",
3197
+ },
3198
+ {
3199
+ internalType: "string",
3200
+ name: "symbol",
3201
+ type: "string",
3202
+ },
3203
+ {
3204
+ internalType: "uint256",
3205
+ name: "decimals",
3206
+ type: "uint256",
3207
+ },
3208
+ {
3209
+ internalType: "bool",
3210
+ name: "isMock",
3211
+ type: "bool",
3212
+ },
3213
+ ],
3214
+ internalType: "struct TokenMetadata",
3215
+ name: "underlyingToken",
3216
+ type: "tuple",
3217
+ },
3218
+ {
3219
+ internalType: "address",
3220
+ name: "borrower",
3221
+ type: "address",
3222
+ },
3223
+ {
3224
+ internalType: "address",
3225
+ name: "controller",
3226
+ type: "address",
3227
+ },
3228
+ {
3229
+ internalType: "address",
3230
+ name: "feeRecipient",
3231
+ type: "address",
3232
+ },
3233
+ {
3234
+ internalType: "uint256",
3235
+ name: "protocolFeeBips",
3236
+ type: "uint256",
3237
+ },
3238
+ {
3239
+ internalType: "uint256",
3240
+ name: "delinquencyFeeBips",
3241
+ type: "uint256",
3242
+ },
3243
+ {
3244
+ internalType: "uint256",
3245
+ name: "delinquencyGracePeriod",
3246
+ type: "uint256",
3247
+ },
3248
+ {
3249
+ internalType: "uint256",
3250
+ name: "reserveRatioBips",
3251
+ type: "uint256",
3252
+ },
3253
+ {
3254
+ internalType: "uint256",
3255
+ name: "annualInterestBips",
3256
+ type: "uint256",
3257
+ },
3258
+ {
3259
+ internalType: "bool",
3260
+ name: "temporaryReserveRatio",
3261
+ type: "bool",
3262
+ },
3263
+ {
3264
+ internalType: "uint256",
3265
+ name: "originalReserveRatioBips",
3266
+ type: "uint256",
3267
+ },
3268
+ {
3269
+ internalType: "uint256",
3270
+ name: "temporaryReserveRatioExpiry",
3271
+ type: "uint256",
3272
+ },
3273
+ {
3274
+ internalType: "bool",
3275
+ name: "isClosed",
3276
+ type: "bool",
3277
+ },
3278
+ {
3279
+ internalType: "uint256",
3280
+ name: "scaleFactor",
3281
+ type: "uint256",
3282
+ },
3283
+ {
3284
+ internalType: "uint256",
3285
+ name: "totalSupply",
3286
+ type: "uint256",
3287
+ },
3288
+ {
3289
+ internalType: "uint256",
3290
+ name: "maxTotalSupply",
3291
+ type: "uint256",
3292
+ },
3293
+ {
3294
+ internalType: "uint256",
3295
+ name: "scaledTotalSupply",
3296
+ type: "uint256",
3297
+ },
3298
+ {
3299
+ internalType: "uint256",
3300
+ name: "totalAssets",
3301
+ type: "uint256",
3302
+ },
3303
+ {
3304
+ internalType: "uint256",
3305
+ name: "lastAccruedProtocolFees",
3306
+ type: "uint256",
3307
+ },
3308
+ {
3309
+ internalType: "uint256",
3310
+ name: "normalizedUnclaimedWithdrawals",
3311
+ type: "uint256",
3312
+ },
3313
+ {
3314
+ internalType: "uint256",
3315
+ name: "scaledPendingWithdrawals",
3316
+ type: "uint256",
3317
+ },
3318
+ {
3319
+ internalType: "uint256",
3320
+ name: "pendingWithdrawalExpiry",
3321
+ type: "uint256",
3322
+ },
3323
+ {
3324
+ internalType: "bool",
3325
+ name: "isDelinquent",
3326
+ type: "bool",
3327
+ },
3328
+ {
3329
+ internalType: "uint256",
3330
+ name: "timeDelinquent",
3331
+ type: "uint256",
3332
+ },
3333
+ {
3334
+ internalType: "uint256",
3335
+ name: "lastInterestAccruedTimestamp",
3336
+ type: "uint256",
3337
+ },
3338
+ {
3339
+ internalType: "uint32[]",
3340
+ name: "unpaidWithdrawalBatchExpiries",
3341
+ type: "uint32[]",
3342
+ },
3343
+ {
3344
+ internalType: "uint256",
3345
+ name: "coverageLiquidity",
3346
+ type: "uint256",
3347
+ },
3348
+ {
3349
+ internalType: "uint256",
3350
+ name: "borrowableAssets",
3351
+ type: "uint256",
3352
+ },
3353
+ ],
3354
+ internalType: "struct MarketData[]",
3355
+ name: "markets",
3356
+ type: "tuple[]",
3357
+ },
3358
+ {
3359
+ internalType: "uint256",
3360
+ name: "borrowerOriginationFeeBalance",
3361
+ type: "uint256",
3362
+ },
3363
+ {
3364
+ internalType: "uint256",
3365
+ name: "borrowerOriginationFeeApproval",
3366
+ type: "uint256",
3367
+ },
3368
+ ],
3369
+ internalType: "struct ControllerData[]",
3370
+ name: "data",
3371
+ type: "tuple[]",
3372
+ },
3373
+ ],
3374
+ stateMutability: "view",
3375
+ type: "function",
3376
+ },
3377
+ {
3378
+ inputs: [
3379
+ {
3380
+ internalType: "uint256",
3381
+ name: "start",
3382
+ type: "uint256",
3383
+ },
3384
+ {
3385
+ internalType: "uint256",
3386
+ name: "end",
3387
+ type: "uint256",
3388
+ },
3389
+ ],
3390
+ name: "getPaginatedMarketsData",
3391
+ outputs: [
3392
+ {
3393
+ components: [
3394
+ {
3395
+ components: [
3396
+ {
3397
+ internalType: "address",
3398
+ name: "token",
3399
+ type: "address",
3400
+ },
3401
+ {
3402
+ internalType: "string",
3403
+ name: "name",
3404
+ type: "string",
3405
+ },
3406
+ {
3407
+ internalType: "string",
3408
+ name: "symbol",
3409
+ type: "string",
3410
+ },
3411
+ {
3412
+ internalType: "uint256",
3413
+ name: "decimals",
3414
+ type: "uint256",
3415
+ },
3416
+ {
3417
+ internalType: "bool",
3418
+ name: "isMock",
3419
+ type: "bool",
3420
+ },
3421
+ ],
3422
+ internalType: "struct TokenMetadata",
3423
+ name: "marketToken",
3424
+ type: "tuple",
3425
+ },
3426
+ {
3427
+ components: [
3428
+ {
3429
+ internalType: "address",
3430
+ name: "token",
3431
+ type: "address",
3432
+ },
3433
+ {
3434
+ internalType: "string",
3435
+ name: "name",
3436
+ type: "string",
3437
+ },
3438
+ {
3439
+ internalType: "string",
3440
+ name: "symbol",
3441
+ type: "string",
3442
+ },
3443
+ {
3444
+ internalType: "uint256",
3445
+ name: "decimals",
3446
+ type: "uint256",
3447
+ },
3448
+ {
3449
+ internalType: "bool",
3450
+ name: "isMock",
3451
+ type: "bool",
3452
+ },
3453
+ ],
3454
+ internalType: "struct TokenMetadata",
3455
+ name: "underlyingToken",
3456
+ type: "tuple",
3457
+ },
3458
+ {
3459
+ internalType: "address",
3460
+ name: "borrower",
3461
+ type: "address",
3462
+ },
3463
+ {
3464
+ internalType: "address",
3465
+ name: "controller",
3466
+ type: "address",
3467
+ },
3468
+ {
3469
+ internalType: "address",
3470
+ name: "feeRecipient",
3471
+ type: "address",
3472
+ },
3473
+ {
3474
+ internalType: "uint256",
3475
+ name: "protocolFeeBips",
3476
+ type: "uint256",
3477
+ },
3478
+ {
3479
+ internalType: "uint256",
3480
+ name: "delinquencyFeeBips",
3481
+ type: "uint256",
3482
+ },
3483
+ {
3484
+ internalType: "uint256",
3485
+ name: "delinquencyGracePeriod",
3486
+ type: "uint256",
3487
+ },
3488
+ {
3489
+ internalType: "uint256",
3490
+ name: "reserveRatioBips",
3491
+ type: "uint256",
3492
+ },
3493
+ {
3494
+ internalType: "uint256",
3495
+ name: "annualInterestBips",
3496
+ type: "uint256",
3497
+ },
3498
+ {
3499
+ internalType: "bool",
3500
+ name: "temporaryReserveRatio",
3501
+ type: "bool",
3502
+ },
3503
+ {
3504
+ internalType: "uint256",
3505
+ name: "originalReserveRatioBips",
3506
+ type: "uint256",
3507
+ },
3508
+ {
3509
+ internalType: "uint256",
3510
+ name: "temporaryReserveRatioExpiry",
3511
+ type: "uint256",
3512
+ },
3513
+ {
3514
+ internalType: "bool",
3515
+ name: "isClosed",
3516
+ type: "bool",
3517
+ },
3518
+ {
3519
+ internalType: "uint256",
3520
+ name: "scaleFactor",
3521
+ type: "uint256",
3522
+ },
3523
+ {
3524
+ internalType: "uint256",
3525
+ name: "totalSupply",
3526
+ type: "uint256",
3527
+ },
3528
+ {
3529
+ internalType: "uint256",
3530
+ name: "maxTotalSupply",
3531
+ type: "uint256",
3532
+ },
3533
+ {
3534
+ internalType: "uint256",
3535
+ name: "scaledTotalSupply",
3536
+ type: "uint256",
3537
+ },
3538
+ {
3539
+ internalType: "uint256",
3540
+ name: "totalAssets",
3541
+ type: "uint256",
3542
+ },
3543
+ {
3544
+ internalType: "uint256",
3545
+ name: "lastAccruedProtocolFees",
3546
+ type: "uint256",
3547
+ },
3548
+ {
3549
+ internalType: "uint256",
3550
+ name: "normalizedUnclaimedWithdrawals",
3551
+ type: "uint256",
3552
+ },
3553
+ {
3554
+ internalType: "uint256",
3555
+ name: "scaledPendingWithdrawals",
3556
+ type: "uint256",
3557
+ },
3558
+ {
3559
+ internalType: "uint256",
3560
+ name: "pendingWithdrawalExpiry",
3561
+ type: "uint256",
3562
+ },
3563
+ {
3564
+ internalType: "bool",
3565
+ name: "isDelinquent",
3566
+ type: "bool",
3567
+ },
3568
+ {
3569
+ internalType: "uint256",
3570
+ name: "timeDelinquent",
3571
+ type: "uint256",
3572
+ },
3573
+ {
3574
+ internalType: "uint256",
3575
+ name: "lastInterestAccruedTimestamp",
3576
+ type: "uint256",
3577
+ },
3578
+ {
3579
+ internalType: "uint32[]",
3580
+ name: "unpaidWithdrawalBatchExpiries",
3581
+ type: "uint32[]",
3582
+ },
3583
+ {
3584
+ internalType: "uint256",
3585
+ name: "coverageLiquidity",
3586
+ type: "uint256",
3587
+ },
3588
+ {
3589
+ internalType: "uint256",
3590
+ name: "borrowableAssets",
3591
+ type: "uint256",
3592
+ },
3593
+ ],
3594
+ internalType: "struct MarketData[]",
3595
+ name: "data",
3596
+ type: "tuple[]",
3597
+ },
3598
+ ],
3599
+ stateMutability: "view",
3600
+ type: "function",
3601
+ },
3602
+ {
3603
+ inputs: [
3604
+ {
3605
+ internalType: "address",
3606
+ name: "lender",
3607
+ type: "address",
3608
+ },
3609
+ {
3610
+ internalType: "uint256",
3611
+ name: "start",
3612
+ type: "uint256",
3613
+ },
3614
+ {
3615
+ internalType: "uint256",
3616
+ name: "end",
3617
+ type: "uint256",
3618
+ },
3619
+ ],
3620
+ name: "getPaginatedMarketsDataWithLenderStatus",
3621
+ outputs: [
3622
+ {
3623
+ components: [
3624
+ {
3625
+ components: [
3626
+ {
3627
+ components: [
3628
+ {
3629
+ internalType: "address",
3630
+ name: "token",
3631
+ type: "address",
3632
+ },
3633
+ {
3634
+ internalType: "string",
3635
+ name: "name",
3636
+ type: "string",
3637
+ },
3638
+ {
3639
+ internalType: "string",
3640
+ name: "symbol",
3641
+ type: "string",
3642
+ },
3643
+ {
3644
+ internalType: "uint256",
3645
+ name: "decimals",
3646
+ type: "uint256",
3647
+ },
3648
+ {
3649
+ internalType: "bool",
3650
+ name: "isMock",
3651
+ type: "bool",
3652
+ },
3653
+ ],
3654
+ internalType: "struct TokenMetadata",
3655
+ name: "marketToken",
3656
+ type: "tuple",
3657
+ },
3658
+ {
3659
+ components: [
3660
+ {
3661
+ internalType: "address",
3662
+ name: "token",
3663
+ type: "address",
3664
+ },
3665
+ {
3666
+ internalType: "string",
3667
+ name: "name",
3668
+ type: "string",
3669
+ },
3670
+ {
3671
+ internalType: "string",
3672
+ name: "symbol",
3673
+ type: "string",
3674
+ },
3675
+ {
3676
+ internalType: "uint256",
3677
+ name: "decimals",
3678
+ type: "uint256",
3679
+ },
3680
+ {
3681
+ internalType: "bool",
3682
+ name: "isMock",
3683
+ type: "bool",
3684
+ },
3685
+ ],
3686
+ internalType: "struct TokenMetadata",
3687
+ name: "underlyingToken",
3688
+ type: "tuple",
3689
+ },
3690
+ {
3691
+ internalType: "address",
3692
+ name: "borrower",
3693
+ type: "address",
3694
+ },
3695
+ {
3696
+ internalType: "address",
3697
+ name: "controller",
3698
+ type: "address",
3699
+ },
3700
+ {
3701
+ internalType: "address",
3702
+ name: "feeRecipient",
3703
+ type: "address",
3704
+ },
3705
+ {
3706
+ internalType: "uint256",
3707
+ name: "protocolFeeBips",
3708
+ type: "uint256",
3709
+ },
3710
+ {
3711
+ internalType: "uint256",
3712
+ name: "delinquencyFeeBips",
3713
+ type: "uint256",
3714
+ },
3715
+ {
3716
+ internalType: "uint256",
3717
+ name: "delinquencyGracePeriod",
3718
+ type: "uint256",
3719
+ },
3720
+ {
3721
+ internalType: "uint256",
3722
+ name: "reserveRatioBips",
3723
+ type: "uint256",
3724
+ },
3725
+ {
3726
+ internalType: "uint256",
3727
+ name: "annualInterestBips",
3728
+ type: "uint256",
3729
+ },
3730
+ {
3731
+ internalType: "bool",
3732
+ name: "temporaryReserveRatio",
3733
+ type: "bool",
3734
+ },
3735
+ {
3736
+ internalType: "uint256",
3737
+ name: "originalReserveRatioBips",
3738
+ type: "uint256",
3739
+ },
3740
+ {
3741
+ internalType: "uint256",
3742
+ name: "temporaryReserveRatioExpiry",
3743
+ type: "uint256",
3744
+ },
3745
+ {
3746
+ internalType: "bool",
3747
+ name: "isClosed",
3748
+ type: "bool",
3749
+ },
3750
+ {
3751
+ internalType: "uint256",
3752
+ name: "scaleFactor",
3753
+ type: "uint256",
3754
+ },
3755
+ {
3756
+ internalType: "uint256",
3757
+ name: "totalSupply",
3758
+ type: "uint256",
3759
+ },
3760
+ {
3761
+ internalType: "uint256",
3762
+ name: "maxTotalSupply",
3763
+ type: "uint256",
3764
+ },
3765
+ {
3766
+ internalType: "uint256",
3767
+ name: "scaledTotalSupply",
3768
+ type: "uint256",
3769
+ },
3770
+ {
3771
+ internalType: "uint256",
3772
+ name: "totalAssets",
3773
+ type: "uint256",
3774
+ },
3775
+ {
3776
+ internalType: "uint256",
3777
+ name: "lastAccruedProtocolFees",
3778
+ type: "uint256",
3779
+ },
3780
+ {
3781
+ internalType: "uint256",
3782
+ name: "normalizedUnclaimedWithdrawals",
3783
+ type: "uint256",
3784
+ },
3785
+ {
3786
+ internalType: "uint256",
3787
+ name: "scaledPendingWithdrawals",
3788
+ type: "uint256",
3789
+ },
3790
+ {
3791
+ internalType: "uint256",
3792
+ name: "pendingWithdrawalExpiry",
3793
+ type: "uint256",
3794
+ },
3795
+ {
3796
+ internalType: "bool",
3797
+ name: "isDelinquent",
3798
+ type: "bool",
3799
+ },
3800
+ {
3801
+ internalType: "uint256",
3802
+ name: "timeDelinquent",
3803
+ type: "uint256",
3804
+ },
3805
+ {
3806
+ internalType: "uint256",
3807
+ name: "lastInterestAccruedTimestamp",
3808
+ type: "uint256",
3809
+ },
3810
+ {
3811
+ internalType: "uint32[]",
3812
+ name: "unpaidWithdrawalBatchExpiries",
3813
+ type: "uint32[]",
3814
+ },
3815
+ {
3816
+ internalType: "uint256",
3817
+ name: "coverageLiquidity",
3818
+ type: "uint256",
3819
+ },
3820
+ {
3821
+ internalType: "uint256",
3822
+ name: "borrowableAssets",
3823
+ type: "uint256",
3824
+ },
3825
+ ],
3826
+ internalType: "struct MarketData",
3827
+ name: "market",
3828
+ type: "tuple",
3829
+ },
3830
+ {
3831
+ components: [
3832
+ {
3833
+ internalType: "address",
3834
+ name: "lender",
3835
+ type: "address",
3836
+ },
3837
+ {
3838
+ internalType: "bool",
3839
+ name: "isAuthorizedOnController",
3840
+ type: "bool",
3841
+ },
3842
+ {
3843
+ internalType: "enum AuthRole",
3844
+ name: "role",
3845
+ type: "uint8",
3846
+ },
3847
+ {
3848
+ internalType: "uint256",
3849
+ name: "scaledBalance",
3850
+ type: "uint256",
3851
+ },
3852
+ {
3853
+ internalType: "uint256",
3854
+ name: "normalizedBalance",
3855
+ type: "uint256",
3856
+ },
3857
+ {
3858
+ internalType: "uint256",
3859
+ name: "underlyingBalance",
3860
+ type: "uint256",
3861
+ },
3862
+ {
3863
+ internalType: "uint256",
3864
+ name: "underlyingApproval",
3865
+ type: "uint256",
3866
+ },
3867
+ ],
3868
+ internalType: "struct MarketLenderStatus",
3869
+ name: "lenderStatus",
3870
+ type: "tuple",
3871
+ },
3872
+ ],
3873
+ internalType: "struct MarketDataWithLenderStatus[]",
3874
+ name: "data",
3875
+ type: "tuple[]",
3876
+ },
3877
+ ],
3878
+ stateMutability: "view",
3879
+ type: "function",
3880
+ },
3881
+ {
3882
+ inputs: [
3883
+ {
3884
+ internalType: "address",
3885
+ name: "token",
3886
+ type: "address",
3887
+ },
3888
+ ],
3889
+ name: "getTokenInfo",
3890
+ outputs: [
3891
+ {
3892
+ components: [
3893
+ {
3894
+ internalType: "address",
3895
+ name: "token",
3896
+ type: "address",
3897
+ },
3898
+ {
3899
+ internalType: "string",
3900
+ name: "name",
3901
+ type: "string",
3902
+ },
3903
+ {
3904
+ internalType: "string",
3905
+ name: "symbol",
3906
+ type: "string",
3907
+ },
3908
+ {
3909
+ internalType: "uint256",
3910
+ name: "decimals",
3911
+ type: "uint256",
3912
+ },
3913
+ {
3914
+ internalType: "bool",
3915
+ name: "isMock",
3916
+ type: "bool",
3917
+ },
3918
+ ],
3919
+ internalType: "struct TokenMetadata",
3920
+ name: "info",
3921
+ type: "tuple",
3922
+ },
3923
+ ],
3924
+ stateMutability: "view",
3925
+ type: "function",
3926
+ },
3927
+ {
3928
+ inputs: [
3929
+ {
3930
+ internalType: "address[]",
3931
+ name: "tokens",
3932
+ type: "address[]",
3933
+ },
3934
+ ],
3935
+ name: "getTokensInfo",
3936
+ outputs: [
3937
+ {
3938
+ components: [
3939
+ {
3940
+ internalType: "address",
3941
+ name: "token",
3942
+ type: "address",
3943
+ },
3944
+ {
3945
+ internalType: "string",
3946
+ name: "name",
3947
+ type: "string",
3948
+ },
3949
+ {
3950
+ internalType: "string",
3951
+ name: "symbol",
3952
+ type: "string",
3953
+ },
3954
+ {
3955
+ internalType: "uint256",
3956
+ name: "decimals",
3957
+ type: "uint256",
3958
+ },
3959
+ {
3960
+ internalType: "bool",
3961
+ name: "isMock",
3962
+ type: "bool",
3963
+ },
3964
+ ],
3965
+ internalType: "struct TokenMetadata[]",
3966
+ name: "info",
3967
+ type: "tuple[]",
3968
+ },
3969
+ ],
3970
+ stateMutability: "view",
3971
+ type: "function",
3972
+ },
3973
+ {
3974
+ inputs: [
3975
+ {
3976
+ internalType: "address",
3977
+ name: "market",
3978
+ type: "address",
3979
+ },
3980
+ {
3981
+ internalType: "uint32",
3982
+ name: "expiry",
3983
+ type: "uint32",
3984
+ },
3985
+ ],
3986
+ name: "getWithdrawalBatchData",
3987
+ outputs: [
3988
+ {
3989
+ components: [
3990
+ {
3991
+ internalType: "uint32",
3992
+ name: "expiry",
3993
+ type: "uint32",
3994
+ },
3995
+ {
3996
+ internalType: "enum BatchStatus",
3997
+ name: "status",
3998
+ type: "uint8",
3999
+ },
4000
+ {
4001
+ internalType: "uint256",
4002
+ name: "scaledTotalAmount",
4003
+ type: "uint256",
4004
+ },
4005
+ {
4006
+ internalType: "uint256",
4007
+ name: "scaledAmountBurned",
4008
+ type: "uint256",
4009
+ },
4010
+ {
4011
+ internalType: "uint256",
4012
+ name: "normalizedAmountPaid",
4013
+ type: "uint256",
4014
+ },
4015
+ {
4016
+ internalType: "uint256",
4017
+ name: "normalizedTotalAmount",
4018
+ type: "uint256",
4019
+ },
4020
+ ],
4021
+ internalType: "struct WithdrawalBatchData",
4022
+ name: "data",
4023
+ type: "tuple",
4024
+ },
4025
+ ],
4026
+ stateMutability: "view",
4027
+ type: "function",
4028
+ },
4029
+ {
4030
+ inputs: [
4031
+ {
4032
+ internalType: "address",
4033
+ name: "market",
4034
+ type: "address",
4035
+ },
4036
+ {
4037
+ internalType: "uint32",
4038
+ name: "expiry",
4039
+ type: "uint32",
4040
+ },
4041
+ {
4042
+ internalType: "address",
4043
+ name: "lender",
4044
+ type: "address",
4045
+ },
4046
+ ],
4047
+ name: "getWithdrawalBatchDataWithLenderStatus",
4048
+ outputs: [
4049
+ {
4050
+ components: [
4051
+ {
4052
+ components: [
4053
+ {
4054
+ internalType: "uint32",
4055
+ name: "expiry",
4056
+ type: "uint32",
4057
+ },
4058
+ {
4059
+ internalType: "enum BatchStatus",
4060
+ name: "status",
4061
+ type: "uint8",
4062
+ },
4063
+ {
4064
+ internalType: "uint256",
4065
+ name: "scaledTotalAmount",
4066
+ type: "uint256",
4067
+ },
4068
+ {
4069
+ internalType: "uint256",
4070
+ name: "scaledAmountBurned",
4071
+ type: "uint256",
4072
+ },
4073
+ {
4074
+ internalType: "uint256",
4075
+ name: "normalizedAmountPaid",
4076
+ type: "uint256",
4077
+ },
4078
+ {
4079
+ internalType: "uint256",
4080
+ name: "normalizedTotalAmount",
4081
+ type: "uint256",
4082
+ },
4083
+ ],
4084
+ internalType: "struct WithdrawalBatchData",
4085
+ name: "batch",
4086
+ type: "tuple",
4087
+ },
4088
+ {
4089
+ components: [
4090
+ {
4091
+ internalType: "address",
4092
+ name: "lender",
4093
+ type: "address",
4094
+ },
4095
+ {
4096
+ internalType: "uint256",
4097
+ name: "scaledAmount",
4098
+ type: "uint256",
4099
+ },
4100
+ {
4101
+ internalType: "uint256",
4102
+ name: "normalizedAmountWithdrawn",
4103
+ type: "uint256",
4104
+ },
4105
+ {
4106
+ internalType: "uint256",
4107
+ name: "normalizedAmountOwed",
4108
+ type: "uint256",
4109
+ },
4110
+ {
4111
+ internalType: "uint256",
4112
+ name: "availableWithdrawalAmount",
4113
+ type: "uint256",
4114
+ },
4115
+ ],
4116
+ internalType: "struct WithdrawalBatchLenderStatus",
4117
+ name: "lenderStatus",
4118
+ type: "tuple",
4119
+ },
4120
+ ],
4121
+ internalType: "struct WithdrawalBatchDataWithLenderStatus",
4122
+ name: "status",
4123
+ type: "tuple",
4124
+ },
4125
+ ],
4126
+ stateMutability: "view",
4127
+ type: "function",
4128
+ },
4129
+ {
4130
+ inputs: [
4131
+ {
4132
+ internalType: "address",
4133
+ name: "market",
4134
+ type: "address",
4135
+ },
4136
+ {
4137
+ internalType: "uint32",
4138
+ name: "expiry",
4139
+ type: "uint32",
4140
+ },
4141
+ {
4142
+ internalType: "address[]",
4143
+ name: "lenders",
4144
+ type: "address[]",
4145
+ },
4146
+ ],
4147
+ name: "getWithdrawalBatchDataWithLendersStatus",
4148
+ outputs: [
4149
+ {
4150
+ components: [
4151
+ {
4152
+ internalType: "uint32",
4153
+ name: "expiry",
4154
+ type: "uint32",
4155
+ },
4156
+ {
4157
+ internalType: "enum BatchStatus",
4158
+ name: "status",
4159
+ type: "uint8",
4160
+ },
4161
+ {
4162
+ internalType: "uint256",
4163
+ name: "scaledTotalAmount",
4164
+ type: "uint256",
4165
+ },
4166
+ {
4167
+ internalType: "uint256",
4168
+ name: "scaledAmountBurned",
4169
+ type: "uint256",
4170
+ },
4171
+ {
4172
+ internalType: "uint256",
4173
+ name: "normalizedAmountPaid",
4174
+ type: "uint256",
4175
+ },
4176
+ {
4177
+ internalType: "uint256",
4178
+ name: "normalizedTotalAmount",
4179
+ type: "uint256",
4180
+ },
4181
+ ],
4182
+ internalType: "struct WithdrawalBatchData",
4183
+ name: "batch",
4184
+ type: "tuple",
4185
+ },
4186
+ {
4187
+ components: [
4188
+ {
4189
+ internalType: "address",
4190
+ name: "lender",
4191
+ type: "address",
4192
+ },
4193
+ {
4194
+ internalType: "uint256",
4195
+ name: "scaledAmount",
4196
+ type: "uint256",
4197
+ },
4198
+ {
4199
+ internalType: "uint256",
4200
+ name: "normalizedAmountWithdrawn",
4201
+ type: "uint256",
4202
+ },
4203
+ {
4204
+ internalType: "uint256",
4205
+ name: "normalizedAmountOwed",
4206
+ type: "uint256",
4207
+ },
4208
+ {
4209
+ internalType: "uint256",
4210
+ name: "availableWithdrawalAmount",
4211
+ type: "uint256",
4212
+ },
4213
+ ],
4214
+ internalType: "struct WithdrawalBatchLenderStatus[]",
4215
+ name: "statuses",
4216
+ type: "tuple[]",
4217
+ },
4218
+ ],
4219
+ stateMutability: "view",
4220
+ type: "function",
4221
+ },
4222
+ {
4223
+ inputs: [
4224
+ {
4225
+ internalType: "address",
4226
+ name: "market",
4227
+ type: "address",
4228
+ },
4229
+ {
4230
+ internalType: "uint32[]",
4231
+ name: "expiries",
4232
+ type: "uint32[]",
4233
+ },
4234
+ ],
4235
+ name: "getWithdrawalBatchesData",
4236
+ outputs: [
4237
+ {
4238
+ components: [
4239
+ {
4240
+ internalType: "uint32",
4241
+ name: "expiry",
4242
+ type: "uint32",
4243
+ },
4244
+ {
4245
+ internalType: "enum BatchStatus",
4246
+ name: "status",
4247
+ type: "uint8",
4248
+ },
4249
+ {
4250
+ internalType: "uint256",
4251
+ name: "scaledTotalAmount",
4252
+ type: "uint256",
4253
+ },
4254
+ {
4255
+ internalType: "uint256",
4256
+ name: "scaledAmountBurned",
4257
+ type: "uint256",
4258
+ },
4259
+ {
4260
+ internalType: "uint256",
4261
+ name: "normalizedAmountPaid",
4262
+ type: "uint256",
4263
+ },
4264
+ {
4265
+ internalType: "uint256",
4266
+ name: "normalizedTotalAmount",
4267
+ type: "uint256",
4268
+ },
4269
+ ],
4270
+ internalType: "struct WithdrawalBatchData[]",
4271
+ name: "data",
4272
+ type: "tuple[]",
4273
+ },
4274
+ ],
4275
+ stateMutability: "view",
4276
+ type: "function",
4277
+ },
4278
+ {
4279
+ inputs: [
4280
+ {
4281
+ internalType: "address",
4282
+ name: "market",
4283
+ type: "address",
4284
+ },
4285
+ {
4286
+ internalType: "uint32[]",
4287
+ name: "expiries",
4288
+ type: "uint32[]",
4289
+ },
4290
+ {
4291
+ internalType: "address",
4292
+ name: "lender",
4293
+ type: "address",
4294
+ },
4295
+ ],
4296
+ name: "getWithdrawalBatchesDataWithLenderStatus",
4297
+ outputs: [
4298
+ {
4299
+ components: [
4300
+ {
4301
+ components: [
4302
+ {
4303
+ internalType: "uint32",
4304
+ name: "expiry",
4305
+ type: "uint32",
4306
+ },
4307
+ {
4308
+ internalType: "enum BatchStatus",
4309
+ name: "status",
4310
+ type: "uint8",
4311
+ },
4312
+ {
4313
+ internalType: "uint256",
4314
+ name: "scaledTotalAmount",
4315
+ type: "uint256",
4316
+ },
4317
+ {
4318
+ internalType: "uint256",
4319
+ name: "scaledAmountBurned",
4320
+ type: "uint256",
4321
+ },
4322
+ {
4323
+ internalType: "uint256",
4324
+ name: "normalizedAmountPaid",
4325
+ type: "uint256",
4326
+ },
4327
+ {
4328
+ internalType: "uint256",
4329
+ name: "normalizedTotalAmount",
4330
+ type: "uint256",
4331
+ },
4332
+ ],
4333
+ internalType: "struct WithdrawalBatchData",
4334
+ name: "batch",
4335
+ type: "tuple",
4336
+ },
4337
+ {
4338
+ components: [
4339
+ {
4340
+ internalType: "address",
4341
+ name: "lender",
4342
+ type: "address",
4343
+ },
4344
+ {
4345
+ internalType: "uint256",
4346
+ name: "scaledAmount",
4347
+ type: "uint256",
4348
+ },
4349
+ {
4350
+ internalType: "uint256",
4351
+ name: "normalizedAmountWithdrawn",
4352
+ type: "uint256",
4353
+ },
4354
+ {
4355
+ internalType: "uint256",
4356
+ name: "normalizedAmountOwed",
4357
+ type: "uint256",
4358
+ },
4359
+ {
4360
+ internalType: "uint256",
4361
+ name: "availableWithdrawalAmount",
4362
+ type: "uint256",
4363
+ },
4364
+ ],
4365
+ internalType: "struct WithdrawalBatchLenderStatus",
4366
+ name: "lenderStatus",
4367
+ type: "tuple",
4368
+ },
4369
+ ],
4370
+ internalType: "struct WithdrawalBatchDataWithLenderStatus[]",
4371
+ name: "statuses",
4372
+ type: "tuple[]",
4373
+ },
4374
+ ],
4375
+ stateMutability: "view",
4376
+ type: "function",
4377
+ },
4378
+ ];
4379
+ class MarketLens__factory {
4380
+ static createInterface() {
4381
+ return new ethers_1.utils.Interface(_abi);
4382
+ }
4383
+ static connect(address, signerOrProvider) {
4384
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
4385
+ }
4386
+ }
4387
+ MarketLens__factory.abi = _abi;
4388
+ exports.MarketLens__factory = MarketLens__factory;
4389
+ //# sourceMappingURL=MarketLens__factory.js.map