@kasufinance/kasu-sdk 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/.eslintignore +3 -0
  2. package/.eslintrc.json +90 -0
  3. package/.github/workflows/ci.yml +0 -0
  4. package/.github/workflows/main.yml +43 -0
  5. package/.prettierignore +3 -0
  6. package/.prettierrc +28 -0
  7. package/abis/IClearingCoordinator.abi.json +410 -0
  8. package/abis/IERC20Metadata.abi.json +224 -0
  9. package/abis/IFeeManager.abi.json +66 -0
  10. package/abis/IKSULocking.abi.json +754 -0
  11. package/abis/IKasuAllowList.abi.json +455 -0
  12. package/abis/IKasuController.abi.json +423 -0
  13. package/abis/IKasuNFTs.abi.json +1523 -0
  14. package/abis/IKsuPrice.abi.json +15 -0
  15. package/abis/ILendingPool.abi.json +1431 -0
  16. package/abis/ILendingPoolFactory.abi.json +97 -0
  17. package/abis/ILendingPoolManager.abi.json +1347 -0
  18. package/abis/ILendingPoolTranche.abi.json +1317 -0
  19. package/abis/IPriceFeed.abi.json +1 -0
  20. package/abis/ISystemVariables.abi.json +431 -0
  21. package/abis/IUserLoyaltyRewards.abi.json +288 -0
  22. package/abis/IUserManager.abi.json +321 -0
  23. package/abis/KSULockBonus.abi.json +91 -0
  24. package/abis/KasuPoolExternalTVL.abi.json +812 -0
  25. package/abis/Swapper.abi.json +146 -0
  26. package/copy-abi.ps1 +15 -0
  27. package/dist/bundle.cjs.js +21646 -0
  28. package/dist/bundle.esm.js +21644 -0
  29. package/dist/contracts/IClearingCoordinatorAbi.d.ts +169 -0
  30. package/dist/contracts/IClearingCoordinatorAbi.js +1 -0
  31. package/dist/contracts/IERC20MetadataAbi.d.ts +162 -0
  32. package/dist/contracts/IERC20MetadataAbi.js +1 -0
  33. package/dist/contracts/IFeeManagerAbi.d.ts +96 -0
  34. package/dist/contracts/IFeeManagerAbi.js +1 -0
  35. package/dist/contracts/IKSULockingAbi.d.ts +466 -0
  36. package/dist/contracts/IKSULockingAbi.js +1 -0
  37. package/dist/contracts/IKasuAllowListAbi.d.ts +304 -0
  38. package/dist/contracts/IKasuAllowListAbi.js +1 -0
  39. package/dist/contracts/IKasuControllerAbi.d.ts +309 -0
  40. package/dist/contracts/IKasuControllerAbi.js +1 -0
  41. package/dist/contracts/IKasuNFTsAbi.d.ts +1121 -0
  42. package/dist/contracts/IKasuNFTsAbi.js +1 -0
  43. package/dist/contracts/IKsuPriceAbi.d.ts +42 -0
  44. package/dist/contracts/IKsuPriceAbi.js +1 -0
  45. package/dist/contracts/ILendingPoolAbi.d.ts +968 -0
  46. package/dist/contracts/ILendingPoolAbi.js +1 -0
  47. package/dist/contracts/ILendingPoolFactoryAbi.d.ts +103 -0
  48. package/dist/contracts/ILendingPoolFactoryAbi.js +1 -0
  49. package/dist/contracts/ILendingPoolManagerAbi.d.ts +779 -0
  50. package/dist/contracts/ILendingPoolManagerAbi.js +1 -0
  51. package/dist/contracts/ILendingPoolTrancheAbi.d.ts +752 -0
  52. package/dist/contracts/ILendingPoolTrancheAbi.js +1 -0
  53. package/dist/contracts/ISystemVariablesAbi.d.ts +378 -0
  54. package/dist/contracts/ISystemVariablesAbi.js +1 -0
  55. package/dist/contracts/IUserLoyaltyRewardsAbi.d.ts +248 -0
  56. package/dist/contracts/IUserLoyaltyRewardsAbi.js +1 -0
  57. package/dist/contracts/IUserManagerAbi.d.ts +270 -0
  58. package/dist/contracts/IUserManagerAbi.js +1 -0
  59. package/dist/contracts/KSULockBonusAbi.d.ts +61 -0
  60. package/dist/contracts/KSULockBonusAbi.js +1 -0
  61. package/dist/contracts/KasuPoolExternalTVLAbi.d.ts +411 -0
  62. package/dist/contracts/KasuPoolExternalTVLAbi.js +1 -0
  63. package/dist/contracts/SwapperAbi.d.ts +120 -0
  64. package/dist/contracts/SwapperAbi.js +1 -0
  65. package/dist/contracts/common.d.ts +21 -0
  66. package/dist/contracts/common.js +1 -0
  67. package/dist/contracts/factories/IClearingCoordinatorAbi__factory.d.ts +320 -0
  68. package/dist/contracts/factories/IClearingCoordinatorAbi__factory.js +423 -0
  69. package/dist/contracts/factories/IERC20MetadataAbi__factory.d.ts +178 -0
  70. package/dist/contracts/factories/IERC20MetadataAbi__factory.js +237 -0
  71. package/dist/contracts/factories/IFeeManagerAbi__factory.d.ts +59 -0
  72. package/dist/contracts/factories/IFeeManagerAbi__factory.js +79 -0
  73. package/dist/contracts/factories/IKSULockingAbi__factory.d.ts +588 -0
  74. package/dist/contracts/factories/IKSULockingAbi__factory.js +767 -0
  75. package/dist/contracts/factories/IKasuAllowListAbi__factory.d.ts +354 -0
  76. package/dist/contracts/factories/IKasuAllowListAbi__factory.js +468 -0
  77. package/dist/contracts/factories/IKasuControllerAbi__factory.d.ts +339 -0
  78. package/dist/contracts/factories/IKasuControllerAbi__factory.js +436 -0
  79. package/dist/contracts/factories/IKasuNFTsAbi__factory.d.ts +1629 -0
  80. package/dist/contracts/factories/IKasuNFTsAbi__factory.js +2108 -0
  81. package/dist/contracts/factories/IKsuPriceAbi__factory.d.ts +18 -0
  82. package/dist/contracts/factories/IKsuPriceAbi__factory.js +28 -0
  83. package/dist/contracts/factories/ILendingPoolAbi__factory.d.ts +1109 -0
  84. package/dist/contracts/factories/ILendingPoolAbi__factory.js +1444 -0
  85. package/dist/contracts/factories/ILendingPoolFactoryAbi__factory.d.ts +81 -0
  86. package/dist/contracts/factories/ILendingPoolFactoryAbi__factory.js +110 -0
  87. package/dist/contracts/factories/ILendingPoolManagerAbi__factory.d.ts +1045 -0
  88. package/dist/contracts/factories/ILendingPoolManagerAbi__factory.js +1360 -0
  89. package/dist/contracts/factories/ILendingPoolTrancheAbi__factory.d.ts +1015 -0
  90. package/dist/contracts/factories/ILendingPoolTrancheAbi__factory.js +1330 -0
  91. package/dist/contracts/factories/ISystemVariablesAbi__factory.d.ts +338 -0
  92. package/dist/contracts/factories/ISystemVariablesAbi__factory.js +444 -0
  93. package/dist/contracts/factories/IUserLoyaltyRewardsAbi__factory.d.ts +230 -0
  94. package/dist/contracts/factories/IUserLoyaltyRewardsAbi__factory.js +301 -0
  95. package/dist/contracts/factories/IUserManagerAbi__factory.d.ts +250 -0
  96. package/dist/contracts/factories/IUserManagerAbi__factory.js +334 -0
  97. package/dist/contracts/factories/KSULockBonusAbi__factory.d.ts +76 -0
  98. package/dist/contracts/factories/KSULockBonusAbi__factory.js +104 -0
  99. package/dist/contracts/factories/KasuPoolExternalTVLAbi__factory.d.ts +631 -0
  100. package/dist/contracts/factories/KasuPoolExternalTVLAbi__factory.js +825 -0
  101. package/dist/contracts/factories/SwapperAbi__factory.d.ts +120 -0
  102. package/dist/contracts/factories/SwapperAbi__factory.js +159 -0
  103. package/dist/contracts/factories/index.d.ts +18 -0
  104. package/dist/contracts/factories/index.js +21 -0
  105. package/dist/contracts/index.d.ts +37 -0
  106. package/dist/contracts/index.js +19 -0
  107. package/dist/index.d.ts +17 -0
  108. package/dist/index.js +16 -0
  109. package/dist/sdk-config.d.ts +22 -0
  110. package/dist/sdk-config.js +9 -0
  111. package/dist/services/DataService/data-service.d.ts +37 -0
  112. package/dist/services/DataService/data-service.js +586 -0
  113. package/dist/services/DataService/directus-types.d.ts +187 -0
  114. package/dist/services/DataService/directus-types.js +1 -0
  115. package/dist/services/DataService/queries.d.ts +7 -0
  116. package/dist/services/DataService/queries.js +158 -0
  117. package/dist/services/DataService/subgraph-types.d.ts +95 -0
  118. package/dist/services/DataService/subgraph-types.js +1 -0
  119. package/dist/services/DataService/types.d.ts +169 -0
  120. package/dist/services/DataService/types.js +1 -0
  121. package/dist/services/Locking/locking.d.ts +61 -0
  122. package/dist/services/Locking/locking.js +344 -0
  123. package/dist/services/Locking/queries.d.ts +10 -0
  124. package/dist/services/Locking/queries.js +108 -0
  125. package/dist/services/Locking/types.d.ts +117 -0
  126. package/dist/services/Locking/types.js +1 -0
  127. package/dist/services/Portfolio/portfolio.d.ts +22 -0
  128. package/dist/services/Portfolio/portfolio.js +325 -0
  129. package/dist/services/Portfolio/queries.d.ts +2 -0
  130. package/dist/services/Portfolio/queries.js +164 -0
  131. package/dist/services/Portfolio/types.d.ts +206 -0
  132. package/dist/services/Portfolio/types.js +1 -0
  133. package/dist/services/Swapper/swapper.d.ts +11 -0
  134. package/dist/services/Swapper/swapper.js +97 -0
  135. package/dist/services/Swapper/types.d.ts +51 -0
  136. package/dist/services/Swapper/types.js +1 -0
  137. package/dist/services/UserLending/helper.d.ts +2 -0
  138. package/dist/services/UserLending/helper.js +16 -0
  139. package/dist/services/UserLending/queries.d.ts +8 -0
  140. package/dist/services/UserLending/queries.js +188 -0
  141. package/dist/services/UserLending/subgraph-types.d.ts +147 -0
  142. package/dist/services/UserLending/subgraph-types.js +6 -0
  143. package/dist/services/UserLending/types.d.ts +102 -0
  144. package/dist/services/UserLending/types.js +13 -0
  145. package/dist/services/UserLending/user-lending.d.ts +55 -0
  146. package/dist/services/UserLending/user-lending.js +490 -0
  147. package/dist/services/shared.d.ts +1 -0
  148. package/dist/services/shared.js +11 -0
  149. package/dist/tests/sample.test.d.ts +1 -0
  150. package/dist/tests/sample.test.js +32 -0
  151. package/index.ts +2 -0
  152. package/jest-config.ts +9 -0
  153. package/jest.config.js +8 -0
  154. package/package.json +49 -0
  155. package/rollup.config.js +45 -0
  156. package/src/contracts/IClearingCoordinatorAbi.ts +406 -0
  157. package/src/contracts/IERC20MetadataAbi.ts +364 -0
  158. package/src/contracts/IFeeManagerAbi.ts +182 -0
  159. package/src/contracts/IKSULockingAbi.ts +965 -0
  160. package/src/contracts/IKasuAllowListAbi.ts +605 -0
  161. package/src/contracts/IKasuControllerAbi.ts +703 -0
  162. package/src/contracts/IKasuNFTsAbi.ts +2744 -0
  163. package/src/contracts/IKsuPriceAbi.ts +87 -0
  164. package/src/contracts/ILendingPoolAbi.ts +2081 -0
  165. package/src/contracts/ILendingPoolFactoryAbi.ts +161 -0
  166. package/src/contracts/ILendingPoolManagerAbi.ts +1917 -0
  167. package/src/contracts/ILendingPoolTrancheAbi.ts +1911 -0
  168. package/src/contracts/ISystemVariablesAbi.ts +908 -0
  169. package/src/contracts/IUserLoyaltyRewardsAbi.ts +544 -0
  170. package/src/contracts/IUserManagerAbi.ts +612 -0
  171. package/src/contracts/KSULockBonusAbi.ts +124 -0
  172. package/src/contracts/KasuPoolExternalTVLAbi.ts +1071 -0
  173. package/src/contracts/SwapperAbi.ts +266 -0
  174. package/src/contracts/common.ts +44 -0
  175. package/src/contracts/factories/IClearingCoordinatorAbi__factory.ts +438 -0
  176. package/src/contracts/factories/IERC20MetadataAbi__factory.ts +248 -0
  177. package/src/contracts/factories/IFeeManagerAbi__factory.ts +90 -0
  178. package/src/contracts/factories/IKSULockingAbi__factory.ts +778 -0
  179. package/src/contracts/factories/IKasuAllowListAbi__factory.ts +479 -0
  180. package/src/contracts/factories/IKasuControllerAbi__factory.ts +447 -0
  181. package/src/contracts/factories/IKasuNFTsAbi__factory.ts +2116 -0
  182. package/src/contracts/factories/IKsuPriceAbi__factory.ts +36 -0
  183. package/src/contracts/factories/ILendingPoolAbi__factory.ts +1455 -0
  184. package/src/contracts/factories/ILendingPoolFactoryAbi__factory.ts +125 -0
  185. package/src/contracts/factories/ILendingPoolManagerAbi__factory.ts +1375 -0
  186. package/src/contracts/factories/ILendingPoolTrancheAbi__factory.ts +1345 -0
  187. package/src/contracts/factories/ISystemVariablesAbi__factory.ts +455 -0
  188. package/src/contracts/factories/IUserLoyaltyRewardsAbi__factory.ts +316 -0
  189. package/src/contracts/factories/IUserManagerAbi__factory.ts +345 -0
  190. package/src/contracts/factories/KSULockBonusAbi__factory.ts +115 -0
  191. package/src/contracts/factories/KasuPoolExternalTVLAbi__factory.ts +840 -0
  192. package/src/contracts/factories/SwapperAbi__factory.ts +167 -0
  193. package/src/contracts/factories/index.ts +21 -0
  194. package/src/contracts/index.ts +40 -0
  195. package/src/index.ts +27 -0
  196. package/src/sdk-config.ts +35 -0
  197. package/src/services/DataService/data-service.ts +1017 -0
  198. package/src/services/DataService/directus-types.ts +199 -0
  199. package/src/services/DataService/queries.ts +165 -0
  200. package/src/services/DataService/subgraph-types.ts +104 -0
  201. package/src/services/DataService/types.ts +184 -0
  202. package/src/services/Locking/locking.ts +541 -0
  203. package/src/services/Locking/queries.ts +118 -0
  204. package/src/services/Locking/types.ts +141 -0
  205. package/src/services/Portfolio/portfolio.ts +593 -0
  206. package/src/services/Portfolio/queries.ts +166 -0
  207. package/src/services/Portfolio/types.ts +220 -0
  208. package/src/services/Swapper/swapper.ts +158 -0
  209. package/src/services/Swapper/types.ts +54 -0
  210. package/src/services/UserLending/helper.ts +28 -0
  211. package/src/services/UserLending/queries.ts +196 -0
  212. package/src/services/UserLending/subgraph-types.ts +173 -0
  213. package/src/services/UserLending/types.ts +123 -0
  214. package/src/services/UserLending/user-lending.ts +933 -0
  215. package/src/services/shared.ts +11 -0
  216. package/src/tests/sample.test.ts +44 -0
  217. package/tsconfig.json +27 -0
  218. package/tsconfig.tsbuildinfo +1 -0
  219. package/versioner.sh +6 -0
@@ -0,0 +1,1444 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import { Contract, utils } from "ethers";
5
+ const _abi = [
6
+ {
7
+ inputs: [],
8
+ name: "ClearingIsPending",
9
+ type: "error",
10
+ },
11
+ {
12
+ inputs: [
13
+ {
14
+ internalType: "uint256",
15
+ name: "drawAmount",
16
+ type: "uint256",
17
+ },
18
+ {
19
+ internalType: "uint256",
20
+ name: "availableAmount",
21
+ type: "uint256",
22
+ },
23
+ ],
24
+ name: "DrawAmountCantBeGreaterThanAvailableAmount",
25
+ type: "error",
26
+ },
27
+ {
28
+ inputs: [
29
+ {
30
+ internalType: "uint256",
31
+ name: "feesOwedAmount",
32
+ type: "uint256",
33
+ },
34
+ ],
35
+ name: "FeesOwedAmountIsGreaterThanZero",
36
+ type: "error",
37
+ },
38
+ {
39
+ inputs: [],
40
+ name: "LendingPoolIsNotStopped",
41
+ type: "error",
42
+ },
43
+ {
44
+ inputs: [],
45
+ name: "LendingPoolIsStopped",
46
+ type: "error",
47
+ },
48
+ {
49
+ inputs: [
50
+ {
51
+ internalType: "uint256",
52
+ name: "reportedLossAmount",
53
+ type: "uint256",
54
+ },
55
+ {
56
+ internalType: "uint256",
57
+ name: "maxLossAmount",
58
+ type: "uint256",
59
+ },
60
+ ],
61
+ name: "LossAmountCantBeGreaterThanMaxLossAmount",
62
+ type: "error",
63
+ },
64
+ {
65
+ inputs: [
66
+ {
67
+ internalType: "uint256",
68
+ name: "reportedLossAmount",
69
+ type: "uint256",
70
+ },
71
+ ],
72
+ name: "LossAmountShouldBeGreaterThanZero",
73
+ type: "error",
74
+ },
75
+ {
76
+ inputs: [
77
+ {
78
+ internalType: "uint256",
79
+ name: "lossId",
80
+ type: "uint256",
81
+ },
82
+ ],
83
+ name: "LossIdNotValid",
84
+ type: "error",
85
+ },
86
+ {
87
+ inputs: [
88
+ {
89
+ internalType: "string",
90
+ name: "reason",
91
+ type: "string",
92
+ },
93
+ ],
94
+ name: "PoolConfigurationIsIncorrect",
95
+ type: "error",
96
+ },
97
+ {
98
+ inputs: [
99
+ {
100
+ internalType: "uint256",
101
+ name: "repayAmount",
102
+ type: "uint256",
103
+ },
104
+ {
105
+ internalType: "uint256",
106
+ name: "owedAmount",
107
+ type: "uint256",
108
+ },
109
+ ],
110
+ name: "RepayAmountCantBeGreaterThanOwedAmount",
111
+ type: "error",
112
+ },
113
+ {
114
+ inputs: [
115
+ {
116
+ internalType: "uint256",
117
+ name: "userOwedAmount",
118
+ type: "uint256",
119
+ },
120
+ ],
121
+ name: "UserOwedAmountIsGreaterThanZero",
122
+ type: "error",
123
+ },
124
+ {
125
+ inputs: [
126
+ {
127
+ internalType: "uint256",
128
+ name: "withdrawAmount",
129
+ type: "uint256",
130
+ },
131
+ {
132
+ internalType: "uint256",
133
+ name: "firstLostCapital",
134
+ type: "uint256",
135
+ },
136
+ ],
137
+ name: "WithdrawAmountCantBeGreaterThanFirstLostCapital",
138
+ type: "error",
139
+ },
140
+ {
141
+ anonymous: false,
142
+ inputs: [
143
+ {
144
+ indexed: true,
145
+ internalType: "address",
146
+ name: "owner",
147
+ type: "address",
148
+ },
149
+ {
150
+ indexed: true,
151
+ internalType: "address",
152
+ name: "spender",
153
+ type: "address",
154
+ },
155
+ {
156
+ indexed: false,
157
+ internalType: "uint256",
158
+ name: "value",
159
+ type: "uint256",
160
+ },
161
+ ],
162
+ name: "Approval",
163
+ type: "event",
164
+ },
165
+ {
166
+ anonymous: false,
167
+ inputs: [
168
+ {
169
+ indexed: true,
170
+ internalType: "address",
171
+ name: "user",
172
+ type: "address",
173
+ },
174
+ {
175
+ indexed: true,
176
+ internalType: "address",
177
+ name: "tranche",
178
+ type: "address",
179
+ },
180
+ {
181
+ indexed: false,
182
+ internalType: "uint256",
183
+ name: "amount",
184
+ type: "uint256",
185
+ },
186
+ ],
187
+ name: "DepositAccepted",
188
+ type: "event",
189
+ },
190
+ {
191
+ anonymous: false,
192
+ inputs: [
193
+ {
194
+ indexed: true,
195
+ internalType: "uint256",
196
+ name: "epoch",
197
+ type: "uint256",
198
+ },
199
+ {
200
+ indexed: false,
201
+ internalType: "uint256",
202
+ name: "feesIncreasedAmount",
203
+ type: "uint256",
204
+ },
205
+ ],
206
+ name: "FeesOwedIncreased",
207
+ type: "event",
208
+ },
209
+ {
210
+ anonymous: false,
211
+ inputs: [
212
+ {
213
+ indexed: false,
214
+ internalType: "uint256",
215
+ name: "amountAdded",
216
+ type: "uint256",
217
+ },
218
+ ],
219
+ name: "FirstLossCapitalAdded",
220
+ type: "event",
221
+ },
222
+ {
223
+ anonymous: false,
224
+ inputs: [
225
+ {
226
+ indexed: true,
227
+ internalType: "uint256",
228
+ name: "lossId",
229
+ type: "uint256",
230
+ },
231
+ {
232
+ indexed: false,
233
+ internalType: "uint256",
234
+ name: "amount",
235
+ type: "uint256",
236
+ },
237
+ ],
238
+ name: "FirstLossCapitalLossReported",
239
+ type: "event",
240
+ },
241
+ {
242
+ anonymous: false,
243
+ inputs: [
244
+ {
245
+ indexed: false,
246
+ internalType: "uint256",
247
+ name: "amountWithdrawn",
248
+ type: "uint256",
249
+ },
250
+ ],
251
+ name: "FirstLossCapitalWithdrawn",
252
+ type: "event",
253
+ },
254
+ {
255
+ anonymous: false,
256
+ inputs: [
257
+ {
258
+ indexed: false,
259
+ internalType: "uint256",
260
+ name: "amount",
261
+ type: "uint256",
262
+ },
263
+ ],
264
+ name: "FundsDrawn",
265
+ type: "event",
266
+ },
267
+ {
268
+ anonymous: false,
269
+ inputs: [
270
+ {
271
+ indexed: true,
272
+ internalType: "address",
273
+ name: "user",
274
+ type: "address",
275
+ },
276
+ {
277
+ indexed: true,
278
+ internalType: "address",
279
+ name: "tranche",
280
+ type: "address",
281
+ },
282
+ {
283
+ indexed: false,
284
+ internalType: "uint256",
285
+ name: "shares",
286
+ type: "uint256",
287
+ },
288
+ {
289
+ indexed: false,
290
+ internalType: "uint256",
291
+ name: "amount",
292
+ type: "uint256",
293
+ },
294
+ ],
295
+ name: "ImmediateWithdrawal",
296
+ type: "event",
297
+ },
298
+ {
299
+ anonymous: false,
300
+ inputs: [
301
+ {
302
+ indexed: true,
303
+ internalType: "address",
304
+ name: "tranche",
305
+ type: "address",
306
+ },
307
+ {
308
+ indexed: true,
309
+ internalType: "uint256",
310
+ name: "epoch",
311
+ type: "uint256",
312
+ },
313
+ {
314
+ indexed: false,
315
+ internalType: "uint256",
316
+ name: "interestAmount",
317
+ type: "uint256",
318
+ },
319
+ ],
320
+ name: "InterestApplied",
321
+ type: "event",
322
+ },
323
+ {
324
+ anonymous: false,
325
+ inputs: [],
326
+ name: "LendingPoolStopped",
327
+ type: "event",
328
+ },
329
+ {
330
+ anonymous: false,
331
+ inputs: [
332
+ {
333
+ indexed: false,
334
+ internalType: "uint256",
335
+ name: "amount",
336
+ type: "uint256",
337
+ },
338
+ ],
339
+ name: "LossReported",
340
+ type: "event",
341
+ },
342
+ {
343
+ anonymous: false,
344
+ inputs: [
345
+ {
346
+ indexed: false,
347
+ internalType: "uint256",
348
+ name: "amountForUsers",
349
+ type: "uint256",
350
+ },
351
+ {
352
+ indexed: false,
353
+ internalType: "uint256",
354
+ name: "amountForFees",
355
+ type: "uint256",
356
+ },
357
+ ],
358
+ name: "OwedFundsRepaid",
359
+ type: "event",
360
+ },
361
+ {
362
+ anonymous: false,
363
+ inputs: [
364
+ {
365
+ indexed: false,
366
+ internalType: "uint256",
367
+ name: "feesPaid",
368
+ type: "uint256",
369
+ },
370
+ ],
371
+ name: "PaidFees",
372
+ type: "event",
373
+ },
374
+ {
375
+ anonymous: false,
376
+ inputs: [
377
+ {
378
+ indexed: true,
379
+ internalType: "address",
380
+ name: "tranche",
381
+ type: "address",
382
+ },
383
+ {
384
+ indexed: true,
385
+ internalType: "uint256",
386
+ name: "applicableEpoch",
387
+ type: "uint256",
388
+ },
389
+ {
390
+ indexed: false,
391
+ internalType: "uint256",
392
+ name: "arrayIndex",
393
+ type: "uint256",
394
+ },
395
+ ],
396
+ name: "RemovedTrancheInterestRateUpdate",
397
+ type: "event",
398
+ },
399
+ {
400
+ anonymous: false,
401
+ inputs: [
402
+ {
403
+ indexed: true,
404
+ internalType: "address",
405
+ name: "from",
406
+ type: "address",
407
+ },
408
+ {
409
+ indexed: true,
410
+ internalType: "address",
411
+ name: "to",
412
+ type: "address",
413
+ },
414
+ {
415
+ indexed: false,
416
+ internalType: "uint256",
417
+ name: "value",
418
+ type: "uint256",
419
+ },
420
+ ],
421
+ name: "Transfer",
422
+ type: "event",
423
+ },
424
+ {
425
+ anonymous: false,
426
+ inputs: [
427
+ {
428
+ indexed: false,
429
+ internalType: "uint256",
430
+ name: "desiredDrawAmount",
431
+ type: "uint256",
432
+ },
433
+ ],
434
+ name: "UpdatedDesiredDrawAmount",
435
+ type: "event",
436
+ },
437
+ {
438
+ anonymous: false,
439
+ inputs: [
440
+ {
441
+ indexed: true,
442
+ internalType: "address",
443
+ name: "drawRecipient",
444
+ type: "address",
445
+ },
446
+ ],
447
+ name: "UpdatedDrawRecipient",
448
+ type: "event",
449
+ },
450
+ {
451
+ anonymous: false,
452
+ inputs: [
453
+ {
454
+ indexed: true,
455
+ internalType: "address",
456
+ name: "tranche",
457
+ type: "address",
458
+ },
459
+ {
460
+ indexed: false,
461
+ internalType: "uint256",
462
+ name: "amount",
463
+ type: "uint256",
464
+ },
465
+ ],
466
+ name: "UpdatedMaximumDepositAmount",
467
+ type: "event",
468
+ },
469
+ {
470
+ anonymous: false,
471
+ inputs: [
472
+ {
473
+ indexed: true,
474
+ internalType: "address",
475
+ name: "tranche",
476
+ type: "address",
477
+ },
478
+ {
479
+ indexed: false,
480
+ internalType: "uint256",
481
+ name: "amount",
482
+ type: "uint256",
483
+ },
484
+ ],
485
+ name: "UpdatedMinimumDepositAmount",
486
+ type: "event",
487
+ },
488
+ {
489
+ anonymous: false,
490
+ inputs: [
491
+ {
492
+ indexed: false,
493
+ internalType: "uint256",
494
+ name: "percentage",
495
+ type: "uint256",
496
+ },
497
+ ],
498
+ name: "UpdatedMinimumExcessLiquidityPercentage",
499
+ type: "event",
500
+ },
501
+ {
502
+ anonymous: false,
503
+ inputs: [
504
+ {
505
+ indexed: false,
506
+ internalType: "uint256",
507
+ name: "percentage",
508
+ type: "uint256",
509
+ },
510
+ ],
511
+ name: "UpdatedTargetExcessLiquidityPercentage",
512
+ type: "event",
513
+ },
514
+ {
515
+ anonymous: false,
516
+ inputs: [
517
+ {
518
+ indexed: false,
519
+ internalType: "uint256[]",
520
+ name: "ratios",
521
+ type: "uint256[]",
522
+ },
523
+ ],
524
+ name: "UpdatedTrancheDesiredRatios",
525
+ type: "event",
526
+ },
527
+ {
528
+ anonymous: false,
529
+ inputs: [
530
+ {
531
+ indexed: true,
532
+ internalType: "address",
533
+ name: "tranche",
534
+ type: "address",
535
+ },
536
+ {
537
+ indexed: true,
538
+ internalType: "uint256",
539
+ name: "applicableEpoch",
540
+ type: "uint256",
541
+ },
542
+ {
543
+ indexed: false,
544
+ internalType: "uint256",
545
+ name: "newInterestRate",
546
+ type: "uint256",
547
+ },
548
+ ],
549
+ name: "UpdatedTrancheInterestRate",
550
+ type: "event",
551
+ },
552
+ {
553
+ anonymous: false,
554
+ inputs: [
555
+ {
556
+ indexed: false,
557
+ internalType: "uint256",
558
+ name: "epochDelay",
559
+ type: "uint256",
560
+ },
561
+ ],
562
+ name: "UpdatedTrancheInterestRateChangeEpochDelay",
563
+ type: "event",
564
+ },
565
+ {
566
+ anonymous: false,
567
+ inputs: [
568
+ {
569
+ indexed: true,
570
+ internalType: "address",
571
+ name: "user",
572
+ type: "address",
573
+ },
574
+ {
575
+ indexed: true,
576
+ internalType: "address",
577
+ name: "tranche",
578
+ type: "address",
579
+ },
580
+ {
581
+ indexed: false,
582
+ internalType: "uint256",
583
+ name: "shares",
584
+ type: "uint256",
585
+ },
586
+ {
587
+ indexed: false,
588
+ internalType: "uint256",
589
+ name: "assetAmount",
590
+ type: "uint256",
591
+ },
592
+ ],
593
+ name: "WithdrawalAccepted",
594
+ type: "event",
595
+ },
596
+ {
597
+ inputs: [
598
+ {
599
+ internalType: "address",
600
+ name: "tranche",
601
+ type: "address",
602
+ },
603
+ {
604
+ internalType: "address",
605
+ name: "user",
606
+ type: "address",
607
+ },
608
+ {
609
+ internalType: "uint256",
610
+ name: "acceptedAmount",
611
+ type: "uint256",
612
+ },
613
+ ],
614
+ name: "acceptDeposit",
615
+ outputs: [
616
+ {
617
+ internalType: "uint256",
618
+ name: "trancheShares",
619
+ type: "uint256",
620
+ },
621
+ ],
622
+ stateMutability: "nonpayable",
623
+ type: "function",
624
+ },
625
+ {
626
+ inputs: [
627
+ {
628
+ internalType: "address",
629
+ name: "tranche",
630
+ type: "address",
631
+ },
632
+ {
633
+ internalType: "address",
634
+ name: "user",
635
+ type: "address",
636
+ },
637
+ {
638
+ internalType: "uint256",
639
+ name: "acceptedShares",
640
+ type: "uint256",
641
+ },
642
+ ],
643
+ name: "acceptWithdrawal",
644
+ outputs: [
645
+ {
646
+ internalType: "uint256",
647
+ name: "assetAmount",
648
+ type: "uint256",
649
+ },
650
+ ],
651
+ stateMutability: "nonpayable",
652
+ type: "function",
653
+ },
654
+ {
655
+ inputs: [
656
+ {
657
+ internalType: "address",
658
+ name: "owner",
659
+ type: "address",
660
+ },
661
+ {
662
+ internalType: "address",
663
+ name: "spender",
664
+ type: "address",
665
+ },
666
+ ],
667
+ name: "allowance",
668
+ outputs: [
669
+ {
670
+ internalType: "uint256",
671
+ name: "",
672
+ type: "uint256",
673
+ },
674
+ ],
675
+ stateMutability: "view",
676
+ type: "function",
677
+ },
678
+ {
679
+ inputs: [
680
+ {
681
+ internalType: "uint256",
682
+ name: "epoch",
683
+ type: "uint256",
684
+ },
685
+ ],
686
+ name: "applyInterests",
687
+ outputs: [],
688
+ stateMutability: "nonpayable",
689
+ type: "function",
690
+ },
691
+ {
692
+ inputs: [
693
+ {
694
+ internalType: "address",
695
+ name: "spender",
696
+ type: "address",
697
+ },
698
+ {
699
+ internalType: "uint256",
700
+ name: "value",
701
+ type: "uint256",
702
+ },
703
+ ],
704
+ name: "approve",
705
+ outputs: [
706
+ {
707
+ internalType: "bool",
708
+ name: "",
709
+ type: "bool",
710
+ },
711
+ ],
712
+ stateMutability: "nonpayable",
713
+ type: "function",
714
+ },
715
+ {
716
+ inputs: [],
717
+ name: "availableFunds",
718
+ outputs: [
719
+ {
720
+ internalType: "uint256",
721
+ name: "",
722
+ type: "uint256",
723
+ },
724
+ ],
725
+ stateMutability: "view",
726
+ type: "function",
727
+ },
728
+ {
729
+ inputs: [
730
+ {
731
+ internalType: "address",
732
+ name: "account",
733
+ type: "address",
734
+ },
735
+ ],
736
+ name: "balanceOf",
737
+ outputs: [
738
+ {
739
+ internalType: "uint256",
740
+ name: "",
741
+ type: "uint256",
742
+ },
743
+ ],
744
+ stateMutability: "view",
745
+ type: "function",
746
+ },
747
+ {
748
+ inputs: [],
749
+ name: "calculateMaximumLossAmount",
750
+ outputs: [
751
+ {
752
+ internalType: "uint256",
753
+ name: "maximumLossAmount",
754
+ type: "uint256",
755
+ },
756
+ ],
757
+ stateMutability: "view",
758
+ type: "function",
759
+ },
760
+ {
761
+ inputs: [
762
+ {
763
+ internalType: "address",
764
+ name: "user",
765
+ type: "address",
766
+ },
767
+ {
768
+ internalType: "address",
769
+ name: "tranche",
770
+ type: "address",
771
+ },
772
+ {
773
+ internalType: "uint256",
774
+ name: "lossId",
775
+ type: "uint256",
776
+ },
777
+ ],
778
+ name: "claimRepaidLoss",
779
+ outputs: [
780
+ {
781
+ internalType: "uint256",
782
+ name: "claimedAmount",
783
+ type: "uint256",
784
+ },
785
+ ],
786
+ stateMutability: "nonpayable",
787
+ type: "function",
788
+ },
789
+ {
790
+ inputs: [
791
+ {
792
+ internalType: "uint256",
793
+ name: "amount",
794
+ type: "uint256",
795
+ },
796
+ ],
797
+ name: "depositFirstLossCapital",
798
+ outputs: [],
799
+ stateMutability: "nonpayable",
800
+ type: "function",
801
+ },
802
+ {
803
+ inputs: [
804
+ {
805
+ internalType: "uint256",
806
+ name: "amount",
807
+ type: "uint256",
808
+ },
809
+ ],
810
+ name: "drawFunds",
811
+ outputs: [],
812
+ stateMutability: "nonpayable",
813
+ type: "function",
814
+ },
815
+ {
816
+ inputs: [],
817
+ name: "feesOwedAmount",
818
+ outputs: [
819
+ {
820
+ internalType: "uint256",
821
+ name: "",
822
+ type: "uint256",
823
+ },
824
+ ],
825
+ stateMutability: "view",
826
+ type: "function",
827
+ },
828
+ {
829
+ inputs: [
830
+ {
831
+ internalType: "address",
832
+ name: "tranche",
833
+ type: "address",
834
+ },
835
+ {
836
+ internalType: "address",
837
+ name: "user",
838
+ type: "address",
839
+ },
840
+ {
841
+ internalType: "uint256",
842
+ name: "sharesToWithdraw",
843
+ type: "uint256",
844
+ },
845
+ ],
846
+ name: "forceImmediateWithdrawal",
847
+ outputs: [
848
+ {
849
+ internalType: "uint256",
850
+ name: "assetAmount",
851
+ type: "uint256",
852
+ },
853
+ ],
854
+ stateMutability: "nonpayable",
855
+ type: "function",
856
+ },
857
+ {
858
+ inputs: [],
859
+ name: "getClearingConfig",
860
+ outputs: [
861
+ {
862
+ components: [
863
+ {
864
+ internalType: "uint256",
865
+ name: "drawAmount",
866
+ type: "uint256",
867
+ },
868
+ {
869
+ internalType: "uint256[]",
870
+ name: "trancheDesiredRatios",
871
+ type: "uint256[]",
872
+ },
873
+ {
874
+ internalType: "uint256",
875
+ name: "maxExcessPercentage",
876
+ type: "uint256",
877
+ },
878
+ {
879
+ internalType: "uint256",
880
+ name: "minExcessPercentage",
881
+ type: "uint256",
882
+ },
883
+ ],
884
+ internalType: "struct ClearingConfiguration",
885
+ name: "clearingConfig",
886
+ type: "tuple",
887
+ },
888
+ ],
889
+ stateMutability: "view",
890
+ type: "function",
891
+ },
892
+ {
893
+ inputs: [],
894
+ name: "getLendingPoolInfo",
895
+ outputs: [
896
+ {
897
+ components: [
898
+ {
899
+ internalType: "address[]",
900
+ name: "trancheAddresses",
901
+ type: "address[]",
902
+ },
903
+ {
904
+ internalType: "address",
905
+ name: "pendingPool",
906
+ type: "address",
907
+ },
908
+ ],
909
+ internalType: "struct LendingPoolInfo",
910
+ name: "",
911
+ type: "tuple",
912
+ },
913
+ ],
914
+ stateMutability: "view",
915
+ type: "function",
916
+ },
917
+ {
918
+ inputs: [
919
+ {
920
+ internalType: "address",
921
+ name: "tranche",
922
+ type: "address",
923
+ },
924
+ ],
925
+ name: "isLendingPoolTranche",
926
+ outputs: [
927
+ {
928
+ internalType: "bool",
929
+ name: "",
930
+ type: "bool",
931
+ },
932
+ ],
933
+ stateMutability: "view",
934
+ type: "function",
935
+ },
936
+ {
937
+ inputs: [],
938
+ name: "lendingPoolTrancheCount",
939
+ outputs: [
940
+ {
941
+ internalType: "uint256",
942
+ name: "",
943
+ type: "uint256",
944
+ },
945
+ ],
946
+ stateMutability: "view",
947
+ type: "function",
948
+ },
949
+ {
950
+ inputs: [],
951
+ name: "lendingPoolTranches",
952
+ outputs: [
953
+ {
954
+ internalType: "address[]",
955
+ name: "",
956
+ type: "address[]",
957
+ },
958
+ ],
959
+ stateMutability: "view",
960
+ type: "function",
961
+ },
962
+ {
963
+ inputs: [],
964
+ name: "pendingPool",
965
+ outputs: [
966
+ {
967
+ internalType: "address",
968
+ name: "",
969
+ type: "address",
970
+ },
971
+ ],
972
+ stateMutability: "view",
973
+ type: "function",
974
+ },
975
+ {
976
+ inputs: [],
977
+ name: "poolConfiguration",
978
+ outputs: [
979
+ {
980
+ components: [
981
+ {
982
+ components: [
983
+ {
984
+ internalType: "uint256",
985
+ name: "ratio",
986
+ type: "uint256",
987
+ },
988
+ {
989
+ internalType: "uint256",
990
+ name: "interestRate",
991
+ type: "uint256",
992
+ },
993
+ {
994
+ internalType: "uint256",
995
+ name: "minDepositAmount",
996
+ type: "uint256",
997
+ },
998
+ {
999
+ internalType: "uint256",
1000
+ name: "maxDepositAmount",
1001
+ type: "uint256",
1002
+ },
1003
+ ],
1004
+ internalType: "struct TrancheConfig[]",
1005
+ name: "tranches",
1006
+ type: "tuple[]",
1007
+ },
1008
+ {
1009
+ internalType: "address",
1010
+ name: "drawRecipient",
1011
+ type: "address",
1012
+ },
1013
+ {
1014
+ internalType: "uint256",
1015
+ name: "desiredDrawAmount",
1016
+ type: "uint256",
1017
+ },
1018
+ {
1019
+ internalType: "uint256",
1020
+ name: "trancheInterestChangeEpochDelay",
1021
+ type: "uint256",
1022
+ },
1023
+ {
1024
+ internalType: "uint256",
1025
+ name: "targetExcessLiquidityPercentage",
1026
+ type: "uint256",
1027
+ },
1028
+ {
1029
+ internalType: "uint256",
1030
+ name: "minimumExcessLiquidityPercentage",
1031
+ type: "uint256",
1032
+ },
1033
+ ],
1034
+ internalType: "struct PoolConfiguration",
1035
+ name: "",
1036
+ type: "tuple",
1037
+ },
1038
+ ],
1039
+ stateMutability: "view",
1040
+ type: "function",
1041
+ },
1042
+ {
1043
+ inputs: [
1044
+ {
1045
+ internalType: "address",
1046
+ name: "tranche",
1047
+ type: "address",
1048
+ },
1049
+ {
1050
+ internalType: "uint256",
1051
+ name: "lossId",
1052
+ type: "uint256",
1053
+ },
1054
+ {
1055
+ internalType: "uint256",
1056
+ name: "amount",
1057
+ type: "uint256",
1058
+ },
1059
+ ],
1060
+ name: "repayLoss",
1061
+ outputs: [],
1062
+ stateMutability: "nonpayable",
1063
+ type: "function",
1064
+ },
1065
+ {
1066
+ inputs: [
1067
+ {
1068
+ internalType: "uint256",
1069
+ name: "amount",
1070
+ type: "uint256",
1071
+ },
1072
+ ],
1073
+ name: "repayOwedFunds",
1074
+ outputs: [],
1075
+ stateMutability: "nonpayable",
1076
+ type: "function",
1077
+ },
1078
+ {
1079
+ inputs: [
1080
+ {
1081
+ internalType: "uint256",
1082
+ name: "lossAmount",
1083
+ type: "uint256",
1084
+ },
1085
+ {
1086
+ internalType: "bool",
1087
+ name: "doMintLossTokens",
1088
+ type: "bool",
1089
+ },
1090
+ ],
1091
+ name: "reportLoss",
1092
+ outputs: [
1093
+ {
1094
+ internalType: "uint256",
1095
+ name: "appliedLoss",
1096
+ type: "uint256",
1097
+ },
1098
+ ],
1099
+ stateMutability: "nonpayable",
1100
+ type: "function",
1101
+ },
1102
+ {
1103
+ inputs: [],
1104
+ name: "stop",
1105
+ outputs: [],
1106
+ stateMutability: "nonpayable",
1107
+ type: "function",
1108
+ },
1109
+ {
1110
+ inputs: [],
1111
+ name: "totalSupply",
1112
+ outputs: [
1113
+ {
1114
+ internalType: "uint256",
1115
+ name: "",
1116
+ type: "uint256",
1117
+ },
1118
+ ],
1119
+ stateMutability: "view",
1120
+ type: "function",
1121
+ },
1122
+ {
1123
+ inputs: [
1124
+ {
1125
+ internalType: "address",
1126
+ name: "tranche",
1127
+ type: "address",
1128
+ },
1129
+ ],
1130
+ name: "trancheConfigurationDepositLimits",
1131
+ outputs: [
1132
+ {
1133
+ internalType: "uint256",
1134
+ name: "minDepositAmount",
1135
+ type: "uint256",
1136
+ },
1137
+ {
1138
+ internalType: "uint256",
1139
+ name: "maxDepositAmount",
1140
+ type: "uint256",
1141
+ },
1142
+ ],
1143
+ stateMutability: "view",
1144
+ type: "function",
1145
+ },
1146
+ {
1147
+ inputs: [
1148
+ {
1149
+ internalType: "address",
1150
+ name: "tranche",
1151
+ type: "address",
1152
+ },
1153
+ ],
1154
+ name: "trancheIndex",
1155
+ outputs: [
1156
+ {
1157
+ internalType: "uint256",
1158
+ name: "",
1159
+ type: "uint256",
1160
+ },
1161
+ ],
1162
+ stateMutability: "view",
1163
+ type: "function",
1164
+ },
1165
+ {
1166
+ inputs: [
1167
+ {
1168
+ internalType: "address",
1169
+ name: "to",
1170
+ type: "address",
1171
+ },
1172
+ {
1173
+ internalType: "uint256",
1174
+ name: "value",
1175
+ type: "uint256",
1176
+ },
1177
+ ],
1178
+ name: "transfer",
1179
+ outputs: [
1180
+ {
1181
+ internalType: "bool",
1182
+ name: "",
1183
+ type: "bool",
1184
+ },
1185
+ ],
1186
+ stateMutability: "nonpayable",
1187
+ type: "function",
1188
+ },
1189
+ {
1190
+ inputs: [
1191
+ {
1192
+ internalType: "address",
1193
+ name: "from",
1194
+ type: "address",
1195
+ },
1196
+ {
1197
+ internalType: "address",
1198
+ name: "to",
1199
+ type: "address",
1200
+ },
1201
+ {
1202
+ internalType: "uint256",
1203
+ name: "value",
1204
+ type: "uint256",
1205
+ },
1206
+ ],
1207
+ name: "transferFrom",
1208
+ outputs: [
1209
+ {
1210
+ internalType: "bool",
1211
+ name: "",
1212
+ type: "bool",
1213
+ },
1214
+ ],
1215
+ stateMutability: "nonpayable",
1216
+ type: "function",
1217
+ },
1218
+ {
1219
+ inputs: [
1220
+ {
1221
+ internalType: "uint256",
1222
+ name: "desiredDrawAmount",
1223
+ type: "uint256",
1224
+ },
1225
+ ],
1226
+ name: "updateDesiredDrawAmount",
1227
+ outputs: [],
1228
+ stateMutability: "nonpayable",
1229
+ type: "function",
1230
+ },
1231
+ {
1232
+ inputs: [
1233
+ {
1234
+ internalType: "address",
1235
+ name: "drawRecipient",
1236
+ type: "address",
1237
+ },
1238
+ ],
1239
+ name: "updateDrawRecipient",
1240
+ outputs: [],
1241
+ stateMutability: "nonpayable",
1242
+ type: "function",
1243
+ },
1244
+ {
1245
+ inputs: [
1246
+ {
1247
+ internalType: "address",
1248
+ name: "tranche",
1249
+ type: "address",
1250
+ },
1251
+ {
1252
+ internalType: "uint256",
1253
+ name: "maximumDepositAmount",
1254
+ type: "uint256",
1255
+ },
1256
+ ],
1257
+ name: "updateMaximumDepositAmount",
1258
+ outputs: [],
1259
+ stateMutability: "nonpayable",
1260
+ type: "function",
1261
+ },
1262
+ {
1263
+ inputs: [
1264
+ {
1265
+ internalType: "address",
1266
+ name: "tranche",
1267
+ type: "address",
1268
+ },
1269
+ {
1270
+ internalType: "uint256",
1271
+ name: "minimumDepositAmount",
1272
+ type: "uint256",
1273
+ },
1274
+ ],
1275
+ name: "updateMinimumDepositAmount",
1276
+ outputs: [],
1277
+ stateMutability: "nonpayable",
1278
+ type: "function",
1279
+ },
1280
+ {
1281
+ inputs: [
1282
+ {
1283
+ internalType: "uint256",
1284
+ name: "minimumExcessLiquidityPercentage",
1285
+ type: "uint256",
1286
+ },
1287
+ ],
1288
+ name: "updateMinimumExcessLiquidityPercentage",
1289
+ outputs: [],
1290
+ stateMutability: "nonpayable",
1291
+ type: "function",
1292
+ },
1293
+ {
1294
+ inputs: [
1295
+ {
1296
+ internalType: "uint256",
1297
+ name: "targetExcessLiquidityPercentage",
1298
+ type: "uint256",
1299
+ },
1300
+ ],
1301
+ name: "updateTargetExcessLiquidityPercentage",
1302
+ outputs: [],
1303
+ stateMutability: "nonpayable",
1304
+ type: "function",
1305
+ },
1306
+ {
1307
+ inputs: [
1308
+ {
1309
+ internalType: "uint256[]",
1310
+ name: "ratios",
1311
+ type: "uint256[]",
1312
+ },
1313
+ ],
1314
+ name: "updateTrancheDesiredRatios",
1315
+ outputs: [],
1316
+ stateMutability: "nonpayable",
1317
+ type: "function",
1318
+ },
1319
+ {
1320
+ inputs: [
1321
+ {
1322
+ internalType: "address",
1323
+ name: "tranche",
1324
+ type: "address",
1325
+ },
1326
+ {
1327
+ internalType: "uint256",
1328
+ name: "interestRate",
1329
+ type: "uint256",
1330
+ },
1331
+ ],
1332
+ name: "updateTrancheInterestRate",
1333
+ outputs: [],
1334
+ stateMutability: "nonpayable",
1335
+ type: "function",
1336
+ },
1337
+ {
1338
+ inputs: [
1339
+ {
1340
+ internalType: "uint256",
1341
+ name: "epochDelay",
1342
+ type: "uint256",
1343
+ },
1344
+ ],
1345
+ name: "updateTrancheInterestRateChangeEpochDelay",
1346
+ outputs: [],
1347
+ stateMutability: "nonpayable",
1348
+ type: "function",
1349
+ },
1350
+ {
1351
+ inputs: [
1352
+ {
1353
+ internalType: "address",
1354
+ name: "user",
1355
+ type: "address",
1356
+ },
1357
+ ],
1358
+ name: "userBalance",
1359
+ outputs: [
1360
+ {
1361
+ internalType: "uint256",
1362
+ name: "",
1363
+ type: "uint256",
1364
+ },
1365
+ ],
1366
+ stateMutability: "view",
1367
+ type: "function",
1368
+ },
1369
+ {
1370
+ inputs: [],
1371
+ name: "userOwedAmount",
1372
+ outputs: [
1373
+ {
1374
+ internalType: "uint256",
1375
+ name: "",
1376
+ type: "uint256",
1377
+ },
1378
+ ],
1379
+ stateMutability: "view",
1380
+ type: "function",
1381
+ },
1382
+ {
1383
+ inputs: [
1384
+ {
1385
+ components: [
1386
+ {
1387
+ internalType: "uint256",
1388
+ name: "drawAmount",
1389
+ type: "uint256",
1390
+ },
1391
+ {
1392
+ internalType: "uint256[]",
1393
+ name: "trancheDesiredRatios",
1394
+ type: "uint256[]",
1395
+ },
1396
+ {
1397
+ internalType: "uint256",
1398
+ name: "maxExcessPercentage",
1399
+ type: "uint256",
1400
+ },
1401
+ {
1402
+ internalType: "uint256",
1403
+ name: "minExcessPercentage",
1404
+ type: "uint256",
1405
+ },
1406
+ ],
1407
+ internalType: "struct ClearingConfiguration",
1408
+ name: "clearingConfig",
1409
+ type: "tuple",
1410
+ },
1411
+ ],
1412
+ name: "verifyClearingConfig",
1413
+ outputs: [],
1414
+ stateMutability: "view",
1415
+ type: "function",
1416
+ },
1417
+ {
1418
+ inputs: [
1419
+ {
1420
+ internalType: "uint256",
1421
+ name: "withdrawAmount",
1422
+ type: "uint256",
1423
+ },
1424
+ {
1425
+ internalType: "address",
1426
+ name: "withdrawAddress",
1427
+ type: "address",
1428
+ },
1429
+ ],
1430
+ name: "withdrawFirstLossCapital",
1431
+ outputs: [],
1432
+ stateMutability: "nonpayable",
1433
+ type: "function",
1434
+ },
1435
+ ];
1436
+ export class ILendingPoolAbi__factory {
1437
+ static createInterface() {
1438
+ return new utils.Interface(_abi);
1439
+ }
1440
+ static connect(address, signerOrProvider) {
1441
+ return new Contract(address, _abi, signerOrProvider);
1442
+ }
1443
+ }
1444
+ ILendingPoolAbi__factory.abi = _abi;