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

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