@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,479 +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
- IKasuAllowListAbi,
9
- IKasuAllowListAbiInterface,
10
- } from "../IKasuAllowListAbi";
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: "BlockExpired",
43
- type: "error",
44
- },
45
- {
46
- inputs: [],
47
- name: "ConfigurationAddressZero",
48
- type: "error",
49
- },
50
- {
51
- inputs: [],
52
- name: "InvalidInitialization",
53
- type: "error",
54
- },
55
- {
56
- inputs: [],
57
- name: "InvalidSignature",
58
- type: "error",
59
- },
60
- {
61
- inputs: [],
62
- name: "NotInitializing",
63
- type: "error",
64
- },
65
- {
66
- inputs: [],
67
- name: "OnlyLendingPoolManager",
68
- type: "error",
69
- },
70
- {
71
- inputs: [
72
- {
73
- internalType: "address",
74
- name: "user",
75
- type: "address",
76
- },
77
- ],
78
- name: "UserBlocked",
79
- type: "error",
80
- },
81
- {
82
- inputs: [
83
- {
84
- internalType: "address",
85
- name: "user",
86
- type: "address",
87
- },
88
- ],
89
- name: "UserNotInAllowList",
90
- type: "error",
91
- },
92
- {
93
- inputs: [
94
- {
95
- internalType: "address",
96
- name: "user",
97
- type: "address",
98
- },
99
- ],
100
- name: "UserNotKycd",
101
- type: "error",
102
- },
103
- {
104
- anonymous: false,
105
- inputs: [
106
- {
107
- indexed: false,
108
- internalType: "uint64",
109
- name: "version",
110
- type: "uint64",
111
- },
112
- ],
113
- name: "Initialized",
114
- type: "event",
115
- },
116
- {
117
- anonymous: false,
118
- inputs: [
119
- {
120
- indexed: false,
121
- internalType: "uint256",
122
- name: "chainID",
123
- type: "uint256",
124
- },
125
- {
126
- indexed: false,
127
- internalType: "uint256",
128
- name: "nonce",
129
- type: "uint256",
130
- },
131
- {
132
- indexed: false,
133
- internalType: "uint256",
134
- name: "blockExpiration",
135
- type: "uint256",
136
- },
137
- {
138
- indexed: false,
139
- internalType: "address",
140
- name: "contractAddress",
141
- type: "address",
142
- },
143
- {
144
- indexed: false,
145
- internalType: "address",
146
- name: "userAddress",
147
- type: "address",
148
- },
149
- {
150
- indexed: false,
151
- internalType: "bytes",
152
- name: "functionCallData",
153
- type: "bytes",
154
- },
155
- ],
156
- name: "NexeraIDSignatureVerified",
157
- type: "event",
158
- },
159
- {
160
- anonymous: false,
161
- inputs: [
162
- {
163
- indexed: true,
164
- internalType: "address",
165
- name: "newSigner",
166
- type: "address",
167
- },
168
- ],
169
- name: "SignerChanged",
170
- type: "event",
171
- },
172
- {
173
- anonymous: false,
174
- inputs: [
175
- {
176
- indexed: true,
177
- internalType: "address",
178
- name: "user",
179
- type: "address",
180
- },
181
- ],
182
- name: "UserAddedInAllowList",
183
- type: "event",
184
- },
185
- {
186
- anonymous: false,
187
- inputs: [
188
- {
189
- indexed: true,
190
- internalType: "address",
191
- name: "user",
192
- type: "address",
193
- },
194
- ],
195
- name: "UserBlockedFromAllowList",
196
- type: "event",
197
- },
198
- {
199
- anonymous: false,
200
- inputs: [
201
- {
202
- indexed: true,
203
- internalType: "address",
204
- name: "user",
205
- type: "address",
206
- },
207
- ],
208
- name: "UserRemovedFromAllowList",
209
- type: "event",
210
- },
211
- {
212
- anonymous: false,
213
- inputs: [
214
- {
215
- indexed: true,
216
- internalType: "address",
217
- name: "user",
218
- type: "address",
219
- },
220
- ],
221
- name: "UserUnblockedFromAllowList",
222
- type: "event",
223
- },
224
- {
225
- inputs: [
226
- {
227
- internalType: "address",
228
- name: "",
229
- type: "address",
230
- },
231
- ],
232
- name: "allowList",
233
- outputs: [
234
- {
235
- internalType: "bool",
236
- name: "",
237
- type: "bool",
238
- },
239
- ],
240
- stateMutability: "view",
241
- type: "function",
242
- },
243
- {
244
- inputs: [
245
- {
246
- internalType: "address",
247
- name: "user",
248
- type: "address",
249
- },
250
- ],
251
- name: "allowUser",
252
- outputs: [],
253
- stateMutability: "nonpayable",
254
- type: "function",
255
- },
256
- {
257
- inputs: [
258
- {
259
- internalType: "address",
260
- name: "",
261
- type: "address",
262
- },
263
- ],
264
- name: "blockList",
265
- outputs: [
266
- {
267
- internalType: "bool",
268
- name: "",
269
- type: "bool",
270
- },
271
- ],
272
- stateMutability: "view",
273
- type: "function",
274
- },
275
- {
276
- inputs: [
277
- {
278
- internalType: "address",
279
- name: "user",
280
- type: "address",
281
- },
282
- ],
283
- name: "blockUser",
284
- outputs: [],
285
- stateMutability: "nonpayable",
286
- type: "function",
287
- },
288
- {
289
- inputs: [
290
- {
291
- internalType: "address",
292
- name: "user",
293
- type: "address",
294
- },
295
- ],
296
- name: "disallowUser",
297
- outputs: [],
298
- stateMutability: "nonpayable",
299
- type: "function",
300
- },
301
- {
302
- inputs: [
303
- {
304
- components: [
305
- {
306
- internalType: "uint256",
307
- name: "chainID",
308
- type: "uint256",
309
- },
310
- {
311
- internalType: "uint256",
312
- name: "nonce",
313
- type: "uint256",
314
- },
315
- {
316
- internalType: "uint256",
317
- name: "blockExpiration",
318
- type: "uint256",
319
- },
320
- {
321
- internalType: "address",
322
- name: "contractAddress",
323
- type: "address",
324
- },
325
- {
326
- internalType: "address",
327
- name: "userAddress",
328
- type: "address",
329
- },
330
- {
331
- internalType: "bytes",
332
- name: "functionCallData",
333
- type: "bytes",
334
- },
335
- ],
336
- internalType: "struct BaseTxAuthDataVerifier.TxAuthData",
337
- name: "_txAuthData",
338
- type: "tuple",
339
- },
340
- ],
341
- name: "getMessageHash",
342
- outputs: [
343
- {
344
- internalType: "bytes32",
345
- name: "",
346
- type: "bytes32",
347
- },
348
- ],
349
- stateMutability: "pure",
350
- type: "function",
351
- },
352
- {
353
- inputs: [
354
- {
355
- internalType: "address",
356
- name: "lendingPoolManager_",
357
- type: "address",
358
- },
359
- {
360
- internalType: "address",
361
- name: "signer_",
362
- type: "address",
363
- },
364
- ],
365
- name: "initialize",
366
- outputs: [],
367
- stateMutability: "nonpayable",
368
- type: "function",
369
- },
370
- {
371
- inputs: [
372
- {
373
- internalType: "address",
374
- name: "",
375
- type: "address",
376
- },
377
- ],
378
- name: "nonces",
379
- outputs: [
380
- {
381
- internalType: "uint256",
382
- name: "",
383
- type: "uint256",
384
- },
385
- ],
386
- stateMutability: "view",
387
- type: "function",
388
- },
389
- {
390
- inputs: [
391
- {
392
- internalType: "address",
393
- name: "signer_",
394
- type: "address",
395
- },
396
- ],
397
- name: "setNexeraIDSigner",
398
- outputs: [],
399
- stateMutability: "nonpayable",
400
- type: "function",
401
- },
402
- {
403
- inputs: [],
404
- name: "txAuthDataSignerAddress",
405
- outputs: [
406
- {
407
- internalType: "address",
408
- name: "",
409
- type: "address",
410
- },
411
- ],
412
- stateMutability: "view",
413
- type: "function",
414
- },
415
- {
416
- inputs: [
417
- {
418
- internalType: "address",
419
- name: "user",
420
- type: "address",
421
- },
422
- ],
423
- name: "txAuthDataUserNonce",
424
- outputs: [
425
- {
426
- internalType: "uint256",
427
- name: "",
428
- type: "uint256",
429
- },
430
- ],
431
- stateMutability: "view",
432
- type: "function",
433
- },
434
- {
435
- inputs: [
436
- {
437
- internalType: "address",
438
- name: "user",
439
- type: "address",
440
- },
441
- ],
442
- name: "unblockUser",
443
- outputs: [],
444
- stateMutability: "nonpayable",
445
- type: "function",
446
- },
447
- {
448
- inputs: [
449
- {
450
- internalType: "address",
451
- name: "user",
452
- type: "address",
453
- },
454
- ],
455
- name: "verifyUserKyc",
456
- outputs: [
457
- {
458
- internalType: "bool",
459
- name: "",
460
- type: "bool",
461
- },
462
- ],
463
- stateMutability: "nonpayable",
464
- type: "function",
465
- },
466
- ] as const;
467
-
468
- export class IKasuAllowListAbi__factory {
469
- static readonly abi = _abi;
470
- static createInterface(): IKasuAllowListAbiInterface {
471
- return new utils.Interface(_abi) as IKasuAllowListAbiInterface;
472
- }
473
- static connect(
474
- address: string,
475
- signerOrProvider: Signer | Provider
476
- ): IKasuAllowListAbi {
477
- return new Contract(address, _abi, signerOrProvider) as IKasuAllowListAbi;
478
- }
479
- }