@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,1375 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import type { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ ILendingPoolManagerAbi,
9
+ ILendingPoolManagerAbiInterface,
10
+ } from "../ILendingPoolManagerAbi";
11
+
12
+ const _abi = [
13
+ {
14
+ type: "constructor",
15
+ inputs: [
16
+ {
17
+ name: "fixedTermDeposit_",
18
+ type: "address",
19
+ internalType: "contract IFixedTermDeposit",
20
+ },
21
+ {
22
+ name: "underlyingAsset_",
23
+ type: "address",
24
+ internalType: "address",
25
+ },
26
+ {
27
+ name: "controller_",
28
+ type: "address",
29
+ internalType: "contract IKasuController",
30
+ },
31
+ {
32
+ name: "weth_",
33
+ type: "address",
34
+ internalType: "contract IWETH9",
35
+ },
36
+ {
37
+ name: "swapper_",
38
+ type: "address",
39
+ internalType: "contract ISwapper",
40
+ },
41
+ ],
42
+ stateMutability: "nonpayable",
43
+ },
44
+ {
45
+ type: "function",
46
+ name: "addLendingPoolTrancheFixedTermDeposit",
47
+ inputs: [
48
+ {
49
+ name: "lendingPool",
50
+ type: "address",
51
+ internalType: "address",
52
+ },
53
+ {
54
+ name: "tranche",
55
+ type: "address",
56
+ internalType: "address",
57
+ },
58
+ {
59
+ name: "epochLockDuration",
60
+ type: "uint256",
61
+ internalType: "uint256",
62
+ },
63
+ {
64
+ name: "epochInterestRate",
65
+ type: "uint256",
66
+ internalType: "uint256",
67
+ },
68
+ {
69
+ name: "whitelistedOnly",
70
+ type: "bool",
71
+ internalType: "bool",
72
+ },
73
+ ],
74
+ outputs: [
75
+ {
76
+ name: "",
77
+ type: "uint256",
78
+ internalType: "uint256",
79
+ },
80
+ ],
81
+ stateMutability: "nonpayable",
82
+ },
83
+ {
84
+ type: "function",
85
+ name: "batchForceWithdrawals",
86
+ inputs: [
87
+ {
88
+ name: "lendingPool",
89
+ type: "address",
90
+ internalType: "address",
91
+ },
92
+ {
93
+ name: "input",
94
+ type: "tuple[]",
95
+ internalType: "struct ForceWithdrawalInput[]",
96
+ components: [
97
+ {
98
+ name: "tranche",
99
+ type: "address",
100
+ internalType: "address",
101
+ },
102
+ {
103
+ name: "user",
104
+ type: "address",
105
+ internalType: "address",
106
+ },
107
+ {
108
+ name: "sharesToWithdraw",
109
+ type: "uint256",
110
+ internalType: "uint256",
111
+ },
112
+ ],
113
+ },
114
+ ],
115
+ outputs: [
116
+ {
117
+ name: "wNftIDs",
118
+ type: "uint256[]",
119
+ internalType: "uint256[]",
120
+ },
121
+ ],
122
+ stateMutability: "nonpayable",
123
+ },
124
+ {
125
+ type: "function",
126
+ name: "cancelDepositRequest",
127
+ inputs: [
128
+ {
129
+ name: "lendingPool",
130
+ type: "address",
131
+ internalType: "address",
132
+ },
133
+ {
134
+ name: "dNftID",
135
+ type: "uint256",
136
+ internalType: "uint256",
137
+ },
138
+ ],
139
+ outputs: [],
140
+ stateMutability: "nonpayable",
141
+ },
142
+ {
143
+ type: "function",
144
+ name: "cancelFixedTermDepositWithdrawalRequest",
145
+ inputs: [
146
+ {
147
+ name: "lendingPool",
148
+ type: "address",
149
+ internalType: "address",
150
+ },
151
+ {
152
+ name: "fixedTermDepositId",
153
+ type: "uint256",
154
+ internalType: "uint256",
155
+ },
156
+ ],
157
+ outputs: [],
158
+ stateMutability: "nonpayable",
159
+ },
160
+ {
161
+ type: "function",
162
+ name: "cancelWithdrawalRequest",
163
+ inputs: [
164
+ {
165
+ name: "lendingPool",
166
+ type: "address",
167
+ internalType: "address",
168
+ },
169
+ {
170
+ name: "wNftID",
171
+ type: "uint256",
172
+ internalType: "uint256",
173
+ },
174
+ ],
175
+ outputs: [],
176
+ stateMutability: "nonpayable",
177
+ },
178
+ {
179
+ type: "function",
180
+ name: "claimRepaidLoss",
181
+ inputs: [
182
+ {
183
+ name: "lendingPool",
184
+ type: "address",
185
+ internalType: "address",
186
+ },
187
+ {
188
+ name: "tranche",
189
+ type: "address",
190
+ internalType: "address",
191
+ },
192
+ {
193
+ name: "lossId",
194
+ type: "uint256",
195
+ internalType: "uint256",
196
+ },
197
+ ],
198
+ outputs: [
199
+ {
200
+ name: "claimedAmount",
201
+ type: "uint256",
202
+ internalType: "uint256",
203
+ },
204
+ ],
205
+ stateMutability: "nonpayable",
206
+ },
207
+ {
208
+ type: "function",
209
+ name: "createPool",
210
+ inputs: [
211
+ {
212
+ name: "createPoolConfig",
213
+ type: "tuple",
214
+ internalType: "struct CreatePoolConfig",
215
+ components: [
216
+ {
217
+ name: "poolName",
218
+ type: "string",
219
+ internalType: "string",
220
+ },
221
+ {
222
+ name: "poolSymbol",
223
+ type: "string",
224
+ internalType: "string",
225
+ },
226
+ {
227
+ name: "targetExcessLiquidityPercentage",
228
+ type: "uint256",
229
+ internalType: "uint256",
230
+ },
231
+ {
232
+ name: "minExcessLiquidityPercentage",
233
+ type: "uint256",
234
+ internalType: "uint256",
235
+ },
236
+ {
237
+ name: "tranches",
238
+ type: "tuple[]",
239
+ internalType: "struct CreateTrancheConfig[]",
240
+ components: [
241
+ {
242
+ name: "ratio",
243
+ type: "uint256",
244
+ internalType: "uint256",
245
+ },
246
+ {
247
+ name: "interestRate",
248
+ type: "uint256",
249
+ internalType: "uint256",
250
+ },
251
+ {
252
+ name: "minDepositAmount",
253
+ type: "uint256",
254
+ internalType: "uint256",
255
+ },
256
+ {
257
+ name: "maxDepositAmount",
258
+ type: "uint256",
259
+ internalType: "uint256",
260
+ },
261
+ ],
262
+ },
263
+ {
264
+ name: "poolAdmin",
265
+ type: "address",
266
+ internalType: "address",
267
+ },
268
+ {
269
+ name: "drawRecipient",
270
+ type: "address",
271
+ internalType: "address",
272
+ },
273
+ {
274
+ name: "desiredDrawAmount",
275
+ type: "uint256",
276
+ internalType: "uint256",
277
+ },
278
+ ],
279
+ },
280
+ ],
281
+ outputs: [
282
+ {
283
+ name: "lendingPoolDeployment",
284
+ type: "tuple",
285
+ internalType: "struct LendingPoolDeployment",
286
+ components: [
287
+ {
288
+ name: "lendingPool",
289
+ type: "address",
290
+ internalType: "address",
291
+ },
292
+ {
293
+ name: "pendingPool",
294
+ type: "address",
295
+ internalType: "address",
296
+ },
297
+ {
298
+ name: "tranches",
299
+ type: "address[]",
300
+ internalType: "address[]",
301
+ },
302
+ ],
303
+ },
304
+ ],
305
+ stateMutability: "nonpayable",
306
+ },
307
+ {
308
+ type: "function",
309
+ name: "depositFirstLossCapital",
310
+ inputs: [
311
+ {
312
+ name: "lendingPool",
313
+ type: "address",
314
+ internalType: "address",
315
+ },
316
+ {
317
+ name: "amount",
318
+ type: "uint256",
319
+ internalType: "uint256",
320
+ },
321
+ ],
322
+ outputs: [],
323
+ stateMutability: "nonpayable",
324
+ },
325
+ {
326
+ type: "function",
327
+ name: "doClearing",
328
+ inputs: [
329
+ {
330
+ name: "lendingPool",
331
+ type: "address",
332
+ internalType: "address",
333
+ },
334
+ {
335
+ name: "targetEpoch",
336
+ type: "uint256",
337
+ internalType: "uint256",
338
+ },
339
+ {
340
+ name: "fixedTermDepositBatchSize",
341
+ type: "uint256",
342
+ internalType: "uint256",
343
+ },
344
+ {
345
+ name: "priorityCalculationBatchSize",
346
+ type: "uint256",
347
+ internalType: "uint256",
348
+ },
349
+ {
350
+ name: "acceptRequestsBatchSize",
351
+ type: "uint256",
352
+ internalType: "uint256",
353
+ },
354
+ {
355
+ name: "clearingConfigOverride",
356
+ type: "tuple",
357
+ internalType: "struct ClearingConfiguration",
358
+ components: [
359
+ {
360
+ name: "drawAmount",
361
+ type: "uint256",
362
+ internalType: "uint256",
363
+ },
364
+ {
365
+ name: "trancheDesiredRatios",
366
+ type: "uint256[]",
367
+ internalType: "uint256[]",
368
+ },
369
+ {
370
+ name: "maxExcessPercentage",
371
+ type: "uint256",
372
+ internalType: "uint256",
373
+ },
374
+ {
375
+ name: "minExcessPercentage",
376
+ type: "uint256",
377
+ internalType: "uint256",
378
+ },
379
+ ],
380
+ },
381
+ {
382
+ name: "isConfigOverridden",
383
+ type: "bool",
384
+ internalType: "bool",
385
+ },
386
+ ],
387
+ outputs: [],
388
+ stateMutability: "nonpayable",
389
+ },
390
+ {
391
+ type: "function",
392
+ name: "endFixedTermDeposit",
393
+ inputs: [
394
+ {
395
+ name: "lendingPool",
396
+ type: "address",
397
+ internalType: "address",
398
+ },
399
+ {
400
+ name: "fixedTermDepositId",
401
+ type: "uint256",
402
+ internalType: "uint256",
403
+ },
404
+ {
405
+ name: "arrayIndex",
406
+ type: "uint256",
407
+ internalType: "uint256",
408
+ },
409
+ ],
410
+ outputs: [],
411
+ stateMutability: "nonpayable",
412
+ },
413
+ {
414
+ type: "function",
415
+ name: "forceCancelDepositRequest",
416
+ inputs: [
417
+ {
418
+ name: "lendingPool",
419
+ type: "address",
420
+ internalType: "address",
421
+ },
422
+ {
423
+ name: "dNftID",
424
+ type: "uint256",
425
+ internalType: "uint256",
426
+ },
427
+ ],
428
+ outputs: [],
429
+ stateMutability: "nonpayable",
430
+ },
431
+ {
432
+ type: "function",
433
+ name: "forceCancelWithdrawalRequest",
434
+ inputs: [
435
+ {
436
+ name: "lendingPool",
437
+ type: "address",
438
+ internalType: "address",
439
+ },
440
+ {
441
+ name: "wNftID",
442
+ type: "uint256",
443
+ internalType: "uint256",
444
+ },
445
+ ],
446
+ outputs: [],
447
+ stateMutability: "nonpayable",
448
+ },
449
+ {
450
+ type: "function",
451
+ name: "forceImmediateWithdrawal",
452
+ inputs: [
453
+ {
454
+ name: "lendingPool",
455
+ type: "address",
456
+ internalType: "address",
457
+ },
458
+ {
459
+ name: "tranche",
460
+ type: "address",
461
+ internalType: "address",
462
+ },
463
+ {
464
+ name: "user",
465
+ type: "address",
466
+ internalType: "address",
467
+ },
468
+ {
469
+ name: "sharesToWithdraw",
470
+ type: "uint256",
471
+ internalType: "uint256",
472
+ },
473
+ ],
474
+ outputs: [
475
+ {
476
+ name: "",
477
+ type: "uint256",
478
+ internalType: "uint256",
479
+ },
480
+ ],
481
+ stateMutability: "nonpayable",
482
+ },
483
+ {
484
+ type: "function",
485
+ name: "initialize",
486
+ inputs: [
487
+ {
488
+ name: "lendingPoolFactory_",
489
+ type: "address",
490
+ internalType: "contract ILendingPoolFactory",
491
+ },
492
+ {
493
+ name: "kasuAllowList_",
494
+ type: "address",
495
+ internalType: "contract IKasuAllowList",
496
+ },
497
+ {
498
+ name: "userManager_",
499
+ type: "address",
500
+ internalType: "contract IUserManager",
501
+ },
502
+ {
503
+ name: "clearingCoordinator_",
504
+ type: "address",
505
+ internalType: "contract IClearingCoordinator",
506
+ },
507
+ ],
508
+ outputs: [],
509
+ stateMutability: "nonpayable",
510
+ },
511
+ {
512
+ type: "function",
513
+ name: "isLendingPool",
514
+ inputs: [
515
+ {
516
+ name: "lendingPool",
517
+ type: "address",
518
+ internalType: "address",
519
+ },
520
+ ],
521
+ outputs: [
522
+ {
523
+ name: "",
524
+ type: "bool",
525
+ internalType: "bool",
526
+ },
527
+ ],
528
+ stateMutability: "view",
529
+ },
530
+ {
531
+ type: "function",
532
+ name: "lendingPools",
533
+ inputs: [
534
+ {
535
+ name: "",
536
+ type: "address",
537
+ internalType: "address",
538
+ },
539
+ ],
540
+ outputs: [
541
+ {
542
+ name: "lendingPool",
543
+ type: "address",
544
+ internalType: "address",
545
+ },
546
+ {
547
+ name: "pendingPool",
548
+ type: "address",
549
+ internalType: "address",
550
+ },
551
+ ],
552
+ stateMutability: "view",
553
+ },
554
+ {
555
+ type: "function",
556
+ name: "lockDepositForFixedTerm",
557
+ inputs: [
558
+ {
559
+ name: "lendingPool",
560
+ type: "address",
561
+ internalType: "address",
562
+ },
563
+ {
564
+ name: "tranche",
565
+ type: "address",
566
+ internalType: "address",
567
+ },
568
+ {
569
+ name: "amount",
570
+ type: "uint256",
571
+ internalType: "uint256",
572
+ },
573
+ {
574
+ name: "fixedTermConfigId",
575
+ type: "uint256",
576
+ internalType: "uint256",
577
+ },
578
+ ],
579
+ outputs: [],
580
+ stateMutability: "nonpayable",
581
+ },
582
+ {
583
+ type: "function",
584
+ name: "repayLoss",
585
+ inputs: [
586
+ {
587
+ name: "lendingPool",
588
+ type: "address",
589
+ internalType: "address",
590
+ },
591
+ {
592
+ name: "tranche",
593
+ type: "address",
594
+ internalType: "address",
595
+ },
596
+ {
597
+ name: "lossId",
598
+ type: "uint256",
599
+ internalType: "uint256",
600
+ },
601
+ {
602
+ name: "amount",
603
+ type: "uint256",
604
+ internalType: "uint256",
605
+ },
606
+ ],
607
+ outputs: [],
608
+ stateMutability: "nonpayable",
609
+ },
610
+ {
611
+ type: "function",
612
+ name: "repayOwedFunds",
613
+ inputs: [
614
+ {
615
+ name: "lendingPool",
616
+ type: "address",
617
+ internalType: "address",
618
+ },
619
+ {
620
+ name: "amount",
621
+ type: "uint256",
622
+ internalType: "uint256",
623
+ },
624
+ {
625
+ name: "repaymentAddress",
626
+ type: "address",
627
+ internalType: "address",
628
+ },
629
+ ],
630
+ outputs: [],
631
+ stateMutability: "nonpayable",
632
+ },
633
+ {
634
+ type: "function",
635
+ name: "reportLoss",
636
+ inputs: [
637
+ {
638
+ name: "lendingPool",
639
+ type: "address",
640
+ internalType: "address",
641
+ },
642
+ {
643
+ name: "amount",
644
+ type: "uint256",
645
+ internalType: "uint256",
646
+ },
647
+ {
648
+ name: "doMintLossTokens",
649
+ type: "bool",
650
+ internalType: "bool",
651
+ },
652
+ ],
653
+ outputs: [
654
+ {
655
+ name: "lossId",
656
+ type: "uint256",
657
+ internalType: "uint256",
658
+ },
659
+ ],
660
+ stateMutability: "nonpayable",
661
+ },
662
+ {
663
+ type: "function",
664
+ name: "requestDeposit",
665
+ inputs: [
666
+ {
667
+ name: "lendingPool",
668
+ type: "address",
669
+ internalType: "address",
670
+ },
671
+ {
672
+ name: "tranche",
673
+ type: "address",
674
+ internalType: "address",
675
+ },
676
+ {
677
+ name: "maxAmount",
678
+ type: "uint256",
679
+ internalType: "uint256",
680
+ },
681
+ {
682
+ name: "swapData",
683
+ type: "bytes",
684
+ internalType: "bytes",
685
+ },
686
+ {
687
+ name: "fixedTermConfigId",
688
+ type: "uint256",
689
+ internalType: "uint256",
690
+ },
691
+ {
692
+ name: "depositData",
693
+ type: "bytes",
694
+ internalType: "bytes",
695
+ },
696
+ ],
697
+ outputs: [
698
+ {
699
+ name: "dNftID",
700
+ type: "uint256",
701
+ internalType: "uint256",
702
+ },
703
+ ],
704
+ stateMutability: "payable",
705
+ },
706
+ {
707
+ type: "function",
708
+ name: "requestDepositWithKyc",
709
+ inputs: [
710
+ {
711
+ name: "lendingPool",
712
+ type: "address",
713
+ internalType: "address",
714
+ },
715
+ {
716
+ name: "tranche",
717
+ type: "address",
718
+ internalType: "address",
719
+ },
720
+ {
721
+ name: "maxAmount",
722
+ type: "uint256",
723
+ internalType: "uint256",
724
+ },
725
+ {
726
+ name: "swapData",
727
+ type: "bytes",
728
+ internalType: "bytes",
729
+ },
730
+ {
731
+ name: "fixedTermConfigId",
732
+ type: "uint256",
733
+ internalType: "uint256",
734
+ },
735
+ {
736
+ name: "depositData",
737
+ type: "bytes",
738
+ internalType: "bytes",
739
+ },
740
+ {
741
+ name: "kycData",
742
+ type: "tuple",
743
+ internalType: "struct KycData",
744
+ components: [
745
+ {
746
+ name: "blockExpiration",
747
+ type: "uint256",
748
+ internalType: "uint256",
749
+ },
750
+ {
751
+ name: "signature",
752
+ type: "bytes",
753
+ internalType: "bytes",
754
+ },
755
+ ],
756
+ },
757
+ ],
758
+ outputs: [
759
+ {
760
+ name: "dNftID",
761
+ type: "uint256",
762
+ internalType: "uint256",
763
+ },
764
+ ],
765
+ stateMutability: "payable",
766
+ },
767
+ {
768
+ type: "function",
769
+ name: "requestFixedTermDepositWithdrawal",
770
+ inputs: [
771
+ {
772
+ name: "lendingPool",
773
+ type: "address",
774
+ internalType: "address",
775
+ },
776
+ {
777
+ name: "fixedTermDepositId",
778
+ type: "uint256",
779
+ internalType: "uint256",
780
+ },
781
+ ],
782
+ outputs: [],
783
+ stateMutability: "nonpayable",
784
+ },
785
+ {
786
+ type: "function",
787
+ name: "requestWithdrawal",
788
+ inputs: [
789
+ {
790
+ name: "lendingPool",
791
+ type: "address",
792
+ internalType: "address",
793
+ },
794
+ {
795
+ name: "tranche",
796
+ type: "address",
797
+ internalType: "address",
798
+ },
799
+ {
800
+ name: "amount",
801
+ type: "uint256",
802
+ internalType: "uint256",
803
+ },
804
+ ],
805
+ outputs: [
806
+ {
807
+ name: "wNftID",
808
+ type: "uint256",
809
+ internalType: "uint256",
810
+ },
811
+ ],
812
+ stateMutability: "nonpayable",
813
+ },
814
+ {
815
+ type: "function",
816
+ name: "stopLendingPool",
817
+ inputs: [
818
+ {
819
+ name: "lendingPool",
820
+ type: "address",
821
+ internalType: "address",
822
+ },
823
+ ],
824
+ outputs: [],
825
+ stateMutability: "nonpayable",
826
+ },
827
+ {
828
+ type: "function",
829
+ name: "updateDesiredDrawAmount",
830
+ inputs: [
831
+ {
832
+ name: "lendingPool",
833
+ type: "address",
834
+ internalType: "address",
835
+ },
836
+ {
837
+ name: "amount",
838
+ type: "uint256",
839
+ internalType: "uint256",
840
+ },
841
+ ],
842
+ outputs: [],
843
+ stateMutability: "nonpayable",
844
+ },
845
+ {
846
+ type: "function",
847
+ name: "updateDrawRecipient",
848
+ inputs: [
849
+ {
850
+ name: "lendingPool",
851
+ type: "address",
852
+ internalType: "address",
853
+ },
854
+ {
855
+ name: "drawRecipient",
856
+ type: "address",
857
+ internalType: "address",
858
+ },
859
+ ],
860
+ outputs: [],
861
+ stateMutability: "nonpayable",
862
+ },
863
+ {
864
+ type: "function",
865
+ name: "updateFixedTermDepositAllowlist",
866
+ inputs: [
867
+ {
868
+ name: "lendingPool",
869
+ type: "address",
870
+ internalType: "address",
871
+ },
872
+ {
873
+ name: "configId",
874
+ type: "uint256",
875
+ internalType: "uint256",
876
+ },
877
+ {
878
+ name: "users",
879
+ type: "address[]",
880
+ internalType: "address[]",
881
+ },
882
+ {
883
+ name: "isAllowedList",
884
+ type: "bool[]",
885
+ internalType: "bool[]",
886
+ },
887
+ ],
888
+ outputs: [],
889
+ stateMutability: "nonpayable",
890
+ },
891
+ {
892
+ type: "function",
893
+ name: "updateLendingPoolTrancheFixedInterestStatus",
894
+ inputs: [
895
+ {
896
+ name: "lendingPool",
897
+ type: "address",
898
+ internalType: "address",
899
+ },
900
+ {
901
+ name: "fixedTermConfigId",
902
+ type: "uint256",
903
+ internalType: "uint256",
904
+ },
905
+ {
906
+ name: "fixedTermDepositStatus",
907
+ type: "uint8",
908
+ internalType: "enum FixedTermDepositStatus",
909
+ },
910
+ ],
911
+ outputs: [],
912
+ stateMutability: "nonpayable",
913
+ },
914
+ {
915
+ type: "function",
916
+ name: "updateLendingPoolWithdrawalConfiguration",
917
+ inputs: [
918
+ {
919
+ name: "lendingPool",
920
+ type: "address",
921
+ internalType: "address",
922
+ },
923
+ {
924
+ name: "withdrawalConfiguration",
925
+ type: "tuple",
926
+ internalType: "struct LendingPoolWithdrawalConfiguration",
927
+ components: [
928
+ {
929
+ name: "requestEpochsInAdvance",
930
+ type: "uint128",
931
+ internalType: "uint128",
932
+ },
933
+ {
934
+ name: "cancelRequestEpochsInAdvance",
935
+ type: "uint128",
936
+ internalType: "uint128",
937
+ },
938
+ ],
939
+ },
940
+ ],
941
+ outputs: [],
942
+ stateMutability: "nonpayable",
943
+ },
944
+ {
945
+ type: "function",
946
+ name: "updateMaximumDepositAmount",
947
+ inputs: [
948
+ {
949
+ name: "lendingPool",
950
+ type: "address",
951
+ internalType: "address",
952
+ },
953
+ {
954
+ name: "tranche",
955
+ type: "address",
956
+ internalType: "address",
957
+ },
958
+ {
959
+ name: "maximumDepositAmount",
960
+ type: "uint256",
961
+ internalType: "uint256",
962
+ },
963
+ ],
964
+ outputs: [],
965
+ stateMutability: "nonpayable",
966
+ },
967
+ {
968
+ type: "function",
969
+ name: "updateMinimumDepositAmount",
970
+ inputs: [
971
+ {
972
+ name: "lendingPool",
973
+ type: "address",
974
+ internalType: "address",
975
+ },
976
+ {
977
+ name: "tranche",
978
+ type: "address",
979
+ internalType: "address",
980
+ },
981
+ {
982
+ name: "minimumDepositAmount",
983
+ type: "uint256",
984
+ internalType: "uint256",
985
+ },
986
+ ],
987
+ outputs: [],
988
+ stateMutability: "nonpayable",
989
+ },
990
+ {
991
+ type: "function",
992
+ name: "updateMinimumExcessLiquidityPercentage",
993
+ inputs: [
994
+ {
995
+ name: "lendingPool",
996
+ type: "address",
997
+ internalType: "address",
998
+ },
999
+ {
1000
+ name: "minimumExcessLiquidityPercentage",
1001
+ type: "uint256",
1002
+ internalType: "uint256",
1003
+ },
1004
+ ],
1005
+ outputs: [],
1006
+ stateMutability: "nonpayable",
1007
+ },
1008
+ {
1009
+ type: "function",
1010
+ name: "updateTargetExcessLiquidityPercentage",
1011
+ inputs: [
1012
+ {
1013
+ name: "lendingPool",
1014
+ type: "address",
1015
+ internalType: "address",
1016
+ },
1017
+ {
1018
+ name: "targetExcessLiquidityPercentage",
1019
+ type: "uint256",
1020
+ internalType: "uint256",
1021
+ },
1022
+ ],
1023
+ outputs: [],
1024
+ stateMutability: "nonpayable",
1025
+ },
1026
+ {
1027
+ type: "function",
1028
+ name: "updateTrancheDesiredRatios",
1029
+ inputs: [
1030
+ {
1031
+ name: "lendingPool",
1032
+ type: "address",
1033
+ internalType: "address",
1034
+ },
1035
+ {
1036
+ name: "desiredRatios",
1037
+ type: "uint256[]",
1038
+ internalType: "uint256[]",
1039
+ },
1040
+ ],
1041
+ outputs: [],
1042
+ stateMutability: "nonpayable",
1043
+ },
1044
+ {
1045
+ type: "function",
1046
+ name: "updateTrancheInterestRate",
1047
+ inputs: [
1048
+ {
1049
+ name: "lendingPool",
1050
+ type: "address",
1051
+ internalType: "address",
1052
+ },
1053
+ {
1054
+ name: "tranche",
1055
+ type: "address",
1056
+ internalType: "address",
1057
+ },
1058
+ {
1059
+ name: "interestRate",
1060
+ type: "uint256",
1061
+ internalType: "uint256",
1062
+ },
1063
+ ],
1064
+ outputs: [],
1065
+ stateMutability: "nonpayable",
1066
+ },
1067
+ {
1068
+ type: "function",
1069
+ name: "updateTrancheInterestRateChangeEpochDelay",
1070
+ inputs: [
1071
+ {
1072
+ name: "lendingPool",
1073
+ type: "address",
1074
+ internalType: "address",
1075
+ },
1076
+ {
1077
+ name: "epochDelay",
1078
+ type: "uint256",
1079
+ internalType: "uint256",
1080
+ },
1081
+ ],
1082
+ outputs: [],
1083
+ stateMutability: "nonpayable",
1084
+ },
1085
+ {
1086
+ type: "function",
1087
+ name: "withdrawFirstLossCapital",
1088
+ inputs: [
1089
+ {
1090
+ name: "lendingPool",
1091
+ type: "address",
1092
+ internalType: "address",
1093
+ },
1094
+ {
1095
+ name: "withdrawAmount",
1096
+ type: "uint256",
1097
+ internalType: "uint256",
1098
+ },
1099
+ {
1100
+ name: "withdrawAddress",
1101
+ type: "address",
1102
+ internalType: "address",
1103
+ },
1104
+ ],
1105
+ outputs: [],
1106
+ stateMutability: "nonpayable",
1107
+ },
1108
+ {
1109
+ type: "event",
1110
+ name: "DepositDataAdded",
1111
+ inputs: [
1112
+ {
1113
+ name: "lendingPool",
1114
+ type: "address",
1115
+ indexed: true,
1116
+ internalType: "address",
1117
+ },
1118
+ {
1119
+ name: "dNftID",
1120
+ type: "uint256",
1121
+ indexed: true,
1122
+ internalType: "uint256",
1123
+ },
1124
+ {
1125
+ name: "data",
1126
+ type: "bytes",
1127
+ indexed: false,
1128
+ internalType: "bytes",
1129
+ },
1130
+ ],
1131
+ anonymous: false,
1132
+ },
1133
+ {
1134
+ type: "event",
1135
+ name: "Initialized",
1136
+ inputs: [
1137
+ {
1138
+ name: "version",
1139
+ type: "uint64",
1140
+ indexed: false,
1141
+ internalType: "uint64",
1142
+ },
1143
+ ],
1144
+ anonymous: false,
1145
+ },
1146
+ {
1147
+ type: "error",
1148
+ name: "AccessControlUnauthorizedAccount",
1149
+ inputs: [
1150
+ {
1151
+ name: "account",
1152
+ type: "address",
1153
+ internalType: "address",
1154
+ },
1155
+ {
1156
+ name: "neededRole",
1157
+ type: "bytes32",
1158
+ internalType: "bytes32",
1159
+ },
1160
+ ],
1161
+ },
1162
+ {
1163
+ type: "error",
1164
+ name: "AddressEmptyCode",
1165
+ inputs: [
1166
+ {
1167
+ name: "target",
1168
+ type: "address",
1169
+ internalType: "address",
1170
+ },
1171
+ ],
1172
+ },
1173
+ {
1174
+ type: "error",
1175
+ name: "AddressInsufficientBalance",
1176
+ inputs: [
1177
+ {
1178
+ name: "account",
1179
+ type: "address",
1180
+ internalType: "address",
1181
+ },
1182
+ ],
1183
+ },
1184
+ {
1185
+ type: "error",
1186
+ name: "ClearingIsPending",
1187
+ inputs: [],
1188
+ },
1189
+ {
1190
+ type: "error",
1191
+ name: "ConfigurationAddressZero",
1192
+ inputs: [],
1193
+ },
1194
+ {
1195
+ type: "error",
1196
+ name: "FailedInnerCall",
1197
+ inputs: [],
1198
+ },
1199
+ {
1200
+ type: "error",
1201
+ name: "InsufficientOutputAmount",
1202
+ inputs: [
1203
+ {
1204
+ name: "amountOut",
1205
+ type: "uint256",
1206
+ internalType: "uint256",
1207
+ },
1208
+ {
1209
+ name: "minAmountOut",
1210
+ type: "uint256",
1211
+ internalType: "uint256",
1212
+ },
1213
+ ],
1214
+ },
1215
+ {
1216
+ type: "error",
1217
+ name: "InvalidArrayLength",
1218
+ inputs: [],
1219
+ },
1220
+ {
1221
+ type: "error",
1222
+ name: "InvalidInitialization",
1223
+ inputs: [],
1224
+ },
1225
+ {
1226
+ type: "error",
1227
+ name: "InvalidLendingPool",
1228
+ inputs: [
1229
+ {
1230
+ name: "lendingPool",
1231
+ type: "address",
1232
+ internalType: "address",
1233
+ },
1234
+ ],
1235
+ },
1236
+ {
1237
+ type: "error",
1238
+ name: "InvalidTranche",
1239
+ inputs: [
1240
+ {
1241
+ name: "lendingPool",
1242
+ type: "address",
1243
+ internalType: "address",
1244
+ },
1245
+ {
1246
+ name: "tranche",
1247
+ type: "address",
1248
+ internalType: "address",
1249
+ },
1250
+ ],
1251
+ },
1252
+ {
1253
+ type: "error",
1254
+ name: "LendingPoolIsNotStopped",
1255
+ inputs: [],
1256
+ },
1257
+ {
1258
+ type: "error",
1259
+ name: "LendingPoolIsStopped",
1260
+ inputs: [],
1261
+ },
1262
+ {
1263
+ type: "error",
1264
+ name: "NotInitializing",
1265
+ inputs: [],
1266
+ },
1267
+ {
1268
+ type: "error",
1269
+ name: "OnlyClearingCoordinator",
1270
+ inputs: [],
1271
+ },
1272
+ {
1273
+ type: "error",
1274
+ name: "OnlyFixedTermDeposit",
1275
+ inputs: [],
1276
+ },
1277
+ {
1278
+ type: "error",
1279
+ name: "OnlyLendingPoolManager",
1280
+ inputs: [],
1281
+ },
1282
+ {
1283
+ type: "error",
1284
+ name: "OnlyOwnLendingPool",
1285
+ inputs: [
1286
+ {
1287
+ name: "sender",
1288
+ type: "address",
1289
+ internalType: "address",
1290
+ },
1291
+ {
1292
+ name: "ownLendingPool",
1293
+ type: "address",
1294
+ internalType: "address",
1295
+ },
1296
+ ],
1297
+ },
1298
+ {
1299
+ type: "error",
1300
+ name: "OnlyOwnPendingPool",
1301
+ inputs: [
1302
+ {
1303
+ name: "sender",
1304
+ type: "address",
1305
+ internalType: "address",
1306
+ },
1307
+ {
1308
+ name: "ownPendingPool",
1309
+ type: "address",
1310
+ internalType: "address",
1311
+ },
1312
+ ],
1313
+ },
1314
+ {
1315
+ type: "error",
1316
+ name: "SafeERC20FailedOperation",
1317
+ inputs: [
1318
+ {
1319
+ name: "token",
1320
+ type: "address",
1321
+ internalType: "address",
1322
+ },
1323
+ ],
1324
+ },
1325
+ {
1326
+ type: "error",
1327
+ name: "UserBlocked",
1328
+ inputs: [
1329
+ {
1330
+ name: "user",
1331
+ type: "address",
1332
+ internalType: "address",
1333
+ },
1334
+ ],
1335
+ },
1336
+ {
1337
+ type: "error",
1338
+ name: "UserNotInAllowList",
1339
+ inputs: [
1340
+ {
1341
+ name: "user",
1342
+ type: "address",
1343
+ internalType: "address",
1344
+ },
1345
+ ],
1346
+ },
1347
+ {
1348
+ type: "error",
1349
+ name: "UserNotKycd",
1350
+ inputs: [
1351
+ {
1352
+ name: "user",
1353
+ type: "address",
1354
+ internalType: "address",
1355
+ },
1356
+ ],
1357
+ },
1358
+ ] as const;
1359
+
1360
+ export class ILendingPoolManagerAbi__factory {
1361
+ static readonly abi = _abi;
1362
+ static createInterface(): ILendingPoolManagerAbiInterface {
1363
+ return new utils.Interface(_abi) as ILendingPoolManagerAbiInterface;
1364
+ }
1365
+ static connect(
1366
+ address: string,
1367
+ signerOrProvider: Signer | Provider
1368
+ ): ILendingPoolManagerAbi {
1369
+ return new Contract(
1370
+ address,
1371
+ _abi,
1372
+ signerOrProvider
1373
+ ) as ILendingPoolManagerAbi;
1374
+ }
1375
+ }