@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,125 @@
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
+ ILendingPoolFactoryAbi,
9
+ ILendingPoolFactoryAbiInterface,
10
+ } from "../ILendingPoolFactoryAbi";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ components: [
17
+ {
18
+ internalType: "string",
19
+ name: "poolName",
20
+ type: "string",
21
+ },
22
+ {
23
+ internalType: "string",
24
+ name: "poolSymbol",
25
+ type: "string",
26
+ },
27
+ {
28
+ internalType: "uint256",
29
+ name: "targetExcessLiquidityPercentage",
30
+ type: "uint256",
31
+ },
32
+ {
33
+ components: [
34
+ {
35
+ internalType: "uint256",
36
+ name: "ratio",
37
+ type: "uint256",
38
+ },
39
+ {
40
+ internalType: "uint256",
41
+ name: "interestRate",
42
+ type: "uint256",
43
+ },
44
+ {
45
+ internalType: "uint256",
46
+ name: "minDepositAmount",
47
+ type: "uint256",
48
+ },
49
+ {
50
+ internalType: "uint256",
51
+ name: "maxDepositAmount",
52
+ type: "uint256",
53
+ },
54
+ ],
55
+ internalType: "struct CreateTrancheConfig[]",
56
+ name: "tranches",
57
+ type: "tuple[]",
58
+ },
59
+ {
60
+ internalType: "address",
61
+ name: "poolAdmin",
62
+ type: "address",
63
+ },
64
+ {
65
+ internalType: "address",
66
+ name: "drawRecipient",
67
+ type: "address",
68
+ },
69
+ {
70
+ internalType: "uint256",
71
+ name: "desiredDrawAmount",
72
+ type: "uint256",
73
+ },
74
+ ],
75
+ internalType: "struct CreatePoolConfig",
76
+ name: "createPoolConfig",
77
+ type: "tuple",
78
+ },
79
+ ],
80
+ name: "createPool",
81
+ outputs: [
82
+ {
83
+ components: [
84
+ {
85
+ internalType: "address",
86
+ name: "lendingPool",
87
+ type: "address",
88
+ },
89
+ {
90
+ internalType: "address",
91
+ name: "pendingPool",
92
+ type: "address",
93
+ },
94
+ {
95
+ internalType: "address[]",
96
+ name: "tranches",
97
+ type: "address[]",
98
+ },
99
+ ],
100
+ internalType: "struct LendingPoolDeployment",
101
+ name: "lendingPoolDeployment",
102
+ type: "tuple",
103
+ },
104
+ ],
105
+ stateMutability: "nonpayable",
106
+ type: "function",
107
+ },
108
+ ] as const;
109
+
110
+ export class ILendingPoolFactoryAbi__factory {
111
+ static readonly abi = _abi;
112
+ static createInterface(): ILendingPoolFactoryAbiInterface {
113
+ return new utils.Interface(_abi) as ILendingPoolFactoryAbiInterface;
114
+ }
115
+ static connect(
116
+ address: string,
117
+ signerOrProvider: Signer | Provider
118
+ ): ILendingPoolFactoryAbi {
119
+ return new Contract(
120
+ address,
121
+ _abi,
122
+ signerOrProvider
123
+ ) as ILendingPoolFactoryAbi;
124
+ }
125
+ }