@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.
- package/.github/workflows/ci.yml +39 -0
- package/.github/workflows/main.yml +17 -13
- package/README.md +146 -0
- package/package.json +1 -1
- package/src/contracts/IClearingCoordinatorAbi.ts +0 -406
- package/src/contracts/IERC20MetadataAbi.ts +0 -364
- package/src/contracts/IFeeManagerAbi.ts +0 -182
- package/src/contracts/IKSULockingAbi.ts +0 -965
- package/src/contracts/IKasuAllowListAbi.ts +0 -605
- package/src/contracts/IKasuControllerAbi.ts +0 -703
- package/src/contracts/IKasuNFTsAbi.ts +0 -2744
- package/src/contracts/IKsuPriceAbi.ts +0 -87
- package/src/contracts/ILendingPoolAbi.ts +0 -2081
- package/src/contracts/ILendingPoolFactoryAbi.ts +0 -161
- package/src/contracts/ILendingPoolManagerAbi.ts +0 -1917
- package/src/contracts/ILendingPoolTrancheAbi.ts +0 -1911
- package/src/contracts/ISystemVariablesAbi.ts +0 -908
- package/src/contracts/IUserLoyaltyRewardsAbi.ts +0 -544
- package/src/contracts/IUserManagerAbi.ts +0 -612
- package/src/contracts/KSULockBonusAbi.ts +0 -124
- package/src/contracts/KasuPoolExternalTVLAbi.ts +0 -1071
- package/src/contracts/SwapperAbi.ts +0 -266
- package/src/contracts/common.ts +0 -44
- package/src/contracts/factories/IClearingCoordinatorAbi__factory.ts +0 -438
- package/src/contracts/factories/IERC20MetadataAbi__factory.ts +0 -248
- package/src/contracts/factories/IFeeManagerAbi__factory.ts +0 -90
- package/src/contracts/factories/IKSULockingAbi__factory.ts +0 -778
- package/src/contracts/factories/IKasuAllowListAbi__factory.ts +0 -479
- package/src/contracts/factories/IKasuControllerAbi__factory.ts +0 -447
- package/src/contracts/factories/IKasuNFTsAbi__factory.ts +0 -2116
- package/src/contracts/factories/IKsuPriceAbi__factory.ts +0 -36
- package/src/contracts/factories/ILendingPoolAbi__factory.ts +0 -1455
- package/src/contracts/factories/ILendingPoolFactoryAbi__factory.ts +0 -125
- package/src/contracts/factories/ILendingPoolManagerAbi__factory.ts +0 -1375
- package/src/contracts/factories/ILendingPoolTrancheAbi__factory.ts +0 -1345
- package/src/contracts/factories/ISystemVariablesAbi__factory.ts +0 -455
- package/src/contracts/factories/IUserLoyaltyRewardsAbi__factory.ts +0 -316
- package/src/contracts/factories/IUserManagerAbi__factory.ts +0 -345
- package/src/contracts/factories/KSULockBonusAbi__factory.ts +0 -115
- package/src/contracts/factories/KasuPoolExternalTVLAbi__factory.ts +0 -840
- package/src/contracts/factories/SwapperAbi__factory.ts +0 -167
- package/src/contracts/factories/index.ts +0 -21
- package/src/contracts/index.ts +0 -40
- package/tsconfig.tsbuildinfo +0 -1
- package/versioner.sh +0 -6
|
@@ -1,161 +0,0 @@
|
|
|
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
|
-
}
|