@gearbox-protocol/sdk 14.10.5 → 14.10.6
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/dist/cjs/abi/errors.js +91 -0
- package/dist/esm/abi/errors.js +90 -0
- package/dist/types/abi/errors.d.ts +129 -0
- package/package.json +1 -1
package/dist/cjs/abi/errors.js
CHANGED
|
@@ -19,6 +19,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
var errors_exports = {};
|
|
20
20
|
__export(errors_exports, {
|
|
21
21
|
errorAbis: () => errorAbis,
|
|
22
|
+
iERC20ErrorsAbi: () => iERC20ErrorsAbi,
|
|
22
23
|
iExceptionsV310Abi: () => iExceptionsV310Abi,
|
|
23
24
|
iPartialLiquidationBotV310ErrorsAbi: () => iPartialLiquidationBotV310ErrorsAbi,
|
|
24
25
|
iRedstoneErrorsAbi: () => iRedstoneErrorsAbi,
|
|
@@ -265,7 +266,96 @@ const iPartialLiquidationBotV310ErrorsAbi = [
|
|
|
265
266
|
{ type: "error", name: "SeizedLessThanRequiredException", inputs: [] },
|
|
266
267
|
{ type: "error", name: "UnderlyingNotLiquidatableException", inputs: [] }
|
|
267
268
|
];
|
|
269
|
+
const iERC20ErrorsAbi = [
|
|
270
|
+
{
|
|
271
|
+
type: "error",
|
|
272
|
+
name: "ERC20InsufficientAllowance",
|
|
273
|
+
inputs: [
|
|
274
|
+
{
|
|
275
|
+
name: "spender",
|
|
276
|
+
type: "address",
|
|
277
|
+
internalType: "address"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
name: "allowance",
|
|
281
|
+
type: "uint256",
|
|
282
|
+
internalType: "uint256"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
name: "needed",
|
|
286
|
+
type: "uint256",
|
|
287
|
+
internalType: "uint256"
|
|
288
|
+
}
|
|
289
|
+
]
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
type: "error",
|
|
293
|
+
name: "ERC20InsufficientBalance",
|
|
294
|
+
inputs: [
|
|
295
|
+
{
|
|
296
|
+
name: "sender",
|
|
297
|
+
type: "address",
|
|
298
|
+
internalType: "address"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
name: "balance",
|
|
302
|
+
type: "uint256",
|
|
303
|
+
internalType: "uint256"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
name: "needed",
|
|
307
|
+
type: "uint256",
|
|
308
|
+
internalType: "uint256"
|
|
309
|
+
}
|
|
310
|
+
]
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
type: "error",
|
|
314
|
+
name: "ERC20InvalidApprover",
|
|
315
|
+
inputs: [
|
|
316
|
+
{
|
|
317
|
+
name: "approver",
|
|
318
|
+
type: "address",
|
|
319
|
+
internalType: "address"
|
|
320
|
+
}
|
|
321
|
+
]
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
type: "error",
|
|
325
|
+
name: "ERC20InvalidReceiver",
|
|
326
|
+
inputs: [
|
|
327
|
+
{
|
|
328
|
+
name: "receiver",
|
|
329
|
+
type: "address",
|
|
330
|
+
internalType: "address"
|
|
331
|
+
}
|
|
332
|
+
]
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
type: "error",
|
|
336
|
+
name: "ERC20InvalidSender",
|
|
337
|
+
inputs: [
|
|
338
|
+
{
|
|
339
|
+
name: "sender",
|
|
340
|
+
type: "address",
|
|
341
|
+
internalType: "address"
|
|
342
|
+
}
|
|
343
|
+
]
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
type: "error",
|
|
347
|
+
name: "ERC20InvalidSpender",
|
|
348
|
+
inputs: [
|
|
349
|
+
{
|
|
350
|
+
name: "spender",
|
|
351
|
+
type: "address",
|
|
352
|
+
internalType: "address"
|
|
353
|
+
}
|
|
354
|
+
]
|
|
355
|
+
}
|
|
356
|
+
];
|
|
268
357
|
const errorAbis = [
|
|
358
|
+
...iERC20ErrorsAbi,
|
|
269
359
|
...iExceptionsV310Abi,
|
|
270
360
|
...iRedstonePriceFeedExceptionsAbi,
|
|
271
361
|
...iRedstoneErrorsAbi,
|
|
@@ -276,6 +366,7 @@ const errorAbis = [
|
|
|
276
366
|
// Annotate the CommonJS export names for ESM import in node:
|
|
277
367
|
0 && (module.exports = {
|
|
278
368
|
errorAbis,
|
|
369
|
+
iERC20ErrorsAbi,
|
|
279
370
|
iExceptionsV310Abi,
|
|
280
371
|
iPartialLiquidationBotV310ErrorsAbi,
|
|
281
372
|
iRedstoneErrorsAbi,
|
package/dist/esm/abi/errors.js
CHANGED
|
@@ -236,7 +236,96 @@ const iPartialLiquidationBotV310ErrorsAbi = [
|
|
|
236
236
|
{ type: "error", name: "SeizedLessThanRequiredException", inputs: [] },
|
|
237
237
|
{ type: "error", name: "UnderlyingNotLiquidatableException", inputs: [] }
|
|
238
238
|
];
|
|
239
|
+
const iERC20ErrorsAbi = [
|
|
240
|
+
{
|
|
241
|
+
type: "error",
|
|
242
|
+
name: "ERC20InsufficientAllowance",
|
|
243
|
+
inputs: [
|
|
244
|
+
{
|
|
245
|
+
name: "spender",
|
|
246
|
+
type: "address",
|
|
247
|
+
internalType: "address"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
name: "allowance",
|
|
251
|
+
type: "uint256",
|
|
252
|
+
internalType: "uint256"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
name: "needed",
|
|
256
|
+
type: "uint256",
|
|
257
|
+
internalType: "uint256"
|
|
258
|
+
}
|
|
259
|
+
]
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
type: "error",
|
|
263
|
+
name: "ERC20InsufficientBalance",
|
|
264
|
+
inputs: [
|
|
265
|
+
{
|
|
266
|
+
name: "sender",
|
|
267
|
+
type: "address",
|
|
268
|
+
internalType: "address"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
name: "balance",
|
|
272
|
+
type: "uint256",
|
|
273
|
+
internalType: "uint256"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
name: "needed",
|
|
277
|
+
type: "uint256",
|
|
278
|
+
internalType: "uint256"
|
|
279
|
+
}
|
|
280
|
+
]
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
type: "error",
|
|
284
|
+
name: "ERC20InvalidApprover",
|
|
285
|
+
inputs: [
|
|
286
|
+
{
|
|
287
|
+
name: "approver",
|
|
288
|
+
type: "address",
|
|
289
|
+
internalType: "address"
|
|
290
|
+
}
|
|
291
|
+
]
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
type: "error",
|
|
295
|
+
name: "ERC20InvalidReceiver",
|
|
296
|
+
inputs: [
|
|
297
|
+
{
|
|
298
|
+
name: "receiver",
|
|
299
|
+
type: "address",
|
|
300
|
+
internalType: "address"
|
|
301
|
+
}
|
|
302
|
+
]
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
type: "error",
|
|
306
|
+
name: "ERC20InvalidSender",
|
|
307
|
+
inputs: [
|
|
308
|
+
{
|
|
309
|
+
name: "sender",
|
|
310
|
+
type: "address",
|
|
311
|
+
internalType: "address"
|
|
312
|
+
}
|
|
313
|
+
]
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
type: "error",
|
|
317
|
+
name: "ERC20InvalidSpender",
|
|
318
|
+
inputs: [
|
|
319
|
+
{
|
|
320
|
+
name: "spender",
|
|
321
|
+
type: "address",
|
|
322
|
+
internalType: "address"
|
|
323
|
+
}
|
|
324
|
+
]
|
|
325
|
+
}
|
|
326
|
+
];
|
|
239
327
|
const errorAbis = [
|
|
328
|
+
...iERC20ErrorsAbi,
|
|
240
329
|
...iExceptionsV310Abi,
|
|
241
330
|
...iRedstonePriceFeedExceptionsAbi,
|
|
242
331
|
...iRedstoneErrorsAbi,
|
|
@@ -246,6 +335,7 @@ const errorAbis = [
|
|
|
246
335
|
];
|
|
247
336
|
export {
|
|
248
337
|
errorAbis,
|
|
338
|
+
iERC20ErrorsAbi,
|
|
249
339
|
iExceptionsV310Abi,
|
|
250
340
|
iPartialLiquidationBotV310ErrorsAbi,
|
|
251
341
|
iRedstoneErrorsAbi,
|
|
@@ -564,7 +564,136 @@ export declare const iPartialLiquidationBotV310ErrorsAbi: readonly [{
|
|
|
564
564
|
readonly name: "UnderlyingNotLiquidatableException";
|
|
565
565
|
readonly inputs: readonly [];
|
|
566
566
|
}];
|
|
567
|
+
export declare const iERC20ErrorsAbi: readonly [{
|
|
568
|
+
readonly type: "error";
|
|
569
|
+
readonly name: "ERC20InsufficientAllowance";
|
|
570
|
+
readonly inputs: readonly [{
|
|
571
|
+
readonly name: "spender";
|
|
572
|
+
readonly type: "address";
|
|
573
|
+
readonly internalType: "address";
|
|
574
|
+
}, {
|
|
575
|
+
readonly name: "allowance";
|
|
576
|
+
readonly type: "uint256";
|
|
577
|
+
readonly internalType: "uint256";
|
|
578
|
+
}, {
|
|
579
|
+
readonly name: "needed";
|
|
580
|
+
readonly type: "uint256";
|
|
581
|
+
readonly internalType: "uint256";
|
|
582
|
+
}];
|
|
583
|
+
}, {
|
|
584
|
+
readonly type: "error";
|
|
585
|
+
readonly name: "ERC20InsufficientBalance";
|
|
586
|
+
readonly inputs: readonly [{
|
|
587
|
+
readonly name: "sender";
|
|
588
|
+
readonly type: "address";
|
|
589
|
+
readonly internalType: "address";
|
|
590
|
+
}, {
|
|
591
|
+
readonly name: "balance";
|
|
592
|
+
readonly type: "uint256";
|
|
593
|
+
readonly internalType: "uint256";
|
|
594
|
+
}, {
|
|
595
|
+
readonly name: "needed";
|
|
596
|
+
readonly type: "uint256";
|
|
597
|
+
readonly internalType: "uint256";
|
|
598
|
+
}];
|
|
599
|
+
}, {
|
|
600
|
+
readonly type: "error";
|
|
601
|
+
readonly name: "ERC20InvalidApprover";
|
|
602
|
+
readonly inputs: readonly [{
|
|
603
|
+
readonly name: "approver";
|
|
604
|
+
readonly type: "address";
|
|
605
|
+
readonly internalType: "address";
|
|
606
|
+
}];
|
|
607
|
+
}, {
|
|
608
|
+
readonly type: "error";
|
|
609
|
+
readonly name: "ERC20InvalidReceiver";
|
|
610
|
+
readonly inputs: readonly [{
|
|
611
|
+
readonly name: "receiver";
|
|
612
|
+
readonly type: "address";
|
|
613
|
+
readonly internalType: "address";
|
|
614
|
+
}];
|
|
615
|
+
}, {
|
|
616
|
+
readonly type: "error";
|
|
617
|
+
readonly name: "ERC20InvalidSender";
|
|
618
|
+
readonly inputs: readonly [{
|
|
619
|
+
readonly name: "sender";
|
|
620
|
+
readonly type: "address";
|
|
621
|
+
readonly internalType: "address";
|
|
622
|
+
}];
|
|
623
|
+
}, {
|
|
624
|
+
readonly type: "error";
|
|
625
|
+
readonly name: "ERC20InvalidSpender";
|
|
626
|
+
readonly inputs: readonly [{
|
|
627
|
+
readonly name: "spender";
|
|
628
|
+
readonly type: "address";
|
|
629
|
+
readonly internalType: "address";
|
|
630
|
+
}];
|
|
631
|
+
}];
|
|
567
632
|
export declare const errorAbis: readonly [{
|
|
633
|
+
readonly type: "error";
|
|
634
|
+
readonly name: "ERC20InsufficientAllowance";
|
|
635
|
+
readonly inputs: readonly [{
|
|
636
|
+
readonly name: "spender";
|
|
637
|
+
readonly type: "address";
|
|
638
|
+
readonly internalType: "address";
|
|
639
|
+
}, {
|
|
640
|
+
readonly name: "allowance";
|
|
641
|
+
readonly type: "uint256";
|
|
642
|
+
readonly internalType: "uint256";
|
|
643
|
+
}, {
|
|
644
|
+
readonly name: "needed";
|
|
645
|
+
readonly type: "uint256";
|
|
646
|
+
readonly internalType: "uint256";
|
|
647
|
+
}];
|
|
648
|
+
}, {
|
|
649
|
+
readonly type: "error";
|
|
650
|
+
readonly name: "ERC20InsufficientBalance";
|
|
651
|
+
readonly inputs: readonly [{
|
|
652
|
+
readonly name: "sender";
|
|
653
|
+
readonly type: "address";
|
|
654
|
+
readonly internalType: "address";
|
|
655
|
+
}, {
|
|
656
|
+
readonly name: "balance";
|
|
657
|
+
readonly type: "uint256";
|
|
658
|
+
readonly internalType: "uint256";
|
|
659
|
+
}, {
|
|
660
|
+
readonly name: "needed";
|
|
661
|
+
readonly type: "uint256";
|
|
662
|
+
readonly internalType: "uint256";
|
|
663
|
+
}];
|
|
664
|
+
}, {
|
|
665
|
+
readonly type: "error";
|
|
666
|
+
readonly name: "ERC20InvalidApprover";
|
|
667
|
+
readonly inputs: readonly [{
|
|
668
|
+
readonly name: "approver";
|
|
669
|
+
readonly type: "address";
|
|
670
|
+
readonly internalType: "address";
|
|
671
|
+
}];
|
|
672
|
+
}, {
|
|
673
|
+
readonly type: "error";
|
|
674
|
+
readonly name: "ERC20InvalidReceiver";
|
|
675
|
+
readonly inputs: readonly [{
|
|
676
|
+
readonly name: "receiver";
|
|
677
|
+
readonly type: "address";
|
|
678
|
+
readonly internalType: "address";
|
|
679
|
+
}];
|
|
680
|
+
}, {
|
|
681
|
+
readonly type: "error";
|
|
682
|
+
readonly name: "ERC20InvalidSender";
|
|
683
|
+
readonly inputs: readonly [{
|
|
684
|
+
readonly name: "sender";
|
|
685
|
+
readonly type: "address";
|
|
686
|
+
readonly internalType: "address";
|
|
687
|
+
}];
|
|
688
|
+
}, {
|
|
689
|
+
readonly type: "error";
|
|
690
|
+
readonly name: "ERC20InvalidSpender";
|
|
691
|
+
readonly inputs: readonly [{
|
|
692
|
+
readonly name: "spender";
|
|
693
|
+
readonly type: "address";
|
|
694
|
+
readonly internalType: "address";
|
|
695
|
+
}];
|
|
696
|
+
}, {
|
|
568
697
|
readonly type: "error";
|
|
569
698
|
readonly name: "ActiveCreditAccountNotSetException";
|
|
570
699
|
readonly inputs: readonly [];
|