@gearbox-protocol/sdk 14.12.0-next.37 → 14.12.0-next.39

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 (47) hide show
  1. package/dist/cjs/abi/IWithdrawalCompressorV313.js +78 -0
  2. package/dist/cjs/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.js +85 -1
  3. package/dist/cjs/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.js +85 -1
  4. package/dist/cjs/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.js +85 -1
  5. package/dist/cjs/abi/compressors/withdrawalCompressor.js +197 -1
  6. package/dist/cjs/abi/helpers/redemptionLogger.js +160 -0
  7. package/dist/cjs/abi/router/midasWorker.js +4 -4
  8. package/dist/cjs/dev/AccountOpener.js +2 -2
  9. package/dist/cjs/plugins/adapters/abi/actionAbi.js +13 -5
  10. package/dist/cjs/plugins/adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.js +23 -8
  11. package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +2 -1
  12. package/dist/cjs/plugins/adapters/abi/securitize/iMidasGatewayAdapter.js +354 -0
  13. package/dist/cjs/plugins/adapters/abi/securitize/index.js +2 -0
  14. package/dist/cjs/sdk/accounts/withdrawal-compressor/AbstractWithdrawalCompressorContract.js +1 -1
  15. package/dist/cjs/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.js +90 -5
  16. package/dist/esm/abi/IWithdrawalCompressorV313.js +78 -0
  17. package/dist/esm/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.js +85 -1
  18. package/dist/esm/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.js +85 -1
  19. package/dist/esm/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.js +85 -1
  20. package/dist/esm/abi/compressors/withdrawalCompressor.js +197 -1
  21. package/dist/esm/abi/helpers/redemptionLogger.js +136 -0
  22. package/dist/esm/abi/router/midasWorker.js +4 -4
  23. package/dist/esm/dev/AccountOpener.js +2 -2
  24. package/dist/esm/plugins/adapters/abi/actionAbi.js +13 -5
  25. package/dist/esm/plugins/adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.js +23 -8
  26. package/dist/esm/plugins/adapters/abi/conctructorAbi.js +2 -1
  27. package/dist/esm/plugins/adapters/abi/securitize/iMidasGatewayAdapter.js +330 -0
  28. package/dist/esm/plugins/adapters/abi/securitize/index.js +1 -0
  29. package/dist/esm/sdk/accounts/withdrawal-compressor/AbstractWithdrawalCompressorContract.js +1 -1
  30. package/dist/esm/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.js +90 -5
  31. package/dist/types/abi/IWithdrawalCompressorV313.d.ts +103 -0
  32. package/dist/types/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.d.ts +121 -0
  33. package/dist/types/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.d.ts +121 -0
  34. package/dist/types/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.d.ts +121 -0
  35. package/dist/types/abi/compressors/withdrawalCompressor.d.ts +274 -0
  36. package/dist/types/abi/helpers/redemptionLogger.d.ts +167 -0
  37. package/dist/types/abi/router/midasWorker.d.ts +4 -4
  38. package/dist/types/permissionless/bindings/compressors/withdrawal-compressor.d.ts +274 -0
  39. package/dist/types/plugins/adapters/abi/actionAbi.d.ts +1 -1
  40. package/dist/types/plugins/adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.d.ts +37 -7
  41. package/dist/types/plugins/adapters/abi/securitize/iMidasGatewayAdapter.d.ts +555 -0
  42. package/dist/types/plugins/adapters/abi/securitize/index.d.ts +1 -0
  43. package/dist/types/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.d.ts +37 -7
  44. package/dist/types/sdk/accounts/withdrawal-compressor/AbstractWithdrawalCompressorContract.d.ts +1 -1
  45. package/dist/types/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.d.ts +104 -1
  46. package/dist/types/sdk/accounts/withdrawal-compressor/types.d.ts +3 -2
  47. package/package.json +1 -1
@@ -0,0 +1,160 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var redemptionLogger_exports = {};
20
+ __export(redemptionLogger_exports, {
21
+ redemptionLoggerAbi: () => redemptionLoggerAbi
22
+ });
23
+ module.exports = __toCommonJS(redemptionLogger_exports);
24
+ const redemptionLoggerAbi = [
25
+ {
26
+ type: "constructor",
27
+ inputs: [{ name: "_owner", type: "address", internalType: "address" }],
28
+ stateMutability: "nonpayable"
29
+ },
30
+ {
31
+ type: "function",
32
+ name: "allowedGateways",
33
+ inputs: [{ name: "", type: "address", internalType: "address" }],
34
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
35
+ stateMutability: "view"
36
+ },
37
+ {
38
+ type: "function",
39
+ name: "contractType",
40
+ inputs: [],
41
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
42
+ stateMutability: "view"
43
+ },
44
+ {
45
+ type: "function",
46
+ name: "logRedemption",
47
+ inputs: [
48
+ { name: "creditAccount", type: "address", internalType: "address" },
49
+ { name: "redeemer", type: "address", internalType: "address" },
50
+ { name: "extraData", type: "bytes", internalType: "bytes" }
51
+ ],
52
+ outputs: [],
53
+ stateMutability: "nonpayable"
54
+ },
55
+ {
56
+ type: "function",
57
+ name: "owner",
58
+ inputs: [],
59
+ outputs: [{ name: "", type: "address", internalType: "address" }],
60
+ stateMutability: "view"
61
+ },
62
+ {
63
+ type: "function",
64
+ name: "redemptionLogs",
65
+ inputs: [{ name: "redeemer", type: "address", internalType: "address" }],
66
+ outputs: [
67
+ {
68
+ name: "",
69
+ type: "tuple",
70
+ internalType: "struct IRedemptionLogger.RedemptionLog",
71
+ components: [
72
+ { name: "creditAccount", type: "address", internalType: "address" },
73
+ { name: "redeemer", type: "address", internalType: "address" },
74
+ { name: "extraData", type: "bytes", internalType: "bytes" }
75
+ ]
76
+ }
77
+ ],
78
+ stateMutability: "view"
79
+ },
80
+ {
81
+ type: "function",
82
+ name: "renounceOwnership",
83
+ inputs: [],
84
+ outputs: [],
85
+ stateMutability: "nonpayable"
86
+ },
87
+ {
88
+ type: "function",
89
+ name: "setGatewayAllowed",
90
+ inputs: [
91
+ { name: "gateway", type: "address", internalType: "address" },
92
+ { name: "allowed", type: "bool", internalType: "bool" }
93
+ ],
94
+ outputs: [],
95
+ stateMutability: "nonpayable"
96
+ },
97
+ {
98
+ type: "function",
99
+ name: "transferOwnership",
100
+ inputs: [{ name: "newOwner", type: "address", internalType: "address" }],
101
+ outputs: [],
102
+ stateMutability: "nonpayable"
103
+ },
104
+ {
105
+ type: "function",
106
+ name: "version",
107
+ inputs: [],
108
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
109
+ stateMutability: "view"
110
+ },
111
+ {
112
+ type: "event",
113
+ name: "OwnershipTransferred",
114
+ inputs: [
115
+ {
116
+ name: "previousOwner",
117
+ type: "address",
118
+ indexed: true,
119
+ internalType: "address"
120
+ },
121
+ {
122
+ name: "newOwner",
123
+ type: "address",
124
+ indexed: true,
125
+ internalType: "address"
126
+ }
127
+ ],
128
+ anonymous: false
129
+ },
130
+ {
131
+ type: "event",
132
+ name: "RedemptionLogged",
133
+ inputs: [
134
+ {
135
+ name: "creditAccount",
136
+ type: "address",
137
+ indexed: true,
138
+ internalType: "address"
139
+ },
140
+ {
141
+ name: "redeemer",
142
+ type: "address",
143
+ indexed: true,
144
+ internalType: "address"
145
+ },
146
+ {
147
+ name: "extraData",
148
+ type: "bytes",
149
+ indexed: false,
150
+ internalType: "bytes"
151
+ }
152
+ ],
153
+ anonymous: false
154
+ },
155
+ { type: "error", name: "GatewayNotAllowedException", inputs: [] }
156
+ ];
157
+ // Annotate the CommonJS export names for ESM import in node:
158
+ 0 && (module.exports = {
159
+ redemptionLoggerAbi
160
+ });
@@ -423,7 +423,7 @@ const midasWorkerAbi = [
423
423
  name: "trimSpecialVertex",
424
424
  inputs: [
425
425
  {
426
- name: "edge",
426
+ name: "",
427
427
  type: "tuple",
428
428
  internalType: "struct Edge",
429
429
  components: [
@@ -444,7 +444,7 @@ const midasWorkerAbi = [
444
444
  ]
445
445
  },
446
446
  {
447
- name: "graph",
447
+ name: "",
448
448
  type: "tuple",
449
449
  internalType: "struct Graph",
450
450
  components: [
@@ -503,10 +503,10 @@ const midasWorkerAbi = [
503
503
  }
504
504
  ]
505
505
  },
506
- { name: "targetToken", type: "address", internalType: "address" }
506
+ { name: "", type: "address", internalType: "address" }
507
507
  ],
508
508
  outputs: [{ name: "", type: "bool", internalType: "bool" }],
509
- stateMutability: "view"
509
+ stateMutability: "pure"
510
510
  },
511
511
  {
512
512
  type: "function",
@@ -496,10 +496,10 @@ class AccountOpener extends import_sdk.SDKConstruct {
496
496
  );
497
497
  txHash = await this.#anvil.writeContract({
498
498
  account: depositor,
499
- address: metadata.approveTarget,
499
+ address: underlying,
500
500
  abi: import_iERC20.ierc20Abi,
501
501
  functionName: "approve",
502
- args: [address, allowance],
502
+ args: [metadata.approveTarget, allowance],
503
503
  chain: this.#anvil.chain
504
504
  });
505
505
  let receipt = await this.#anvil.waitForTransactionReceipt({
@@ -87,7 +87,7 @@ const adapterActionAbi = Object.fromEntries(
87
87
  Object.fromEntries(
88
88
  Object.entries(versionedSignature).map(([version, signature]) => [
89
89
  version,
90
- (0, import_viem.parseAbi)([signature])
90
+ (0, import_viem.parseAbi)(Array.isArray(signature) ? signature : [signature])
91
91
  ])
92
92
  )
93
93
  ]
@@ -95,10 +95,18 @@ const adapterActionAbi = Object.fromEntries(
95
95
  );
96
96
  const adapterActionSelectors = Object.fromEntries(
97
97
  Object.entries(adapterActionSignatures).flatMap(
98
- ([adapterType, versionedSignature]) => Object.entries(versionedSignature).map(([version, signature]) => [
99
- (0, import_viem.toFunctionSelector)(signature),
100
- { version: +version, signature, adapterType }
101
- ])
98
+ ([adapterType, versionedSignature]) => Object.entries(versionedSignature).map(([version, signature]) => {
99
+ if (Array.isArray(signature)) {
100
+ return signature.map((s) => [
101
+ (0, import_viem.toFunctionSelector)(s),
102
+ { version: +version, signature: s, adapterType }
103
+ ]);
104
+ }
105
+ return [
106
+ (0, import_viem.toFunctionSelector)(signature),
107
+ { version: +version, signature, adapterType }
108
+ ];
109
+ })
102
110
  )
103
111
  );
104
112
  // Annotate the CommonJS export names for ESM import in node:
@@ -22,6 +22,13 @@ __export(iSecuritizeRedemptionGatewayAdapterV311_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(iSecuritizeRedemptionGatewayAdapterV311_exports);
24
24
  const iSecuritizeRedemptionGatewayAdapterV311Abi = [
25
+ {
26
+ type: "function",
27
+ name: "acl",
28
+ inputs: [],
29
+ outputs: [{ name: "", type: "address", internalType: "address" }],
30
+ stateMutability: "view"
31
+ },
25
32
  {
26
33
  type: "function",
27
34
  name: "claim",
@@ -49,11 +56,11 @@ const iSecuritizeRedemptionGatewayAdapterV311Abi = [
49
56
  type: "function",
50
57
  name: "depositPhantomToken",
51
58
  inputs: [
52
- { name: "token", type: "address", internalType: "address" },
53
- { name: "amount", type: "uint256", internalType: "uint256" }
59
+ { name: "", type: "address", internalType: "address" },
60
+ { name: "", type: "uint256", internalType: "uint256" }
54
61
  ],
55
62
  outputs: [{ name: "", type: "bool", internalType: "bool" }],
56
- stateMutability: "nonpayable"
63
+ stateMutability: "view"
57
64
  },
58
65
  {
59
66
  type: "function",
@@ -149,14 +156,22 @@ const iSecuritizeRedemptionGatewayAdapterV311Abi = [
149
156
  type: "function",
150
157
  name: "withdrawPhantomToken",
151
158
  inputs: [
152
- { name: "token", type: "address", internalType: "address" },
153
- { name: "amount", type: "uint256", internalType: "uint256" }
159
+ { name: "", type: "address", internalType: "address" },
160
+ { name: "", type: "uint256", internalType: "uint256" }
154
161
  ],
155
- outputs: [{ name: "useSafePrices", type: "bool", internalType: "bool" }],
156
- stateMutability: "nonpayable"
162
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
163
+ stateMutability: "view"
164
+ },
165
+ {
166
+ type: "error",
167
+ name: "AddressIsNotContractException",
168
+ inputs: [{ name: "", type: "address", internalType: "address" }]
157
169
  },
170
+ { type: "error", name: "CallerNotCreditFacadeException", inputs: [] },
158
171
  { type: "error", name: "IncorrectStakedPhantomTokenException", inputs: [] },
159
- { type: "error", name: "InvalidRedemptionGatewayException", inputs: [] }
172
+ { type: "error", name: "InvalidRedemptionGatewayException", inputs: [] },
173
+ { type: "error", name: "NotImplementedException", inputs: [] },
174
+ { type: "error", name: "ZeroAddressException", inputs: [] }
160
175
  ];
161
176
  // Annotate the CommonJS export names for ESM import in node:
162
177
  0 && (module.exports = {
@@ -144,7 +144,8 @@ const adapterConstructorAbi = {
144
144
  310: import_conctructorAbiPatterns.PHANTOM_TOKEN_ADAPTER_ABI
145
145
  },
146
146
  [import_types.AdapterType.SECURITIZE_REDEMPTION]: {
147
- 310: import_conctructorAbiPatterns.PHANTOM_TOKEN_ADAPTER_ABI
147
+ 310: import_conctructorAbiPatterns.PHANTOM_TOKEN_ADAPTER_ABI,
148
+ 311: import_conctructorAbiPatterns.PHANTOM_TOKEN_ADAPTER_ABI
148
149
  },
149
150
  // other patterns
150
151
  [import_types.AdapterType.STAKING_REWARDS]: {
@@ -0,0 +1,354 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var iMidasGatewayAdapter_exports = {};
20
+ __export(iMidasGatewayAdapter_exports, {
21
+ iMidasGatewayAdapterAbi: () => iMidasGatewayAdapterAbi
22
+ });
23
+ module.exports = __toCommonJS(iMidasGatewayAdapter_exports);
24
+ const iMidasGatewayAdapterAbi = [
25
+ {
26
+ type: "function",
27
+ name: "acl",
28
+ inputs: [],
29
+ outputs: [{ name: "", type: "address", internalType: "address" }],
30
+ stateMutability: "view"
31
+ },
32
+ {
33
+ type: "function",
34
+ name: "allowedInputTokens",
35
+ inputs: [],
36
+ outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
37
+ stateMutability: "view"
38
+ },
39
+ {
40
+ type: "function",
41
+ name: "allowedOutputTokens",
42
+ inputs: [],
43
+ outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
44
+ stateMutability: "view"
45
+ },
46
+ {
47
+ type: "function",
48
+ name: "allowedPhantomTokens",
49
+ inputs: [],
50
+ outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
51
+ stateMutability: "view"
52
+ },
53
+ {
54
+ type: "function",
55
+ name: "contractType",
56
+ inputs: [],
57
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
58
+ stateMutability: "view"
59
+ },
60
+ {
61
+ type: "function",
62
+ name: "creditManager",
63
+ inputs: [],
64
+ outputs: [{ name: "", type: "address", internalType: "address" }],
65
+ stateMutability: "view"
66
+ },
67
+ {
68
+ type: "function",
69
+ name: "depositInstant",
70
+ inputs: [
71
+ { name: "tokenIn", type: "address", internalType: "address" },
72
+ { name: "amountToken", type: "uint256", internalType: "uint256" },
73
+ { name: "minReceiveAmount", type: "uint256", internalType: "uint256" },
74
+ { name: "", type: "bytes32", internalType: "bytes32" }
75
+ ],
76
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
77
+ stateMutability: "nonpayable"
78
+ },
79
+ {
80
+ type: "function",
81
+ name: "depositInstantDiff",
82
+ inputs: [
83
+ { name: "tokenIn", type: "address", internalType: "address" },
84
+ { name: "leftoverAmount", type: "uint256", internalType: "uint256" },
85
+ { name: "rateMinRAY", type: "uint256", internalType: "uint256" }
86
+ ],
87
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
88
+ stateMutability: "nonpayable"
89
+ },
90
+ {
91
+ type: "function",
92
+ name: "depositPhantomToken",
93
+ inputs: [
94
+ { name: "", type: "address", internalType: "address" },
95
+ { name: "", type: "uint256", internalType: "uint256" }
96
+ ],
97
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
98
+ stateMutability: "view"
99
+ },
100
+ {
101
+ type: "function",
102
+ name: "gateway",
103
+ inputs: [],
104
+ outputs: [{ name: "", type: "address", internalType: "address" }],
105
+ stateMutability: "view"
106
+ },
107
+ {
108
+ type: "function",
109
+ name: "isInputTokenAllowed",
110
+ inputs: [{ name: "token", type: "address", internalType: "address" }],
111
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
112
+ stateMutability: "view"
113
+ },
114
+ {
115
+ type: "function",
116
+ name: "isOutputTokenAllowed",
117
+ inputs: [{ name: "token", type: "address", internalType: "address" }],
118
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
119
+ stateMutability: "view"
120
+ },
121
+ {
122
+ type: "function",
123
+ name: "mToken",
124
+ inputs: [],
125
+ outputs: [{ name: "", type: "address", internalType: "address" }],
126
+ stateMutability: "view"
127
+ },
128
+ {
129
+ type: "function",
130
+ name: "outputTokenToPhantomToken",
131
+ inputs: [{ name: "", type: "address", internalType: "address" }],
132
+ outputs: [{ name: "", type: "address", internalType: "address" }],
133
+ stateMutability: "view"
134
+ },
135
+ {
136
+ type: "function",
137
+ name: "phantomTokenToOutputToken",
138
+ inputs: [{ name: "", type: "address", internalType: "address" }],
139
+ outputs: [{ name: "", type: "address", internalType: "address" }],
140
+ stateMutability: "view"
141
+ },
142
+ {
143
+ type: "function",
144
+ name: "redeemInstant",
145
+ inputs: [
146
+ { name: "tokenOut", type: "address", internalType: "address" },
147
+ { name: "amountMTokenIn", type: "uint256", internalType: "uint256" },
148
+ { name: "minReceiveAmount", type: "uint256", internalType: "uint256" }
149
+ ],
150
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
151
+ stateMutability: "nonpayable"
152
+ },
153
+ {
154
+ type: "function",
155
+ name: "redeemInstantDiff",
156
+ inputs: [
157
+ { name: "tokenOut", type: "address", internalType: "address" },
158
+ { name: "leftoverAmount", type: "uint256", internalType: "uint256" },
159
+ { name: "rateMinRAY", type: "uint256", internalType: "uint256" }
160
+ ],
161
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
162
+ stateMutability: "nonpayable"
163
+ },
164
+ {
165
+ type: "function",
166
+ name: "redeemRequest",
167
+ inputs: [
168
+ { name: "tokenOut", type: "address", internalType: "address" },
169
+ { name: "amountMTokenIn", type: "uint256", internalType: "uint256" },
170
+ { name: "extraData", type: "bytes", internalType: "bytes" }
171
+ ],
172
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
173
+ stateMutability: "nonpayable"
174
+ },
175
+ {
176
+ type: "function",
177
+ name: "redeemRequest",
178
+ inputs: [
179
+ { name: "tokenOut", type: "address", internalType: "address" },
180
+ { name: "amountMTokenIn", type: "uint256", internalType: "uint256" }
181
+ ],
182
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
183
+ stateMutability: "nonpayable"
184
+ },
185
+ {
186
+ type: "function",
187
+ name: "redeemRequestDiff",
188
+ inputs: [
189
+ { name: "tokenOut", type: "address", internalType: "address" },
190
+ { name: "leftoverAmount", type: "uint256", internalType: "uint256" }
191
+ ],
192
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
193
+ stateMutability: "nonpayable"
194
+ },
195
+ {
196
+ type: "function",
197
+ name: "redeemRequestDiff",
198
+ inputs: [
199
+ { name: "tokenOut", type: "address", internalType: "address" },
200
+ { name: "leftoverAmount", type: "uint256", internalType: "uint256" },
201
+ { name: "extraData", type: "bytes", internalType: "bytes" }
202
+ ],
203
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
204
+ stateMutability: "nonpayable"
205
+ },
206
+ {
207
+ type: "function",
208
+ name: "referrerId",
209
+ inputs: [],
210
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
211
+ stateMutability: "view"
212
+ },
213
+ {
214
+ type: "function",
215
+ name: "serialize",
216
+ inputs: [],
217
+ outputs: [{ name: "serializedData", type: "bytes", internalType: "bytes" }],
218
+ stateMutability: "view"
219
+ },
220
+ {
221
+ type: "function",
222
+ name: "setInputTokenAllowedStatusBatch",
223
+ inputs: [
224
+ { name: "tokens", type: "address[]", internalType: "address[]" },
225
+ { name: "allowed", type: "bool[]", internalType: "bool[]" }
226
+ ],
227
+ outputs: [],
228
+ stateMutability: "nonpayable"
229
+ },
230
+ {
231
+ type: "function",
232
+ name: "setOutputTokenAllowedStatusBatch",
233
+ inputs: [
234
+ {
235
+ name: "configs",
236
+ type: "tuple[]",
237
+ internalType: "struct IMidasGatewayAdapter.MidasAllowedTokenStatus[]",
238
+ components: [
239
+ { name: "token", type: "address", internalType: "address" },
240
+ { name: "phantomToken", type: "address", internalType: "address" },
241
+ { name: "allowed", type: "bool", internalType: "bool" }
242
+ ]
243
+ }
244
+ ],
245
+ outputs: [],
246
+ stateMutability: "nonpayable"
247
+ },
248
+ {
249
+ type: "function",
250
+ name: "targetContract",
251
+ inputs: [],
252
+ outputs: [{ name: "", type: "address", internalType: "address" }],
253
+ stateMutability: "view"
254
+ },
255
+ {
256
+ type: "function",
257
+ name: "transferRedeemer",
258
+ inputs: [
259
+ { name: "redeemer", type: "address", internalType: "address" },
260
+ { name: "newAccount", type: "address", internalType: "address" }
261
+ ],
262
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
263
+ stateMutability: "nonpayable"
264
+ },
265
+ {
266
+ type: "function",
267
+ name: "version",
268
+ inputs: [],
269
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
270
+ stateMutability: "view"
271
+ },
272
+ {
273
+ type: "function",
274
+ name: "withdraw",
275
+ inputs: [
276
+ { name: "tokenOut", type: "address", internalType: "address" },
277
+ { name: "amount", type: "uint256", internalType: "uint256" }
278
+ ],
279
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
280
+ stateMutability: "nonpayable"
281
+ },
282
+ {
283
+ type: "function",
284
+ name: "withdrawFromRedeemer",
285
+ inputs: [
286
+ { name: "redeemer", type: "address", internalType: "address" },
287
+ { name: "tokenOut", type: "address", internalType: "address" },
288
+ { name: "amount", type: "uint256", internalType: "uint256" }
289
+ ],
290
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
291
+ stateMutability: "nonpayable"
292
+ },
293
+ {
294
+ type: "function",
295
+ name: "withdrawPhantomToken",
296
+ inputs: [
297
+ { name: "token", type: "address", internalType: "address" },
298
+ { name: "amount", type: "uint256", internalType: "uint256" }
299
+ ],
300
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
301
+ stateMutability: "nonpayable"
302
+ },
303
+ {
304
+ type: "event",
305
+ name: "SetInputTokenAllowedStatus",
306
+ inputs: [
307
+ {
308
+ name: "token",
309
+ type: "address",
310
+ indexed: true,
311
+ internalType: "address"
312
+ },
313
+ { name: "allowed", type: "bool", indexed: false, internalType: "bool" }
314
+ ],
315
+ anonymous: false
316
+ },
317
+ {
318
+ type: "event",
319
+ name: "SetOutputTokenAllowedStatus",
320
+ inputs: [
321
+ {
322
+ name: "token",
323
+ type: "address",
324
+ indexed: true,
325
+ internalType: "address"
326
+ },
327
+ {
328
+ name: "phantomToken",
329
+ type: "address",
330
+ indexed: true,
331
+ internalType: "address"
332
+ },
333
+ { name: "allowed", type: "bool", indexed: false, internalType: "bool" }
334
+ ],
335
+ anonymous: false
336
+ },
337
+ {
338
+ type: "error",
339
+ name: "AddressIsNotContractException",
340
+ inputs: [{ name: "", type: "address", internalType: "address" }]
341
+ },
342
+ { type: "error", name: "CallerNotConfiguratorException", inputs: [] },
343
+ { type: "error", name: "CallerNotCreditFacadeException", inputs: [] },
344
+ { type: "error", name: "IncorrectArrayLengthException", inputs: [] },
345
+ { type: "error", name: "IncorrectStakedPhantomTokenException", inputs: [] },
346
+ { type: "error", name: "NotImplementedException", inputs: [] },
347
+ { type: "error", name: "PhantomTokenTokenOutMismatchException", inputs: [] },
348
+ { type: "error", name: "TokenNotAllowedException", inputs: [] },
349
+ { type: "error", name: "ZeroAddressException", inputs: [] }
350
+ ];
351
+ // Annotate the CommonJS export names for ESM import in node:
352
+ 0 && (module.exports = {
353
+ iMidasGatewayAdapterAbi
354
+ });
@@ -16,11 +16,13 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
16
16
  var securitize_exports = {};
17
17
  module.exports = __toCommonJS(securitize_exports);
18
18
  __reExport(securitize_exports, require("./iBaseOnRamp.js"), module.exports);
19
+ __reExport(securitize_exports, require("./iMidasGatewayAdapter.js"), module.exports);
19
20
  __reExport(securitize_exports, require("./iSecuritizeOnRamp.js"), module.exports);
20
21
  __reExport(securitize_exports, require("./iSecuritizeRedemptionGatewayV311.js"), module.exports);
21
22
  // Annotate the CommonJS export names for ESM import in node:
22
23
  0 && (module.exports = {
23
24
  ...require("./iBaseOnRamp.js"),
25
+ ...require("./iMidasGatewayAdapter.js"),
24
26
  ...require("./iSecuritizeOnRamp.js"),
25
27
  ...require("./iSecuritizeRedemptionGatewayV311.js")
26
28
  });
@@ -191,7 +191,7 @@ class AbstractWithdrawalCompressorContract extends import_base.BaseContract {
191
191
  /**
192
192
  * {@inheritDoc IWithdrawalCompressorContract.getExternalAccountCurrentWithdrawals}
193
193
  **/
194
- async getExternalAccountCurrentWithdrawals(_withdrawalToken, _account) {
194
+ async getExternalAccountCurrentWithdrawals(_account, ..._withdrawalTokens) {
195
195
  this.#reportUnsupported("external account withdrawals");
196
196
  return { claimable: [], pending: [] };
197
197
  }