@iris-credit/core-sdk 0.0.0

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 (73) hide show
  1. package/LICENSE +21 -0
  2. package/lib/cjs/abis/blm.d.ts +192 -0
  3. package/lib/cjs/abis/blm.js +251 -0
  4. package/lib/cjs/abis/errors.d.ts +441 -0
  5. package/lib/cjs/abis/errors.js +558 -0
  6. package/lib/cjs/abis/index.d.ts +4 -0
  7. package/lib/cjs/abis/index.js +20 -0
  8. package/lib/cjs/abis/iris.d.ts +1448 -0
  9. package/lib/cjs/abis/iris.js +1850 -0
  10. package/lib/cjs/abis/whitelist-blm.d.ts +235 -0
  11. package/lib/cjs/abis/whitelist-blm.js +307 -0
  12. package/lib/cjs/addresses.d.ts +12 -0
  13. package/lib/cjs/addresses.js +17 -0
  14. package/lib/cjs/chain.d.ts +35 -0
  15. package/lib/cjs/chain.js +40 -0
  16. package/lib/cjs/constants.d.ts +14 -0
  17. package/lib/cjs/constants.js +18 -0
  18. package/lib/cjs/index.d.ts +7 -0
  19. package/lib/cjs/index.js +23 -0
  20. package/lib/cjs/math/MathLib.d.ts +26 -0
  21. package/lib/cjs/math/MathLib.js +88 -0
  22. package/lib/cjs/math/index.d.ts +1 -0
  23. package/lib/cjs/math/index.js +17 -0
  24. package/lib/cjs/package.json +1 -0
  25. package/lib/cjs/signatures/authorization.d.ts +20 -0
  26. package/lib/cjs/signatures/authorization.js +25 -0
  27. package/lib/cjs/signatures/erc2612.d.ts +34 -0
  28. package/lib/cjs/signatures/erc2612.js +26 -0
  29. package/lib/cjs/signatures/index.d.ts +4 -0
  30. package/lib/cjs/signatures/index.js +20 -0
  31. package/lib/cjs/signatures/permit2.d.ts +33 -0
  32. package/lib/cjs/signatures/permit2.js +41 -0
  33. package/lib/cjs/signatures/quote.d.ts +34 -0
  34. package/lib/cjs/signatures/quote.js +40 -0
  35. package/lib/cjs/types.d.ts +9 -0
  36. package/lib/cjs/types.js +7 -0
  37. package/lib/esm/abis/blm.d.ts +192 -0
  38. package/lib/esm/abis/blm.js +248 -0
  39. package/lib/esm/abis/errors.d.ts +441 -0
  40. package/lib/esm/abis/errors.js +555 -0
  41. package/lib/esm/abis/index.d.ts +4 -0
  42. package/lib/esm/abis/index.js +4 -0
  43. package/lib/esm/abis/iris.d.ts +1448 -0
  44. package/lib/esm/abis/iris.js +1847 -0
  45. package/lib/esm/abis/whitelist-blm.d.ts +235 -0
  46. package/lib/esm/abis/whitelist-blm.js +304 -0
  47. package/lib/esm/addresses.d.ts +12 -0
  48. package/lib/esm/addresses.js +13 -0
  49. package/lib/esm/chain.d.ts +35 -0
  50. package/lib/esm/chain.js +38 -0
  51. package/lib/esm/constants.d.ts +14 -0
  52. package/lib/esm/constants.js +15 -0
  53. package/lib/esm/index.d.ts +7 -0
  54. package/lib/esm/index.js +7 -0
  55. package/lib/esm/math/MathLib.d.ts +26 -0
  56. package/lib/esm/math/MathLib.js +86 -0
  57. package/lib/esm/math/index.d.ts +1 -0
  58. package/lib/esm/math/index.js +1 -0
  59. package/lib/esm/package.json +1 -0
  60. package/lib/esm/signatures/authorization.d.ts +20 -0
  61. package/lib/esm/signatures/authorization.js +21 -0
  62. package/lib/esm/signatures/erc2612.d.ts +34 -0
  63. package/lib/esm/signatures/erc2612.js +22 -0
  64. package/lib/esm/signatures/index.d.ts +4 -0
  65. package/lib/esm/signatures/index.js +4 -0
  66. package/lib/esm/signatures/permit2.d.ts +33 -0
  67. package/lib/esm/signatures/permit2.js +37 -0
  68. package/lib/esm/signatures/quote.d.ts +34 -0
  69. package/lib/esm/signatures/quote.js +36 -0
  70. package/lib/esm/types.d.ts +9 -0
  71. package/lib/esm/types.js +3 -0
  72. package/package.json +39 -0
  73. package/src/index.ts +7 -0
@@ -0,0 +1,555 @@
1
+ export const errorsAbi = [
2
+ {
3
+ type: "error",
4
+ name: "AclAdminCannotBeZero",
5
+ inputs: [],
6
+ },
7
+ {
8
+ type: "error",
9
+ name: "AddressesProviderAlreadyAdded",
10
+ inputs: [],
11
+ },
12
+ {
13
+ type: "error",
14
+ name: "AddressesProviderNotRegistered",
15
+ inputs: [],
16
+ },
17
+ {
18
+ type: "error",
19
+ name: "ApproveFailed",
20
+ inputs: [],
21
+ },
22
+ {
23
+ type: "error",
24
+ name: "AssetNotBorrowableInIsolation",
25
+ inputs: [],
26
+ },
27
+ {
28
+ type: "error",
29
+ name: "AssetNotListed",
30
+ inputs: [],
31
+ },
32
+ {
33
+ type: "error",
34
+ name: "BorrowCapExceeded",
35
+ inputs: [],
36
+ },
37
+ {
38
+ type: "error",
39
+ name: "BorrowingNotEnabled",
40
+ inputs: [],
41
+ },
42
+ {
43
+ type: "error",
44
+ name: "CallerMustBePool",
45
+ inputs: [],
46
+ },
47
+ {
48
+ type: "error",
49
+ name: "CallerNotAToken",
50
+ inputs: [],
51
+ },
52
+ {
53
+ type: "error",
54
+ name: "CallerNotAssetListingOrPoolAdmin",
55
+ inputs: [],
56
+ },
57
+ {
58
+ type: "error",
59
+ name: "CallerNotPoolAdmin",
60
+ inputs: [],
61
+ },
62
+ {
63
+ type: "error",
64
+ name: "CallerNotPoolConfigurator",
65
+ inputs: [],
66
+ },
67
+ {
68
+ type: "error",
69
+ name: "CallerNotPoolOrEmergencyAdmin",
70
+ inputs: [],
71
+ },
72
+ {
73
+ type: "error",
74
+ name: "CallerNotPositionManager",
75
+ inputs: [],
76
+ },
77
+ {
78
+ type: "error",
79
+ name: "CallerNotRiskOrPoolAdmin",
80
+ inputs: [],
81
+ },
82
+ {
83
+ type: "error",
84
+ name: "CallerNotRiskOrPoolOrEmergencyAdmin",
85
+ inputs: [],
86
+ },
87
+ {
88
+ type: "error",
89
+ name: "CallerNotUmbrella",
90
+ inputs: [],
91
+ },
92
+ {
93
+ type: "error",
94
+ name: "CollateralCannotBeLiquidated",
95
+ inputs: [],
96
+ },
97
+ {
98
+ type: "error",
99
+ name: "CollateralCannotCoverNewBorrow",
100
+ inputs: [],
101
+ },
102
+ {
103
+ type: "error",
104
+ name: "CollateralTokenMismatch",
105
+ inputs: [],
106
+ },
107
+ {
108
+ type: "error",
109
+ name: "DebtCeilingExceeded",
110
+ inputs: [],
111
+ },
112
+ {
113
+ type: "error",
114
+ name: "DebtCeilingNotZero",
115
+ inputs: [],
116
+ },
117
+ {
118
+ type: "error",
119
+ name: "DebtTokenMismatch",
120
+ inputs: [],
121
+ },
122
+ {
123
+ type: "error",
124
+ name: "DeploymentFailed",
125
+ inputs: [],
126
+ },
127
+ {
128
+ type: "error",
129
+ name: "EModeCategoryReserved",
130
+ inputs: [],
131
+ },
132
+ {
133
+ type: "error",
134
+ name: "ETHTransferFailed",
135
+ inputs: [],
136
+ },
137
+ {
138
+ type: "error",
139
+ name: "FlashloanDisabled",
140
+ inputs: [],
141
+ },
142
+ {
143
+ type: "error",
144
+ name: "FlashloanPremiumInvalid",
145
+ inputs: [],
146
+ },
147
+ {
148
+ type: "error",
149
+ name: "HealthFactorLowerThanLiquidationThreshold",
150
+ inputs: [],
151
+ },
152
+ {
153
+ type: "error",
154
+ name: "HealthFactorNotBelowThreshold",
155
+ inputs: [],
156
+ },
157
+ {
158
+ type: "error",
159
+ name: "InconsistentEModeCategory",
160
+ inputs: [],
161
+ },
162
+ {
163
+ type: "error",
164
+ name: "InconsistentFlashloanParams",
165
+ inputs: [],
166
+ },
167
+ {
168
+ type: "error",
169
+ name: "InconsistentParamsLength",
170
+ inputs: [],
171
+ },
172
+ {
173
+ type: "error",
174
+ name: "InvalidAddressesProvider",
175
+ inputs: [],
176
+ },
177
+ {
178
+ type: "error",
179
+ name: "InvalidAddressesProviderId",
180
+ inputs: [],
181
+ },
182
+ {
183
+ type: "error",
184
+ name: "InvalidAmount",
185
+ inputs: [],
186
+ },
187
+ {
188
+ type: "error",
189
+ name: "InvalidBorrowCap",
190
+ inputs: [],
191
+ },
192
+ {
193
+ type: "error",
194
+ name: "InvalidBurnAmount",
195
+ inputs: [],
196
+ },
197
+ {
198
+ type: "error",
199
+ name: "InvalidCollateralInEmode",
200
+ inputs: [
201
+ {
202
+ name: "reserve",
203
+ type: "address",
204
+ internalType: "address",
205
+ },
206
+ {
207
+ name: "categoryId",
208
+ type: "uint256",
209
+ internalType: "uint256",
210
+ },
211
+ ],
212
+ },
213
+ {
214
+ type: "error",
215
+ name: "InvalidDebtCeiling",
216
+ inputs: [],
217
+ },
218
+ {
219
+ type: "error",
220
+ name: "InvalidDebtInEmode",
221
+ inputs: [
222
+ {
223
+ name: "reserve",
224
+ type: "address",
225
+ internalType: "address",
226
+ },
227
+ {
228
+ name: "categoryId",
229
+ type: "uint256",
230
+ internalType: "uint256",
231
+ },
232
+ ],
233
+ },
234
+ {
235
+ type: "error",
236
+ name: "InvalidDecimals",
237
+ inputs: [],
238
+ },
239
+ {
240
+ type: "error",
241
+ name: "InvalidEmodeCategoryParams",
242
+ inputs: [],
243
+ },
244
+ {
245
+ type: "error",
246
+ name: "InvalidExpiration",
247
+ inputs: [],
248
+ },
249
+ {
250
+ type: "error",
251
+ name: "InvalidFlashloanExecutorReturn",
252
+ inputs: [],
253
+ },
254
+ {
255
+ type: "error",
256
+ name: "InvalidFreezeState",
257
+ inputs: [],
258
+ },
259
+ {
260
+ type: "error",
261
+ name: "InvalidGracePeriod",
262
+ inputs: [],
263
+ },
264
+ {
265
+ type: "error",
266
+ name: "InvalidInterestRateModeSelected",
267
+ inputs: [],
268
+ },
269
+ {
270
+ type: "error",
271
+ name: "InvalidLiquidationBonus",
272
+ inputs: [],
273
+ },
274
+ {
275
+ type: "error",
276
+ name: "InvalidLiquidationProtocolFee",
277
+ inputs: [],
278
+ },
279
+ {
280
+ type: "error",
281
+ name: "InvalidLiquidationThreshold",
282
+ inputs: [],
283
+ },
284
+ {
285
+ type: "error",
286
+ name: "InvalidLtv",
287
+ inputs: [],
288
+ },
289
+ {
290
+ type: "error",
291
+ name: "InvalidLtvzeroState",
292
+ inputs: [],
293
+ },
294
+ {
295
+ type: "error",
296
+ name: "InvalidMaxRate",
297
+ inputs: [],
298
+ },
299
+ {
300
+ type: "error",
301
+ name: "InvalidMintAmount",
302
+ inputs: [],
303
+ },
304
+ {
305
+ type: "error",
306
+ name: "InvalidOptimalUsageRatio",
307
+ inputs: [],
308
+ },
309
+ {
310
+ type: "error",
311
+ name: "InvalidReserveFactor",
312
+ inputs: [],
313
+ },
314
+ {
315
+ type: "error",
316
+ name: "InvalidReserveIndex",
317
+ inputs: [],
318
+ },
319
+ {
320
+ type: "error",
321
+ name: "InvalidReserveParams",
322
+ inputs: [],
323
+ },
324
+ {
325
+ type: "error",
326
+ name: "InvalidSupplyCap",
327
+ inputs: [],
328
+ },
329
+ {
330
+ type: "error",
331
+ name: "LiquidationGraceSentinelCheckFailed",
332
+ inputs: [],
333
+ },
334
+ {
335
+ type: "error",
336
+ name: "LtvValidationFailed",
337
+ inputs: [],
338
+ },
339
+ {
340
+ type: "error",
341
+ name: "MustBeEmodeCollateral",
342
+ inputs: [
343
+ {
344
+ name: "reserve",
345
+ type: "address",
346
+ internalType: "address",
347
+ },
348
+ {
349
+ name: "categoryId",
350
+ type: "uint256",
351
+ internalType: "uint256",
352
+ },
353
+ ],
354
+ },
355
+ {
356
+ type: "error",
357
+ name: "MustNotLeaveDust",
358
+ inputs: [],
359
+ },
360
+ {
361
+ type: "error",
362
+ name: "NoDebtOfSelectedType",
363
+ inputs: [],
364
+ },
365
+ {
366
+ type: "error",
367
+ name: "NoExplicitAmountToRepayOnBehalf",
368
+ inputs: [],
369
+ },
370
+ {
371
+ type: "error",
372
+ name: "NoMoreReservesAllowed",
373
+ inputs: [],
374
+ },
375
+ {
376
+ type: "error",
377
+ name: "NotBorrowableInEMode",
378
+ inputs: [],
379
+ },
380
+ {
381
+ type: "error",
382
+ name: "NotContract",
383
+ inputs: [],
384
+ },
385
+ {
386
+ type: "error",
387
+ name: "NotEnoughAvailableUserBalance",
388
+ inputs: [],
389
+ },
390
+ {
391
+ type: "error",
392
+ name: "OperationNotSupported",
393
+ inputs: [],
394
+ },
395
+ {
396
+ type: "error",
397
+ name: "Permit2AmountOverflow",
398
+ inputs: [],
399
+ },
400
+ {
401
+ type: "error",
402
+ name: "Permit2ApproveFailed",
403
+ inputs: [],
404
+ },
405
+ {
406
+ type: "error",
407
+ name: "Permit2Failed",
408
+ inputs: [],
409
+ },
410
+ {
411
+ type: "error",
412
+ name: "Permit2LockdownFailed",
413
+ inputs: [],
414
+ },
415
+ {
416
+ type: "error",
417
+ name: "PoolAddressesDoNotMatch",
418
+ inputs: [],
419
+ },
420
+ {
421
+ type: "error",
422
+ name: "PriceOracleSentinelCheckFailed",
423
+ inputs: [],
424
+ },
425
+ {
426
+ type: "error",
427
+ name: "ReserveAlreadyAdded",
428
+ inputs: [],
429
+ },
430
+ {
431
+ type: "error",
432
+ name: "ReserveAlreadyInitialized",
433
+ inputs: [],
434
+ },
435
+ {
436
+ type: "error",
437
+ name: "ReserveDebtNotZero",
438
+ inputs: [],
439
+ },
440
+ {
441
+ type: "error",
442
+ name: "ReserveFrozen",
443
+ inputs: [],
444
+ },
445
+ {
446
+ type: "error",
447
+ name: "ReserveInactive",
448
+ inputs: [],
449
+ },
450
+ {
451
+ type: "error",
452
+ name: "ReserveLiquidityNotZero",
453
+ inputs: [],
454
+ },
455
+ {
456
+ type: "error",
457
+ name: "ReserveNotInDeficit",
458
+ inputs: [],
459
+ },
460
+ {
461
+ type: "error",
462
+ name: "ReservePaused",
463
+ inputs: [],
464
+ },
465
+ {
466
+ type: "error",
467
+ name: "SaltDoesNotStartWith",
468
+ inputs: [],
469
+ },
470
+ {
471
+ type: "error",
472
+ name: "SelfLiquidation",
473
+ inputs: [],
474
+ },
475
+ {
476
+ type: "error",
477
+ name: "SiloedBorrowingViolation",
478
+ inputs: [],
479
+ },
480
+ {
481
+ type: "error",
482
+ name: "Slope2MustBeGteSlope1",
483
+ inputs: [],
484
+ },
485
+ {
486
+ type: "error",
487
+ name: "SpecifiedCurrencyNotBorrowedByUser",
488
+ inputs: [],
489
+ },
490
+ {
491
+ type: "error",
492
+ name: "SupplyCapExceeded",
493
+ inputs: [],
494
+ },
495
+ {
496
+ type: "error",
497
+ name: "SupplyToAToken",
498
+ inputs: [],
499
+ },
500
+ {
501
+ type: "error",
502
+ name: "TotalSupplyQueryFailed",
503
+ inputs: [],
504
+ },
505
+ {
506
+ type: "error",
507
+ name: "TransferFailed",
508
+ inputs: [],
509
+ },
510
+ {
511
+ type: "error",
512
+ name: "TransferFromFailed",
513
+ inputs: [],
514
+ },
515
+ {
516
+ type: "error",
517
+ name: "UnderlyingBalanceZero",
518
+ inputs: [],
519
+ },
520
+ {
521
+ type: "error",
522
+ name: "UnderlyingCannotBeRescued",
523
+ inputs: [],
524
+ },
525
+ {
526
+ type: "error",
527
+ name: "UnderlyingClaimableRightsNotZero",
528
+ inputs: [],
529
+ },
530
+ {
531
+ type: "error",
532
+ name: "UserCannotHaveDebt",
533
+ inputs: [],
534
+ },
535
+ {
536
+ type: "error",
537
+ name: "UserInIsolationModeOrLtvZero",
538
+ inputs: [],
539
+ },
540
+ {
541
+ type: "error",
542
+ name: "VariableDebtSupplyNotZero",
543
+ inputs: [],
544
+ },
545
+ {
546
+ type: "error",
547
+ name: "WithdrawToAToken",
548
+ inputs: [],
549
+ },
550
+ {
551
+ type: "error",
552
+ name: "ZeroAddressNotValid",
553
+ inputs: [],
554
+ },
555
+ ];
@@ -0,0 +1,4 @@
1
+ export * from "./iris.js";
2
+ export * from "./blm.js";
3
+ export * from "./whitelist-blm.js";
4
+ export * from "./errors.js";
@@ -0,0 +1,4 @@
1
+ export * from "./iris.js";
2
+ export * from "./blm.js";
3
+ export * from "./whitelist-blm.js";
4
+ export * from "./errors.js";