@gearbox-protocol/sdk 14.10.5 → 14.10.7
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 +133 -2
- package/dist/esm/abi/errors.js +130 -1
- package/dist/types/abi/errors.d.ts +186 -0
- package/package.json +1 -1
package/dist/cjs/abi/errors.js
CHANGED
|
@@ -19,12 +19,14 @@ 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,
|
|
25
26
|
iRedstonePriceFeedExceptionsAbi: () => iRedstonePriceFeedExceptionsAbi,
|
|
26
27
|
iRouterErrorsV310Abi: () => iRouterErrorsV310Abi,
|
|
27
|
-
ilpPriceFeedExceptionsAbi: () => ilpPriceFeedExceptionsAbi
|
|
28
|
+
ilpPriceFeedExceptionsAbi: () => ilpPriceFeedExceptionsAbi,
|
|
29
|
+
safeERC20ErrorsAbi: () => safeERC20ErrorsAbi
|
|
28
30
|
});
|
|
29
31
|
module.exports = __toCommonJS(errors_exports);
|
|
30
32
|
const iRedstonePriceFeedExceptionsAbi = [
|
|
@@ -265,7 +267,134 @@ const iPartialLiquidationBotV310ErrorsAbi = [
|
|
|
265
267
|
{ type: "error", name: "SeizedLessThanRequiredException", inputs: [] },
|
|
266
268
|
{ type: "error", name: "UnderlyingNotLiquidatableException", inputs: [] }
|
|
267
269
|
];
|
|
270
|
+
const iERC20ErrorsAbi = [
|
|
271
|
+
{
|
|
272
|
+
type: "error",
|
|
273
|
+
name: "ERC20InsufficientAllowance",
|
|
274
|
+
inputs: [
|
|
275
|
+
{
|
|
276
|
+
name: "spender",
|
|
277
|
+
type: "address",
|
|
278
|
+
internalType: "address"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
name: "allowance",
|
|
282
|
+
type: "uint256",
|
|
283
|
+
internalType: "uint256"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
name: "needed",
|
|
287
|
+
type: "uint256",
|
|
288
|
+
internalType: "uint256"
|
|
289
|
+
}
|
|
290
|
+
]
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
type: "error",
|
|
294
|
+
name: "ERC20InsufficientBalance",
|
|
295
|
+
inputs: [
|
|
296
|
+
{
|
|
297
|
+
name: "sender",
|
|
298
|
+
type: "address",
|
|
299
|
+
internalType: "address"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
name: "balance",
|
|
303
|
+
type: "uint256",
|
|
304
|
+
internalType: "uint256"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
name: "needed",
|
|
308
|
+
type: "uint256",
|
|
309
|
+
internalType: "uint256"
|
|
310
|
+
}
|
|
311
|
+
]
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
type: "error",
|
|
315
|
+
name: "ERC20InvalidApprover",
|
|
316
|
+
inputs: [
|
|
317
|
+
{
|
|
318
|
+
name: "approver",
|
|
319
|
+
type: "address",
|
|
320
|
+
internalType: "address"
|
|
321
|
+
}
|
|
322
|
+
]
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
type: "error",
|
|
326
|
+
name: "ERC20InvalidReceiver",
|
|
327
|
+
inputs: [
|
|
328
|
+
{
|
|
329
|
+
name: "receiver",
|
|
330
|
+
type: "address",
|
|
331
|
+
internalType: "address"
|
|
332
|
+
}
|
|
333
|
+
]
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
type: "error",
|
|
337
|
+
name: "ERC20InvalidSender",
|
|
338
|
+
inputs: [
|
|
339
|
+
{
|
|
340
|
+
name: "sender",
|
|
341
|
+
type: "address",
|
|
342
|
+
internalType: "address"
|
|
343
|
+
}
|
|
344
|
+
]
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
type: "error",
|
|
348
|
+
name: "ERC20InvalidSpender",
|
|
349
|
+
inputs: [
|
|
350
|
+
{
|
|
351
|
+
name: "spender",
|
|
352
|
+
type: "address",
|
|
353
|
+
internalType: "address"
|
|
354
|
+
}
|
|
355
|
+
]
|
|
356
|
+
}
|
|
357
|
+
];
|
|
358
|
+
const safeERC20ErrorsAbi = [
|
|
359
|
+
{
|
|
360
|
+
type: "error",
|
|
361
|
+
name: "ForceApproveFailed",
|
|
362
|
+
inputs: []
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
type: "error",
|
|
366
|
+
name: "Permit2TransferAmountTooHigh",
|
|
367
|
+
inputs: []
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
type: "error",
|
|
371
|
+
name: "SafeDecreaseAllowanceFailed",
|
|
372
|
+
inputs: []
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
type: "error",
|
|
376
|
+
name: "SafeIncreaseAllowanceFailed",
|
|
377
|
+
inputs: []
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
type: "error",
|
|
381
|
+
name: "SafePermitBadLength",
|
|
382
|
+
inputs: []
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
type: "error",
|
|
386
|
+
name: "SafeTransferFailed",
|
|
387
|
+
inputs: []
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
type: "error",
|
|
391
|
+
name: "SafeTransferFromFailed",
|
|
392
|
+
inputs: []
|
|
393
|
+
}
|
|
394
|
+
];
|
|
268
395
|
const errorAbis = [
|
|
396
|
+
...iERC20ErrorsAbi,
|
|
397
|
+
...safeERC20ErrorsAbi,
|
|
269
398
|
...iExceptionsV310Abi,
|
|
270
399
|
...iRedstonePriceFeedExceptionsAbi,
|
|
271
400
|
...iRedstoneErrorsAbi,
|
|
@@ -276,10 +405,12 @@ const errorAbis = [
|
|
|
276
405
|
// Annotate the CommonJS export names for ESM import in node:
|
|
277
406
|
0 && (module.exports = {
|
|
278
407
|
errorAbis,
|
|
408
|
+
iERC20ErrorsAbi,
|
|
279
409
|
iExceptionsV310Abi,
|
|
280
410
|
iPartialLiquidationBotV310ErrorsAbi,
|
|
281
411
|
iRedstoneErrorsAbi,
|
|
282
412
|
iRedstonePriceFeedExceptionsAbi,
|
|
283
413
|
iRouterErrorsV310Abi,
|
|
284
|
-
ilpPriceFeedExceptionsAbi
|
|
414
|
+
ilpPriceFeedExceptionsAbi,
|
|
415
|
+
safeERC20ErrorsAbi
|
|
285
416
|
});
|
package/dist/esm/abi/errors.js
CHANGED
|
@@ -236,7 +236,134 @@ 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
|
+
];
|
|
327
|
+
const safeERC20ErrorsAbi = [
|
|
328
|
+
{
|
|
329
|
+
type: "error",
|
|
330
|
+
name: "ForceApproveFailed",
|
|
331
|
+
inputs: []
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
type: "error",
|
|
335
|
+
name: "Permit2TransferAmountTooHigh",
|
|
336
|
+
inputs: []
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
type: "error",
|
|
340
|
+
name: "SafeDecreaseAllowanceFailed",
|
|
341
|
+
inputs: []
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
type: "error",
|
|
345
|
+
name: "SafeIncreaseAllowanceFailed",
|
|
346
|
+
inputs: []
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
type: "error",
|
|
350
|
+
name: "SafePermitBadLength",
|
|
351
|
+
inputs: []
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
type: "error",
|
|
355
|
+
name: "SafeTransferFailed",
|
|
356
|
+
inputs: []
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
type: "error",
|
|
360
|
+
name: "SafeTransferFromFailed",
|
|
361
|
+
inputs: []
|
|
362
|
+
}
|
|
363
|
+
];
|
|
239
364
|
const errorAbis = [
|
|
365
|
+
...iERC20ErrorsAbi,
|
|
366
|
+
...safeERC20ErrorsAbi,
|
|
240
367
|
...iExceptionsV310Abi,
|
|
241
368
|
...iRedstonePriceFeedExceptionsAbi,
|
|
242
369
|
...iRedstoneErrorsAbi,
|
|
@@ -246,10 +373,12 @@ const errorAbis = [
|
|
|
246
373
|
];
|
|
247
374
|
export {
|
|
248
375
|
errorAbis,
|
|
376
|
+
iERC20ErrorsAbi,
|
|
249
377
|
iExceptionsV310Abi,
|
|
250
378
|
iPartialLiquidationBotV310ErrorsAbi,
|
|
251
379
|
iRedstoneErrorsAbi,
|
|
252
380
|
iRedstonePriceFeedExceptionsAbi,
|
|
253
381
|
iRouterErrorsV310Abi,
|
|
254
|
-
ilpPriceFeedExceptionsAbi
|
|
382
|
+
ilpPriceFeedExceptionsAbi,
|
|
383
|
+
safeERC20ErrorsAbi
|
|
255
384
|
};
|
|
@@ -564,7 +564,193 @@ 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
|
+
}];
|
|
632
|
+
export declare const safeERC20ErrorsAbi: readonly [{
|
|
633
|
+
readonly type: "error";
|
|
634
|
+
readonly name: "ForceApproveFailed";
|
|
635
|
+
readonly inputs: readonly [];
|
|
636
|
+
}, {
|
|
637
|
+
readonly type: "error";
|
|
638
|
+
readonly name: "Permit2TransferAmountTooHigh";
|
|
639
|
+
readonly inputs: readonly [];
|
|
640
|
+
}, {
|
|
641
|
+
readonly type: "error";
|
|
642
|
+
readonly name: "SafeDecreaseAllowanceFailed";
|
|
643
|
+
readonly inputs: readonly [];
|
|
644
|
+
}, {
|
|
645
|
+
readonly type: "error";
|
|
646
|
+
readonly name: "SafeIncreaseAllowanceFailed";
|
|
647
|
+
readonly inputs: readonly [];
|
|
648
|
+
}, {
|
|
649
|
+
readonly type: "error";
|
|
650
|
+
readonly name: "SafePermitBadLength";
|
|
651
|
+
readonly inputs: readonly [];
|
|
652
|
+
}, {
|
|
653
|
+
readonly type: "error";
|
|
654
|
+
readonly name: "SafeTransferFailed";
|
|
655
|
+
readonly inputs: readonly [];
|
|
656
|
+
}, {
|
|
657
|
+
readonly type: "error";
|
|
658
|
+
readonly name: "SafeTransferFromFailed";
|
|
659
|
+
readonly inputs: readonly [];
|
|
660
|
+
}];
|
|
567
661
|
export declare const errorAbis: readonly [{
|
|
662
|
+
readonly type: "error";
|
|
663
|
+
readonly name: "ERC20InsufficientAllowance";
|
|
664
|
+
readonly inputs: readonly [{
|
|
665
|
+
readonly name: "spender";
|
|
666
|
+
readonly type: "address";
|
|
667
|
+
readonly internalType: "address";
|
|
668
|
+
}, {
|
|
669
|
+
readonly name: "allowance";
|
|
670
|
+
readonly type: "uint256";
|
|
671
|
+
readonly internalType: "uint256";
|
|
672
|
+
}, {
|
|
673
|
+
readonly name: "needed";
|
|
674
|
+
readonly type: "uint256";
|
|
675
|
+
readonly internalType: "uint256";
|
|
676
|
+
}];
|
|
677
|
+
}, {
|
|
678
|
+
readonly type: "error";
|
|
679
|
+
readonly name: "ERC20InsufficientBalance";
|
|
680
|
+
readonly inputs: readonly [{
|
|
681
|
+
readonly name: "sender";
|
|
682
|
+
readonly type: "address";
|
|
683
|
+
readonly internalType: "address";
|
|
684
|
+
}, {
|
|
685
|
+
readonly name: "balance";
|
|
686
|
+
readonly type: "uint256";
|
|
687
|
+
readonly internalType: "uint256";
|
|
688
|
+
}, {
|
|
689
|
+
readonly name: "needed";
|
|
690
|
+
readonly type: "uint256";
|
|
691
|
+
readonly internalType: "uint256";
|
|
692
|
+
}];
|
|
693
|
+
}, {
|
|
694
|
+
readonly type: "error";
|
|
695
|
+
readonly name: "ERC20InvalidApprover";
|
|
696
|
+
readonly inputs: readonly [{
|
|
697
|
+
readonly name: "approver";
|
|
698
|
+
readonly type: "address";
|
|
699
|
+
readonly internalType: "address";
|
|
700
|
+
}];
|
|
701
|
+
}, {
|
|
702
|
+
readonly type: "error";
|
|
703
|
+
readonly name: "ERC20InvalidReceiver";
|
|
704
|
+
readonly inputs: readonly [{
|
|
705
|
+
readonly name: "receiver";
|
|
706
|
+
readonly type: "address";
|
|
707
|
+
readonly internalType: "address";
|
|
708
|
+
}];
|
|
709
|
+
}, {
|
|
710
|
+
readonly type: "error";
|
|
711
|
+
readonly name: "ERC20InvalidSender";
|
|
712
|
+
readonly inputs: readonly [{
|
|
713
|
+
readonly name: "sender";
|
|
714
|
+
readonly type: "address";
|
|
715
|
+
readonly internalType: "address";
|
|
716
|
+
}];
|
|
717
|
+
}, {
|
|
718
|
+
readonly type: "error";
|
|
719
|
+
readonly name: "ERC20InvalidSpender";
|
|
720
|
+
readonly inputs: readonly [{
|
|
721
|
+
readonly name: "spender";
|
|
722
|
+
readonly type: "address";
|
|
723
|
+
readonly internalType: "address";
|
|
724
|
+
}];
|
|
725
|
+
}, {
|
|
726
|
+
readonly type: "error";
|
|
727
|
+
readonly name: "ForceApproveFailed";
|
|
728
|
+
readonly inputs: readonly [];
|
|
729
|
+
}, {
|
|
730
|
+
readonly type: "error";
|
|
731
|
+
readonly name: "Permit2TransferAmountTooHigh";
|
|
732
|
+
readonly inputs: readonly [];
|
|
733
|
+
}, {
|
|
734
|
+
readonly type: "error";
|
|
735
|
+
readonly name: "SafeDecreaseAllowanceFailed";
|
|
736
|
+
readonly inputs: readonly [];
|
|
737
|
+
}, {
|
|
738
|
+
readonly type: "error";
|
|
739
|
+
readonly name: "SafeIncreaseAllowanceFailed";
|
|
740
|
+
readonly inputs: readonly [];
|
|
741
|
+
}, {
|
|
742
|
+
readonly type: "error";
|
|
743
|
+
readonly name: "SafePermitBadLength";
|
|
744
|
+
readonly inputs: readonly [];
|
|
745
|
+
}, {
|
|
746
|
+
readonly type: "error";
|
|
747
|
+
readonly name: "SafeTransferFailed";
|
|
748
|
+
readonly inputs: readonly [];
|
|
749
|
+
}, {
|
|
750
|
+
readonly type: "error";
|
|
751
|
+
readonly name: "SafeTransferFromFailed";
|
|
752
|
+
readonly inputs: readonly [];
|
|
753
|
+
}, {
|
|
568
754
|
readonly type: "error";
|
|
569
755
|
readonly name: "ActiveCreditAccountNotSetException";
|
|
570
756
|
readonly inputs: readonly [];
|