@gearbox-protocol/sdk 14.12.0-next.38 → 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 (37) hide show
  1. package/dist/cjs/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.js +85 -1
  2. package/dist/cjs/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.js +85 -1
  3. package/dist/cjs/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.js +85 -1
  4. package/dist/cjs/abi/compressors/withdrawalCompressor.js +197 -1
  5. package/dist/cjs/abi/helpers/redemptionLogger.js +160 -0
  6. package/dist/cjs/abi/router/midasWorker.js +4 -4
  7. package/dist/cjs/dev/AccountOpener.js +2 -2
  8. package/dist/cjs/plugins/adapters/abi/actionAbi.js +13 -5
  9. package/dist/cjs/plugins/adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.js +23 -8
  10. package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +2 -1
  11. package/dist/cjs/plugins/adapters/abi/securitize/iMidasGatewayAdapter.js +354 -0
  12. package/dist/cjs/plugins/adapters/abi/securitize/index.js +2 -0
  13. package/dist/esm/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.js +85 -1
  14. package/dist/esm/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.js +85 -1
  15. package/dist/esm/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.js +85 -1
  16. package/dist/esm/abi/compressors/withdrawalCompressor.js +197 -1
  17. package/dist/esm/abi/helpers/redemptionLogger.js +136 -0
  18. package/dist/esm/abi/router/midasWorker.js +4 -4
  19. package/dist/esm/dev/AccountOpener.js +2 -2
  20. package/dist/esm/plugins/adapters/abi/actionAbi.js +13 -5
  21. package/dist/esm/plugins/adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.js +23 -8
  22. package/dist/esm/plugins/adapters/abi/conctructorAbi.js +2 -1
  23. package/dist/esm/plugins/adapters/abi/securitize/iMidasGatewayAdapter.js +330 -0
  24. package/dist/esm/plugins/adapters/abi/securitize/index.js +1 -0
  25. package/dist/types/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.d.ts +121 -0
  26. package/dist/types/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.d.ts +121 -0
  27. package/dist/types/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.d.ts +121 -0
  28. package/dist/types/abi/compressors/withdrawalCompressor.d.ts +274 -0
  29. package/dist/types/abi/helpers/redemptionLogger.d.ts +167 -0
  30. package/dist/types/abi/router/midasWorker.d.ts +4 -4
  31. package/dist/types/permissionless/bindings/compressors/withdrawal-compressor.d.ts +274 -0
  32. package/dist/types/plugins/adapters/abi/actionAbi.d.ts +1 -1
  33. package/dist/types/plugins/adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.d.ts +37 -7
  34. package/dist/types/plugins/adapters/abi/securitize/iMidasGatewayAdapter.d.ts +555 -0
  35. package/dist/types/plugins/adapters/abi/securitize/index.d.ts +1 -0
  36. package/dist/types/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.d.ts +37 -7
  37. package/package.json +1 -1
@@ -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
  });
@@ -73,12 +73,87 @@ const mellowWithdrawalSubcompressorAbi = [
73
73
  { name: "amount", type: "uint256", internalType: "uint256" }
74
74
  ]
75
75
  },
76
- { name: "claimableAt", type: "uint256", internalType: "uint256" }
76
+ { name: "claimableAt", type: "uint256", internalType: "uint256" },
77
+ { name: "extraData", type: "bytes", internalType: "bytes" }
77
78
  ]
78
79
  }
79
80
  ],
80
81
  stateMutability: "view"
81
82
  },
83
+ {
84
+ type: "function",
85
+ name: "getExternalAccountCurrentWithdrawals",
86
+ inputs: [
87
+ { name: "", type: "address", internalType: "address" },
88
+ { name: "", type: "address", internalType: "address" }
89
+ ],
90
+ outputs: [
91
+ {
92
+ name: "claimableWithdrawals",
93
+ type: "tuple[]",
94
+ internalType: "struct ClaimableWithdrawal[]",
95
+ components: [
96
+ { name: "token", type: "address", internalType: "address" },
97
+ {
98
+ name: "withdrawalPhantomToken",
99
+ type: "address",
100
+ internalType: "address"
101
+ },
102
+ {
103
+ name: "withdrawalTokenSpent",
104
+ type: "uint256",
105
+ internalType: "uint256"
106
+ },
107
+ {
108
+ name: "outputs",
109
+ type: "tuple[]",
110
+ internalType: "struct WithdrawalOutput[]",
111
+ components: [
112
+ { name: "token", type: "address", internalType: "address" },
113
+ { name: "isDelayed", type: "bool", internalType: "bool" },
114
+ { name: "amount", type: "uint256", internalType: "uint256" }
115
+ ]
116
+ },
117
+ {
118
+ name: "claimCalls",
119
+ type: "tuple[]",
120
+ internalType: "struct MultiCall[]",
121
+ components: [
122
+ { name: "target", type: "address", internalType: "address" },
123
+ { name: "callData", type: "bytes", internalType: "bytes" }
124
+ ]
125
+ },
126
+ { name: "extraData", type: "bytes", internalType: "bytes" }
127
+ ]
128
+ },
129
+ {
130
+ name: "pendingWithdrawals",
131
+ type: "tuple[]",
132
+ internalType: "struct PendingWithdrawal[]",
133
+ components: [
134
+ { name: "token", type: "address", internalType: "address" },
135
+ {
136
+ name: "withdrawalPhantomToken",
137
+ type: "address",
138
+ internalType: "address"
139
+ },
140
+ {
141
+ name: "expectedOutputs",
142
+ type: "tuple[]",
143
+ internalType: "struct WithdrawalOutput[]",
144
+ components: [
145
+ { name: "token", type: "address", internalType: "address" },
146
+ { name: "isDelayed", type: "bool", internalType: "bool" },
147
+ { name: "amount", type: "uint256", internalType: "uint256" }
148
+ ]
149
+ },
150
+ { name: "claimableAt", type: "uint256", internalType: "uint256" },
151
+ { name: "extraData", type: "bytes", internalType: "bytes" }
152
+ ]
153
+ }
154
+ ],
155
+ stateMutability: "pure"
156
+ },
82
157
  {
83
158
  type: "function",
84
159
  name: "getWithdrawableAssets",
@@ -195,6 +270,15 @@ const mellowWithdrawalSubcompressorAbi = [
195
270
  ],
196
271
  stateMutability: "view"
197
272
  },
273
+ {
274
+ type: "function",
275
+ name: "getWithdrawalStatus",
276
+ inputs: [{ name: "", type: "address", internalType: "address" }],
277
+ outputs: [
278
+ { name: "", type: "uint8", internalType: "enum WithdrawalStatus" }
279
+ ],
280
+ stateMutability: "pure"
281
+ },
198
282
  {
199
283
  type: "function",
200
284
  name: "version",