@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,455 +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
- ISystemVariablesAbi,
9
- ISystemVariablesAbiInterface,
10
- } from "../ISystemVariablesAbi";
11
-
12
- const _abi = [
13
- {
14
- inputs: [],
15
- name: "CannotConfigureDuringClearingPeriod",
16
- type: "error",
17
- },
18
- {
19
- anonymous: false,
20
- inputs: [
21
- {
22
- indexed: true,
23
- internalType: "uint256",
24
- name: "epoch",
25
- type: "uint256",
26
- },
27
- {
28
- indexed: false,
29
- internalType: "uint256",
30
- name: "ksuTokenPrice",
31
- type: "uint256",
32
- },
33
- ],
34
- name: "KsuTokenPriceUpdated",
35
- type: "event",
36
- },
37
- {
38
- anonymous: false,
39
- inputs: [
40
- {
41
- indexed: false,
42
- internalType: "uint256",
43
- name: "performanceFee",
44
- type: "uint256",
45
- },
46
- ],
47
- name: "PerformanceFeeUpdated",
48
- type: "event",
49
- },
50
- {
51
- inputs: [],
52
- name: "clearingPeriodLength",
53
- outputs: [
54
- {
55
- internalType: "uint256",
56
- name: "",
57
- type: "uint256",
58
- },
59
- ],
60
- stateMutability: "view",
61
- type: "function",
62
- },
63
- {
64
- inputs: [],
65
- name: "currentEpochNumber",
66
- outputs: [
67
- {
68
- internalType: "uint256",
69
- name: "",
70
- type: "uint256",
71
- },
72
- ],
73
- stateMutability: "view",
74
- type: "function",
75
- },
76
- {
77
- inputs: [],
78
- name: "currentRequestEpoch",
79
- outputs: [
80
- {
81
- internalType: "uint256",
82
- name: "requestEpoch",
83
- type: "uint256",
84
- },
85
- ],
86
- stateMutability: "view",
87
- type: "function",
88
- },
89
- {
90
- inputs: [],
91
- name: "defaultTrancheInterestChangeEpochDelay",
92
- outputs: [
93
- {
94
- internalType: "uint256",
95
- name: "",
96
- type: "uint256",
97
- },
98
- ],
99
- stateMutability: "view",
100
- type: "function",
101
- },
102
- {
103
- inputs: [],
104
- name: "epochDuration",
105
- outputs: [
106
- {
107
- internalType: "uint256",
108
- name: "",
109
- type: "uint256",
110
- },
111
- ],
112
- stateMutability: "view",
113
- type: "function",
114
- },
115
- {
116
- inputs: [
117
- {
118
- internalType: "uint256",
119
- name: "epoch",
120
- type: "uint256",
121
- },
122
- ],
123
- name: "epochStartTimestamp",
124
- outputs: [
125
- {
126
- internalType: "uint256",
127
- name: "",
128
- type: "uint256",
129
- },
130
- ],
131
- stateMutability: "view",
132
- type: "function",
133
- },
134
- {
135
- inputs: [],
136
- name: "feeRates",
137
- outputs: [
138
- {
139
- internalType: "uint256",
140
- name: "ecosystemFeeRate",
141
- type: "uint256",
142
- },
143
- {
144
- internalType: "uint256",
145
- name: "protocolFeeRate",
146
- type: "uint256",
147
- },
148
- ],
149
- stateMutability: "view",
150
- type: "function",
151
- },
152
- {
153
- inputs: [],
154
- name: "isClearingTime",
155
- outputs: [
156
- {
157
- internalType: "bool",
158
- name: "",
159
- type: "bool",
160
- },
161
- ],
162
- stateMutability: "view",
163
- type: "function",
164
- },
165
- {
166
- inputs: [],
167
- name: "ksuEpochTokenPrice",
168
- outputs: [
169
- {
170
- internalType: "uint256",
171
- name: "",
172
- type: "uint256",
173
- },
174
- ],
175
- stateMutability: "view",
176
- type: "function",
177
- },
178
- {
179
- inputs: [],
180
- name: "loyaltyLevelsCount",
181
- outputs: [
182
- {
183
- internalType: "uint8",
184
- name: "",
185
- type: "uint8",
186
- },
187
- ],
188
- stateMutability: "view",
189
- type: "function",
190
- },
191
- {
192
- inputs: [],
193
- name: "loyaltyThresholds",
194
- outputs: [
195
- {
196
- internalType: "uint256[]",
197
- name: "loyaltyThresholds",
198
- type: "uint256[]",
199
- },
200
- ],
201
- stateMutability: "view",
202
- type: "function",
203
- },
204
- {
205
- inputs: [],
206
- name: "maxTrancheCountPerLendingPool",
207
- outputs: [
208
- {
209
- internalType: "uint256",
210
- name: "",
211
- type: "uint256",
212
- },
213
- ],
214
- stateMutability: "view",
215
- type: "function",
216
- },
217
- {
218
- inputs: [],
219
- name: "maxTrancheInterestRate",
220
- outputs: [
221
- {
222
- internalType: "uint256",
223
- name: "",
224
- type: "uint256",
225
- },
226
- ],
227
- stateMutability: "view",
228
- type: "function",
229
- },
230
- {
231
- inputs: [],
232
- name: "minTrancheCountPerLendingPool",
233
- outputs: [
234
- {
235
- internalType: "uint256",
236
- name: "",
237
- type: "uint256",
238
- },
239
- ],
240
- stateMutability: "view",
241
- type: "function",
242
- },
243
- {
244
- inputs: [],
245
- name: "nextEpochStartTimestamp",
246
- outputs: [
247
- {
248
- internalType: "uint256",
249
- name: "",
250
- type: "uint256",
251
- },
252
- ],
253
- stateMutability: "view",
254
- type: "function",
255
- },
256
- {
257
- inputs: [],
258
- name: "performanceFee",
259
- outputs: [
260
- {
261
- internalType: "uint256",
262
- name: "",
263
- type: "uint256",
264
- },
265
- ],
266
- stateMutability: "view",
267
- type: "function",
268
- },
269
- {
270
- inputs: [],
271
- name: "priceUpdateEpoch",
272
- outputs: [
273
- {
274
- internalType: "uint256",
275
- name: "",
276
- type: "uint256",
277
- },
278
- ],
279
- stateMutability: "view",
280
- type: "function",
281
- },
282
- {
283
- inputs: [],
284
- name: "protocolFeeReceiver",
285
- outputs: [
286
- {
287
- internalType: "address",
288
- name: "",
289
- type: "address",
290
- },
291
- ],
292
- stateMutability: "view",
293
- type: "function",
294
- },
295
- {
296
- inputs: [
297
- {
298
- internalType: "uint256",
299
- name: "defaultTrancheInterestChangeEpochDelay_",
300
- type: "uint256",
301
- },
302
- ],
303
- name: "setDefaultTrancheInterestChangeEpochDelay",
304
- outputs: [],
305
- stateMutability: "nonpayable",
306
- type: "function",
307
- },
308
- {
309
- inputs: [
310
- {
311
- internalType: "uint256",
312
- name: "ecosystemFeeRate",
313
- type: "uint256",
314
- },
315
- {
316
- internalType: "uint256",
317
- name: "protocolFeeRate",
318
- type: "uint256",
319
- },
320
- ],
321
- name: "setFeeRates",
322
- outputs: [],
323
- stateMutability: "nonpayable",
324
- type: "function",
325
- },
326
- {
327
- inputs: [
328
- {
329
- internalType: "uint256[]",
330
- name: "loyaltyThresholds",
331
- type: "uint256[]",
332
- },
333
- ],
334
- name: "setLoyaltyThresholds",
335
- outputs: [],
336
- stateMutability: "nonpayable",
337
- type: "function",
338
- },
339
- {
340
- inputs: [
341
- {
342
- internalType: "uint256",
343
- name: "maxTrancheInterestRate_",
344
- type: "uint256",
345
- },
346
- ],
347
- name: "setMaxTrancheInterestRate",
348
- outputs: [],
349
- stateMutability: "nonpayable",
350
- type: "function",
351
- },
352
- {
353
- inputs: [
354
- {
355
- internalType: "uint256",
356
- name: "performanceFee",
357
- type: "uint256",
358
- },
359
- ],
360
- name: "setPerformanceFee",
361
- outputs: [],
362
- stateMutability: "nonpayable",
363
- type: "function",
364
- },
365
- {
366
- inputs: [
367
- {
368
- internalType: "address",
369
- name: "receiver",
370
- type: "address",
371
- },
372
- ],
373
- name: "setProtocolFeeReceiver",
374
- outputs: [],
375
- stateMutability: "nonpayable",
376
- type: "function",
377
- },
378
- {
379
- inputs: [
380
- {
381
- internalType: "bool",
382
- name: "value",
383
- type: "bool",
384
- },
385
- ],
386
- name: "setUserCanOnlyDepositToJuniorTrancheWhenHeHasRKSU",
387
- outputs: [],
388
- stateMutability: "nonpayable",
389
- type: "function",
390
- },
391
- {
392
- inputs: [
393
- {
394
- internalType: "uint256",
395
- name: "index",
396
- type: "uint256",
397
- },
398
- ],
399
- name: "trancheNameInfo",
400
- outputs: [
401
- {
402
- components: [
403
- {
404
- internalType: "string",
405
- name: "trancheName",
406
- type: "string",
407
- },
408
- {
409
- internalType: "string",
410
- name: "tokenSymbol",
411
- type: "string",
412
- },
413
- ],
414
- internalType: "struct TrancheInfo",
415
- name: "",
416
- type: "tuple",
417
- },
418
- ],
419
- stateMutability: "view",
420
- type: "function",
421
- },
422
- {
423
- inputs: [],
424
- name: "updateKsuEpochTokenPrice",
425
- outputs: [],
426
- stateMutability: "nonpayable",
427
- type: "function",
428
- },
429
- {
430
- inputs: [],
431
- name: "userCanOnlyDepositToJuniorTrancheWhenHeHasRKSU",
432
- outputs: [
433
- {
434
- internalType: "bool",
435
- name: "",
436
- type: "bool",
437
- },
438
- ],
439
- stateMutability: "view",
440
- type: "function",
441
- },
442
- ] as const;
443
-
444
- export class ISystemVariablesAbi__factory {
445
- static readonly abi = _abi;
446
- static createInterface(): ISystemVariablesAbiInterface {
447
- return new utils.Interface(_abi) as ISystemVariablesAbiInterface;
448
- }
449
- static connect(
450
- address: string,
451
- signerOrProvider: Signer | Provider
452
- ): ISystemVariablesAbi {
453
- return new Contract(address, _abi, signerOrProvider) as ISystemVariablesAbi;
454
- }
455
- }