@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,840 +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
- KasuPoolExternalTVLAbi,
9
- KasuPoolExternalTVLAbiInterface,
10
- } from "../KasuPoolExternalTVLAbi";
11
-
12
- const _abi = [
13
- {
14
- inputs: [
15
- {
16
- internalType: "contract IKasuController",
17
- name: "kasuController_",
18
- type: "address",
19
- },
20
- ],
21
- stateMutability: "nonpayable",
22
- type: "constructor",
23
- },
24
- {
25
- inputs: [
26
- {
27
- internalType: "address",
28
- name: "account",
29
- type: "address",
30
- },
31
- {
32
- internalType: "bytes32",
33
- name: "neededRole",
34
- type: "bytes32",
35
- },
36
- ],
37
- name: "AccessControlUnauthorizedAccount",
38
- type: "error",
39
- },
40
- {
41
- inputs: [],
42
- name: "ConfigurationAddressZero",
43
- type: "error",
44
- },
45
- {
46
- inputs: [
47
- {
48
- internalType: "address",
49
- name: "sender",
50
- type: "address",
51
- },
52
- {
53
- internalType: "uint256",
54
- name: "balance",
55
- type: "uint256",
56
- },
57
- {
58
- internalType: "uint256",
59
- name: "needed",
60
- type: "uint256",
61
- },
62
- {
63
- internalType: "uint256",
64
- name: "tokenId",
65
- type: "uint256",
66
- },
67
- ],
68
- name: "ERC1155InsufficientBalance",
69
- type: "error",
70
- },
71
- {
72
- inputs: [
73
- {
74
- internalType: "address",
75
- name: "approver",
76
- type: "address",
77
- },
78
- ],
79
- name: "ERC1155InvalidApprover",
80
- type: "error",
81
- },
82
- {
83
- inputs: [
84
- {
85
- internalType: "uint256",
86
- name: "idsLength",
87
- type: "uint256",
88
- },
89
- {
90
- internalType: "uint256",
91
- name: "valuesLength",
92
- type: "uint256",
93
- },
94
- ],
95
- name: "ERC1155InvalidArrayLength",
96
- type: "error",
97
- },
98
- {
99
- inputs: [
100
- {
101
- internalType: "address",
102
- name: "operator",
103
- type: "address",
104
- },
105
- ],
106
- name: "ERC1155InvalidOperator",
107
- type: "error",
108
- },
109
- {
110
- inputs: [
111
- {
112
- internalType: "address",
113
- name: "receiver",
114
- type: "address",
115
- },
116
- ],
117
- name: "ERC1155InvalidReceiver",
118
- type: "error",
119
- },
120
- {
121
- inputs: [
122
- {
123
- internalType: "address",
124
- name: "sender",
125
- type: "address",
126
- },
127
- ],
128
- name: "ERC1155InvalidSender",
129
- type: "error",
130
- },
131
- {
132
- inputs: [
133
- {
134
- internalType: "address",
135
- name: "operator",
136
- type: "address",
137
- },
138
- {
139
- internalType: "address",
140
- name: "owner",
141
- type: "address",
142
- },
143
- ],
144
- name: "ERC1155MissingApprovalForAll",
145
- type: "error",
146
- },
147
- {
148
- inputs: [],
149
- name: "InvalidInitialization",
150
- type: "error",
151
- },
152
- {
153
- inputs: [],
154
- name: "LengthMismatch",
155
- type: "error",
156
- },
157
- {
158
- inputs: [],
159
- name: "NotInitializing",
160
- type: "error",
161
- },
162
- {
163
- anonymous: false,
164
- inputs: [
165
- {
166
- indexed: true,
167
- internalType: "address",
168
- name: "account",
169
- type: "address",
170
- },
171
- {
172
- indexed: true,
173
- internalType: "address",
174
- name: "operator",
175
- type: "address",
176
- },
177
- {
178
- indexed: false,
179
- internalType: "bool",
180
- name: "approved",
181
- type: "bool",
182
- },
183
- ],
184
- name: "ApprovalForAll",
185
- type: "event",
186
- },
187
- {
188
- anonymous: false,
189
- inputs: [
190
- {
191
- indexed: true,
192
- internalType: "address",
193
- name: "pool",
194
- type: "address",
195
- },
196
- {
197
- indexed: false,
198
- internalType: "uint256",
199
- name: "oldAmount",
200
- type: "uint256",
201
- },
202
- {
203
- indexed: false,
204
- internalType: "uint256",
205
- name: "newAmount",
206
- type: "uint256",
207
- },
208
- ],
209
- name: "ExternalTVLSet",
210
- type: "event",
211
- },
212
- {
213
- anonymous: false,
214
- inputs: [
215
- {
216
- indexed: false,
217
- internalType: "uint64",
218
- name: "version",
219
- type: "uint64",
220
- },
221
- ],
222
- name: "Initialized",
223
- type: "event",
224
- },
225
- {
226
- anonymous: false,
227
- inputs: [
228
- {
229
- indexed: true,
230
- internalType: "address",
231
- name: "operator",
232
- type: "address",
233
- },
234
- {
235
- indexed: true,
236
- internalType: "address",
237
- name: "from",
238
- type: "address",
239
- },
240
- {
241
- indexed: true,
242
- internalType: "address",
243
- name: "to",
244
- type: "address",
245
- },
246
- {
247
- indexed: false,
248
- internalType: "uint256[]",
249
- name: "ids",
250
- type: "uint256[]",
251
- },
252
- {
253
- indexed: false,
254
- internalType: "uint256[]",
255
- name: "values",
256
- type: "uint256[]",
257
- },
258
- ],
259
- name: "TransferBatch",
260
- type: "event",
261
- },
262
- {
263
- anonymous: false,
264
- inputs: [
265
- {
266
- indexed: true,
267
- internalType: "address",
268
- name: "operator",
269
- type: "address",
270
- },
271
- {
272
- indexed: true,
273
- internalType: "address",
274
- name: "from",
275
- type: "address",
276
- },
277
- {
278
- indexed: true,
279
- internalType: "address",
280
- name: "to",
281
- type: "address",
282
- },
283
- {
284
- indexed: false,
285
- internalType: "uint256",
286
- name: "id",
287
- type: "uint256",
288
- },
289
- {
290
- indexed: false,
291
- internalType: "uint256",
292
- name: "value",
293
- type: "uint256",
294
- },
295
- ],
296
- name: "TransferSingle",
297
- type: "event",
298
- },
299
- {
300
- anonymous: false,
301
- inputs: [
302
- {
303
- indexed: false,
304
- internalType: "string",
305
- name: "value",
306
- type: "string",
307
- },
308
- {
309
- indexed: true,
310
- internalType: "uint256",
311
- name: "id",
312
- type: "uint256",
313
- },
314
- ],
315
- name: "URI",
316
- type: "event",
317
- },
318
- {
319
- inputs: [
320
- {
321
- internalType: "address",
322
- name: "account",
323
- type: "address",
324
- },
325
- {
326
- internalType: "uint256",
327
- name: "id",
328
- type: "uint256",
329
- },
330
- ],
331
- name: "balanceOf",
332
- outputs: [
333
- {
334
- internalType: "uint256",
335
- name: "",
336
- type: "uint256",
337
- },
338
- ],
339
- stateMutability: "view",
340
- type: "function",
341
- },
342
- {
343
- inputs: [
344
- {
345
- internalType: "address[]",
346
- name: "accounts",
347
- type: "address[]",
348
- },
349
- {
350
- internalType: "uint256[]",
351
- name: "ids",
352
- type: "uint256[]",
353
- },
354
- ],
355
- name: "balanceOfBatch",
356
- outputs: [
357
- {
358
- internalType: "uint256[]",
359
- name: "",
360
- type: "uint256[]",
361
- },
362
- ],
363
- stateMutability: "view",
364
- type: "function",
365
- },
366
- {
367
- inputs: [
368
- {
369
- internalType: "address",
370
- name: "account",
371
- type: "address",
372
- },
373
- {
374
- internalType: "uint256",
375
- name: "id",
376
- type: "uint256",
377
- },
378
- {
379
- internalType: "uint256",
380
- name: "value",
381
- type: "uint256",
382
- },
383
- ],
384
- name: "burn",
385
- outputs: [],
386
- stateMutability: "nonpayable",
387
- type: "function",
388
- },
389
- {
390
- inputs: [
391
- {
392
- internalType: "address",
393
- name: "account",
394
- type: "address",
395
- },
396
- {
397
- internalType: "uint256[]",
398
- name: "ids",
399
- type: "uint256[]",
400
- },
401
- {
402
- internalType: "uint256[]",
403
- name: "values",
404
- type: "uint256[]",
405
- },
406
- ],
407
- name: "burnBatch",
408
- outputs: [],
409
- stateMutability: "nonpayable",
410
- type: "function",
411
- },
412
- {
413
- inputs: [
414
- {
415
- internalType: "address",
416
- name: "pool",
417
- type: "address",
418
- },
419
- {
420
- internalType: "uint256",
421
- name: "amount",
422
- type: "uint256",
423
- },
424
- ],
425
- name: "burnExternalTVL",
426
- outputs: [],
427
- stateMutability: "nonpayable",
428
- type: "function",
429
- },
430
- {
431
- inputs: [
432
- {
433
- internalType: "uint256",
434
- name: "id",
435
- type: "uint256",
436
- },
437
- ],
438
- name: "exists",
439
- outputs: [
440
- {
441
- internalType: "bool",
442
- name: "",
443
- type: "bool",
444
- },
445
- ],
446
- stateMutability: "view",
447
- type: "function",
448
- },
449
- {
450
- inputs: [
451
- {
452
- internalType: "address",
453
- name: "pool",
454
- type: "address",
455
- },
456
- ],
457
- name: "externalTVLOfPool",
458
- outputs: [
459
- {
460
- internalType: "uint256",
461
- name: "",
462
- type: "uint256",
463
- },
464
- ],
465
- stateMutability: "view",
466
- type: "function",
467
- },
468
- {
469
- inputs: [
470
- {
471
- internalType: "string",
472
- name: "baseURI_",
473
- type: "string",
474
- },
475
- ],
476
- name: "initialize",
477
- outputs: [],
478
- stateMutability: "nonpayable",
479
- type: "function",
480
- },
481
- {
482
- inputs: [
483
- {
484
- internalType: "address",
485
- name: "account",
486
- type: "address",
487
- },
488
- {
489
- internalType: "address",
490
- name: "operator",
491
- type: "address",
492
- },
493
- ],
494
- name: "isApprovedForAll",
495
- outputs: [
496
- {
497
- internalType: "bool",
498
- name: "",
499
- type: "bool",
500
- },
501
- ],
502
- stateMutability: "view",
503
- type: "function",
504
- },
505
- {
506
- inputs: [
507
- {
508
- internalType: "address",
509
- name: "pool",
510
- type: "address",
511
- },
512
- {
513
- internalType: "uint256",
514
- name: "amount",
515
- type: "uint256",
516
- },
517
- ],
518
- name: "mintExternalTVL",
519
- outputs: [],
520
- stateMutability: "nonpayable",
521
- type: "function",
522
- },
523
- {
524
- inputs: [
525
- {
526
- internalType: "address",
527
- name: "",
528
- type: "address",
529
- },
530
- {
531
- internalType: "address",
532
- name: "",
533
- type: "address",
534
- },
535
- {
536
- internalType: "uint256[]",
537
- name: "",
538
- type: "uint256[]",
539
- },
540
- {
541
- internalType: "uint256[]",
542
- name: "",
543
- type: "uint256[]",
544
- },
545
- {
546
- internalType: "bytes",
547
- name: "",
548
- type: "bytes",
549
- },
550
- ],
551
- name: "onERC1155BatchReceived",
552
- outputs: [
553
- {
554
- internalType: "bytes4",
555
- name: "",
556
- type: "bytes4",
557
- },
558
- ],
559
- stateMutability: "nonpayable",
560
- type: "function",
561
- },
562
- {
563
- inputs: [
564
- {
565
- internalType: "address",
566
- name: "",
567
- type: "address",
568
- },
569
- {
570
- internalType: "address",
571
- name: "",
572
- type: "address",
573
- },
574
- {
575
- internalType: "uint256",
576
- name: "",
577
- type: "uint256",
578
- },
579
- {
580
- internalType: "uint256",
581
- name: "",
582
- type: "uint256",
583
- },
584
- {
585
- internalType: "bytes",
586
- name: "",
587
- type: "bytes",
588
- },
589
- ],
590
- name: "onERC1155Received",
591
- outputs: [
592
- {
593
- internalType: "bytes4",
594
- name: "",
595
- type: "bytes4",
596
- },
597
- ],
598
- stateMutability: "nonpayable",
599
- type: "function",
600
- },
601
- {
602
- inputs: [
603
- {
604
- internalType: "address",
605
- name: "pool",
606
- type: "address",
607
- },
608
- ],
609
- name: "poolId",
610
- outputs: [
611
- {
612
- internalType: "uint256",
613
- name: "",
614
- type: "uint256",
615
- },
616
- ],
617
- stateMutability: "pure",
618
- type: "function",
619
- },
620
- {
621
- inputs: [
622
- {
623
- internalType: "address",
624
- name: "from",
625
- type: "address",
626
- },
627
- {
628
- internalType: "address",
629
- name: "to",
630
- type: "address",
631
- },
632
- {
633
- internalType: "uint256[]",
634
- name: "ids",
635
- type: "uint256[]",
636
- },
637
- {
638
- internalType: "uint256[]",
639
- name: "values",
640
- type: "uint256[]",
641
- },
642
- {
643
- internalType: "bytes",
644
- name: "data",
645
- type: "bytes",
646
- },
647
- ],
648
- name: "safeBatchTransferFrom",
649
- outputs: [],
650
- stateMutability: "nonpayable",
651
- type: "function",
652
- },
653
- {
654
- inputs: [
655
- {
656
- internalType: "address",
657
- name: "from",
658
- type: "address",
659
- },
660
- {
661
- internalType: "address",
662
- name: "to",
663
- type: "address",
664
- },
665
- {
666
- internalType: "uint256",
667
- name: "id",
668
- type: "uint256",
669
- },
670
- {
671
- internalType: "uint256",
672
- name: "value",
673
- type: "uint256",
674
- },
675
- {
676
- internalType: "bytes",
677
- name: "data",
678
- type: "bytes",
679
- },
680
- ],
681
- name: "safeTransferFrom",
682
- outputs: [],
683
- stateMutability: "nonpayable",
684
- type: "function",
685
- },
686
- {
687
- inputs: [
688
- {
689
- internalType: "address",
690
- name: "operator",
691
- type: "address",
692
- },
693
- {
694
- internalType: "bool",
695
- name: "approved",
696
- type: "bool",
697
- },
698
- ],
699
- name: "setApprovalForAll",
700
- outputs: [],
701
- stateMutability: "nonpayable",
702
- type: "function",
703
- },
704
- {
705
- inputs: [
706
- {
707
- internalType: "address",
708
- name: "pool",
709
- type: "address",
710
- },
711
- {
712
- internalType: "uint256",
713
- name: "targetAmount",
714
- type: "uint256",
715
- },
716
- ],
717
- name: "setExternalTVL",
718
- outputs: [],
719
- stateMutability: "nonpayable",
720
- type: "function",
721
- },
722
- {
723
- inputs: [
724
- {
725
- internalType: "address[]",
726
- name: "pools",
727
- type: "address[]",
728
- },
729
- {
730
- internalType: "uint256[]",
731
- name: "targetAmounts",
732
- type: "uint256[]",
733
- },
734
- ],
735
- name: "setExternalTVLBatch",
736
- outputs: [],
737
- stateMutability: "nonpayable",
738
- type: "function",
739
- },
740
- {
741
- inputs: [
742
- {
743
- internalType: "string",
744
- name: "newURI",
745
- type: "string",
746
- },
747
- ],
748
- name: "setURI",
749
- outputs: [],
750
- stateMutability: "nonpayable",
751
- type: "function",
752
- },
753
- {
754
- inputs: [
755
- {
756
- internalType: "bytes4",
757
- name: "interfaceId",
758
- type: "bytes4",
759
- },
760
- ],
761
- name: "supportsInterface",
762
- outputs: [
763
- {
764
- internalType: "bool",
765
- name: "",
766
- type: "bool",
767
- },
768
- ],
769
- stateMutability: "view",
770
- type: "function",
771
- },
772
- {
773
- inputs: [],
774
- name: "totalSupply",
775
- outputs: [
776
- {
777
- internalType: "uint256",
778
- name: "",
779
- type: "uint256",
780
- },
781
- ],
782
- stateMutability: "view",
783
- type: "function",
784
- },
785
- {
786
- inputs: [
787
- {
788
- internalType: "uint256",
789
- name: "id",
790
- type: "uint256",
791
- },
792
- ],
793
- name: "totalSupply",
794
- outputs: [
795
- {
796
- internalType: "uint256",
797
- name: "",
798
- type: "uint256",
799
- },
800
- ],
801
- stateMutability: "view",
802
- type: "function",
803
- },
804
- {
805
- inputs: [
806
- {
807
- internalType: "uint256",
808
- name: "",
809
- type: "uint256",
810
- },
811
- ],
812
- name: "uri",
813
- outputs: [
814
- {
815
- internalType: "string",
816
- name: "",
817
- type: "string",
818
- },
819
- ],
820
- stateMutability: "view",
821
- type: "function",
822
- },
823
- ] as const;
824
-
825
- export class KasuPoolExternalTVLAbi__factory {
826
- static readonly abi = _abi;
827
- static createInterface(): KasuPoolExternalTVLAbiInterface {
828
- return new utils.Interface(_abi) as KasuPoolExternalTVLAbiInterface;
829
- }
830
- static connect(
831
- address: string,
832
- signerOrProvider: Signer | Provider
833
- ): KasuPoolExternalTVLAbi {
834
- return new Contract(
835
- address,
836
- _abi,
837
- signerOrProvider
838
- ) as KasuPoolExternalTVLAbi;
839
- }
840
- }