@gearbox-protocol/sdk 14.12.0-next.47 → 14.12.0-next.48

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 (32) hide show
  1. package/dist/cjs/abi/compressors/liquidationCompressor.js +215 -0
  2. package/dist/cjs/abi/compressors/subcompressors/liquidation/midasLiquidationSubcompressor.js +104 -0
  3. package/dist/cjs/abi/compressors/subcompressors/liquidation/securitizeLiquidationSubcompressor.js +104 -0
  4. package/dist/cjs/dev/withdrawalAbi.js +104 -66
  5. package/dist/cjs/plugins/adapters/abi/adapters/iMidasGatewayAdapterV311.js +2 -306
  6. package/dist/cjs/plugins/adapters/abi/index.js +2 -0
  7. package/dist/cjs/plugins/adapters/abi/midas/iMidasGatewayV311.js +194 -0
  8. package/dist/cjs/plugins/adapters/abi/midas/index.js +22 -0
  9. package/dist/cjs/plugins/adapters/abi/securitize/iSecuritizeRedemptionGatewayV311.js +184 -24
  10. package/dist/cjs/plugins/adapters/contracts/MidasGatewayAdapterContract.js +2 -1
  11. package/dist/esm/abi/compressors/liquidationCompressor.js +191 -0
  12. package/dist/esm/abi/compressors/subcompressors/liquidation/midasLiquidationSubcompressor.js +80 -0
  13. package/dist/esm/abi/compressors/subcompressors/liquidation/securitizeLiquidationSubcompressor.js +80 -0
  14. package/dist/esm/dev/withdrawalAbi.js +104 -66
  15. package/dist/esm/plugins/adapters/abi/adapters/iMidasGatewayAdapterV311.js +1 -304
  16. package/dist/esm/plugins/adapters/abi/index.js +1 -0
  17. package/dist/esm/plugins/adapters/abi/midas/iMidasGatewayV311.js +170 -0
  18. package/dist/esm/plugins/adapters/abi/midas/index.js +1 -0
  19. package/dist/esm/plugins/adapters/abi/securitize/iSecuritizeRedemptionGatewayV311.js +184 -24
  20. package/dist/esm/plugins/adapters/contracts/MidasGatewayAdapterContract.js +2 -4
  21. package/dist/types/abi/compressors/liquidationCompressor.d.ts +262 -0
  22. package/dist/types/abi/compressors/subcompressors/liquidation/midasLiquidationSubcompressor.d.ts +111 -0
  23. package/dist/types/abi/compressors/subcompressors/liquidation/securitizeLiquidationSubcompressor.d.ts +111 -0
  24. package/dist/types/dev/withdrawalAbi.d.ts +81 -53
  25. package/dist/types/plugins/adapters/abi/adapters/iMidasGatewayAdapterV311.d.ts +0 -233
  26. package/dist/types/plugins/adapters/abi/index.d.ts +1 -0
  27. package/dist/types/plugins/adapters/abi/midas/iMidasGatewayV311.d.ts +261 -0
  28. package/dist/types/plugins/adapters/abi/midas/index.d.ts +1 -0
  29. package/dist/types/plugins/adapters/abi/securitize/iSecuritizeRedemptionGatewayV311.d.ts +24 -0
  30. package/dist/types/plugins/adapters/contracts/MidasGatewayAdapterContract.d.ts +28 -0
  31. package/dist/types/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.d.ts +24 -0
  32. package/package.json +1 -1
@@ -442,309 +442,6 @@ const iMidasGatewayAdapterV311Abi = [
442
442
  inputs: []
443
443
  }
444
444
  ];
445
- const iMidasGatewayV311Abi = [
446
- {
447
- type: "function",
448
- name: "accessControl",
449
- inputs: [],
450
- outputs: [
451
- {
452
- name: "",
453
- type: "address",
454
- internalType: "address"
455
- }
456
- ],
457
- stateMutability: "view"
458
- },
459
- {
460
- type: "function",
461
- name: "contractType",
462
- inputs: [],
463
- outputs: [
464
- {
465
- name: "",
466
- type: "bytes32",
467
- internalType: "bytes32"
468
- }
469
- ],
470
- stateMutability: "view"
471
- },
472
- {
473
- type: "function",
474
- name: "depositInstant",
475
- inputs: [
476
- {
477
- name: "amountToken",
478
- type: "uint256",
479
- internalType: "uint256"
480
- },
481
- {
482
- name: "minReceiveAmount",
483
- type: "uint256",
484
- internalType: "uint256"
485
- },
486
- {
487
- name: "referrerId",
488
- type: "bytes32",
489
- internalType: "bytes32"
490
- }
491
- ],
492
- outputs: [],
493
- stateMutability: "nonpayable"
494
- },
495
- {
496
- type: "function",
497
- name: "mToken",
498
- inputs: [],
499
- outputs: [
500
- {
501
- name: "",
502
- type: "address",
503
- internalType: "address"
504
- }
505
- ],
506
- stateMutability: "view"
507
- },
508
- {
509
- type: "function",
510
- name: "pendingAndClaimableTokenOutAmounts",
511
- inputs: [
512
- {
513
- name: "account",
514
- type: "address",
515
- internalType: "address"
516
- }
517
- ],
518
- outputs: [
519
- {
520
- name: "pendingAmount",
521
- type: "uint256",
522
- internalType: "uint256"
523
- },
524
- {
525
- name: "claimableAmount",
526
- type: "uint256",
527
- internalType: "uint256"
528
- }
529
- ],
530
- stateMutability: "view"
531
- },
532
- {
533
- type: "function",
534
- name: "pendingRedeemers",
535
- inputs: [
536
- {
537
- name: "account",
538
- type: "address",
539
- internalType: "address"
540
- }
541
- ],
542
- outputs: [
543
- {
544
- name: "redeemers",
545
- type: "address[]",
546
- internalType: "address[]"
547
- }
548
- ],
549
- stateMutability: "view"
550
- },
551
- {
552
- type: "function",
553
- name: "phantomToken",
554
- inputs: [],
555
- outputs: [
556
- {
557
- name: "",
558
- type: "address",
559
- internalType: "address"
560
- }
561
- ],
562
- stateMutability: "view"
563
- },
564
- {
565
- type: "function",
566
- name: "quoteToken",
567
- inputs: [],
568
- outputs: [
569
- {
570
- name: "",
571
- type: "address",
572
- internalType: "address"
573
- }
574
- ],
575
- stateMutability: "view"
576
- },
577
- {
578
- type: "function",
579
- name: "redeemInstant",
580
- inputs: [
581
- {
582
- name: "amountMTokenIn",
583
- type: "uint256",
584
- internalType: "uint256"
585
- },
586
- {
587
- name: "minReceiveAmount",
588
- type: "uint256",
589
- internalType: "uint256"
590
- }
591
- ],
592
- outputs: [],
593
- stateMutability: "nonpayable"
594
- },
595
- {
596
- type: "function",
597
- name: "redemptionLogger",
598
- inputs: [],
599
- outputs: [
600
- {
601
- name: "",
602
- type: "address",
603
- internalType: "address"
604
- }
605
- ],
606
- stateMutability: "view"
607
- },
608
- {
609
- type: "function",
610
- name: "requestRedeem",
611
- inputs: [
612
- {
613
- name: "amountMTokenIn",
614
- type: "uint256",
615
- internalType: "uint256"
616
- },
617
- {
618
- name: "extraData",
619
- type: "bytes",
620
- internalType: "bytes"
621
- }
622
- ],
623
- outputs: [],
624
- stateMutability: "nonpayable"
625
- },
626
- {
627
- type: "function",
628
- name: "transferMaster",
629
- inputs: [],
630
- outputs: [
631
- {
632
- name: "",
633
- type: "address",
634
- internalType: "address"
635
- }
636
- ],
637
- stateMutability: "view"
638
- },
639
- {
640
- type: "function",
641
- name: "transferRedeemer",
642
- inputs: [
643
- {
644
- name: "redeemer",
645
- type: "address",
646
- internalType: "address"
647
- },
648
- {
649
- name: "newAccount",
650
- type: "address",
651
- internalType: "address"
652
- }
653
- ],
654
- outputs: [],
655
- stateMutability: "nonpayable"
656
- },
657
- {
658
- type: "function",
659
- name: "version",
660
- inputs: [],
661
- outputs: [
662
- {
663
- name: "",
664
- type: "uint256",
665
- internalType: "uint256"
666
- }
667
- ],
668
- stateMutability: "view"
669
- },
670
- {
671
- type: "function",
672
- name: "withdraw",
673
- inputs: [
674
- {
675
- name: "amount",
676
- type: "uint256",
677
- internalType: "uint256"
678
- }
679
- ],
680
- outputs: [],
681
- stateMutability: "nonpayable"
682
- },
683
- {
684
- type: "function",
685
- name: "withdrawFromRedeemer",
686
- inputs: [
687
- {
688
- name: "redeemer",
689
- type: "address",
690
- internalType: "address"
691
- },
692
- {
693
- name: "amount",
694
- type: "uint256",
695
- internalType: "uint256"
696
- }
697
- ],
698
- outputs: [],
699
- stateMutability: "nonpayable"
700
- },
701
- {
702
- type: "error",
703
- name: "AccessControlNotSetException",
704
- inputs: []
705
- },
706
- {
707
- type: "error",
708
- name: "CreditAccountNotEligibleException",
709
- inputs: []
710
- },
711
- {
712
- type: "error",
713
- name: "IncompatibleAccessControlsException",
714
- inputs: []
715
- },
716
- {
717
- type: "error",
718
- name: "IncompatibleIssuanceAndRedemptionVaultsException",
719
- inputs: []
720
- },
721
- {
722
- type: "error",
723
- name: "InsufficientBalanceException",
724
- inputs: []
725
- },
726
- {
727
- type: "error",
728
- name: "MaxPendingRedeemersPerAccountException",
729
- inputs: []
730
- },
731
- {
732
- type: "error",
733
- name: "NewAccountNotGreenlistedException",
734
- inputs: []
735
- },
736
- {
737
- type: "error",
738
- name: "RedeemerNotOwnedByAccountException",
739
- inputs: []
740
- },
741
- {
742
- type: "error",
743
- name: "RedeemerTransferNotAllowedException",
744
- inputs: []
745
- }
746
- ];
747
445
  export {
748
- iMidasGatewayAdapterV311Abi,
749
- iMidasGatewayV311Abi
446
+ iMidasGatewayAdapterV311Abi
750
447
  };
@@ -1,6 +1,7 @@
1
1
  export * from "./actionAbi.js";
2
2
  export * from "./adapters/index.js";
3
3
  export * from "./conctructorAbi.js";
4
+ export * from "./midas/index.js";
4
5
  export * from "./securitize/index.js";
5
6
  export * from "./targetContractAbi.js";
6
7
  export * from "./utils.js";
@@ -0,0 +1,170 @@
1
+ const iMidasGatewayV311Abi = [
2
+ {
3
+ type: "function",
4
+ name: "accessControl",
5
+ inputs: [],
6
+ outputs: [{ name: "", type: "address", internalType: "address" }],
7
+ stateMutability: "view"
8
+ },
9
+ {
10
+ type: "function",
11
+ name: "contractType",
12
+ inputs: [],
13
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
14
+ stateMutability: "view"
15
+ },
16
+ {
17
+ type: "function",
18
+ name: "depositInstant",
19
+ inputs: [
20
+ { name: "amountToken", type: "uint256", internalType: "uint256" },
21
+ { name: "minReceiveAmount", type: "uint256", internalType: "uint256" },
22
+ { name: "referrerId", type: "bytes32", internalType: "bytes32" }
23
+ ],
24
+ outputs: [],
25
+ stateMutability: "nonpayable"
26
+ },
27
+ {
28
+ type: "function",
29
+ name: "isEligibleAccountOwner",
30
+ inputs: [{ name: "account", type: "address", internalType: "address" }],
31
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
32
+ stateMutability: "view"
33
+ },
34
+ {
35
+ type: "function",
36
+ name: "mToken",
37
+ inputs: [],
38
+ outputs: [{ name: "", type: "address", internalType: "address" }],
39
+ stateMutability: "view"
40
+ },
41
+ {
42
+ type: "function",
43
+ name: "mode",
44
+ inputs: [],
45
+ outputs: [{ name: "", type: "uint8", internalType: "enum MidasMode" }],
46
+ stateMutability: "view"
47
+ },
48
+ {
49
+ type: "function",
50
+ name: "pendingAndClaimableTokenOutAmounts",
51
+ inputs: [{ name: "account", type: "address", internalType: "address" }],
52
+ outputs: [
53
+ { name: "pendingAmount", type: "uint256", internalType: "uint256" },
54
+ { name: "claimableAmount", type: "uint256", internalType: "uint256" }
55
+ ],
56
+ stateMutability: "view"
57
+ },
58
+ {
59
+ type: "function",
60
+ name: "pendingRedeemers",
61
+ inputs: [{ name: "account", type: "address", internalType: "address" }],
62
+ outputs: [
63
+ { name: "redeemers", type: "address[]", internalType: "address[]" }
64
+ ],
65
+ stateMutability: "view"
66
+ },
67
+ {
68
+ type: "function",
69
+ name: "phantomToken",
70
+ inputs: [],
71
+ outputs: [{ name: "", type: "address", internalType: "address" }],
72
+ stateMutability: "view"
73
+ },
74
+ {
75
+ type: "function",
76
+ name: "quoteToken",
77
+ inputs: [],
78
+ outputs: [{ name: "", type: "address", internalType: "address" }],
79
+ stateMutability: "view"
80
+ },
81
+ {
82
+ type: "function",
83
+ name: "redeemInstant",
84
+ inputs: [
85
+ { name: "amountMTokenIn", type: "uint256", internalType: "uint256" },
86
+ { name: "minReceiveAmount", type: "uint256", internalType: "uint256" }
87
+ ],
88
+ outputs: [],
89
+ stateMutability: "nonpayable"
90
+ },
91
+ {
92
+ type: "function",
93
+ name: "redemptionLogger",
94
+ inputs: [],
95
+ outputs: [{ name: "", type: "address", internalType: "address" }],
96
+ stateMutability: "view"
97
+ },
98
+ {
99
+ type: "function",
100
+ name: "requestRedeem",
101
+ inputs: [
102
+ { name: "amountMTokenIn", type: "uint256", internalType: "uint256" },
103
+ { name: "extraData", type: "bytes", internalType: "bytes" }
104
+ ],
105
+ outputs: [],
106
+ stateMutability: "nonpayable"
107
+ },
108
+ {
109
+ type: "function",
110
+ name: "transferMaster",
111
+ inputs: [],
112
+ outputs: [{ name: "", type: "address", internalType: "address" }],
113
+ stateMutability: "view"
114
+ },
115
+ {
116
+ type: "function",
117
+ name: "transferRedeemer",
118
+ inputs: [
119
+ { name: "redeemer", type: "address", internalType: "address" },
120
+ { name: "newAccount", type: "address", internalType: "address" }
121
+ ],
122
+ outputs: [],
123
+ stateMutability: "nonpayable"
124
+ },
125
+ {
126
+ type: "function",
127
+ name: "version",
128
+ inputs: [],
129
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
130
+ stateMutability: "view"
131
+ },
132
+ {
133
+ type: "function",
134
+ name: "withdraw",
135
+ inputs: [{ name: "amount", type: "uint256", internalType: "uint256" }],
136
+ outputs: [],
137
+ stateMutability: "nonpayable"
138
+ },
139
+ {
140
+ type: "function",
141
+ name: "withdrawFromRedeemer",
142
+ inputs: [
143
+ { name: "redeemer", type: "address", internalType: "address" },
144
+ { name: "amount", type: "uint256", internalType: "uint256" }
145
+ ],
146
+ outputs: [],
147
+ stateMutability: "nonpayable"
148
+ },
149
+ { type: "error", name: "AccessControlNotSetException", inputs: [] },
150
+ {
151
+ type: "error",
152
+ name: "ArbitraryCAAllowedInPermissionedModeException",
153
+ inputs: []
154
+ },
155
+ { type: "error", name: "CreditAccountNotEligibleException", inputs: [] },
156
+ { type: "error", name: "IncompatibleAccessControlsException", inputs: [] },
157
+ {
158
+ type: "error",
159
+ name: "IncompatibleIssuanceAndRedemptionVaultsException",
160
+ inputs: []
161
+ },
162
+ { type: "error", name: "InsufficientBalanceException", inputs: [] },
163
+ { type: "error", name: "MaxPendingRedeemersPerAccountException", inputs: [] },
164
+ { type: "error", name: "NewAccountNotGreenlistedException", inputs: [] },
165
+ { type: "error", name: "RedeemerNotOwnedByAccountException", inputs: [] },
166
+ { type: "error", name: "RedeemerTransferNotAllowedException", inputs: [] }
167
+ ];
168
+ export {
169
+ iMidasGatewayV311Abi
170
+ };
@@ -0,0 +1 @@
1
+ export * from "./iMidasGatewayV311.js";