@kasufinance/kasu-sdk 1.0.1 → 1.0.2

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 (45) hide show
  1. package/.github/workflows/ci.yml +39 -0
  2. package/.github/workflows/main.yml +17 -13
  3. package/README.md +146 -0
  4. package/package.json +1 -1
  5. package/src/contracts/IClearingCoordinatorAbi.ts +0 -406
  6. package/src/contracts/IERC20MetadataAbi.ts +0 -364
  7. package/src/contracts/IFeeManagerAbi.ts +0 -182
  8. package/src/contracts/IKSULockingAbi.ts +0 -965
  9. package/src/contracts/IKasuAllowListAbi.ts +0 -605
  10. package/src/contracts/IKasuControllerAbi.ts +0 -703
  11. package/src/contracts/IKasuNFTsAbi.ts +0 -2744
  12. package/src/contracts/IKsuPriceAbi.ts +0 -87
  13. package/src/contracts/ILendingPoolAbi.ts +0 -2081
  14. package/src/contracts/ILendingPoolFactoryAbi.ts +0 -161
  15. package/src/contracts/ILendingPoolManagerAbi.ts +0 -1917
  16. package/src/contracts/ILendingPoolTrancheAbi.ts +0 -1911
  17. package/src/contracts/ISystemVariablesAbi.ts +0 -908
  18. package/src/contracts/IUserLoyaltyRewardsAbi.ts +0 -544
  19. package/src/contracts/IUserManagerAbi.ts +0 -612
  20. package/src/contracts/KSULockBonusAbi.ts +0 -124
  21. package/src/contracts/KasuPoolExternalTVLAbi.ts +0 -1071
  22. package/src/contracts/SwapperAbi.ts +0 -266
  23. package/src/contracts/common.ts +0 -44
  24. package/src/contracts/factories/IClearingCoordinatorAbi__factory.ts +0 -438
  25. package/src/contracts/factories/IERC20MetadataAbi__factory.ts +0 -248
  26. package/src/contracts/factories/IFeeManagerAbi__factory.ts +0 -90
  27. package/src/contracts/factories/IKSULockingAbi__factory.ts +0 -778
  28. package/src/contracts/factories/IKasuAllowListAbi__factory.ts +0 -479
  29. package/src/contracts/factories/IKasuControllerAbi__factory.ts +0 -447
  30. package/src/contracts/factories/IKasuNFTsAbi__factory.ts +0 -2116
  31. package/src/contracts/factories/IKsuPriceAbi__factory.ts +0 -36
  32. package/src/contracts/factories/ILendingPoolAbi__factory.ts +0 -1455
  33. package/src/contracts/factories/ILendingPoolFactoryAbi__factory.ts +0 -125
  34. package/src/contracts/factories/ILendingPoolManagerAbi__factory.ts +0 -1375
  35. package/src/contracts/factories/ILendingPoolTrancheAbi__factory.ts +0 -1345
  36. package/src/contracts/factories/ISystemVariablesAbi__factory.ts +0 -455
  37. package/src/contracts/factories/IUserLoyaltyRewardsAbi__factory.ts +0 -316
  38. package/src/contracts/factories/IUserManagerAbi__factory.ts +0 -345
  39. package/src/contracts/factories/KSULockBonusAbi__factory.ts +0 -115
  40. package/src/contracts/factories/KasuPoolExternalTVLAbi__factory.ts +0 -840
  41. package/src/contracts/factories/SwapperAbi__factory.ts +0 -167
  42. package/src/contracts/factories/index.ts +0 -21
  43. package/src/contracts/index.ts +0 -40
  44. package/tsconfig.tsbuildinfo +0 -1
  45. package/versioner.sh +0 -6
@@ -1,1375 +0,0 @@
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
- }