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