@gearbox-protocol/sdk 14.12.0-next.17 → 14.12.0-next.19

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 (104) hide show
  1. package/dist/cjs/abi/{IWithdrawalCompressorV312.js → IWithdrawalCompressorV313.js} +49 -6
  2. package/dist/cjs/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.js +45 -1
  3. package/dist/cjs/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.js +45 -1
  4. package/dist/cjs/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.js +45 -1
  5. package/dist/cjs/abi/compressors/withdrawalCompressor.js +45 -1
  6. package/dist/cjs/dev/index.js +3 -1
  7. package/dist/cjs/dev/withdrawalAbi.js +2105 -0
  8. package/dist/cjs/dev/withdrawalUtils.js +271 -0
  9. package/dist/cjs/permissionless/bindings/factory/rate-keeper-factory.js +35 -0
  10. package/dist/cjs/permissionless/bindings/market-configurator.js +11 -0
  11. package/dist/cjs/plugins/adapters/abi/adapters/iMidasGatewayAdapterV311.js +1015 -0
  12. package/dist/cjs/plugins/adapters/abi/adapters/{iMidasIssuanceVaultAdapter.js → iMidasIssuanceVaultAdapterV310.js} +6 -6
  13. package/dist/cjs/plugins/adapters/abi/adapters/{iMidasRedemptionVault.js → iMidasRedemptionVaultAdapterV310.js} +9 -9
  14. package/dist/cjs/plugins/adapters/abi/adapters/index.js +6 -4
  15. package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +3 -0
  16. package/dist/cjs/plugins/adapters/abi/targetContractAbi.js +3 -3
  17. package/dist/cjs/plugins/adapters/contracts/MidasGatewayAdapterContract.js +121 -0
  18. package/dist/cjs/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.js +2 -2
  19. package/dist/cjs/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +2 -2
  20. package/dist/cjs/plugins/adapters/contracts/index.js +2 -0
  21. package/dist/cjs/plugins/adapters/createAdapter.js +2 -0
  22. package/dist/cjs/plugins/adapters/types.js +1 -0
  23. package/dist/cjs/plugins/delayed-withdrawal/DelayedWithdrawalPlugin.js +20 -37
  24. package/dist/cjs/sdk/OnchainSDK.js +11 -0
  25. package/dist/cjs/sdk/accounts/CreditAccountsServiceV310.js +9 -55
  26. package/dist/cjs/sdk/accounts/index.js +3 -1
  27. package/dist/cjs/sdk/accounts/withdrawal-compressor/AbstractWithdrawalCompressorContract.js +224 -0
  28. package/dist/cjs/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV310Contract.js +40 -0
  29. package/dist/cjs/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV311Contract.js +40 -0
  30. package/dist/cjs/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.js +40 -0
  31. package/dist/cjs/sdk/accounts/withdrawal-compressor/addresses.js +52 -0
  32. package/dist/cjs/sdk/accounts/withdrawal-compressor/createWithdrawalCompressor.js +53 -0
  33. package/dist/cjs/sdk/accounts/withdrawal-compressor/index.js +36 -0
  34. package/dist/cjs/sdk/accounts/withdrawal-compressor/intent.js +172 -0
  35. package/dist/cjs/sdk/accounts/withdrawal-compressor/types.js +16 -0
  36. package/dist/esm/abi/{IWithdrawalCompressorV312.js → IWithdrawalCompressorV313.js} +45 -2
  37. package/dist/esm/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.js +45 -1
  38. package/dist/esm/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.js +45 -1
  39. package/dist/esm/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.js +45 -1
  40. package/dist/esm/abi/compressors/withdrawalCompressor.js +45 -1
  41. package/dist/esm/dev/index.js +1 -0
  42. package/dist/esm/dev/withdrawalAbi.js +2074 -0
  43. package/dist/esm/dev/withdrawalUtils.js +259 -0
  44. package/dist/esm/permissionless/bindings/factory/rate-keeper-factory.js +11 -0
  45. package/dist/esm/permissionless/bindings/market-configurator.js +11 -0
  46. package/dist/esm/plugins/adapters/abi/adapters/iMidasGatewayAdapterV311.js +990 -0
  47. package/dist/esm/plugins/adapters/abi/adapters/{iMidasIssuanceVaultAdapter.js → iMidasIssuanceVaultAdapterV310.js} +2 -2
  48. package/dist/esm/plugins/adapters/abi/adapters/{iMidasRedemptionVault.js → iMidasRedemptionVaultAdapterV310.js} +4 -4
  49. package/dist/esm/plugins/adapters/abi/adapters/index.js +3 -2
  50. package/dist/esm/plugins/adapters/abi/conctructorAbi.js +3 -0
  51. package/dist/esm/plugins/adapters/abi/targetContractAbi.js +2 -2
  52. package/dist/esm/plugins/adapters/contracts/MidasGatewayAdapterContract.js +104 -0
  53. package/dist/esm/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.js +4 -4
  54. package/dist/esm/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +4 -4
  55. package/dist/esm/plugins/adapters/contracts/index.js +1 -0
  56. package/dist/esm/plugins/adapters/createAdapter.js +3 -0
  57. package/dist/esm/plugins/adapters/types.js +1 -0
  58. package/dist/esm/plugins/delayed-withdrawal/DelayedWithdrawalPlugin.js +21 -39
  59. package/dist/esm/sdk/OnchainSDK.js +13 -1
  60. package/dist/esm/sdk/accounts/CreditAccountsServiceV310.js +8 -53
  61. package/dist/esm/sdk/accounts/index.js +1 -0
  62. package/dist/esm/sdk/accounts/withdrawal-compressor/AbstractWithdrawalCompressorContract.js +200 -0
  63. package/dist/esm/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV310Contract.js +16 -0
  64. package/dist/esm/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV311Contract.js +16 -0
  65. package/dist/esm/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.js +16 -0
  66. package/dist/esm/sdk/accounts/withdrawal-compressor/addresses.js +28 -0
  67. package/dist/esm/sdk/accounts/withdrawal-compressor/createWithdrawalCompressor.js +29 -0
  68. package/dist/esm/sdk/accounts/withdrawal-compressor/index.js +8 -0
  69. package/dist/esm/sdk/accounts/withdrawal-compressor/intent.js +137 -0
  70. package/dist/esm/sdk/accounts/withdrawal-compressor/types.js +0 -0
  71. package/dist/types/abi/{IWithdrawalCompressorV312.d.ts → IWithdrawalCompressorV313.d.ts} +74 -1
  72. package/dist/types/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.d.ts +77 -0
  73. package/dist/types/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.d.ts +77 -0
  74. package/dist/types/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.d.ts +77 -0
  75. package/dist/types/abi/compressors/withdrawalCompressor.d.ts +77 -0
  76. package/dist/types/dev/index.d.ts +1 -0
  77. package/dist/types/dev/withdrawalAbi.d.ts +1584 -0
  78. package/dist/types/dev/withdrawalUtils.d.ts +19 -0
  79. package/dist/types/permissionless/bindings/compressors/withdrawal-compressor.d.ts +77 -0
  80. package/dist/types/permissionless/bindings/factory/rate-keeper-factory.d.ts +179 -0
  81. package/dist/types/permissionless/bindings/market-configurator.d.ts +2 -0
  82. package/dist/types/plugins/adapters/abi/adapters/iMidasGatewayAdapterV311.d.ts +754 -0
  83. package/dist/types/plugins/adapters/abi/adapters/{iMidasIssuanceVaultAdapter.d.ts → iMidasIssuanceVaultAdapterV310.d.ts} +1 -1
  84. package/dist/types/plugins/adapters/abi/adapters/{iMidasRedemptionVault.d.ts → iMidasRedemptionVaultAdapterV310.d.ts} +2 -2
  85. package/dist/types/plugins/adapters/abi/adapters/index.d.ts +3 -2
  86. package/dist/types/plugins/adapters/abi/targetContractAbi.d.ts +1 -1
  87. package/dist/types/plugins/adapters/contracts/MidasGatewayAdapterContract.d.ts +790 -0
  88. package/dist/types/plugins/adapters/contracts/index.d.ts +1 -0
  89. package/dist/types/plugins/adapters/types.d.ts +2 -1
  90. package/dist/types/plugins/delayed-withdrawal/types.d.ts +4 -17
  91. package/dist/types/sdk/OnchainSDK.d.ts +10 -1
  92. package/dist/types/sdk/accounts/CreditAccountsServiceV310.d.ts +3 -11
  93. package/dist/types/sdk/accounts/index.d.ts +1 -0
  94. package/dist/types/sdk/accounts/types.d.ts +4 -18
  95. package/dist/types/sdk/accounts/withdrawal-compressor/AbstractWithdrawalCompressorContract.d.ts +35 -0
  96. package/dist/types/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV310Contract.d.ts +334 -0
  97. package/dist/types/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV311Contract.d.ts +338 -0
  98. package/dist/types/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.d.ts +300 -0
  99. package/dist/types/sdk/accounts/withdrawal-compressor/addresses.d.ts +21 -0
  100. package/dist/types/sdk/accounts/withdrawal-compressor/createWithdrawalCompressor.d.ts +11 -0
  101. package/dist/types/sdk/accounts/withdrawal-compressor/index.d.ts +8 -0
  102. package/dist/types/sdk/accounts/withdrawal-compressor/intent.d.ts +106 -0
  103. package/dist/types/sdk/accounts/withdrawal-compressor/types.d.ts +122 -0
  104. package/package.json +1 -1
@@ -0,0 +1,1015 @@
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 iMidasGatewayAdapterV311_exports = {};
20
+ __export(iMidasGatewayAdapterV311_exports, {
21
+ iMidasGatewayAdapterV311Abi: () => iMidasGatewayAdapterV311Abi,
22
+ iMidasGatewayV311Abi: () => iMidasGatewayV311Abi
23
+ });
24
+ module.exports = __toCommonJS(iMidasGatewayAdapterV311_exports);
25
+ const iMidasGatewayAdapterV311Abi = [
26
+ {
27
+ type: "function",
28
+ name: "allowedInputTokens",
29
+ inputs: [],
30
+ outputs: [
31
+ {
32
+ name: "",
33
+ type: "address[]",
34
+ internalType: "address[]"
35
+ }
36
+ ],
37
+ stateMutability: "view"
38
+ },
39
+ {
40
+ type: "function",
41
+ name: "allowedOutputTokens",
42
+ inputs: [],
43
+ outputs: [
44
+ {
45
+ name: "",
46
+ type: "address[]",
47
+ internalType: "address[]"
48
+ }
49
+ ],
50
+ stateMutability: "view"
51
+ },
52
+ {
53
+ type: "function",
54
+ name: "allowedPhantomTokens",
55
+ inputs: [],
56
+ outputs: [
57
+ {
58
+ name: "",
59
+ type: "address[]",
60
+ internalType: "address[]"
61
+ }
62
+ ],
63
+ stateMutability: "view"
64
+ },
65
+ {
66
+ type: "function",
67
+ name: "contractType",
68
+ inputs: [],
69
+ outputs: [
70
+ {
71
+ name: "",
72
+ type: "bytes32",
73
+ internalType: "bytes32"
74
+ }
75
+ ],
76
+ stateMutability: "view"
77
+ },
78
+ {
79
+ type: "function",
80
+ name: "creditManager",
81
+ inputs: [],
82
+ outputs: [
83
+ {
84
+ name: "",
85
+ type: "address",
86
+ internalType: "address"
87
+ }
88
+ ],
89
+ stateMutability: "view"
90
+ },
91
+ {
92
+ type: "function",
93
+ name: "depositInstant",
94
+ inputs: [
95
+ {
96
+ name: "tokenIn",
97
+ type: "address",
98
+ internalType: "address"
99
+ },
100
+ {
101
+ name: "amountToken",
102
+ type: "uint256",
103
+ internalType: "uint256"
104
+ },
105
+ {
106
+ name: "minReceiveAmount",
107
+ type: "uint256",
108
+ internalType: "uint256"
109
+ },
110
+ {
111
+ name: "",
112
+ type: "bytes32",
113
+ internalType: "bytes32"
114
+ }
115
+ ],
116
+ outputs: [
117
+ {
118
+ name: "",
119
+ type: "bool",
120
+ internalType: "bool"
121
+ }
122
+ ],
123
+ stateMutability: "nonpayable"
124
+ },
125
+ {
126
+ type: "function",
127
+ name: "depositInstantDiff",
128
+ inputs: [
129
+ {
130
+ name: "tokenIn",
131
+ type: "address",
132
+ internalType: "address"
133
+ },
134
+ {
135
+ name: "leftoverAmount",
136
+ type: "uint256",
137
+ internalType: "uint256"
138
+ },
139
+ {
140
+ name: "rateMinRAY",
141
+ type: "uint256",
142
+ internalType: "uint256"
143
+ }
144
+ ],
145
+ outputs: [
146
+ {
147
+ name: "",
148
+ type: "bool",
149
+ internalType: "bool"
150
+ }
151
+ ],
152
+ stateMutability: "nonpayable"
153
+ },
154
+ {
155
+ type: "function",
156
+ name: "depositPhantomToken",
157
+ inputs: [
158
+ {
159
+ name: "token",
160
+ type: "address",
161
+ internalType: "address"
162
+ },
163
+ {
164
+ name: "amount",
165
+ type: "uint256",
166
+ internalType: "uint256"
167
+ }
168
+ ],
169
+ outputs: [
170
+ {
171
+ name: "",
172
+ type: "bool",
173
+ internalType: "bool"
174
+ }
175
+ ],
176
+ stateMutability: "nonpayable"
177
+ },
178
+ {
179
+ type: "function",
180
+ name: "gateway",
181
+ inputs: [],
182
+ outputs: [
183
+ {
184
+ name: "",
185
+ type: "address",
186
+ internalType: "address"
187
+ }
188
+ ],
189
+ stateMutability: "view"
190
+ },
191
+ {
192
+ type: "function",
193
+ name: "isInputTokenAllowed",
194
+ inputs: [
195
+ {
196
+ name: "token",
197
+ type: "address",
198
+ internalType: "address"
199
+ }
200
+ ],
201
+ outputs: [
202
+ {
203
+ name: "",
204
+ type: "bool",
205
+ internalType: "bool"
206
+ }
207
+ ],
208
+ stateMutability: "view"
209
+ },
210
+ {
211
+ type: "function",
212
+ name: "isOutputTokenAllowed",
213
+ inputs: [
214
+ {
215
+ name: "token",
216
+ type: "address",
217
+ internalType: "address"
218
+ }
219
+ ],
220
+ outputs: [
221
+ {
222
+ name: "",
223
+ type: "bool",
224
+ internalType: "bool"
225
+ }
226
+ ],
227
+ stateMutability: "view"
228
+ },
229
+ {
230
+ type: "function",
231
+ name: "mToken",
232
+ inputs: [],
233
+ outputs: [
234
+ {
235
+ name: "",
236
+ type: "address",
237
+ internalType: "address"
238
+ }
239
+ ],
240
+ stateMutability: "view"
241
+ },
242
+ {
243
+ type: "function",
244
+ name: "outputTokenToPhantomToken",
245
+ inputs: [
246
+ {
247
+ name: "outputToken",
248
+ type: "address",
249
+ internalType: "address"
250
+ }
251
+ ],
252
+ outputs: [
253
+ {
254
+ name: "",
255
+ type: "address",
256
+ internalType: "address"
257
+ }
258
+ ],
259
+ stateMutability: "view"
260
+ },
261
+ {
262
+ type: "function",
263
+ name: "phantomTokenToOutputToken",
264
+ inputs: [
265
+ {
266
+ name: "phantomToken",
267
+ type: "address",
268
+ internalType: "address"
269
+ }
270
+ ],
271
+ outputs: [
272
+ {
273
+ name: "",
274
+ type: "address",
275
+ internalType: "address"
276
+ }
277
+ ],
278
+ stateMutability: "view"
279
+ },
280
+ {
281
+ type: "function",
282
+ name: "redeemInstant",
283
+ inputs: [
284
+ {
285
+ name: "tokenOut",
286
+ type: "address",
287
+ internalType: "address"
288
+ },
289
+ {
290
+ name: "amountMTokenIn",
291
+ type: "uint256",
292
+ internalType: "uint256"
293
+ },
294
+ {
295
+ name: "minReceiveAmount",
296
+ type: "uint256",
297
+ internalType: "uint256"
298
+ }
299
+ ],
300
+ outputs: [
301
+ {
302
+ name: "",
303
+ type: "bool",
304
+ internalType: "bool"
305
+ }
306
+ ],
307
+ stateMutability: "nonpayable"
308
+ },
309
+ {
310
+ type: "function",
311
+ name: "redeemInstantDiff",
312
+ inputs: [
313
+ {
314
+ name: "tokenOut",
315
+ type: "address",
316
+ internalType: "address"
317
+ },
318
+ {
319
+ name: "leftoverAmount",
320
+ type: "uint256",
321
+ internalType: "uint256"
322
+ },
323
+ {
324
+ name: "rateMinRAY",
325
+ type: "uint256",
326
+ internalType: "uint256"
327
+ }
328
+ ],
329
+ outputs: [
330
+ {
331
+ name: "",
332
+ type: "bool",
333
+ internalType: "bool"
334
+ }
335
+ ],
336
+ stateMutability: "nonpayable"
337
+ },
338
+ {
339
+ type: "function",
340
+ name: "redeemRequest",
341
+ inputs: [
342
+ {
343
+ name: "tokenOut",
344
+ type: "address",
345
+ internalType: "address"
346
+ },
347
+ {
348
+ name: "amountMTokenIn",
349
+ type: "uint256",
350
+ internalType: "uint256"
351
+ },
352
+ {
353
+ name: "extraData",
354
+ type: "bytes",
355
+ internalType: "bytes"
356
+ }
357
+ ],
358
+ outputs: [
359
+ {
360
+ name: "",
361
+ type: "bool",
362
+ internalType: "bool"
363
+ }
364
+ ],
365
+ stateMutability: "nonpayable"
366
+ },
367
+ {
368
+ type: "function",
369
+ name: "redeemRequest",
370
+ inputs: [
371
+ {
372
+ name: "tokenOut",
373
+ type: "address",
374
+ internalType: "address"
375
+ },
376
+ {
377
+ name: "amountMTokenIn",
378
+ type: "uint256",
379
+ internalType: "uint256"
380
+ }
381
+ ],
382
+ outputs: [
383
+ {
384
+ name: "",
385
+ type: "bool",
386
+ internalType: "bool"
387
+ }
388
+ ],
389
+ stateMutability: "nonpayable"
390
+ },
391
+ {
392
+ type: "function",
393
+ name: "redeemRequestDiff",
394
+ inputs: [
395
+ {
396
+ name: "tokenOut",
397
+ type: "address",
398
+ internalType: "address"
399
+ },
400
+ {
401
+ name: "leftoverAmount",
402
+ type: "uint256",
403
+ internalType: "uint256"
404
+ }
405
+ ],
406
+ outputs: [
407
+ {
408
+ name: "",
409
+ type: "bool",
410
+ internalType: "bool"
411
+ }
412
+ ],
413
+ stateMutability: "nonpayable"
414
+ },
415
+ {
416
+ type: "function",
417
+ name: "redeemRequestDiff",
418
+ inputs: [
419
+ {
420
+ name: "tokenOut",
421
+ type: "address",
422
+ internalType: "address"
423
+ },
424
+ {
425
+ name: "leftoverAmount",
426
+ type: "uint256",
427
+ internalType: "uint256"
428
+ },
429
+ {
430
+ name: "extraData",
431
+ type: "bytes",
432
+ internalType: "bytes"
433
+ }
434
+ ],
435
+ outputs: [
436
+ {
437
+ name: "",
438
+ type: "bool",
439
+ internalType: "bool"
440
+ }
441
+ ],
442
+ stateMutability: "nonpayable"
443
+ },
444
+ {
445
+ type: "function",
446
+ name: "referrerId",
447
+ inputs: [],
448
+ outputs: [
449
+ {
450
+ name: "",
451
+ type: "bytes32",
452
+ internalType: "bytes32"
453
+ }
454
+ ],
455
+ stateMutability: "view"
456
+ },
457
+ {
458
+ type: "function",
459
+ name: "serialize",
460
+ inputs: [],
461
+ outputs: [
462
+ {
463
+ name: "serializedData",
464
+ type: "bytes",
465
+ internalType: "bytes"
466
+ }
467
+ ],
468
+ stateMutability: "view"
469
+ },
470
+ {
471
+ type: "function",
472
+ name: "setInputTokenAllowedStatusBatch",
473
+ inputs: [
474
+ {
475
+ name: "tokens",
476
+ type: "address[]",
477
+ internalType: "address[]"
478
+ },
479
+ {
480
+ name: "allowed",
481
+ type: "bool[]",
482
+ internalType: "bool[]"
483
+ }
484
+ ],
485
+ outputs: [],
486
+ stateMutability: "nonpayable"
487
+ },
488
+ {
489
+ type: "function",
490
+ name: "setOutputTokenAllowedStatusBatch",
491
+ inputs: [
492
+ {
493
+ name: "configs",
494
+ type: "tuple[]",
495
+ internalType: "struct IMidasGatewayAdapter.MidasAllowedTokenStatus[]",
496
+ components: [
497
+ {
498
+ name: "token",
499
+ type: "address",
500
+ internalType: "address"
501
+ },
502
+ {
503
+ name: "phantomToken",
504
+ type: "address",
505
+ internalType: "address"
506
+ },
507
+ {
508
+ name: "allowed",
509
+ type: "bool",
510
+ internalType: "bool"
511
+ }
512
+ ]
513
+ }
514
+ ],
515
+ outputs: [],
516
+ stateMutability: "nonpayable"
517
+ },
518
+ {
519
+ type: "function",
520
+ name: "targetContract",
521
+ inputs: [],
522
+ outputs: [
523
+ {
524
+ name: "",
525
+ type: "address",
526
+ internalType: "address"
527
+ }
528
+ ],
529
+ stateMutability: "view"
530
+ },
531
+ {
532
+ type: "function",
533
+ name: "transferRedeemer",
534
+ inputs: [
535
+ {
536
+ name: "redeemer",
537
+ type: "address",
538
+ internalType: "address"
539
+ },
540
+ {
541
+ name: "newAccount",
542
+ type: "address",
543
+ internalType: "address"
544
+ }
545
+ ],
546
+ outputs: [
547
+ {
548
+ name: "",
549
+ type: "bool",
550
+ internalType: "bool"
551
+ }
552
+ ],
553
+ stateMutability: "nonpayable"
554
+ },
555
+ {
556
+ type: "function",
557
+ name: "version",
558
+ inputs: [],
559
+ outputs: [
560
+ {
561
+ name: "",
562
+ type: "uint256",
563
+ internalType: "uint256"
564
+ }
565
+ ],
566
+ stateMutability: "view"
567
+ },
568
+ {
569
+ type: "function",
570
+ name: "withdraw",
571
+ inputs: [
572
+ {
573
+ name: "tokenOut",
574
+ type: "address",
575
+ internalType: "address"
576
+ },
577
+ {
578
+ name: "amount",
579
+ type: "uint256",
580
+ internalType: "uint256"
581
+ }
582
+ ],
583
+ outputs: [
584
+ {
585
+ name: "",
586
+ type: "bool",
587
+ internalType: "bool"
588
+ }
589
+ ],
590
+ stateMutability: "nonpayable"
591
+ },
592
+ {
593
+ type: "function",
594
+ name: "withdrawFromRedeemer",
595
+ inputs: [
596
+ {
597
+ name: "redeemer",
598
+ type: "address",
599
+ internalType: "address"
600
+ },
601
+ {
602
+ name: "tokenOut",
603
+ type: "address",
604
+ internalType: "address"
605
+ },
606
+ {
607
+ name: "amount",
608
+ type: "uint256",
609
+ internalType: "uint256"
610
+ }
611
+ ],
612
+ outputs: [
613
+ {
614
+ name: "",
615
+ type: "bool",
616
+ internalType: "bool"
617
+ }
618
+ ],
619
+ stateMutability: "nonpayable"
620
+ },
621
+ {
622
+ type: "function",
623
+ name: "withdrawPhantomToken",
624
+ inputs: [
625
+ {
626
+ name: "token",
627
+ type: "address",
628
+ internalType: "address"
629
+ },
630
+ {
631
+ name: "amount",
632
+ type: "uint256",
633
+ internalType: "uint256"
634
+ }
635
+ ],
636
+ outputs: [
637
+ {
638
+ name: "useSafePrices",
639
+ type: "bool",
640
+ internalType: "bool"
641
+ }
642
+ ],
643
+ stateMutability: "nonpayable"
644
+ },
645
+ {
646
+ type: "event",
647
+ name: "SetInputTokenAllowedStatus",
648
+ inputs: [
649
+ {
650
+ name: "token",
651
+ type: "address",
652
+ indexed: true,
653
+ internalType: "address"
654
+ },
655
+ {
656
+ name: "allowed",
657
+ type: "bool",
658
+ indexed: false,
659
+ internalType: "bool"
660
+ }
661
+ ],
662
+ anonymous: false
663
+ },
664
+ {
665
+ type: "event",
666
+ name: "SetOutputTokenAllowedStatus",
667
+ inputs: [
668
+ {
669
+ name: "token",
670
+ type: "address",
671
+ indexed: true,
672
+ internalType: "address"
673
+ },
674
+ {
675
+ name: "phantomToken",
676
+ type: "address",
677
+ indexed: true,
678
+ internalType: "address"
679
+ },
680
+ {
681
+ name: "allowed",
682
+ type: "bool",
683
+ indexed: false,
684
+ internalType: "bool"
685
+ }
686
+ ],
687
+ anonymous: false
688
+ },
689
+ {
690
+ type: "error",
691
+ name: "IncorrectArrayLengthException",
692
+ inputs: []
693
+ },
694
+ {
695
+ type: "error",
696
+ name: "IncorrectStakedPhantomTokenException",
697
+ inputs: []
698
+ },
699
+ {
700
+ type: "error",
701
+ name: "PhantomTokenTokenOutMismatchException",
702
+ inputs: []
703
+ },
704
+ {
705
+ type: "error",
706
+ name: "TokenNotAllowedException",
707
+ inputs: []
708
+ }
709
+ ];
710
+ const iMidasGatewayV311Abi = [
711
+ {
712
+ type: "function",
713
+ name: "accessControl",
714
+ inputs: [],
715
+ outputs: [
716
+ {
717
+ name: "",
718
+ type: "address",
719
+ internalType: "address"
720
+ }
721
+ ],
722
+ stateMutability: "view"
723
+ },
724
+ {
725
+ type: "function",
726
+ name: "contractType",
727
+ inputs: [],
728
+ outputs: [
729
+ {
730
+ name: "",
731
+ type: "bytes32",
732
+ internalType: "bytes32"
733
+ }
734
+ ],
735
+ stateMutability: "view"
736
+ },
737
+ {
738
+ type: "function",
739
+ name: "depositInstant",
740
+ inputs: [
741
+ {
742
+ name: "tokenIn",
743
+ type: "address",
744
+ internalType: "address"
745
+ },
746
+ {
747
+ name: "amountToken",
748
+ type: "uint256",
749
+ internalType: "uint256"
750
+ },
751
+ {
752
+ name: "minReceiveAmount",
753
+ type: "uint256",
754
+ internalType: "uint256"
755
+ },
756
+ {
757
+ name: "referrerId",
758
+ type: "bytes32",
759
+ internalType: "bytes32"
760
+ }
761
+ ],
762
+ outputs: [],
763
+ stateMutability: "nonpayable"
764
+ },
765
+ {
766
+ type: "function",
767
+ name: "mToken",
768
+ inputs: [],
769
+ outputs: [
770
+ {
771
+ name: "",
772
+ type: "address",
773
+ internalType: "address"
774
+ }
775
+ ],
776
+ stateMutability: "view"
777
+ },
778
+ {
779
+ type: "function",
780
+ name: "pendingAndClaimableTokenOutAmounts",
781
+ inputs: [
782
+ {
783
+ name: "account",
784
+ type: "address",
785
+ internalType: "address"
786
+ },
787
+ {
788
+ name: "tokenOut",
789
+ type: "address",
790
+ internalType: "address"
791
+ }
792
+ ],
793
+ outputs: [
794
+ {
795
+ name: "pendingAmount",
796
+ type: "uint256",
797
+ internalType: "uint256"
798
+ },
799
+ {
800
+ name: "claimableAmount",
801
+ type: "uint256",
802
+ internalType: "uint256"
803
+ }
804
+ ],
805
+ stateMutability: "view"
806
+ },
807
+ {
808
+ type: "function",
809
+ name: "pendingRedeemers",
810
+ inputs: [
811
+ {
812
+ name: "account",
813
+ type: "address",
814
+ internalType: "address"
815
+ }
816
+ ],
817
+ outputs: [
818
+ {
819
+ name: "redeemers",
820
+ type: "address[]",
821
+ internalType: "address[]"
822
+ }
823
+ ],
824
+ stateMutability: "view"
825
+ },
826
+ {
827
+ type: "function",
828
+ name: "redeemInstant",
829
+ inputs: [
830
+ {
831
+ name: "tokenOut",
832
+ type: "address",
833
+ internalType: "address"
834
+ },
835
+ {
836
+ name: "amountMTokenIn",
837
+ type: "uint256",
838
+ internalType: "uint256"
839
+ },
840
+ {
841
+ name: "minReceiveAmount",
842
+ type: "uint256",
843
+ internalType: "uint256"
844
+ }
845
+ ],
846
+ outputs: [],
847
+ stateMutability: "nonpayable"
848
+ },
849
+ {
850
+ type: "function",
851
+ name: "redemptionLogger",
852
+ inputs: [],
853
+ outputs: [
854
+ {
855
+ name: "",
856
+ type: "address",
857
+ internalType: "address"
858
+ }
859
+ ],
860
+ stateMutability: "view"
861
+ },
862
+ {
863
+ type: "function",
864
+ name: "requestRedeem",
865
+ inputs: [
866
+ {
867
+ name: "tokenOut",
868
+ type: "address",
869
+ internalType: "address"
870
+ },
871
+ {
872
+ name: "amountMTokenIn",
873
+ type: "uint256",
874
+ internalType: "uint256"
875
+ },
876
+ {
877
+ name: "extraData",
878
+ type: "bytes",
879
+ internalType: "bytes"
880
+ }
881
+ ],
882
+ outputs: [],
883
+ stateMutability: "nonpayable"
884
+ },
885
+ {
886
+ type: "function",
887
+ name: "transferMaster",
888
+ inputs: [],
889
+ outputs: [
890
+ {
891
+ name: "",
892
+ type: "address",
893
+ internalType: "address"
894
+ }
895
+ ],
896
+ stateMutability: "view"
897
+ },
898
+ {
899
+ type: "function",
900
+ name: "transferRedeemer",
901
+ inputs: [
902
+ {
903
+ name: "redeemer",
904
+ type: "address",
905
+ internalType: "address"
906
+ },
907
+ {
908
+ name: "newAccount",
909
+ type: "address",
910
+ internalType: "address"
911
+ }
912
+ ],
913
+ outputs: [],
914
+ stateMutability: "nonpayable"
915
+ },
916
+ {
917
+ type: "function",
918
+ name: "version",
919
+ inputs: [],
920
+ outputs: [
921
+ {
922
+ name: "",
923
+ type: "uint256",
924
+ internalType: "uint256"
925
+ }
926
+ ],
927
+ stateMutability: "view"
928
+ },
929
+ {
930
+ type: "function",
931
+ name: "withdraw",
932
+ inputs: [
933
+ {
934
+ name: "tokenOut",
935
+ type: "address",
936
+ internalType: "address"
937
+ },
938
+ {
939
+ name: "amount",
940
+ type: "uint256",
941
+ internalType: "uint256"
942
+ }
943
+ ],
944
+ outputs: [],
945
+ stateMutability: "nonpayable"
946
+ },
947
+ {
948
+ type: "function",
949
+ name: "withdrawFromRedeemer",
950
+ inputs: [
951
+ {
952
+ name: "redeemer",
953
+ type: "address",
954
+ internalType: "address"
955
+ },
956
+ {
957
+ name: "tokenOut",
958
+ type: "address",
959
+ internalType: "address"
960
+ },
961
+ {
962
+ name: "amount",
963
+ type: "uint256",
964
+ internalType: "uint256"
965
+ }
966
+ ],
967
+ outputs: [],
968
+ stateMutability: "nonpayable"
969
+ },
970
+ {
971
+ type: "error",
972
+ name: "AccessControlNotSetException",
973
+ inputs: []
974
+ },
975
+ {
976
+ type: "error",
977
+ name: "CreditAccountNotEligibleException",
978
+ inputs: []
979
+ },
980
+ {
981
+ type: "error",
982
+ name: "IncompatibleIssuanceAndRedemptionVaultsException",
983
+ inputs: []
984
+ },
985
+ {
986
+ type: "error",
987
+ name: "InsufficientBalanceException",
988
+ inputs: []
989
+ },
990
+ {
991
+ type: "error",
992
+ name: "MaxPendingRedeemersPerAccountException",
993
+ inputs: []
994
+ },
995
+ {
996
+ type: "error",
997
+ name: "NewAccountNotGreenlistedException",
998
+ inputs: []
999
+ },
1000
+ {
1001
+ type: "error",
1002
+ name: "RedeemerNotOwnedByAccountException",
1003
+ inputs: []
1004
+ },
1005
+ {
1006
+ type: "error",
1007
+ name: "RedeemerTransferNotAllowedException",
1008
+ inputs: []
1009
+ }
1010
+ ];
1011
+ // Annotate the CommonJS export names for ESM import in node:
1012
+ 0 && (module.exports = {
1013
+ iMidasGatewayAdapterV311Abi,
1014
+ iMidasGatewayV311Abi
1015
+ });