@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.
- package/package.json +1 -1
- package/src/contracts/IClearingCoordinatorAbi.ts +406 -0
- package/src/contracts/IERC20MetadataAbi.ts +364 -0
- package/src/contracts/IFeeManagerAbi.ts +182 -0
- package/src/contracts/IKSULockingAbi.ts +965 -0
- package/src/contracts/IKasuAllowListAbi.ts +605 -0
- package/src/contracts/IKasuControllerAbi.ts +703 -0
- package/src/contracts/IKasuNFTsAbi.ts +2744 -0
- package/src/contracts/IKsuPriceAbi.ts +87 -0
- package/src/contracts/ILendingPoolAbi.ts +2081 -0
- package/src/contracts/ILendingPoolFactoryAbi.ts +161 -0
- package/src/contracts/ILendingPoolManagerAbi.ts +1917 -0
- package/src/contracts/ILendingPoolTrancheAbi.ts +1911 -0
- package/src/contracts/ISystemVariablesAbi.ts +908 -0
- package/src/contracts/IUserLoyaltyRewardsAbi.ts +544 -0
- package/src/contracts/IUserManagerAbi.ts +612 -0
- package/src/contracts/KSULockBonusAbi.ts +124 -0
- package/src/contracts/KasuPoolExternalTVLAbi.ts +1071 -0
- package/src/contracts/SwapperAbi.ts +266 -0
- package/src/contracts/common.ts +44 -0
- package/src/contracts/factories/IClearingCoordinatorAbi__factory.ts +438 -0
- package/src/contracts/factories/IERC20MetadataAbi__factory.ts +248 -0
- package/src/contracts/factories/IFeeManagerAbi__factory.ts +90 -0
- package/src/contracts/factories/IKSULockingAbi__factory.ts +778 -0
- package/src/contracts/factories/IKasuAllowListAbi__factory.ts +479 -0
- package/src/contracts/factories/IKasuControllerAbi__factory.ts +447 -0
- package/src/contracts/factories/IKasuNFTsAbi__factory.ts +2116 -0
- package/src/contracts/factories/IKsuPriceAbi__factory.ts +36 -0
- package/src/contracts/factories/ILendingPoolAbi__factory.ts +1455 -0
- package/src/contracts/factories/ILendingPoolFactoryAbi__factory.ts +125 -0
- package/src/contracts/factories/ILendingPoolManagerAbi__factory.ts +1375 -0
- package/src/contracts/factories/ILendingPoolTrancheAbi__factory.ts +1345 -0
- package/src/contracts/factories/ISystemVariablesAbi__factory.ts +455 -0
- package/src/contracts/factories/IUserLoyaltyRewardsAbi__factory.ts +316 -0
- package/src/contracts/factories/IUserManagerAbi__factory.ts +345 -0
- package/src/contracts/factories/KSULockBonusAbi__factory.ts +115 -0
- package/src/contracts/factories/KasuPoolExternalTVLAbi__factory.ts +840 -0
- package/src/contracts/factories/SwapperAbi__factory.ts +167 -0
- package/src/contracts/factories/index.ts +21 -0
- package/src/contracts/index.ts +40 -0
|
@@ -0,0 +1,161 @@
|
|
|
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 { FunctionFragment, Result } from "@ethersproject/abi";
|
|
17
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
18
|
+
import type {
|
|
19
|
+
TypedEventFilter,
|
|
20
|
+
TypedEvent,
|
|
21
|
+
TypedListener,
|
|
22
|
+
OnEvent,
|
|
23
|
+
} from "./common";
|
|
24
|
+
|
|
25
|
+
export type CreateTrancheConfigStruct = {
|
|
26
|
+
ratio: BigNumberish;
|
|
27
|
+
interestRate: BigNumberish;
|
|
28
|
+
minDepositAmount: BigNumberish;
|
|
29
|
+
maxDepositAmount: BigNumberish;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export type CreateTrancheConfigStructOutput = [
|
|
33
|
+
BigNumber,
|
|
34
|
+
BigNumber,
|
|
35
|
+
BigNumber,
|
|
36
|
+
BigNumber
|
|
37
|
+
] & {
|
|
38
|
+
ratio: BigNumber;
|
|
39
|
+
interestRate: BigNumber;
|
|
40
|
+
minDepositAmount: BigNumber;
|
|
41
|
+
maxDepositAmount: BigNumber;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export type CreatePoolConfigStruct = {
|
|
45
|
+
poolName: string;
|
|
46
|
+
poolSymbol: string;
|
|
47
|
+
targetExcessLiquidityPercentage: BigNumberish;
|
|
48
|
+
tranches: CreateTrancheConfigStruct[];
|
|
49
|
+
poolAdmin: string;
|
|
50
|
+
drawRecipient: string;
|
|
51
|
+
desiredDrawAmount: BigNumberish;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export type CreatePoolConfigStructOutput = [
|
|
55
|
+
string,
|
|
56
|
+
string,
|
|
57
|
+
BigNumber,
|
|
58
|
+
CreateTrancheConfigStructOutput[],
|
|
59
|
+
string,
|
|
60
|
+
string,
|
|
61
|
+
BigNumber
|
|
62
|
+
] & {
|
|
63
|
+
poolName: string;
|
|
64
|
+
poolSymbol: string;
|
|
65
|
+
targetExcessLiquidityPercentage: BigNumber;
|
|
66
|
+
tranches: CreateTrancheConfigStructOutput[];
|
|
67
|
+
poolAdmin: string;
|
|
68
|
+
drawRecipient: string;
|
|
69
|
+
desiredDrawAmount: BigNumber;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export type LendingPoolDeploymentStruct = {
|
|
73
|
+
lendingPool: string;
|
|
74
|
+
pendingPool: string;
|
|
75
|
+
tranches: string[];
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export type LendingPoolDeploymentStructOutput = [string, string, string[]] & {
|
|
79
|
+
lendingPool: string;
|
|
80
|
+
pendingPool: string;
|
|
81
|
+
tranches: string[];
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export interface ILendingPoolFactoryAbiInterface extends utils.Interface {
|
|
85
|
+
functions: {
|
|
86
|
+
"createPool((string,string,uint256,(uint256,uint256,uint256,uint256)[],address,address,uint256))": FunctionFragment;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
getFunction(nameOrSignatureOrTopic: "createPool"): FunctionFragment;
|
|
90
|
+
|
|
91
|
+
encodeFunctionData(
|
|
92
|
+
functionFragment: "createPool",
|
|
93
|
+
values: [CreatePoolConfigStruct]
|
|
94
|
+
): string;
|
|
95
|
+
|
|
96
|
+
decodeFunctionResult(functionFragment: "createPool", data: BytesLike): Result;
|
|
97
|
+
|
|
98
|
+
events: {};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface ILendingPoolFactoryAbi extends BaseContract {
|
|
102
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
103
|
+
attach(addressOrName: string): this;
|
|
104
|
+
deployed(): Promise<this>;
|
|
105
|
+
|
|
106
|
+
interface: ILendingPoolFactoryAbiInterface;
|
|
107
|
+
|
|
108
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
109
|
+
event: TypedEventFilter<TEvent>,
|
|
110
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
111
|
+
toBlock?: string | number | undefined
|
|
112
|
+
): Promise<Array<TEvent>>;
|
|
113
|
+
|
|
114
|
+
listeners<TEvent extends TypedEvent>(
|
|
115
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
116
|
+
): Array<TypedListener<TEvent>>;
|
|
117
|
+
listeners(eventName?: string): Array<Listener>;
|
|
118
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
119
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
120
|
+
): this;
|
|
121
|
+
removeAllListeners(eventName?: string): this;
|
|
122
|
+
off: OnEvent<this>;
|
|
123
|
+
on: OnEvent<this>;
|
|
124
|
+
once: OnEvent<this>;
|
|
125
|
+
removeListener: OnEvent<this>;
|
|
126
|
+
|
|
127
|
+
functions: {
|
|
128
|
+
createPool(
|
|
129
|
+
createPoolConfig: CreatePoolConfigStruct,
|
|
130
|
+
overrides?: Overrides & { from?: string }
|
|
131
|
+
): Promise<ContractTransaction>;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
createPool(
|
|
135
|
+
createPoolConfig: CreatePoolConfigStruct,
|
|
136
|
+
overrides?: Overrides & { from?: string }
|
|
137
|
+
): Promise<ContractTransaction>;
|
|
138
|
+
|
|
139
|
+
callStatic: {
|
|
140
|
+
createPool(
|
|
141
|
+
createPoolConfig: CreatePoolConfigStruct,
|
|
142
|
+
overrides?: CallOverrides
|
|
143
|
+
): Promise<LendingPoolDeploymentStructOutput>;
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
filters: {};
|
|
147
|
+
|
|
148
|
+
estimateGas: {
|
|
149
|
+
createPool(
|
|
150
|
+
createPoolConfig: CreatePoolConfigStruct,
|
|
151
|
+
overrides?: Overrides & { from?: string }
|
|
152
|
+
): Promise<BigNumber>;
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
populateTransaction: {
|
|
156
|
+
createPool(
|
|
157
|
+
createPoolConfig: CreatePoolConfigStruct,
|
|
158
|
+
overrides?: Overrides & { from?: string }
|
|
159
|
+
): Promise<PopulatedTransaction>;
|
|
160
|
+
};
|
|
161
|
+
}
|