@kasufinance/kasu-sdk 1.0.2 → 1.0.3

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 (40) hide show
  1. package/package.json +1 -1
  2. package/src/contracts/IClearingCoordinatorAbi.ts +406 -0
  3. package/src/contracts/IERC20MetadataAbi.ts +364 -0
  4. package/src/contracts/IFeeManagerAbi.ts +182 -0
  5. package/src/contracts/IKSULockingAbi.ts +965 -0
  6. package/src/contracts/IKasuAllowListAbi.ts +605 -0
  7. package/src/contracts/IKasuControllerAbi.ts +703 -0
  8. package/src/contracts/IKasuNFTsAbi.ts +2744 -0
  9. package/src/contracts/IKsuPriceAbi.ts +87 -0
  10. package/src/contracts/ILendingPoolAbi.ts +2081 -0
  11. package/src/contracts/ILendingPoolFactoryAbi.ts +161 -0
  12. package/src/contracts/ILendingPoolManagerAbi.ts +1917 -0
  13. package/src/contracts/ILendingPoolTrancheAbi.ts +1911 -0
  14. package/src/contracts/ISystemVariablesAbi.ts +908 -0
  15. package/src/contracts/IUserLoyaltyRewardsAbi.ts +544 -0
  16. package/src/contracts/IUserManagerAbi.ts +612 -0
  17. package/src/contracts/KSULockBonusAbi.ts +124 -0
  18. package/src/contracts/KasuPoolExternalTVLAbi.ts +1071 -0
  19. package/src/contracts/SwapperAbi.ts +266 -0
  20. package/src/contracts/common.ts +44 -0
  21. package/src/contracts/factories/IClearingCoordinatorAbi__factory.ts +438 -0
  22. package/src/contracts/factories/IERC20MetadataAbi__factory.ts +248 -0
  23. package/src/contracts/factories/IFeeManagerAbi__factory.ts +90 -0
  24. package/src/contracts/factories/IKSULockingAbi__factory.ts +778 -0
  25. package/src/contracts/factories/IKasuAllowListAbi__factory.ts +479 -0
  26. package/src/contracts/factories/IKasuControllerAbi__factory.ts +447 -0
  27. package/src/contracts/factories/IKasuNFTsAbi__factory.ts +2116 -0
  28. package/src/contracts/factories/IKsuPriceAbi__factory.ts +36 -0
  29. package/src/contracts/factories/ILendingPoolAbi__factory.ts +1455 -0
  30. package/src/contracts/factories/ILendingPoolFactoryAbi__factory.ts +125 -0
  31. package/src/contracts/factories/ILendingPoolManagerAbi__factory.ts +1375 -0
  32. package/src/contracts/factories/ILendingPoolTrancheAbi__factory.ts +1345 -0
  33. package/src/contracts/factories/ISystemVariablesAbi__factory.ts +455 -0
  34. package/src/contracts/factories/IUserLoyaltyRewardsAbi__factory.ts +316 -0
  35. package/src/contracts/factories/IUserManagerAbi__factory.ts +345 -0
  36. package/src/contracts/factories/KSULockBonusAbi__factory.ts +115 -0
  37. package/src/contracts/factories/KasuPoolExternalTVLAbi__factory.ts +840 -0
  38. package/src/contracts/factories/SwapperAbi__factory.ts +167 -0
  39. package/src/contracts/factories/index.ts +21 -0
  40. package/src/contracts/index.ts +40 -0
@@ -0,0 +1,2081 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type {
5
+ BaseContract,
6
+ BigNumber,
7
+ BigNumberish,
8
+ BytesLike,
9
+ CallOverrides,
10
+ ContractTransaction,
11
+ Overrides,
12
+ PopulatedTransaction,
13
+ Signer,
14
+ utils,
15
+ } from "ethers";
16
+ import type {
17
+ FunctionFragment,
18
+ Result,
19
+ EventFragment,
20
+ } from "@ethersproject/abi";
21
+ import type { Listener, Provider } from "@ethersproject/providers";
22
+ import type {
23
+ TypedEventFilter,
24
+ TypedEvent,
25
+ TypedListener,
26
+ OnEvent,
27
+ } from "./common";
28
+
29
+ export type ClearingConfigurationStruct = {
30
+ drawAmount: BigNumberish;
31
+ trancheDesiredRatios: BigNumberish[];
32
+ maxExcessPercentage: BigNumberish;
33
+ minExcessPercentage: BigNumberish;
34
+ };
35
+
36
+ export type ClearingConfigurationStructOutput = [
37
+ BigNumber,
38
+ BigNumber[],
39
+ BigNumber,
40
+ BigNumber
41
+ ] & {
42
+ drawAmount: BigNumber;
43
+ trancheDesiredRatios: BigNumber[];
44
+ maxExcessPercentage: BigNumber;
45
+ minExcessPercentage: BigNumber;
46
+ };
47
+
48
+ export type LendingPoolInfoStruct = {
49
+ trancheAddresses: string[];
50
+ pendingPool: string;
51
+ };
52
+
53
+ export type LendingPoolInfoStructOutput = [string[], string] & {
54
+ trancheAddresses: string[];
55
+ pendingPool: string;
56
+ };
57
+
58
+ export type TrancheConfigStruct = {
59
+ ratio: BigNumberish;
60
+ interestRate: BigNumberish;
61
+ minDepositAmount: BigNumberish;
62
+ maxDepositAmount: BigNumberish;
63
+ };
64
+
65
+ export type TrancheConfigStructOutput = [
66
+ BigNumber,
67
+ BigNumber,
68
+ BigNumber,
69
+ BigNumber
70
+ ] & {
71
+ ratio: BigNumber;
72
+ interestRate: BigNumber;
73
+ minDepositAmount: BigNumber;
74
+ maxDepositAmount: BigNumber;
75
+ };
76
+
77
+ export type PoolConfigurationStruct = {
78
+ tranches: TrancheConfigStruct[];
79
+ drawRecipient: string;
80
+ desiredDrawAmount: BigNumberish;
81
+ trancheInterestChangeEpochDelay: BigNumberish;
82
+ targetExcessLiquidityPercentage: BigNumberish;
83
+ minimumExcessLiquidityPercentage: BigNumberish;
84
+ };
85
+
86
+ export type PoolConfigurationStructOutput = [
87
+ TrancheConfigStructOutput[],
88
+ string,
89
+ BigNumber,
90
+ BigNumber,
91
+ BigNumber,
92
+ BigNumber
93
+ ] & {
94
+ tranches: TrancheConfigStructOutput[];
95
+ drawRecipient: string;
96
+ desiredDrawAmount: BigNumber;
97
+ trancheInterestChangeEpochDelay: BigNumber;
98
+ targetExcessLiquidityPercentage: BigNumber;
99
+ minimumExcessLiquidityPercentage: BigNumber;
100
+ };
101
+
102
+ export interface ILendingPoolAbiInterface extends utils.Interface {
103
+ functions: {
104
+ "acceptDeposit(address,address,uint256)": FunctionFragment;
105
+ "acceptWithdrawal(address,address,uint256)": FunctionFragment;
106
+ "allowance(address,address)": FunctionFragment;
107
+ "applyInterests(uint256)": FunctionFragment;
108
+ "approve(address,uint256)": FunctionFragment;
109
+ "availableFunds()": FunctionFragment;
110
+ "balanceOf(address)": FunctionFragment;
111
+ "calculateMaximumLossAmount()": FunctionFragment;
112
+ "claimRepaidLoss(address,address,uint256)": FunctionFragment;
113
+ "depositFirstLossCapital(uint256)": FunctionFragment;
114
+ "drawFunds(uint256)": FunctionFragment;
115
+ "feesOwedAmount()": FunctionFragment;
116
+ "forceImmediateWithdrawal(address,address,uint256)": FunctionFragment;
117
+ "getClearingConfig()": FunctionFragment;
118
+ "getLendingPoolInfo()": FunctionFragment;
119
+ "isLendingPoolTranche(address)": FunctionFragment;
120
+ "lendingPoolTrancheCount()": FunctionFragment;
121
+ "lendingPoolTranches()": FunctionFragment;
122
+ "pendingPool()": FunctionFragment;
123
+ "poolConfiguration()": FunctionFragment;
124
+ "repayLoss(address,uint256,uint256)": FunctionFragment;
125
+ "repayOwedFunds(uint256)": FunctionFragment;
126
+ "reportLoss(uint256,bool)": FunctionFragment;
127
+ "stop()": FunctionFragment;
128
+ "totalSupply()": FunctionFragment;
129
+ "trancheConfigurationDepositLimits(address)": FunctionFragment;
130
+ "trancheIndex(address)": FunctionFragment;
131
+ "transfer(address,uint256)": FunctionFragment;
132
+ "transferFrom(address,address,uint256)": FunctionFragment;
133
+ "updateDesiredDrawAmount(uint256)": FunctionFragment;
134
+ "updateDrawRecipient(address)": FunctionFragment;
135
+ "updateMaximumDepositAmount(address,uint256)": FunctionFragment;
136
+ "updateMinimumDepositAmount(address,uint256)": FunctionFragment;
137
+ "updateMinimumExcessLiquidityPercentage(uint256)": FunctionFragment;
138
+ "updateTargetExcessLiquidityPercentage(uint256)": FunctionFragment;
139
+ "updateTrancheDesiredRatios(uint256[])": FunctionFragment;
140
+ "updateTrancheInterestRate(address,uint256)": FunctionFragment;
141
+ "updateTrancheInterestRateChangeEpochDelay(uint256)": FunctionFragment;
142
+ "userBalance(address)": FunctionFragment;
143
+ "userOwedAmount()": FunctionFragment;
144
+ "verifyClearingConfig((uint256,uint256[],uint256,uint256))": FunctionFragment;
145
+ "withdrawFirstLossCapital(uint256,address)": FunctionFragment;
146
+ };
147
+
148
+ getFunction(
149
+ nameOrSignatureOrTopic:
150
+ | "acceptDeposit"
151
+ | "acceptWithdrawal"
152
+ | "allowance"
153
+ | "applyInterests"
154
+ | "approve"
155
+ | "availableFunds"
156
+ | "balanceOf"
157
+ | "calculateMaximumLossAmount"
158
+ | "claimRepaidLoss"
159
+ | "depositFirstLossCapital"
160
+ | "drawFunds"
161
+ | "feesOwedAmount"
162
+ | "forceImmediateWithdrawal"
163
+ | "getClearingConfig"
164
+ | "getLendingPoolInfo"
165
+ | "isLendingPoolTranche"
166
+ | "lendingPoolTrancheCount"
167
+ | "lendingPoolTranches"
168
+ | "pendingPool"
169
+ | "poolConfiguration"
170
+ | "repayLoss"
171
+ | "repayOwedFunds"
172
+ | "reportLoss"
173
+ | "stop"
174
+ | "totalSupply"
175
+ | "trancheConfigurationDepositLimits"
176
+ | "trancheIndex"
177
+ | "transfer"
178
+ | "transferFrom"
179
+ | "updateDesiredDrawAmount"
180
+ | "updateDrawRecipient"
181
+ | "updateMaximumDepositAmount"
182
+ | "updateMinimumDepositAmount"
183
+ | "updateMinimumExcessLiquidityPercentage"
184
+ | "updateTargetExcessLiquidityPercentage"
185
+ | "updateTrancheDesiredRatios"
186
+ | "updateTrancheInterestRate"
187
+ | "updateTrancheInterestRateChangeEpochDelay"
188
+ | "userBalance"
189
+ | "userOwedAmount"
190
+ | "verifyClearingConfig"
191
+ | "withdrawFirstLossCapital"
192
+ ): FunctionFragment;
193
+
194
+ encodeFunctionData(
195
+ functionFragment: "acceptDeposit",
196
+ values: [string, string, BigNumberish]
197
+ ): string;
198
+ encodeFunctionData(
199
+ functionFragment: "acceptWithdrawal",
200
+ values: [string, string, BigNumberish]
201
+ ): string;
202
+ encodeFunctionData(
203
+ functionFragment: "allowance",
204
+ values: [string, string]
205
+ ): string;
206
+ encodeFunctionData(
207
+ functionFragment: "applyInterests",
208
+ values: [BigNumberish]
209
+ ): string;
210
+ encodeFunctionData(
211
+ functionFragment: "approve",
212
+ values: [string, BigNumberish]
213
+ ): string;
214
+ encodeFunctionData(
215
+ functionFragment: "availableFunds",
216
+ values?: undefined
217
+ ): string;
218
+ encodeFunctionData(functionFragment: "balanceOf", values: [string]): string;
219
+ encodeFunctionData(
220
+ functionFragment: "calculateMaximumLossAmount",
221
+ values?: undefined
222
+ ): string;
223
+ encodeFunctionData(
224
+ functionFragment: "claimRepaidLoss",
225
+ values: [string, string, BigNumberish]
226
+ ): string;
227
+ encodeFunctionData(
228
+ functionFragment: "depositFirstLossCapital",
229
+ values: [BigNumberish]
230
+ ): string;
231
+ encodeFunctionData(
232
+ functionFragment: "drawFunds",
233
+ values: [BigNumberish]
234
+ ): string;
235
+ encodeFunctionData(
236
+ functionFragment: "feesOwedAmount",
237
+ values?: undefined
238
+ ): string;
239
+ encodeFunctionData(
240
+ functionFragment: "forceImmediateWithdrawal",
241
+ values: [string, string, BigNumberish]
242
+ ): string;
243
+ encodeFunctionData(
244
+ functionFragment: "getClearingConfig",
245
+ values?: undefined
246
+ ): string;
247
+ encodeFunctionData(
248
+ functionFragment: "getLendingPoolInfo",
249
+ values?: undefined
250
+ ): string;
251
+ encodeFunctionData(
252
+ functionFragment: "isLendingPoolTranche",
253
+ values: [string]
254
+ ): string;
255
+ encodeFunctionData(
256
+ functionFragment: "lendingPoolTrancheCount",
257
+ values?: undefined
258
+ ): string;
259
+ encodeFunctionData(
260
+ functionFragment: "lendingPoolTranches",
261
+ values?: undefined
262
+ ): string;
263
+ encodeFunctionData(
264
+ functionFragment: "pendingPool",
265
+ values?: undefined
266
+ ): string;
267
+ encodeFunctionData(
268
+ functionFragment: "poolConfiguration",
269
+ values?: undefined
270
+ ): string;
271
+ encodeFunctionData(
272
+ functionFragment: "repayLoss",
273
+ values: [string, BigNumberish, BigNumberish]
274
+ ): string;
275
+ encodeFunctionData(
276
+ functionFragment: "repayOwedFunds",
277
+ values: [BigNumberish]
278
+ ): string;
279
+ encodeFunctionData(
280
+ functionFragment: "reportLoss",
281
+ values: [BigNumberish, boolean]
282
+ ): string;
283
+ encodeFunctionData(functionFragment: "stop", values?: undefined): string;
284
+ encodeFunctionData(
285
+ functionFragment: "totalSupply",
286
+ values?: undefined
287
+ ): string;
288
+ encodeFunctionData(
289
+ functionFragment: "trancheConfigurationDepositLimits",
290
+ values: [string]
291
+ ): string;
292
+ encodeFunctionData(
293
+ functionFragment: "trancheIndex",
294
+ values: [string]
295
+ ): string;
296
+ encodeFunctionData(
297
+ functionFragment: "transfer",
298
+ values: [string, BigNumberish]
299
+ ): string;
300
+ encodeFunctionData(
301
+ functionFragment: "transferFrom",
302
+ values: [string, string, BigNumberish]
303
+ ): string;
304
+ encodeFunctionData(
305
+ functionFragment: "updateDesiredDrawAmount",
306
+ values: [BigNumberish]
307
+ ): string;
308
+ encodeFunctionData(
309
+ functionFragment: "updateDrawRecipient",
310
+ values: [string]
311
+ ): string;
312
+ encodeFunctionData(
313
+ functionFragment: "updateMaximumDepositAmount",
314
+ values: [string, BigNumberish]
315
+ ): string;
316
+ encodeFunctionData(
317
+ functionFragment: "updateMinimumDepositAmount",
318
+ values: [string, BigNumberish]
319
+ ): string;
320
+ encodeFunctionData(
321
+ functionFragment: "updateMinimumExcessLiquidityPercentage",
322
+ values: [BigNumberish]
323
+ ): string;
324
+ encodeFunctionData(
325
+ functionFragment: "updateTargetExcessLiquidityPercentage",
326
+ values: [BigNumberish]
327
+ ): string;
328
+ encodeFunctionData(
329
+ functionFragment: "updateTrancheDesiredRatios",
330
+ values: [BigNumberish[]]
331
+ ): string;
332
+ encodeFunctionData(
333
+ functionFragment: "updateTrancheInterestRate",
334
+ values: [string, BigNumberish]
335
+ ): string;
336
+ encodeFunctionData(
337
+ functionFragment: "updateTrancheInterestRateChangeEpochDelay",
338
+ values: [BigNumberish]
339
+ ): string;
340
+ encodeFunctionData(functionFragment: "userBalance", values: [string]): string;
341
+ encodeFunctionData(
342
+ functionFragment: "userOwedAmount",
343
+ values?: undefined
344
+ ): string;
345
+ encodeFunctionData(
346
+ functionFragment: "verifyClearingConfig",
347
+ values: [ClearingConfigurationStruct]
348
+ ): string;
349
+ encodeFunctionData(
350
+ functionFragment: "withdrawFirstLossCapital",
351
+ values: [BigNumberish, string]
352
+ ): string;
353
+
354
+ decodeFunctionResult(
355
+ functionFragment: "acceptDeposit",
356
+ data: BytesLike
357
+ ): Result;
358
+ decodeFunctionResult(
359
+ functionFragment: "acceptWithdrawal",
360
+ data: BytesLike
361
+ ): Result;
362
+ decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result;
363
+ decodeFunctionResult(
364
+ functionFragment: "applyInterests",
365
+ data: BytesLike
366
+ ): Result;
367
+ decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
368
+ decodeFunctionResult(
369
+ functionFragment: "availableFunds",
370
+ data: BytesLike
371
+ ): Result;
372
+ decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
373
+ decodeFunctionResult(
374
+ functionFragment: "calculateMaximumLossAmount",
375
+ data: BytesLike
376
+ ): Result;
377
+ decodeFunctionResult(
378
+ functionFragment: "claimRepaidLoss",
379
+ data: BytesLike
380
+ ): Result;
381
+ decodeFunctionResult(
382
+ functionFragment: "depositFirstLossCapital",
383
+ data: BytesLike
384
+ ): Result;
385
+ decodeFunctionResult(functionFragment: "drawFunds", data: BytesLike): Result;
386
+ decodeFunctionResult(
387
+ functionFragment: "feesOwedAmount",
388
+ data: BytesLike
389
+ ): Result;
390
+ decodeFunctionResult(
391
+ functionFragment: "forceImmediateWithdrawal",
392
+ data: BytesLike
393
+ ): Result;
394
+ decodeFunctionResult(
395
+ functionFragment: "getClearingConfig",
396
+ data: BytesLike
397
+ ): Result;
398
+ decodeFunctionResult(
399
+ functionFragment: "getLendingPoolInfo",
400
+ data: BytesLike
401
+ ): Result;
402
+ decodeFunctionResult(
403
+ functionFragment: "isLendingPoolTranche",
404
+ data: BytesLike
405
+ ): Result;
406
+ decodeFunctionResult(
407
+ functionFragment: "lendingPoolTrancheCount",
408
+ data: BytesLike
409
+ ): Result;
410
+ decodeFunctionResult(
411
+ functionFragment: "lendingPoolTranches",
412
+ data: BytesLike
413
+ ): Result;
414
+ decodeFunctionResult(
415
+ functionFragment: "pendingPool",
416
+ data: BytesLike
417
+ ): Result;
418
+ decodeFunctionResult(
419
+ functionFragment: "poolConfiguration",
420
+ data: BytesLike
421
+ ): Result;
422
+ decodeFunctionResult(functionFragment: "repayLoss", data: BytesLike): Result;
423
+ decodeFunctionResult(
424
+ functionFragment: "repayOwedFunds",
425
+ data: BytesLike
426
+ ): Result;
427
+ decodeFunctionResult(functionFragment: "reportLoss", data: BytesLike): Result;
428
+ decodeFunctionResult(functionFragment: "stop", data: BytesLike): Result;
429
+ decodeFunctionResult(
430
+ functionFragment: "totalSupply",
431
+ data: BytesLike
432
+ ): Result;
433
+ decodeFunctionResult(
434
+ functionFragment: "trancheConfigurationDepositLimits",
435
+ data: BytesLike
436
+ ): Result;
437
+ decodeFunctionResult(
438
+ functionFragment: "trancheIndex",
439
+ data: BytesLike
440
+ ): Result;
441
+ decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result;
442
+ decodeFunctionResult(
443
+ functionFragment: "transferFrom",
444
+ data: BytesLike
445
+ ): Result;
446
+ decodeFunctionResult(
447
+ functionFragment: "updateDesiredDrawAmount",
448
+ data: BytesLike
449
+ ): Result;
450
+ decodeFunctionResult(
451
+ functionFragment: "updateDrawRecipient",
452
+ data: BytesLike
453
+ ): Result;
454
+ decodeFunctionResult(
455
+ functionFragment: "updateMaximumDepositAmount",
456
+ data: BytesLike
457
+ ): Result;
458
+ decodeFunctionResult(
459
+ functionFragment: "updateMinimumDepositAmount",
460
+ data: BytesLike
461
+ ): Result;
462
+ decodeFunctionResult(
463
+ functionFragment: "updateMinimumExcessLiquidityPercentage",
464
+ data: BytesLike
465
+ ): Result;
466
+ decodeFunctionResult(
467
+ functionFragment: "updateTargetExcessLiquidityPercentage",
468
+ data: BytesLike
469
+ ): Result;
470
+ decodeFunctionResult(
471
+ functionFragment: "updateTrancheDesiredRatios",
472
+ data: BytesLike
473
+ ): Result;
474
+ decodeFunctionResult(
475
+ functionFragment: "updateTrancheInterestRate",
476
+ data: BytesLike
477
+ ): Result;
478
+ decodeFunctionResult(
479
+ functionFragment: "updateTrancheInterestRateChangeEpochDelay",
480
+ data: BytesLike
481
+ ): Result;
482
+ decodeFunctionResult(
483
+ functionFragment: "userBalance",
484
+ data: BytesLike
485
+ ): Result;
486
+ decodeFunctionResult(
487
+ functionFragment: "userOwedAmount",
488
+ data: BytesLike
489
+ ): Result;
490
+ decodeFunctionResult(
491
+ functionFragment: "verifyClearingConfig",
492
+ data: BytesLike
493
+ ): Result;
494
+ decodeFunctionResult(
495
+ functionFragment: "withdrawFirstLossCapital",
496
+ data: BytesLike
497
+ ): Result;
498
+
499
+ events: {
500
+ "Approval(address,address,uint256)": EventFragment;
501
+ "DepositAccepted(address,address,uint256)": EventFragment;
502
+ "FeesOwedIncreased(uint256,uint256)": EventFragment;
503
+ "FirstLossCapitalAdded(uint256)": EventFragment;
504
+ "FirstLossCapitalLossReported(uint256,uint256)": EventFragment;
505
+ "FirstLossCapitalWithdrawn(uint256)": EventFragment;
506
+ "FundsDrawn(uint256)": EventFragment;
507
+ "ImmediateWithdrawal(address,address,uint256,uint256)": EventFragment;
508
+ "InterestApplied(address,uint256,uint256)": EventFragment;
509
+ "LendingPoolStopped()": EventFragment;
510
+ "LossReported(uint256)": EventFragment;
511
+ "OwedFundsRepaid(uint256,uint256)": EventFragment;
512
+ "PaidFees(uint256)": EventFragment;
513
+ "RemovedTrancheInterestRateUpdate(address,uint256,uint256)": EventFragment;
514
+ "Transfer(address,address,uint256)": EventFragment;
515
+ "UpdatedDesiredDrawAmount(uint256)": EventFragment;
516
+ "UpdatedDrawRecipient(address)": EventFragment;
517
+ "UpdatedMaximumDepositAmount(address,uint256)": EventFragment;
518
+ "UpdatedMinimumDepositAmount(address,uint256)": EventFragment;
519
+ "UpdatedMinimumExcessLiquidityPercentage(uint256)": EventFragment;
520
+ "UpdatedTargetExcessLiquidityPercentage(uint256)": EventFragment;
521
+ "UpdatedTrancheDesiredRatios(uint256[])": EventFragment;
522
+ "UpdatedTrancheInterestRate(address,uint256,uint256)": EventFragment;
523
+ "UpdatedTrancheInterestRateChangeEpochDelay(uint256)": EventFragment;
524
+ "WithdrawalAccepted(address,address,uint256,uint256)": EventFragment;
525
+ };
526
+
527
+ getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment;
528
+ getEvent(nameOrSignatureOrTopic: "DepositAccepted"): EventFragment;
529
+ getEvent(nameOrSignatureOrTopic: "FeesOwedIncreased"): EventFragment;
530
+ getEvent(nameOrSignatureOrTopic: "FirstLossCapitalAdded"): EventFragment;
531
+ getEvent(
532
+ nameOrSignatureOrTopic: "FirstLossCapitalLossReported"
533
+ ): EventFragment;
534
+ getEvent(nameOrSignatureOrTopic: "FirstLossCapitalWithdrawn"): EventFragment;
535
+ getEvent(nameOrSignatureOrTopic: "FundsDrawn"): EventFragment;
536
+ getEvent(nameOrSignatureOrTopic: "ImmediateWithdrawal"): EventFragment;
537
+ getEvent(nameOrSignatureOrTopic: "InterestApplied"): EventFragment;
538
+ getEvent(nameOrSignatureOrTopic: "LendingPoolStopped"): EventFragment;
539
+ getEvent(nameOrSignatureOrTopic: "LossReported"): EventFragment;
540
+ getEvent(nameOrSignatureOrTopic: "OwedFundsRepaid"): EventFragment;
541
+ getEvent(nameOrSignatureOrTopic: "PaidFees"): EventFragment;
542
+ getEvent(
543
+ nameOrSignatureOrTopic: "RemovedTrancheInterestRateUpdate"
544
+ ): EventFragment;
545
+ getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment;
546
+ getEvent(nameOrSignatureOrTopic: "UpdatedDesiredDrawAmount"): EventFragment;
547
+ getEvent(nameOrSignatureOrTopic: "UpdatedDrawRecipient"): EventFragment;
548
+ getEvent(
549
+ nameOrSignatureOrTopic: "UpdatedMaximumDepositAmount"
550
+ ): EventFragment;
551
+ getEvent(
552
+ nameOrSignatureOrTopic: "UpdatedMinimumDepositAmount"
553
+ ): EventFragment;
554
+ getEvent(
555
+ nameOrSignatureOrTopic: "UpdatedMinimumExcessLiquidityPercentage"
556
+ ): EventFragment;
557
+ getEvent(
558
+ nameOrSignatureOrTopic: "UpdatedTargetExcessLiquidityPercentage"
559
+ ): EventFragment;
560
+ getEvent(
561
+ nameOrSignatureOrTopic: "UpdatedTrancheDesiredRatios"
562
+ ): EventFragment;
563
+ getEvent(nameOrSignatureOrTopic: "UpdatedTrancheInterestRate"): EventFragment;
564
+ getEvent(
565
+ nameOrSignatureOrTopic: "UpdatedTrancheInterestRateChangeEpochDelay"
566
+ ): EventFragment;
567
+ getEvent(nameOrSignatureOrTopic: "WithdrawalAccepted"): EventFragment;
568
+ }
569
+
570
+ export interface ApprovalEventObject {
571
+ owner: string;
572
+ spender: string;
573
+ value: BigNumber;
574
+ }
575
+ export type ApprovalEvent = TypedEvent<
576
+ [string, string, BigNumber],
577
+ ApprovalEventObject
578
+ >;
579
+
580
+ export type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>;
581
+
582
+ export interface DepositAcceptedEventObject {
583
+ user: string;
584
+ tranche: string;
585
+ amount: BigNumber;
586
+ }
587
+ export type DepositAcceptedEvent = TypedEvent<
588
+ [string, string, BigNumber],
589
+ DepositAcceptedEventObject
590
+ >;
591
+
592
+ export type DepositAcceptedEventFilter = TypedEventFilter<DepositAcceptedEvent>;
593
+
594
+ export interface FeesOwedIncreasedEventObject {
595
+ epoch: BigNumber;
596
+ feesIncreasedAmount: BigNumber;
597
+ }
598
+ export type FeesOwedIncreasedEvent = TypedEvent<
599
+ [BigNumber, BigNumber],
600
+ FeesOwedIncreasedEventObject
601
+ >;
602
+
603
+ export type FeesOwedIncreasedEventFilter =
604
+ TypedEventFilter<FeesOwedIncreasedEvent>;
605
+
606
+ export interface FirstLossCapitalAddedEventObject {
607
+ amountAdded: BigNumber;
608
+ }
609
+ export type FirstLossCapitalAddedEvent = TypedEvent<
610
+ [BigNumber],
611
+ FirstLossCapitalAddedEventObject
612
+ >;
613
+
614
+ export type FirstLossCapitalAddedEventFilter =
615
+ TypedEventFilter<FirstLossCapitalAddedEvent>;
616
+
617
+ export interface FirstLossCapitalLossReportedEventObject {
618
+ lossId: BigNumber;
619
+ amount: BigNumber;
620
+ }
621
+ export type FirstLossCapitalLossReportedEvent = TypedEvent<
622
+ [BigNumber, BigNumber],
623
+ FirstLossCapitalLossReportedEventObject
624
+ >;
625
+
626
+ export type FirstLossCapitalLossReportedEventFilter =
627
+ TypedEventFilter<FirstLossCapitalLossReportedEvent>;
628
+
629
+ export interface FirstLossCapitalWithdrawnEventObject {
630
+ amountWithdrawn: BigNumber;
631
+ }
632
+ export type FirstLossCapitalWithdrawnEvent = TypedEvent<
633
+ [BigNumber],
634
+ FirstLossCapitalWithdrawnEventObject
635
+ >;
636
+
637
+ export type FirstLossCapitalWithdrawnEventFilter =
638
+ TypedEventFilter<FirstLossCapitalWithdrawnEvent>;
639
+
640
+ export interface FundsDrawnEventObject {
641
+ amount: BigNumber;
642
+ }
643
+ export type FundsDrawnEvent = TypedEvent<[BigNumber], FundsDrawnEventObject>;
644
+
645
+ export type FundsDrawnEventFilter = TypedEventFilter<FundsDrawnEvent>;
646
+
647
+ export interface ImmediateWithdrawalEventObject {
648
+ user: string;
649
+ tranche: string;
650
+ shares: BigNumber;
651
+ amount: BigNumber;
652
+ }
653
+ export type ImmediateWithdrawalEvent = TypedEvent<
654
+ [string, string, BigNumber, BigNumber],
655
+ ImmediateWithdrawalEventObject
656
+ >;
657
+
658
+ export type ImmediateWithdrawalEventFilter =
659
+ TypedEventFilter<ImmediateWithdrawalEvent>;
660
+
661
+ export interface InterestAppliedEventObject {
662
+ tranche: string;
663
+ epoch: BigNumber;
664
+ interestAmount: BigNumber;
665
+ }
666
+ export type InterestAppliedEvent = TypedEvent<
667
+ [string, BigNumber, BigNumber],
668
+ InterestAppliedEventObject
669
+ >;
670
+
671
+ export type InterestAppliedEventFilter = TypedEventFilter<InterestAppliedEvent>;
672
+
673
+ export interface LendingPoolStoppedEventObject {}
674
+ export type LendingPoolStoppedEvent = TypedEvent<
675
+ [],
676
+ LendingPoolStoppedEventObject
677
+ >;
678
+
679
+ export type LendingPoolStoppedEventFilter =
680
+ TypedEventFilter<LendingPoolStoppedEvent>;
681
+
682
+ export interface LossReportedEventObject {
683
+ amount: BigNumber;
684
+ }
685
+ export type LossReportedEvent = TypedEvent<
686
+ [BigNumber],
687
+ LossReportedEventObject
688
+ >;
689
+
690
+ export type LossReportedEventFilter = TypedEventFilter<LossReportedEvent>;
691
+
692
+ export interface OwedFundsRepaidEventObject {
693
+ amountForUsers: BigNumber;
694
+ amountForFees: BigNumber;
695
+ }
696
+ export type OwedFundsRepaidEvent = TypedEvent<
697
+ [BigNumber, BigNumber],
698
+ OwedFundsRepaidEventObject
699
+ >;
700
+
701
+ export type OwedFundsRepaidEventFilter = TypedEventFilter<OwedFundsRepaidEvent>;
702
+
703
+ export interface PaidFeesEventObject {
704
+ feesPaid: BigNumber;
705
+ }
706
+ export type PaidFeesEvent = TypedEvent<[BigNumber], PaidFeesEventObject>;
707
+
708
+ export type PaidFeesEventFilter = TypedEventFilter<PaidFeesEvent>;
709
+
710
+ export interface RemovedTrancheInterestRateUpdateEventObject {
711
+ tranche: string;
712
+ applicableEpoch: BigNumber;
713
+ arrayIndex: BigNumber;
714
+ }
715
+ export type RemovedTrancheInterestRateUpdateEvent = TypedEvent<
716
+ [string, BigNumber, BigNumber],
717
+ RemovedTrancheInterestRateUpdateEventObject
718
+ >;
719
+
720
+ export type RemovedTrancheInterestRateUpdateEventFilter =
721
+ TypedEventFilter<RemovedTrancheInterestRateUpdateEvent>;
722
+
723
+ export interface TransferEventObject {
724
+ from: string;
725
+ to: string;
726
+ value: BigNumber;
727
+ }
728
+ export type TransferEvent = TypedEvent<
729
+ [string, string, BigNumber],
730
+ TransferEventObject
731
+ >;
732
+
733
+ export type TransferEventFilter = TypedEventFilter<TransferEvent>;
734
+
735
+ export interface UpdatedDesiredDrawAmountEventObject {
736
+ desiredDrawAmount: BigNumber;
737
+ }
738
+ export type UpdatedDesiredDrawAmountEvent = TypedEvent<
739
+ [BigNumber],
740
+ UpdatedDesiredDrawAmountEventObject
741
+ >;
742
+
743
+ export type UpdatedDesiredDrawAmountEventFilter =
744
+ TypedEventFilter<UpdatedDesiredDrawAmountEvent>;
745
+
746
+ export interface UpdatedDrawRecipientEventObject {
747
+ drawRecipient: string;
748
+ }
749
+ export type UpdatedDrawRecipientEvent = TypedEvent<
750
+ [string],
751
+ UpdatedDrawRecipientEventObject
752
+ >;
753
+
754
+ export type UpdatedDrawRecipientEventFilter =
755
+ TypedEventFilter<UpdatedDrawRecipientEvent>;
756
+
757
+ export interface UpdatedMaximumDepositAmountEventObject {
758
+ tranche: string;
759
+ amount: BigNumber;
760
+ }
761
+ export type UpdatedMaximumDepositAmountEvent = TypedEvent<
762
+ [string, BigNumber],
763
+ UpdatedMaximumDepositAmountEventObject
764
+ >;
765
+
766
+ export type UpdatedMaximumDepositAmountEventFilter =
767
+ TypedEventFilter<UpdatedMaximumDepositAmountEvent>;
768
+
769
+ export interface UpdatedMinimumDepositAmountEventObject {
770
+ tranche: string;
771
+ amount: BigNumber;
772
+ }
773
+ export type UpdatedMinimumDepositAmountEvent = TypedEvent<
774
+ [string, BigNumber],
775
+ UpdatedMinimumDepositAmountEventObject
776
+ >;
777
+
778
+ export type UpdatedMinimumDepositAmountEventFilter =
779
+ TypedEventFilter<UpdatedMinimumDepositAmountEvent>;
780
+
781
+ export interface UpdatedMinimumExcessLiquidityPercentageEventObject {
782
+ percentage: BigNumber;
783
+ }
784
+ export type UpdatedMinimumExcessLiquidityPercentageEvent = TypedEvent<
785
+ [BigNumber],
786
+ UpdatedMinimumExcessLiquidityPercentageEventObject
787
+ >;
788
+
789
+ export type UpdatedMinimumExcessLiquidityPercentageEventFilter =
790
+ TypedEventFilter<UpdatedMinimumExcessLiquidityPercentageEvent>;
791
+
792
+ export interface UpdatedTargetExcessLiquidityPercentageEventObject {
793
+ percentage: BigNumber;
794
+ }
795
+ export type UpdatedTargetExcessLiquidityPercentageEvent = TypedEvent<
796
+ [BigNumber],
797
+ UpdatedTargetExcessLiquidityPercentageEventObject
798
+ >;
799
+
800
+ export type UpdatedTargetExcessLiquidityPercentageEventFilter =
801
+ TypedEventFilter<UpdatedTargetExcessLiquidityPercentageEvent>;
802
+
803
+ export interface UpdatedTrancheDesiredRatiosEventObject {
804
+ ratios: BigNumber[];
805
+ }
806
+ export type UpdatedTrancheDesiredRatiosEvent = TypedEvent<
807
+ [BigNumber[]],
808
+ UpdatedTrancheDesiredRatiosEventObject
809
+ >;
810
+
811
+ export type UpdatedTrancheDesiredRatiosEventFilter =
812
+ TypedEventFilter<UpdatedTrancheDesiredRatiosEvent>;
813
+
814
+ export interface UpdatedTrancheInterestRateEventObject {
815
+ tranche: string;
816
+ applicableEpoch: BigNumber;
817
+ newInterestRate: BigNumber;
818
+ }
819
+ export type UpdatedTrancheInterestRateEvent = TypedEvent<
820
+ [string, BigNumber, BigNumber],
821
+ UpdatedTrancheInterestRateEventObject
822
+ >;
823
+
824
+ export type UpdatedTrancheInterestRateEventFilter =
825
+ TypedEventFilter<UpdatedTrancheInterestRateEvent>;
826
+
827
+ export interface UpdatedTrancheInterestRateChangeEpochDelayEventObject {
828
+ epochDelay: BigNumber;
829
+ }
830
+ export type UpdatedTrancheInterestRateChangeEpochDelayEvent = TypedEvent<
831
+ [BigNumber],
832
+ UpdatedTrancheInterestRateChangeEpochDelayEventObject
833
+ >;
834
+
835
+ export type UpdatedTrancheInterestRateChangeEpochDelayEventFilter =
836
+ TypedEventFilter<UpdatedTrancheInterestRateChangeEpochDelayEvent>;
837
+
838
+ export interface WithdrawalAcceptedEventObject {
839
+ user: string;
840
+ tranche: string;
841
+ shares: BigNumber;
842
+ assetAmount: BigNumber;
843
+ }
844
+ export type WithdrawalAcceptedEvent = TypedEvent<
845
+ [string, string, BigNumber, BigNumber],
846
+ WithdrawalAcceptedEventObject
847
+ >;
848
+
849
+ export type WithdrawalAcceptedEventFilter =
850
+ TypedEventFilter<WithdrawalAcceptedEvent>;
851
+
852
+ export interface ILendingPoolAbi extends BaseContract {
853
+ connect(signerOrProvider: Signer | Provider | string): this;
854
+ attach(addressOrName: string): this;
855
+ deployed(): Promise<this>;
856
+
857
+ interface: ILendingPoolAbiInterface;
858
+
859
+ queryFilter<TEvent extends TypedEvent>(
860
+ event: TypedEventFilter<TEvent>,
861
+ fromBlockOrBlockhash?: string | number | undefined,
862
+ toBlock?: string | number | undefined
863
+ ): Promise<Array<TEvent>>;
864
+
865
+ listeners<TEvent extends TypedEvent>(
866
+ eventFilter?: TypedEventFilter<TEvent>
867
+ ): Array<TypedListener<TEvent>>;
868
+ listeners(eventName?: string): Array<Listener>;
869
+ removeAllListeners<TEvent extends TypedEvent>(
870
+ eventFilter: TypedEventFilter<TEvent>
871
+ ): this;
872
+ removeAllListeners(eventName?: string): this;
873
+ off: OnEvent<this>;
874
+ on: OnEvent<this>;
875
+ once: OnEvent<this>;
876
+ removeListener: OnEvent<this>;
877
+
878
+ functions: {
879
+ acceptDeposit(
880
+ tranche: string,
881
+ user: string,
882
+ acceptedAmount: BigNumberish,
883
+ overrides?: Overrides & { from?: string }
884
+ ): Promise<ContractTransaction>;
885
+
886
+ acceptWithdrawal(
887
+ tranche: string,
888
+ user: string,
889
+ acceptedShares: BigNumberish,
890
+ overrides?: Overrides & { from?: string }
891
+ ): Promise<ContractTransaction>;
892
+
893
+ allowance(
894
+ owner: string,
895
+ spender: string,
896
+ overrides?: CallOverrides
897
+ ): Promise<[BigNumber]>;
898
+
899
+ applyInterests(
900
+ epoch: BigNumberish,
901
+ overrides?: Overrides & { from?: string }
902
+ ): Promise<ContractTransaction>;
903
+
904
+ approve(
905
+ spender: string,
906
+ value: BigNumberish,
907
+ overrides?: Overrides & { from?: string }
908
+ ): Promise<ContractTransaction>;
909
+
910
+ availableFunds(overrides?: CallOverrides): Promise<[BigNumber]>;
911
+
912
+ balanceOf(account: string, overrides?: CallOverrides): Promise<[BigNumber]>;
913
+
914
+ calculateMaximumLossAmount(
915
+ overrides?: CallOverrides
916
+ ): Promise<[BigNumber] & { maximumLossAmount: BigNumber }>;
917
+
918
+ claimRepaidLoss(
919
+ user: string,
920
+ tranche: string,
921
+ lossId: BigNumberish,
922
+ overrides?: Overrides & { from?: string }
923
+ ): Promise<ContractTransaction>;
924
+
925
+ depositFirstLossCapital(
926
+ amount: BigNumberish,
927
+ overrides?: Overrides & { from?: string }
928
+ ): Promise<ContractTransaction>;
929
+
930
+ drawFunds(
931
+ amount: BigNumberish,
932
+ overrides?: Overrides & { from?: string }
933
+ ): Promise<ContractTransaction>;
934
+
935
+ feesOwedAmount(overrides?: CallOverrides): Promise<[BigNumber]>;
936
+
937
+ forceImmediateWithdrawal(
938
+ tranche: string,
939
+ user: string,
940
+ sharesToWithdraw: BigNumberish,
941
+ overrides?: Overrides & { from?: string }
942
+ ): Promise<ContractTransaction>;
943
+
944
+ getClearingConfig(
945
+ overrides?: CallOverrides
946
+ ): Promise<
947
+ [ClearingConfigurationStructOutput] & {
948
+ clearingConfig: ClearingConfigurationStructOutput;
949
+ }
950
+ >;
951
+
952
+ getLendingPoolInfo(
953
+ overrides?: CallOverrides
954
+ ): Promise<[LendingPoolInfoStructOutput]>;
955
+
956
+ isLendingPoolTranche(
957
+ tranche: string,
958
+ overrides?: CallOverrides
959
+ ): Promise<[boolean]>;
960
+
961
+ lendingPoolTrancheCount(overrides?: CallOverrides): Promise<[BigNumber]>;
962
+
963
+ lendingPoolTranches(overrides?: CallOverrides): Promise<[string[]]>;
964
+
965
+ pendingPool(overrides?: CallOverrides): Promise<[string]>;
966
+
967
+ poolConfiguration(
968
+ overrides?: CallOverrides
969
+ ): Promise<[PoolConfigurationStructOutput]>;
970
+
971
+ repayLoss(
972
+ tranche: string,
973
+ lossId: BigNumberish,
974
+ amount: BigNumberish,
975
+ overrides?: Overrides & { from?: string }
976
+ ): Promise<ContractTransaction>;
977
+
978
+ repayOwedFunds(
979
+ amount: BigNumberish,
980
+ overrides?: Overrides & { from?: string }
981
+ ): Promise<ContractTransaction>;
982
+
983
+ reportLoss(
984
+ lossAmount: BigNumberish,
985
+ doMintLossTokens: boolean,
986
+ overrides?: Overrides & { from?: string }
987
+ ): Promise<ContractTransaction>;
988
+
989
+ stop(
990
+ overrides?: Overrides & { from?: string }
991
+ ): Promise<ContractTransaction>;
992
+
993
+ totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>;
994
+
995
+ trancheConfigurationDepositLimits(
996
+ tranche: string,
997
+ overrides?: CallOverrides
998
+ ): Promise<
999
+ [BigNumber, BigNumber] & {
1000
+ minDepositAmount: BigNumber;
1001
+ maxDepositAmount: BigNumber;
1002
+ }
1003
+ >;
1004
+
1005
+ trancheIndex(
1006
+ tranche: string,
1007
+ overrides?: CallOverrides
1008
+ ): Promise<[BigNumber]>;
1009
+
1010
+ transfer(
1011
+ to: string,
1012
+ value: BigNumberish,
1013
+ overrides?: Overrides & { from?: string }
1014
+ ): Promise<ContractTransaction>;
1015
+
1016
+ transferFrom(
1017
+ from: string,
1018
+ to: string,
1019
+ value: BigNumberish,
1020
+ overrides?: Overrides & { from?: string }
1021
+ ): Promise<ContractTransaction>;
1022
+
1023
+ updateDesiredDrawAmount(
1024
+ desiredDrawAmount: BigNumberish,
1025
+ overrides?: Overrides & { from?: string }
1026
+ ): Promise<ContractTransaction>;
1027
+
1028
+ updateDrawRecipient(
1029
+ drawRecipient: string,
1030
+ overrides?: Overrides & { from?: string }
1031
+ ): Promise<ContractTransaction>;
1032
+
1033
+ updateMaximumDepositAmount(
1034
+ tranche: string,
1035
+ maximumDepositAmount: BigNumberish,
1036
+ overrides?: Overrides & { from?: string }
1037
+ ): Promise<ContractTransaction>;
1038
+
1039
+ updateMinimumDepositAmount(
1040
+ tranche: string,
1041
+ minimumDepositAmount: BigNumberish,
1042
+ overrides?: Overrides & { from?: string }
1043
+ ): Promise<ContractTransaction>;
1044
+
1045
+ updateMinimumExcessLiquidityPercentage(
1046
+ minimumExcessLiquidityPercentage: BigNumberish,
1047
+ overrides?: Overrides & { from?: string }
1048
+ ): Promise<ContractTransaction>;
1049
+
1050
+ updateTargetExcessLiquidityPercentage(
1051
+ targetExcessLiquidityPercentage: BigNumberish,
1052
+ overrides?: Overrides & { from?: string }
1053
+ ): Promise<ContractTransaction>;
1054
+
1055
+ updateTrancheDesiredRatios(
1056
+ ratios: BigNumberish[],
1057
+ overrides?: Overrides & { from?: string }
1058
+ ): Promise<ContractTransaction>;
1059
+
1060
+ updateTrancheInterestRate(
1061
+ tranche: string,
1062
+ interestRate: BigNumberish,
1063
+ overrides?: Overrides & { from?: string }
1064
+ ): Promise<ContractTransaction>;
1065
+
1066
+ updateTrancheInterestRateChangeEpochDelay(
1067
+ epochDelay: BigNumberish,
1068
+ overrides?: Overrides & { from?: string }
1069
+ ): Promise<ContractTransaction>;
1070
+
1071
+ userBalance(user: string, overrides?: CallOverrides): Promise<[BigNumber]>;
1072
+
1073
+ userOwedAmount(overrides?: CallOverrides): Promise<[BigNumber]>;
1074
+
1075
+ verifyClearingConfig(
1076
+ clearingConfig: ClearingConfigurationStruct,
1077
+ overrides?: CallOverrides
1078
+ ): Promise<[void]>;
1079
+
1080
+ withdrawFirstLossCapital(
1081
+ withdrawAmount: BigNumberish,
1082
+ withdrawAddress: string,
1083
+ overrides?: Overrides & { from?: string }
1084
+ ): Promise<ContractTransaction>;
1085
+ };
1086
+
1087
+ acceptDeposit(
1088
+ tranche: string,
1089
+ user: string,
1090
+ acceptedAmount: BigNumberish,
1091
+ overrides?: Overrides & { from?: string }
1092
+ ): Promise<ContractTransaction>;
1093
+
1094
+ acceptWithdrawal(
1095
+ tranche: string,
1096
+ user: string,
1097
+ acceptedShares: BigNumberish,
1098
+ overrides?: Overrides & { from?: string }
1099
+ ): Promise<ContractTransaction>;
1100
+
1101
+ allowance(
1102
+ owner: string,
1103
+ spender: string,
1104
+ overrides?: CallOverrides
1105
+ ): Promise<BigNumber>;
1106
+
1107
+ applyInterests(
1108
+ epoch: BigNumberish,
1109
+ overrides?: Overrides & { from?: string }
1110
+ ): Promise<ContractTransaction>;
1111
+
1112
+ approve(
1113
+ spender: string,
1114
+ value: BigNumberish,
1115
+ overrides?: Overrides & { from?: string }
1116
+ ): Promise<ContractTransaction>;
1117
+
1118
+ availableFunds(overrides?: CallOverrides): Promise<BigNumber>;
1119
+
1120
+ balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
1121
+
1122
+ calculateMaximumLossAmount(overrides?: CallOverrides): Promise<BigNumber>;
1123
+
1124
+ claimRepaidLoss(
1125
+ user: string,
1126
+ tranche: string,
1127
+ lossId: BigNumberish,
1128
+ overrides?: Overrides & { from?: string }
1129
+ ): Promise<ContractTransaction>;
1130
+
1131
+ depositFirstLossCapital(
1132
+ amount: BigNumberish,
1133
+ overrides?: Overrides & { from?: string }
1134
+ ): Promise<ContractTransaction>;
1135
+
1136
+ drawFunds(
1137
+ amount: BigNumberish,
1138
+ overrides?: Overrides & { from?: string }
1139
+ ): Promise<ContractTransaction>;
1140
+
1141
+ feesOwedAmount(overrides?: CallOverrides): Promise<BigNumber>;
1142
+
1143
+ forceImmediateWithdrawal(
1144
+ tranche: string,
1145
+ user: string,
1146
+ sharesToWithdraw: BigNumberish,
1147
+ overrides?: Overrides & { from?: string }
1148
+ ): Promise<ContractTransaction>;
1149
+
1150
+ getClearingConfig(
1151
+ overrides?: CallOverrides
1152
+ ): Promise<ClearingConfigurationStructOutput>;
1153
+
1154
+ getLendingPoolInfo(
1155
+ overrides?: CallOverrides
1156
+ ): Promise<LendingPoolInfoStructOutput>;
1157
+
1158
+ isLendingPoolTranche(
1159
+ tranche: string,
1160
+ overrides?: CallOverrides
1161
+ ): Promise<boolean>;
1162
+
1163
+ lendingPoolTrancheCount(overrides?: CallOverrides): Promise<BigNumber>;
1164
+
1165
+ lendingPoolTranches(overrides?: CallOverrides): Promise<string[]>;
1166
+
1167
+ pendingPool(overrides?: CallOverrides): Promise<string>;
1168
+
1169
+ poolConfiguration(
1170
+ overrides?: CallOverrides
1171
+ ): Promise<PoolConfigurationStructOutput>;
1172
+
1173
+ repayLoss(
1174
+ tranche: string,
1175
+ lossId: BigNumberish,
1176
+ amount: BigNumberish,
1177
+ overrides?: Overrides & { from?: string }
1178
+ ): Promise<ContractTransaction>;
1179
+
1180
+ repayOwedFunds(
1181
+ amount: BigNumberish,
1182
+ overrides?: Overrides & { from?: string }
1183
+ ): Promise<ContractTransaction>;
1184
+
1185
+ reportLoss(
1186
+ lossAmount: BigNumberish,
1187
+ doMintLossTokens: boolean,
1188
+ overrides?: Overrides & { from?: string }
1189
+ ): Promise<ContractTransaction>;
1190
+
1191
+ stop(overrides?: Overrides & { from?: string }): Promise<ContractTransaction>;
1192
+
1193
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
1194
+
1195
+ trancheConfigurationDepositLimits(
1196
+ tranche: string,
1197
+ overrides?: CallOverrides
1198
+ ): Promise<
1199
+ [BigNumber, BigNumber] & {
1200
+ minDepositAmount: BigNumber;
1201
+ maxDepositAmount: BigNumber;
1202
+ }
1203
+ >;
1204
+
1205
+ trancheIndex(tranche: string, overrides?: CallOverrides): Promise<BigNumber>;
1206
+
1207
+ transfer(
1208
+ to: string,
1209
+ value: BigNumberish,
1210
+ overrides?: Overrides & { from?: string }
1211
+ ): Promise<ContractTransaction>;
1212
+
1213
+ transferFrom(
1214
+ from: string,
1215
+ to: string,
1216
+ value: BigNumberish,
1217
+ overrides?: Overrides & { from?: string }
1218
+ ): Promise<ContractTransaction>;
1219
+
1220
+ updateDesiredDrawAmount(
1221
+ desiredDrawAmount: BigNumberish,
1222
+ overrides?: Overrides & { from?: string }
1223
+ ): Promise<ContractTransaction>;
1224
+
1225
+ updateDrawRecipient(
1226
+ drawRecipient: string,
1227
+ overrides?: Overrides & { from?: string }
1228
+ ): Promise<ContractTransaction>;
1229
+
1230
+ updateMaximumDepositAmount(
1231
+ tranche: string,
1232
+ maximumDepositAmount: BigNumberish,
1233
+ overrides?: Overrides & { from?: string }
1234
+ ): Promise<ContractTransaction>;
1235
+
1236
+ updateMinimumDepositAmount(
1237
+ tranche: string,
1238
+ minimumDepositAmount: BigNumberish,
1239
+ overrides?: Overrides & { from?: string }
1240
+ ): Promise<ContractTransaction>;
1241
+
1242
+ updateMinimumExcessLiquidityPercentage(
1243
+ minimumExcessLiquidityPercentage: BigNumberish,
1244
+ overrides?: Overrides & { from?: string }
1245
+ ): Promise<ContractTransaction>;
1246
+
1247
+ updateTargetExcessLiquidityPercentage(
1248
+ targetExcessLiquidityPercentage: BigNumberish,
1249
+ overrides?: Overrides & { from?: string }
1250
+ ): Promise<ContractTransaction>;
1251
+
1252
+ updateTrancheDesiredRatios(
1253
+ ratios: BigNumberish[],
1254
+ overrides?: Overrides & { from?: string }
1255
+ ): Promise<ContractTransaction>;
1256
+
1257
+ updateTrancheInterestRate(
1258
+ tranche: string,
1259
+ interestRate: BigNumberish,
1260
+ overrides?: Overrides & { from?: string }
1261
+ ): Promise<ContractTransaction>;
1262
+
1263
+ updateTrancheInterestRateChangeEpochDelay(
1264
+ epochDelay: BigNumberish,
1265
+ overrides?: Overrides & { from?: string }
1266
+ ): Promise<ContractTransaction>;
1267
+
1268
+ userBalance(user: string, overrides?: CallOverrides): Promise<BigNumber>;
1269
+
1270
+ userOwedAmount(overrides?: CallOverrides): Promise<BigNumber>;
1271
+
1272
+ verifyClearingConfig(
1273
+ clearingConfig: ClearingConfigurationStruct,
1274
+ overrides?: CallOverrides
1275
+ ): Promise<void>;
1276
+
1277
+ withdrawFirstLossCapital(
1278
+ withdrawAmount: BigNumberish,
1279
+ withdrawAddress: string,
1280
+ overrides?: Overrides & { from?: string }
1281
+ ): Promise<ContractTransaction>;
1282
+
1283
+ callStatic: {
1284
+ acceptDeposit(
1285
+ tranche: string,
1286
+ user: string,
1287
+ acceptedAmount: BigNumberish,
1288
+ overrides?: CallOverrides
1289
+ ): Promise<BigNumber>;
1290
+
1291
+ acceptWithdrawal(
1292
+ tranche: string,
1293
+ user: string,
1294
+ acceptedShares: BigNumberish,
1295
+ overrides?: CallOverrides
1296
+ ): Promise<BigNumber>;
1297
+
1298
+ allowance(
1299
+ owner: string,
1300
+ spender: string,
1301
+ overrides?: CallOverrides
1302
+ ): Promise<BigNumber>;
1303
+
1304
+ applyInterests(
1305
+ epoch: BigNumberish,
1306
+ overrides?: CallOverrides
1307
+ ): Promise<void>;
1308
+
1309
+ approve(
1310
+ spender: string,
1311
+ value: BigNumberish,
1312
+ overrides?: CallOverrides
1313
+ ): Promise<boolean>;
1314
+
1315
+ availableFunds(overrides?: CallOverrides): Promise<BigNumber>;
1316
+
1317
+ balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
1318
+
1319
+ calculateMaximumLossAmount(overrides?: CallOverrides): Promise<BigNumber>;
1320
+
1321
+ claimRepaidLoss(
1322
+ user: string,
1323
+ tranche: string,
1324
+ lossId: BigNumberish,
1325
+ overrides?: CallOverrides
1326
+ ): Promise<BigNumber>;
1327
+
1328
+ depositFirstLossCapital(
1329
+ amount: BigNumberish,
1330
+ overrides?: CallOverrides
1331
+ ): Promise<void>;
1332
+
1333
+ drawFunds(amount: BigNumberish, overrides?: CallOverrides): Promise<void>;
1334
+
1335
+ feesOwedAmount(overrides?: CallOverrides): Promise<BigNumber>;
1336
+
1337
+ forceImmediateWithdrawal(
1338
+ tranche: string,
1339
+ user: string,
1340
+ sharesToWithdraw: BigNumberish,
1341
+ overrides?: CallOverrides
1342
+ ): Promise<BigNumber>;
1343
+
1344
+ getClearingConfig(
1345
+ overrides?: CallOverrides
1346
+ ): Promise<ClearingConfigurationStructOutput>;
1347
+
1348
+ getLendingPoolInfo(
1349
+ overrides?: CallOverrides
1350
+ ): Promise<LendingPoolInfoStructOutput>;
1351
+
1352
+ isLendingPoolTranche(
1353
+ tranche: string,
1354
+ overrides?: CallOverrides
1355
+ ): Promise<boolean>;
1356
+
1357
+ lendingPoolTrancheCount(overrides?: CallOverrides): Promise<BigNumber>;
1358
+
1359
+ lendingPoolTranches(overrides?: CallOverrides): Promise<string[]>;
1360
+
1361
+ pendingPool(overrides?: CallOverrides): Promise<string>;
1362
+
1363
+ poolConfiguration(
1364
+ overrides?: CallOverrides
1365
+ ): Promise<PoolConfigurationStructOutput>;
1366
+
1367
+ repayLoss(
1368
+ tranche: string,
1369
+ lossId: BigNumberish,
1370
+ amount: BigNumberish,
1371
+ overrides?: CallOverrides
1372
+ ): Promise<void>;
1373
+
1374
+ repayOwedFunds(
1375
+ amount: BigNumberish,
1376
+ overrides?: CallOverrides
1377
+ ): Promise<void>;
1378
+
1379
+ reportLoss(
1380
+ lossAmount: BigNumberish,
1381
+ doMintLossTokens: boolean,
1382
+ overrides?: CallOverrides
1383
+ ): Promise<BigNumber>;
1384
+
1385
+ stop(overrides?: CallOverrides): Promise<void>;
1386
+
1387
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
1388
+
1389
+ trancheConfigurationDepositLimits(
1390
+ tranche: string,
1391
+ overrides?: CallOverrides
1392
+ ): Promise<
1393
+ [BigNumber, BigNumber] & {
1394
+ minDepositAmount: BigNumber;
1395
+ maxDepositAmount: BigNumber;
1396
+ }
1397
+ >;
1398
+
1399
+ trancheIndex(
1400
+ tranche: string,
1401
+ overrides?: CallOverrides
1402
+ ): Promise<BigNumber>;
1403
+
1404
+ transfer(
1405
+ to: string,
1406
+ value: BigNumberish,
1407
+ overrides?: CallOverrides
1408
+ ): Promise<boolean>;
1409
+
1410
+ transferFrom(
1411
+ from: string,
1412
+ to: string,
1413
+ value: BigNumberish,
1414
+ overrides?: CallOverrides
1415
+ ): Promise<boolean>;
1416
+
1417
+ updateDesiredDrawAmount(
1418
+ desiredDrawAmount: BigNumberish,
1419
+ overrides?: CallOverrides
1420
+ ): Promise<void>;
1421
+
1422
+ updateDrawRecipient(
1423
+ drawRecipient: string,
1424
+ overrides?: CallOverrides
1425
+ ): Promise<void>;
1426
+
1427
+ updateMaximumDepositAmount(
1428
+ tranche: string,
1429
+ maximumDepositAmount: BigNumberish,
1430
+ overrides?: CallOverrides
1431
+ ): Promise<void>;
1432
+
1433
+ updateMinimumDepositAmount(
1434
+ tranche: string,
1435
+ minimumDepositAmount: BigNumberish,
1436
+ overrides?: CallOverrides
1437
+ ): Promise<void>;
1438
+
1439
+ updateMinimumExcessLiquidityPercentage(
1440
+ minimumExcessLiquidityPercentage: BigNumberish,
1441
+ overrides?: CallOverrides
1442
+ ): Promise<void>;
1443
+
1444
+ updateTargetExcessLiquidityPercentage(
1445
+ targetExcessLiquidityPercentage: BigNumberish,
1446
+ overrides?: CallOverrides
1447
+ ): Promise<void>;
1448
+
1449
+ updateTrancheDesiredRatios(
1450
+ ratios: BigNumberish[],
1451
+ overrides?: CallOverrides
1452
+ ): Promise<void>;
1453
+
1454
+ updateTrancheInterestRate(
1455
+ tranche: string,
1456
+ interestRate: BigNumberish,
1457
+ overrides?: CallOverrides
1458
+ ): Promise<void>;
1459
+
1460
+ updateTrancheInterestRateChangeEpochDelay(
1461
+ epochDelay: BigNumberish,
1462
+ overrides?: CallOverrides
1463
+ ): Promise<void>;
1464
+
1465
+ userBalance(user: string, overrides?: CallOverrides): Promise<BigNumber>;
1466
+
1467
+ userOwedAmount(overrides?: CallOverrides): Promise<BigNumber>;
1468
+
1469
+ verifyClearingConfig(
1470
+ clearingConfig: ClearingConfigurationStruct,
1471
+ overrides?: CallOverrides
1472
+ ): Promise<void>;
1473
+
1474
+ withdrawFirstLossCapital(
1475
+ withdrawAmount: BigNumberish,
1476
+ withdrawAddress: string,
1477
+ overrides?: CallOverrides
1478
+ ): Promise<void>;
1479
+ };
1480
+
1481
+ filters: {
1482
+ "Approval(address,address,uint256)"(
1483
+ owner?: string | null,
1484
+ spender?: string | null,
1485
+ value?: null
1486
+ ): ApprovalEventFilter;
1487
+ Approval(
1488
+ owner?: string | null,
1489
+ spender?: string | null,
1490
+ value?: null
1491
+ ): ApprovalEventFilter;
1492
+
1493
+ "DepositAccepted(address,address,uint256)"(
1494
+ user?: string | null,
1495
+ tranche?: string | null,
1496
+ amount?: null
1497
+ ): DepositAcceptedEventFilter;
1498
+ DepositAccepted(
1499
+ user?: string | null,
1500
+ tranche?: string | null,
1501
+ amount?: null
1502
+ ): DepositAcceptedEventFilter;
1503
+
1504
+ "FeesOwedIncreased(uint256,uint256)"(
1505
+ epoch?: BigNumberish | null,
1506
+ feesIncreasedAmount?: null
1507
+ ): FeesOwedIncreasedEventFilter;
1508
+ FeesOwedIncreased(
1509
+ epoch?: BigNumberish | null,
1510
+ feesIncreasedAmount?: null
1511
+ ): FeesOwedIncreasedEventFilter;
1512
+
1513
+ "FirstLossCapitalAdded(uint256)"(
1514
+ amountAdded?: null
1515
+ ): FirstLossCapitalAddedEventFilter;
1516
+ FirstLossCapitalAdded(amountAdded?: null): FirstLossCapitalAddedEventFilter;
1517
+
1518
+ "FirstLossCapitalLossReported(uint256,uint256)"(
1519
+ lossId?: BigNumberish | null,
1520
+ amount?: null
1521
+ ): FirstLossCapitalLossReportedEventFilter;
1522
+ FirstLossCapitalLossReported(
1523
+ lossId?: BigNumberish | null,
1524
+ amount?: null
1525
+ ): FirstLossCapitalLossReportedEventFilter;
1526
+
1527
+ "FirstLossCapitalWithdrawn(uint256)"(
1528
+ amountWithdrawn?: null
1529
+ ): FirstLossCapitalWithdrawnEventFilter;
1530
+ FirstLossCapitalWithdrawn(
1531
+ amountWithdrawn?: null
1532
+ ): FirstLossCapitalWithdrawnEventFilter;
1533
+
1534
+ "FundsDrawn(uint256)"(amount?: null): FundsDrawnEventFilter;
1535
+ FundsDrawn(amount?: null): FundsDrawnEventFilter;
1536
+
1537
+ "ImmediateWithdrawal(address,address,uint256,uint256)"(
1538
+ user?: string | null,
1539
+ tranche?: string | null,
1540
+ shares?: null,
1541
+ amount?: null
1542
+ ): ImmediateWithdrawalEventFilter;
1543
+ ImmediateWithdrawal(
1544
+ user?: string | null,
1545
+ tranche?: string | null,
1546
+ shares?: null,
1547
+ amount?: null
1548
+ ): ImmediateWithdrawalEventFilter;
1549
+
1550
+ "InterestApplied(address,uint256,uint256)"(
1551
+ tranche?: string | null,
1552
+ epoch?: BigNumberish | null,
1553
+ interestAmount?: null
1554
+ ): InterestAppliedEventFilter;
1555
+ InterestApplied(
1556
+ tranche?: string | null,
1557
+ epoch?: BigNumberish | null,
1558
+ interestAmount?: null
1559
+ ): InterestAppliedEventFilter;
1560
+
1561
+ "LendingPoolStopped()"(): LendingPoolStoppedEventFilter;
1562
+ LendingPoolStopped(): LendingPoolStoppedEventFilter;
1563
+
1564
+ "LossReported(uint256)"(amount?: null): LossReportedEventFilter;
1565
+ LossReported(amount?: null): LossReportedEventFilter;
1566
+
1567
+ "OwedFundsRepaid(uint256,uint256)"(
1568
+ amountForUsers?: null,
1569
+ amountForFees?: null
1570
+ ): OwedFundsRepaidEventFilter;
1571
+ OwedFundsRepaid(
1572
+ amountForUsers?: null,
1573
+ amountForFees?: null
1574
+ ): OwedFundsRepaidEventFilter;
1575
+
1576
+ "PaidFees(uint256)"(feesPaid?: null): PaidFeesEventFilter;
1577
+ PaidFees(feesPaid?: null): PaidFeesEventFilter;
1578
+
1579
+ "RemovedTrancheInterestRateUpdate(address,uint256,uint256)"(
1580
+ tranche?: string | null,
1581
+ applicableEpoch?: BigNumberish | null,
1582
+ arrayIndex?: null
1583
+ ): RemovedTrancheInterestRateUpdateEventFilter;
1584
+ RemovedTrancheInterestRateUpdate(
1585
+ tranche?: string | null,
1586
+ applicableEpoch?: BigNumberish | null,
1587
+ arrayIndex?: null
1588
+ ): RemovedTrancheInterestRateUpdateEventFilter;
1589
+
1590
+ "Transfer(address,address,uint256)"(
1591
+ from?: string | null,
1592
+ to?: string | null,
1593
+ value?: null
1594
+ ): TransferEventFilter;
1595
+ Transfer(
1596
+ from?: string | null,
1597
+ to?: string | null,
1598
+ value?: null
1599
+ ): TransferEventFilter;
1600
+
1601
+ "UpdatedDesiredDrawAmount(uint256)"(
1602
+ desiredDrawAmount?: null
1603
+ ): UpdatedDesiredDrawAmountEventFilter;
1604
+ UpdatedDesiredDrawAmount(
1605
+ desiredDrawAmount?: null
1606
+ ): UpdatedDesiredDrawAmountEventFilter;
1607
+
1608
+ "UpdatedDrawRecipient(address)"(
1609
+ drawRecipient?: string | null
1610
+ ): UpdatedDrawRecipientEventFilter;
1611
+ UpdatedDrawRecipient(
1612
+ drawRecipient?: string | null
1613
+ ): UpdatedDrawRecipientEventFilter;
1614
+
1615
+ "UpdatedMaximumDepositAmount(address,uint256)"(
1616
+ tranche?: string | null,
1617
+ amount?: null
1618
+ ): UpdatedMaximumDepositAmountEventFilter;
1619
+ UpdatedMaximumDepositAmount(
1620
+ tranche?: string | null,
1621
+ amount?: null
1622
+ ): UpdatedMaximumDepositAmountEventFilter;
1623
+
1624
+ "UpdatedMinimumDepositAmount(address,uint256)"(
1625
+ tranche?: string | null,
1626
+ amount?: null
1627
+ ): UpdatedMinimumDepositAmountEventFilter;
1628
+ UpdatedMinimumDepositAmount(
1629
+ tranche?: string | null,
1630
+ amount?: null
1631
+ ): UpdatedMinimumDepositAmountEventFilter;
1632
+
1633
+ "UpdatedMinimumExcessLiquidityPercentage(uint256)"(
1634
+ percentage?: null
1635
+ ): UpdatedMinimumExcessLiquidityPercentageEventFilter;
1636
+ UpdatedMinimumExcessLiquidityPercentage(
1637
+ percentage?: null
1638
+ ): UpdatedMinimumExcessLiquidityPercentageEventFilter;
1639
+
1640
+ "UpdatedTargetExcessLiquidityPercentage(uint256)"(
1641
+ percentage?: null
1642
+ ): UpdatedTargetExcessLiquidityPercentageEventFilter;
1643
+ UpdatedTargetExcessLiquidityPercentage(
1644
+ percentage?: null
1645
+ ): UpdatedTargetExcessLiquidityPercentageEventFilter;
1646
+
1647
+ "UpdatedTrancheDesiredRatios(uint256[])"(
1648
+ ratios?: null
1649
+ ): UpdatedTrancheDesiredRatiosEventFilter;
1650
+ UpdatedTrancheDesiredRatios(
1651
+ ratios?: null
1652
+ ): UpdatedTrancheDesiredRatiosEventFilter;
1653
+
1654
+ "UpdatedTrancheInterestRate(address,uint256,uint256)"(
1655
+ tranche?: string | null,
1656
+ applicableEpoch?: BigNumberish | null,
1657
+ newInterestRate?: null
1658
+ ): UpdatedTrancheInterestRateEventFilter;
1659
+ UpdatedTrancheInterestRate(
1660
+ tranche?: string | null,
1661
+ applicableEpoch?: BigNumberish | null,
1662
+ newInterestRate?: null
1663
+ ): UpdatedTrancheInterestRateEventFilter;
1664
+
1665
+ "UpdatedTrancheInterestRateChangeEpochDelay(uint256)"(
1666
+ epochDelay?: null
1667
+ ): UpdatedTrancheInterestRateChangeEpochDelayEventFilter;
1668
+ UpdatedTrancheInterestRateChangeEpochDelay(
1669
+ epochDelay?: null
1670
+ ): UpdatedTrancheInterestRateChangeEpochDelayEventFilter;
1671
+
1672
+ "WithdrawalAccepted(address,address,uint256,uint256)"(
1673
+ user?: string | null,
1674
+ tranche?: string | null,
1675
+ shares?: null,
1676
+ assetAmount?: null
1677
+ ): WithdrawalAcceptedEventFilter;
1678
+ WithdrawalAccepted(
1679
+ user?: string | null,
1680
+ tranche?: string | null,
1681
+ shares?: null,
1682
+ assetAmount?: null
1683
+ ): WithdrawalAcceptedEventFilter;
1684
+ };
1685
+
1686
+ estimateGas: {
1687
+ acceptDeposit(
1688
+ tranche: string,
1689
+ user: string,
1690
+ acceptedAmount: BigNumberish,
1691
+ overrides?: Overrides & { from?: string }
1692
+ ): Promise<BigNumber>;
1693
+
1694
+ acceptWithdrawal(
1695
+ tranche: string,
1696
+ user: string,
1697
+ acceptedShares: BigNumberish,
1698
+ overrides?: Overrides & { from?: string }
1699
+ ): Promise<BigNumber>;
1700
+
1701
+ allowance(
1702
+ owner: string,
1703
+ spender: string,
1704
+ overrides?: CallOverrides
1705
+ ): Promise<BigNumber>;
1706
+
1707
+ applyInterests(
1708
+ epoch: BigNumberish,
1709
+ overrides?: Overrides & { from?: string }
1710
+ ): Promise<BigNumber>;
1711
+
1712
+ approve(
1713
+ spender: string,
1714
+ value: BigNumberish,
1715
+ overrides?: Overrides & { from?: string }
1716
+ ): Promise<BigNumber>;
1717
+
1718
+ availableFunds(overrides?: CallOverrides): Promise<BigNumber>;
1719
+
1720
+ balanceOf(account: string, overrides?: CallOverrides): Promise<BigNumber>;
1721
+
1722
+ calculateMaximumLossAmount(overrides?: CallOverrides): Promise<BigNumber>;
1723
+
1724
+ claimRepaidLoss(
1725
+ user: string,
1726
+ tranche: string,
1727
+ lossId: BigNumberish,
1728
+ overrides?: Overrides & { from?: string }
1729
+ ): Promise<BigNumber>;
1730
+
1731
+ depositFirstLossCapital(
1732
+ amount: BigNumberish,
1733
+ overrides?: Overrides & { from?: string }
1734
+ ): Promise<BigNumber>;
1735
+
1736
+ drawFunds(
1737
+ amount: BigNumberish,
1738
+ overrides?: Overrides & { from?: string }
1739
+ ): Promise<BigNumber>;
1740
+
1741
+ feesOwedAmount(overrides?: CallOverrides): Promise<BigNumber>;
1742
+
1743
+ forceImmediateWithdrawal(
1744
+ tranche: string,
1745
+ user: string,
1746
+ sharesToWithdraw: BigNumberish,
1747
+ overrides?: Overrides & { from?: string }
1748
+ ): Promise<BigNumber>;
1749
+
1750
+ getClearingConfig(overrides?: CallOverrides): Promise<BigNumber>;
1751
+
1752
+ getLendingPoolInfo(overrides?: CallOverrides): Promise<BigNumber>;
1753
+
1754
+ isLendingPoolTranche(
1755
+ tranche: string,
1756
+ overrides?: CallOverrides
1757
+ ): Promise<BigNumber>;
1758
+
1759
+ lendingPoolTrancheCount(overrides?: CallOverrides): Promise<BigNumber>;
1760
+
1761
+ lendingPoolTranches(overrides?: CallOverrides): Promise<BigNumber>;
1762
+
1763
+ pendingPool(overrides?: CallOverrides): Promise<BigNumber>;
1764
+
1765
+ poolConfiguration(overrides?: CallOverrides): Promise<BigNumber>;
1766
+
1767
+ repayLoss(
1768
+ tranche: string,
1769
+ lossId: BigNumberish,
1770
+ amount: BigNumberish,
1771
+ overrides?: Overrides & { from?: string }
1772
+ ): Promise<BigNumber>;
1773
+
1774
+ repayOwedFunds(
1775
+ amount: BigNumberish,
1776
+ overrides?: Overrides & { from?: string }
1777
+ ): Promise<BigNumber>;
1778
+
1779
+ reportLoss(
1780
+ lossAmount: BigNumberish,
1781
+ doMintLossTokens: boolean,
1782
+ overrides?: Overrides & { from?: string }
1783
+ ): Promise<BigNumber>;
1784
+
1785
+ stop(overrides?: Overrides & { from?: string }): Promise<BigNumber>;
1786
+
1787
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
1788
+
1789
+ trancheConfigurationDepositLimits(
1790
+ tranche: string,
1791
+ overrides?: CallOverrides
1792
+ ): Promise<BigNumber>;
1793
+
1794
+ trancheIndex(
1795
+ tranche: string,
1796
+ overrides?: CallOverrides
1797
+ ): Promise<BigNumber>;
1798
+
1799
+ transfer(
1800
+ to: string,
1801
+ value: BigNumberish,
1802
+ overrides?: Overrides & { from?: string }
1803
+ ): Promise<BigNumber>;
1804
+
1805
+ transferFrom(
1806
+ from: string,
1807
+ to: string,
1808
+ value: BigNumberish,
1809
+ overrides?: Overrides & { from?: string }
1810
+ ): Promise<BigNumber>;
1811
+
1812
+ updateDesiredDrawAmount(
1813
+ desiredDrawAmount: BigNumberish,
1814
+ overrides?: Overrides & { from?: string }
1815
+ ): Promise<BigNumber>;
1816
+
1817
+ updateDrawRecipient(
1818
+ drawRecipient: string,
1819
+ overrides?: Overrides & { from?: string }
1820
+ ): Promise<BigNumber>;
1821
+
1822
+ updateMaximumDepositAmount(
1823
+ tranche: string,
1824
+ maximumDepositAmount: BigNumberish,
1825
+ overrides?: Overrides & { from?: string }
1826
+ ): Promise<BigNumber>;
1827
+
1828
+ updateMinimumDepositAmount(
1829
+ tranche: string,
1830
+ minimumDepositAmount: BigNumberish,
1831
+ overrides?: Overrides & { from?: string }
1832
+ ): Promise<BigNumber>;
1833
+
1834
+ updateMinimumExcessLiquidityPercentage(
1835
+ minimumExcessLiquidityPercentage: BigNumberish,
1836
+ overrides?: Overrides & { from?: string }
1837
+ ): Promise<BigNumber>;
1838
+
1839
+ updateTargetExcessLiquidityPercentage(
1840
+ targetExcessLiquidityPercentage: BigNumberish,
1841
+ overrides?: Overrides & { from?: string }
1842
+ ): Promise<BigNumber>;
1843
+
1844
+ updateTrancheDesiredRatios(
1845
+ ratios: BigNumberish[],
1846
+ overrides?: Overrides & { from?: string }
1847
+ ): Promise<BigNumber>;
1848
+
1849
+ updateTrancheInterestRate(
1850
+ tranche: string,
1851
+ interestRate: BigNumberish,
1852
+ overrides?: Overrides & { from?: string }
1853
+ ): Promise<BigNumber>;
1854
+
1855
+ updateTrancheInterestRateChangeEpochDelay(
1856
+ epochDelay: BigNumberish,
1857
+ overrides?: Overrides & { from?: string }
1858
+ ): Promise<BigNumber>;
1859
+
1860
+ userBalance(user: string, overrides?: CallOverrides): Promise<BigNumber>;
1861
+
1862
+ userOwedAmount(overrides?: CallOverrides): Promise<BigNumber>;
1863
+
1864
+ verifyClearingConfig(
1865
+ clearingConfig: ClearingConfigurationStruct,
1866
+ overrides?: CallOverrides
1867
+ ): Promise<BigNumber>;
1868
+
1869
+ withdrawFirstLossCapital(
1870
+ withdrawAmount: BigNumberish,
1871
+ withdrawAddress: string,
1872
+ overrides?: Overrides & { from?: string }
1873
+ ): Promise<BigNumber>;
1874
+ };
1875
+
1876
+ populateTransaction: {
1877
+ acceptDeposit(
1878
+ tranche: string,
1879
+ user: string,
1880
+ acceptedAmount: BigNumberish,
1881
+ overrides?: Overrides & { from?: string }
1882
+ ): Promise<PopulatedTransaction>;
1883
+
1884
+ acceptWithdrawal(
1885
+ tranche: string,
1886
+ user: string,
1887
+ acceptedShares: BigNumberish,
1888
+ overrides?: Overrides & { from?: string }
1889
+ ): Promise<PopulatedTransaction>;
1890
+
1891
+ allowance(
1892
+ owner: string,
1893
+ spender: string,
1894
+ overrides?: CallOverrides
1895
+ ): Promise<PopulatedTransaction>;
1896
+
1897
+ applyInterests(
1898
+ epoch: BigNumberish,
1899
+ overrides?: Overrides & { from?: string }
1900
+ ): Promise<PopulatedTransaction>;
1901
+
1902
+ approve(
1903
+ spender: string,
1904
+ value: BigNumberish,
1905
+ overrides?: Overrides & { from?: string }
1906
+ ): Promise<PopulatedTransaction>;
1907
+
1908
+ availableFunds(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1909
+
1910
+ balanceOf(
1911
+ account: string,
1912
+ overrides?: CallOverrides
1913
+ ): Promise<PopulatedTransaction>;
1914
+
1915
+ calculateMaximumLossAmount(
1916
+ overrides?: CallOverrides
1917
+ ): Promise<PopulatedTransaction>;
1918
+
1919
+ claimRepaidLoss(
1920
+ user: string,
1921
+ tranche: string,
1922
+ lossId: BigNumberish,
1923
+ overrides?: Overrides & { from?: string }
1924
+ ): Promise<PopulatedTransaction>;
1925
+
1926
+ depositFirstLossCapital(
1927
+ amount: BigNumberish,
1928
+ overrides?: Overrides & { from?: string }
1929
+ ): Promise<PopulatedTransaction>;
1930
+
1931
+ drawFunds(
1932
+ amount: BigNumberish,
1933
+ overrides?: Overrides & { from?: string }
1934
+ ): Promise<PopulatedTransaction>;
1935
+
1936
+ feesOwedAmount(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1937
+
1938
+ forceImmediateWithdrawal(
1939
+ tranche: string,
1940
+ user: string,
1941
+ sharesToWithdraw: BigNumberish,
1942
+ overrides?: Overrides & { from?: string }
1943
+ ): Promise<PopulatedTransaction>;
1944
+
1945
+ getClearingConfig(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1946
+
1947
+ getLendingPoolInfo(
1948
+ overrides?: CallOverrides
1949
+ ): Promise<PopulatedTransaction>;
1950
+
1951
+ isLendingPoolTranche(
1952
+ tranche: string,
1953
+ overrides?: CallOverrides
1954
+ ): Promise<PopulatedTransaction>;
1955
+
1956
+ lendingPoolTrancheCount(
1957
+ overrides?: CallOverrides
1958
+ ): Promise<PopulatedTransaction>;
1959
+
1960
+ lendingPoolTranches(
1961
+ overrides?: CallOverrides
1962
+ ): Promise<PopulatedTransaction>;
1963
+
1964
+ pendingPool(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1965
+
1966
+ poolConfiguration(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1967
+
1968
+ repayLoss(
1969
+ tranche: string,
1970
+ lossId: BigNumberish,
1971
+ amount: BigNumberish,
1972
+ overrides?: Overrides & { from?: string }
1973
+ ): Promise<PopulatedTransaction>;
1974
+
1975
+ repayOwedFunds(
1976
+ amount: BigNumberish,
1977
+ overrides?: Overrides & { from?: string }
1978
+ ): Promise<PopulatedTransaction>;
1979
+
1980
+ reportLoss(
1981
+ lossAmount: BigNumberish,
1982
+ doMintLossTokens: boolean,
1983
+ overrides?: Overrides & { from?: string }
1984
+ ): Promise<PopulatedTransaction>;
1985
+
1986
+ stop(
1987
+ overrides?: Overrides & { from?: string }
1988
+ ): Promise<PopulatedTransaction>;
1989
+
1990
+ totalSupply(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1991
+
1992
+ trancheConfigurationDepositLimits(
1993
+ tranche: string,
1994
+ overrides?: CallOverrides
1995
+ ): Promise<PopulatedTransaction>;
1996
+
1997
+ trancheIndex(
1998
+ tranche: string,
1999
+ overrides?: CallOverrides
2000
+ ): Promise<PopulatedTransaction>;
2001
+
2002
+ transfer(
2003
+ to: string,
2004
+ value: BigNumberish,
2005
+ overrides?: Overrides & { from?: string }
2006
+ ): Promise<PopulatedTransaction>;
2007
+
2008
+ transferFrom(
2009
+ from: string,
2010
+ to: string,
2011
+ value: BigNumberish,
2012
+ overrides?: Overrides & { from?: string }
2013
+ ): Promise<PopulatedTransaction>;
2014
+
2015
+ updateDesiredDrawAmount(
2016
+ desiredDrawAmount: BigNumberish,
2017
+ overrides?: Overrides & { from?: string }
2018
+ ): Promise<PopulatedTransaction>;
2019
+
2020
+ updateDrawRecipient(
2021
+ drawRecipient: string,
2022
+ overrides?: Overrides & { from?: string }
2023
+ ): Promise<PopulatedTransaction>;
2024
+
2025
+ updateMaximumDepositAmount(
2026
+ tranche: string,
2027
+ maximumDepositAmount: BigNumberish,
2028
+ overrides?: Overrides & { from?: string }
2029
+ ): Promise<PopulatedTransaction>;
2030
+
2031
+ updateMinimumDepositAmount(
2032
+ tranche: string,
2033
+ minimumDepositAmount: BigNumberish,
2034
+ overrides?: Overrides & { from?: string }
2035
+ ): Promise<PopulatedTransaction>;
2036
+
2037
+ updateMinimumExcessLiquidityPercentage(
2038
+ minimumExcessLiquidityPercentage: BigNumberish,
2039
+ overrides?: Overrides & { from?: string }
2040
+ ): Promise<PopulatedTransaction>;
2041
+
2042
+ updateTargetExcessLiquidityPercentage(
2043
+ targetExcessLiquidityPercentage: BigNumberish,
2044
+ overrides?: Overrides & { from?: string }
2045
+ ): Promise<PopulatedTransaction>;
2046
+
2047
+ updateTrancheDesiredRatios(
2048
+ ratios: BigNumberish[],
2049
+ overrides?: Overrides & { from?: string }
2050
+ ): Promise<PopulatedTransaction>;
2051
+
2052
+ updateTrancheInterestRate(
2053
+ tranche: string,
2054
+ interestRate: BigNumberish,
2055
+ overrides?: Overrides & { from?: string }
2056
+ ): Promise<PopulatedTransaction>;
2057
+
2058
+ updateTrancheInterestRateChangeEpochDelay(
2059
+ epochDelay: BigNumberish,
2060
+ overrides?: Overrides & { from?: string }
2061
+ ): Promise<PopulatedTransaction>;
2062
+
2063
+ userBalance(
2064
+ user: string,
2065
+ overrides?: CallOverrides
2066
+ ): Promise<PopulatedTransaction>;
2067
+
2068
+ userOwedAmount(overrides?: CallOverrides): Promise<PopulatedTransaction>;
2069
+
2070
+ verifyClearingConfig(
2071
+ clearingConfig: ClearingConfigurationStruct,
2072
+ overrides?: CallOverrides
2073
+ ): Promise<PopulatedTransaction>;
2074
+
2075
+ withdrawFirstLossCapital(
2076
+ withdrawAmount: BigNumberish,
2077
+ withdrawAddress: string,
2078
+ overrides?: Overrides & { from?: string }
2079
+ ): Promise<PopulatedTransaction>;
2080
+ };
2081
+ }