@gearbox-protocol/sdk 1.1.0 → 1.2.2

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 (99) hide show
  1. package/lib/core/creditManager.d.ts +5 -0
  2. package/lib/core/creditManager.js +5 -0
  3. package/lib/pathfinder/path.js +5 -5
  4. package/lib/payload/creditManager.d.ts +5 -0
  5. package/lib/strategies/creditFacade.js +1 -1
  6. package/lib/tokens/token.js +18 -18
  7. package/lib/types/contracts/interfaces/ICreditConfigurator.sol/ICreditConfigurator.d.ts +271 -20
  8. package/lib/types/contracts/interfaces/ICreditConfigurator.sol/ICreditConfiguratorEvents.d.ts +8 -19
  9. package/lib/types/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExtended.d.ts +9 -9
  10. package/lib/types/contracts/interfaces/ICreditManagerV2.sol/ICreditManagerV2.d.ts +52 -116
  11. package/lib/types/contracts/interfaces/IDataCompressor.sol/IDataCompressor.d.ts +26 -1
  12. package/lib/types/contracts/interfaces/IDegenNFT.sol/IDegenNFT.d.ts +10 -10
  13. package/lib/types/contracts/interfaces/V1/ICreditFilter.d.ts +3 -3
  14. package/lib/types/contracts/interfaces/adapters/convex/IConvexV1BoosterAdapter.d.ts +1 -9
  15. package/lib/types/contracts/pathfinder/index.d.ts +0 -1
  16. package/lib/types/contracts/pathfinder/interfaces/IClosePathResolver.d.ts +125 -0
  17. package/lib/types/contracts/pathfinder/{ISwapper.js → interfaces/IClosePathResolver.js} +0 -0
  18. package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/IDepositor.d.ts +159 -0
  19. package/lib/types/contracts/pathfinder/interfaces/{ISwapPathFinder.js → IDepositor.sol/IDepositor.js} +0 -0
  20. package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions.d.ts +165 -0
  21. package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions.js +2 -0
  22. package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/index.d.ts +2 -0
  23. package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/index.js +2 -0
  24. package/lib/types/contracts/pathfinder/interfaces/IGasPricer.d.ts +44 -0
  25. package/lib/types/contracts/pathfinder/interfaces/IGasPricer.js +2 -0
  26. package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker.d.ts +113 -0
  27. package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker.js +2 -0
  28. package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions.d.ts +119 -0
  29. package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions.js +2 -0
  30. package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/index.d.ts +2 -0
  31. package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/index.js +2 -0
  32. package/lib/types/contracts/pathfinder/interfaces/IPathFinder.d.ts +210 -0
  33. package/lib/types/contracts/pathfinder/interfaces/IPathFinder.js +2 -0
  34. package/lib/types/contracts/pathfinder/interfaces/IPathResolver.d.ts +131 -0
  35. package/lib/types/contracts/pathfinder/interfaces/IPathResolver.js +2 -0
  36. package/lib/types/contracts/pathfinder/interfaces/{ISwapPathFinder.d.ts → ISwapAggregator.d.ts} +98 -14
  37. package/lib/types/contracts/pathfinder/interfaces/ISwapAggregator.js +2 -0
  38. package/lib/types/contracts/pathfinder/{ISwapper.d.ts → interfaces/ISwapper.d.ts} +1 -1
  39. package/lib/types/contracts/pathfinder/interfaces/ISwapper.js +2 -0
  40. package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer.d.ts +144 -0
  41. package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer.js +2 -0
  42. package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions.d.ts +160 -0
  43. package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions.js +2 -0
  44. package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/index.d.ts +2 -0
  45. package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/index.js +2 -0
  46. package/lib/types/contracts/pathfinder/interfaces/index.d.ts +12 -1
  47. package/lib/types/factories/contracts/interfaces/ICreditConfigurator.sol/ICreditConfiguratorEvents__factory.js +1 -14
  48. package/lib/types/factories/contracts/interfaces/ICreditConfigurator.sol/ICreditConfiguratorExceptions__factory.js +2 -17
  49. package/lib/types/factories/contracts/interfaces/ICreditConfigurator.sol/ICreditConfigurator__factory.js +240 -31
  50. package/lib/types/factories/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExceptions__factory.js +7 -2
  51. package/lib/types/factories/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExtended__factory.js +1 -1
  52. package/lib/types/factories/contracts/interfaces/ICreditFacade.sol/ICreditFacade__factory.js +7 -2
  53. package/lib/types/factories/contracts/interfaces/ICreditManagerV2.sol/ICreditManagerV2Exceptions__factory.js +2 -2
  54. package/lib/types/factories/contracts/interfaces/ICreditManagerV2.sol/ICreditManagerV2__factory.js +41 -84
  55. package/lib/types/factories/contracts/interfaces/IDataCompressor.sol/IDataCompressor__factory.d.ts +14 -14
  56. package/lib/types/factories/contracts/interfaces/IDataCompressor.sol/IDataCompressor__factory.js +74 -0
  57. package/lib/types/factories/contracts/interfaces/IDegenNFT.sol/IDegenNFT__factory.js +4 -4
  58. package/lib/types/factories/contracts/interfaces/V1/ICreditFilter__factory.js +1 -1
  59. package/lib/types/factories/contracts/interfaces/adapters/convex/IConvexV1BoosterAdapter__factory.js +0 -13
  60. package/lib/types/factories/contracts/pathfinder/index.d.ts +0 -1
  61. package/lib/types/factories/contracts/pathfinder/index.js +1 -3
  62. package/lib/types/factories/contracts/pathfinder/interfaces/IClosePathResolver__factory.d.ts +57 -0
  63. package/lib/types/factories/contracts/pathfinder/interfaces/IClosePathResolver__factory.js +264 -0
  64. package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions__factory.d.ts +62 -0
  65. package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions__factory.js +717 -0
  66. package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositor__factory.d.ts +62 -0
  67. package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositor__factory.js +702 -0
  68. package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/index.d.ts +2 -0
  69. package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/index.js +10 -0
  70. package/lib/types/factories/contracts/pathfinder/interfaces/IGasPricer__factory.d.ts +22 -0
  71. package/lib/types/factories/contracts/pathfinder/interfaces/IGasPricer__factory.js +41 -0
  72. package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions__factory.d.ts +62 -0
  73. package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions__factory.js +252 -0
  74. package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker__factory.d.ts +62 -0
  75. package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker__factory.js +247 -0
  76. package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/index.d.ts +2 -0
  77. package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/index.js +10 -0
  78. package/lib/types/factories/contracts/pathfinder/interfaces/{ISwapPathFinder__factory.d.ts → IPathFinder__factory.d.ts} +42 -28
  79. package/lib/types/factories/contracts/pathfinder/interfaces/IPathFinder__factory.js +483 -0
  80. package/lib/types/factories/contracts/pathfinder/interfaces/IPathResolver__factory.d.ts +57 -0
  81. package/lib/types/factories/contracts/pathfinder/interfaces/IPathResolver__factory.js +467 -0
  82. package/lib/types/factories/contracts/pathfinder/interfaces/ISwapAggregator__factory.d.ts +62 -0
  83. package/lib/types/factories/contracts/pathfinder/interfaces/ISwapAggregator__factory.js +782 -0
  84. package/lib/types/factories/contracts/pathfinder/{ISwapper__factory.d.ts → interfaces/ISwapper__factory.d.ts} +1 -1
  85. package/lib/types/factories/contracts/pathfinder/{ISwapper__factory.js → interfaces/ISwapper__factory.js} +0 -0
  86. package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions__factory.d.ts +62 -0
  87. package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions__factory.js +729 -0
  88. package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer__factory.d.ts +62 -0
  89. package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer__factory.js +692 -0
  90. package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/index.d.ts +2 -0
  91. package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/index.js +10 -0
  92. package/lib/types/factories/contracts/pathfinder/interfaces/index.d.ts +9 -1
  93. package/lib/types/factories/contracts/pathfinder/interfaces/index.js +39 -3
  94. package/lib/types/factories/contracts/support/MultiCall.sol/Multicall2__factory.d.ts +1 -1
  95. package/lib/types/factories/contracts/support/MultiCall.sol/Multicall2__factory.js +1 -1
  96. package/lib/types/index.d.ts +24 -4
  97. package/lib/types/index.js +24 -4
  98. package/package.json +2 -2
  99. package/lib/types/factories/contracts/pathfinder/interfaces/ISwapPathFinder__factory.js +0 -346
@@ -0,0 +1,729 @@
1
+ "use strict";
2
+ /* Autogenerated file. Do not edit manually. */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.IWithdrawerOptions__factory = void 0;
7
+ var ethers_1 = require("ethers");
8
+ var _abi = [
9
+ {
10
+ inputs: [
11
+ {
12
+ internalType: "enum TokenType",
13
+ name: "ttIn",
14
+ type: "uint8",
15
+ },
16
+ {
17
+ internalType: "address",
18
+ name: "tokenOut",
19
+ type: "address",
20
+ },
21
+ {
22
+ components: [
23
+ {
24
+ internalType: "address",
25
+ name: "creditAccount",
26
+ type: "address",
27
+ },
28
+ {
29
+ components: [
30
+ {
31
+ internalType: "address",
32
+ name: "token",
33
+ type: "address",
34
+ },
35
+ {
36
+ internalType: "uint256",
37
+ name: "balance",
38
+ type: "uint256",
39
+ },
40
+ ],
41
+ internalType: "struct Balance[]",
42
+ name: "balances",
43
+ type: "tuple[]",
44
+ },
45
+ {
46
+ internalType: "address",
47
+ name: "target",
48
+ type: "address",
49
+ },
50
+ {
51
+ internalType: "address[]",
52
+ name: "connectors",
53
+ type: "address[]",
54
+ },
55
+ {
56
+ internalType: "address[]",
57
+ name: "adapters",
58
+ type: "address[]",
59
+ },
60
+ {
61
+ internalType: "uint256",
62
+ name: "slippage",
63
+ type: "uint256",
64
+ },
65
+ {
66
+ internalType: "enum TokenType",
67
+ name: "targetType",
68
+ type: "uint8",
69
+ },
70
+ {
71
+ components: [
72
+ {
73
+ internalType: "address",
74
+ name: "token",
75
+ type: "address",
76
+ },
77
+ {
78
+ internalType: "address[]",
79
+ name: "adapters",
80
+ type: "address[]",
81
+ },
82
+ ],
83
+ internalType: "struct TokenAdapters[]",
84
+ name: "foundAdapters",
85
+ type: "tuple[]",
86
+ },
87
+ {
88
+ internalType: "uint256",
89
+ name: "gasPriceTargetRAY",
90
+ type: "uint256",
91
+ },
92
+ {
93
+ internalType: "uint256",
94
+ name: "gasUsage",
95
+ type: "uint256",
96
+ },
97
+ {
98
+ internalType: "uint256",
99
+ name: "initTargetBalance",
100
+ type: "uint256",
101
+ },
102
+ {
103
+ components: [
104
+ {
105
+ internalType: "address",
106
+ name: "target",
107
+ type: "address",
108
+ },
109
+ {
110
+ internalType: "bytes",
111
+ name: "callData",
112
+ type: "bytes",
113
+ },
114
+ ],
115
+ internalType: "struct MultiCall[]",
116
+ name: "calls",
117
+ type: "tuple[]",
118
+ },
119
+ ],
120
+ internalType: "struct StrategyPathTask",
121
+ name: "task",
122
+ type: "tuple",
123
+ },
124
+ ],
125
+ name: "getUnderlyings",
126
+ outputs: [
127
+ {
128
+ internalType: "address[]",
129
+ name: "tokensIn",
130
+ type: "address[]",
131
+ },
132
+ {
133
+ components: [
134
+ {
135
+ internalType: "address",
136
+ name: "creditAccount",
137
+ type: "address",
138
+ },
139
+ {
140
+ components: [
141
+ {
142
+ internalType: "address",
143
+ name: "token",
144
+ type: "address",
145
+ },
146
+ {
147
+ internalType: "uint256",
148
+ name: "balance",
149
+ type: "uint256",
150
+ },
151
+ ],
152
+ internalType: "struct Balance[]",
153
+ name: "balances",
154
+ type: "tuple[]",
155
+ },
156
+ {
157
+ internalType: "address",
158
+ name: "target",
159
+ type: "address",
160
+ },
161
+ {
162
+ internalType: "address[]",
163
+ name: "connectors",
164
+ type: "address[]",
165
+ },
166
+ {
167
+ internalType: "address[]",
168
+ name: "adapters",
169
+ type: "address[]",
170
+ },
171
+ {
172
+ internalType: "uint256",
173
+ name: "slippage",
174
+ type: "uint256",
175
+ },
176
+ {
177
+ internalType: "enum TokenType",
178
+ name: "targetType",
179
+ type: "uint8",
180
+ },
181
+ {
182
+ components: [
183
+ {
184
+ internalType: "address",
185
+ name: "token",
186
+ type: "address",
187
+ },
188
+ {
189
+ internalType: "address[]",
190
+ name: "adapters",
191
+ type: "address[]",
192
+ },
193
+ ],
194
+ internalType: "struct TokenAdapters[]",
195
+ name: "foundAdapters",
196
+ type: "tuple[]",
197
+ },
198
+ {
199
+ internalType: "uint256",
200
+ name: "gasPriceTargetRAY",
201
+ type: "uint256",
202
+ },
203
+ {
204
+ internalType: "uint256",
205
+ name: "gasUsage",
206
+ type: "uint256",
207
+ },
208
+ {
209
+ internalType: "uint256",
210
+ name: "initTargetBalance",
211
+ type: "uint256",
212
+ },
213
+ {
214
+ components: [
215
+ {
216
+ internalType: "address",
217
+ name: "target",
218
+ type: "address",
219
+ },
220
+ {
221
+ internalType: "bytes",
222
+ name: "callData",
223
+ type: "bytes",
224
+ },
225
+ ],
226
+ internalType: "struct MultiCall[]",
227
+ name: "calls",
228
+ type: "tuple[]",
229
+ },
230
+ ],
231
+ internalType: "struct StrategyPathTask",
232
+ name: "",
233
+ type: "tuple",
234
+ },
235
+ ],
236
+ stateMutability: "view",
237
+ type: "function",
238
+ },
239
+ {
240
+ inputs: [
241
+ {
242
+ internalType: "address",
243
+ name: "tokenIn",
244
+ type: "address",
245
+ },
246
+ {
247
+ internalType: "uint256",
248
+ name: "amount",
249
+ type: "uint256",
250
+ },
251
+ {
252
+ internalType: "enum TokenType",
253
+ name: "ttOut",
254
+ type: "uint8",
255
+ },
256
+ {
257
+ internalType: "address",
258
+ name: "tokenOut",
259
+ type: "address",
260
+ },
261
+ {
262
+ components: [
263
+ {
264
+ internalType: "address",
265
+ name: "creditAccount",
266
+ type: "address",
267
+ },
268
+ {
269
+ components: [
270
+ {
271
+ internalType: "address",
272
+ name: "token",
273
+ type: "address",
274
+ },
275
+ {
276
+ internalType: "uint256",
277
+ name: "balance",
278
+ type: "uint256",
279
+ },
280
+ ],
281
+ internalType: "struct Balance[]",
282
+ name: "balances",
283
+ type: "tuple[]",
284
+ },
285
+ {
286
+ internalType: "address",
287
+ name: "target",
288
+ type: "address",
289
+ },
290
+ {
291
+ internalType: "address[]",
292
+ name: "connectors",
293
+ type: "address[]",
294
+ },
295
+ {
296
+ internalType: "address[]",
297
+ name: "adapters",
298
+ type: "address[]",
299
+ },
300
+ {
301
+ internalType: "uint256",
302
+ name: "slippage",
303
+ type: "uint256",
304
+ },
305
+ {
306
+ internalType: "enum TokenType",
307
+ name: "targetType",
308
+ type: "uint8",
309
+ },
310
+ {
311
+ components: [
312
+ {
313
+ internalType: "address",
314
+ name: "token",
315
+ type: "address",
316
+ },
317
+ {
318
+ internalType: "address[]",
319
+ name: "adapters",
320
+ type: "address[]",
321
+ },
322
+ ],
323
+ internalType: "struct TokenAdapters[]",
324
+ name: "foundAdapters",
325
+ type: "tuple[]",
326
+ },
327
+ {
328
+ internalType: "uint256",
329
+ name: "gasPriceTargetRAY",
330
+ type: "uint256",
331
+ },
332
+ {
333
+ internalType: "uint256",
334
+ name: "gasUsage",
335
+ type: "uint256",
336
+ },
337
+ {
338
+ internalType: "uint256",
339
+ name: "initTargetBalance",
340
+ type: "uint256",
341
+ },
342
+ {
343
+ components: [
344
+ {
345
+ internalType: "address",
346
+ name: "target",
347
+ type: "address",
348
+ },
349
+ {
350
+ internalType: "bytes",
351
+ name: "callData",
352
+ type: "bytes",
353
+ },
354
+ ],
355
+ internalType: "struct MultiCall[]",
356
+ name: "calls",
357
+ type: "tuple[]",
358
+ },
359
+ ],
360
+ internalType: "struct StrategyPathTask",
361
+ name: "task",
362
+ type: "tuple",
363
+ },
364
+ ],
365
+ name: "withdraw",
366
+ outputs: [
367
+ {
368
+ internalType: "uint256",
369
+ name: "amountOut",
370
+ type: "uint256",
371
+ },
372
+ {
373
+ components: [
374
+ {
375
+ internalType: "address",
376
+ name: "creditAccount",
377
+ type: "address",
378
+ },
379
+ {
380
+ components: [
381
+ {
382
+ internalType: "address",
383
+ name: "token",
384
+ type: "address",
385
+ },
386
+ {
387
+ internalType: "uint256",
388
+ name: "balance",
389
+ type: "uint256",
390
+ },
391
+ ],
392
+ internalType: "struct Balance[]",
393
+ name: "balances",
394
+ type: "tuple[]",
395
+ },
396
+ {
397
+ internalType: "address",
398
+ name: "target",
399
+ type: "address",
400
+ },
401
+ {
402
+ internalType: "address[]",
403
+ name: "connectors",
404
+ type: "address[]",
405
+ },
406
+ {
407
+ internalType: "address[]",
408
+ name: "adapters",
409
+ type: "address[]",
410
+ },
411
+ {
412
+ internalType: "uint256",
413
+ name: "slippage",
414
+ type: "uint256",
415
+ },
416
+ {
417
+ internalType: "enum TokenType",
418
+ name: "targetType",
419
+ type: "uint8",
420
+ },
421
+ {
422
+ components: [
423
+ {
424
+ internalType: "address",
425
+ name: "token",
426
+ type: "address",
427
+ },
428
+ {
429
+ internalType: "address[]",
430
+ name: "adapters",
431
+ type: "address[]",
432
+ },
433
+ ],
434
+ internalType: "struct TokenAdapters[]",
435
+ name: "foundAdapters",
436
+ type: "tuple[]",
437
+ },
438
+ {
439
+ internalType: "uint256",
440
+ name: "gasPriceTargetRAY",
441
+ type: "uint256",
442
+ },
443
+ {
444
+ internalType: "uint256",
445
+ name: "gasUsage",
446
+ type: "uint256",
447
+ },
448
+ {
449
+ internalType: "uint256",
450
+ name: "initTargetBalance",
451
+ type: "uint256",
452
+ },
453
+ {
454
+ components: [
455
+ {
456
+ internalType: "address",
457
+ name: "target",
458
+ type: "address",
459
+ },
460
+ {
461
+ internalType: "bytes",
462
+ name: "callData",
463
+ type: "bytes",
464
+ },
465
+ ],
466
+ internalType: "struct MultiCall[]",
467
+ name: "calls",
468
+ type: "tuple[]",
469
+ },
470
+ ],
471
+ internalType: "struct StrategyPathTask",
472
+ name: "",
473
+ type: "tuple",
474
+ },
475
+ ],
476
+ stateMutability: "view",
477
+ type: "function",
478
+ },
479
+ {
480
+ inputs: [
481
+ {
482
+ components: [
483
+ {
484
+ internalType: "address",
485
+ name: "creditAccount",
486
+ type: "address",
487
+ },
488
+ {
489
+ components: [
490
+ {
491
+ internalType: "address",
492
+ name: "token",
493
+ type: "address",
494
+ },
495
+ {
496
+ internalType: "uint256",
497
+ name: "balance",
498
+ type: "uint256",
499
+ },
500
+ ],
501
+ internalType: "struct Balance[]",
502
+ name: "balances",
503
+ type: "tuple[]",
504
+ },
505
+ {
506
+ internalType: "address",
507
+ name: "target",
508
+ type: "address",
509
+ },
510
+ {
511
+ internalType: "address[]",
512
+ name: "connectors",
513
+ type: "address[]",
514
+ },
515
+ {
516
+ internalType: "address[]",
517
+ name: "adapters",
518
+ type: "address[]",
519
+ },
520
+ {
521
+ internalType: "uint256",
522
+ name: "slippage",
523
+ type: "uint256",
524
+ },
525
+ {
526
+ internalType: "enum TokenType",
527
+ name: "targetType",
528
+ type: "uint8",
529
+ },
530
+ {
531
+ components: [
532
+ {
533
+ internalType: "address",
534
+ name: "token",
535
+ type: "address",
536
+ },
537
+ {
538
+ internalType: "address[]",
539
+ name: "adapters",
540
+ type: "address[]",
541
+ },
542
+ ],
543
+ internalType: "struct TokenAdapters[]",
544
+ name: "foundAdapters",
545
+ type: "tuple[]",
546
+ },
547
+ {
548
+ internalType: "uint256",
549
+ name: "gasPriceTargetRAY",
550
+ type: "uint256",
551
+ },
552
+ {
553
+ internalType: "uint256",
554
+ name: "gasUsage",
555
+ type: "uint256",
556
+ },
557
+ {
558
+ internalType: "uint256",
559
+ name: "initTargetBalance",
560
+ type: "uint256",
561
+ },
562
+ {
563
+ components: [
564
+ {
565
+ internalType: "address",
566
+ name: "target",
567
+ type: "address",
568
+ },
569
+ {
570
+ internalType: "bytes",
571
+ name: "callData",
572
+ type: "bytes",
573
+ },
574
+ ],
575
+ internalType: "struct MultiCall[]",
576
+ name: "calls",
577
+ type: "tuple[]",
578
+ },
579
+ ],
580
+ internalType: "struct StrategyPathTask",
581
+ name: "task",
582
+ type: "tuple",
583
+ },
584
+ {
585
+ components: [
586
+ {
587
+ internalType: "address",
588
+ name: "target",
589
+ type: "address",
590
+ },
591
+ {
592
+ internalType: "uint8",
593
+ name: "option",
594
+ type: "uint8",
595
+ },
596
+ {
597
+ internalType: "uint8",
598
+ name: "totalOptions",
599
+ type: "uint8",
600
+ },
601
+ ],
602
+ internalType: "struct PathOption[]",
603
+ name: "pathOptions",
604
+ type: "tuple[]",
605
+ },
606
+ ],
607
+ name: "withdrawAllTokens",
608
+ outputs: [
609
+ {
610
+ components: [
611
+ {
612
+ internalType: "address",
613
+ name: "creditAccount",
614
+ type: "address",
615
+ },
616
+ {
617
+ components: [
618
+ {
619
+ internalType: "address",
620
+ name: "token",
621
+ type: "address",
622
+ },
623
+ {
624
+ internalType: "uint256",
625
+ name: "balance",
626
+ type: "uint256",
627
+ },
628
+ ],
629
+ internalType: "struct Balance[]",
630
+ name: "balances",
631
+ type: "tuple[]",
632
+ },
633
+ {
634
+ internalType: "address",
635
+ name: "target",
636
+ type: "address",
637
+ },
638
+ {
639
+ internalType: "address[]",
640
+ name: "connectors",
641
+ type: "address[]",
642
+ },
643
+ {
644
+ internalType: "address[]",
645
+ name: "adapters",
646
+ type: "address[]",
647
+ },
648
+ {
649
+ internalType: "uint256",
650
+ name: "slippage",
651
+ type: "uint256",
652
+ },
653
+ {
654
+ internalType: "enum TokenType",
655
+ name: "targetType",
656
+ type: "uint8",
657
+ },
658
+ {
659
+ components: [
660
+ {
661
+ internalType: "address",
662
+ name: "token",
663
+ type: "address",
664
+ },
665
+ {
666
+ internalType: "address[]",
667
+ name: "adapters",
668
+ type: "address[]",
669
+ },
670
+ ],
671
+ internalType: "struct TokenAdapters[]",
672
+ name: "foundAdapters",
673
+ type: "tuple[]",
674
+ },
675
+ {
676
+ internalType: "uint256",
677
+ name: "gasPriceTargetRAY",
678
+ type: "uint256",
679
+ },
680
+ {
681
+ internalType: "uint256",
682
+ name: "gasUsage",
683
+ type: "uint256",
684
+ },
685
+ {
686
+ internalType: "uint256",
687
+ name: "initTargetBalance",
688
+ type: "uint256",
689
+ },
690
+ {
691
+ components: [
692
+ {
693
+ internalType: "address",
694
+ name: "target",
695
+ type: "address",
696
+ },
697
+ {
698
+ internalType: "bytes",
699
+ name: "callData",
700
+ type: "bytes",
701
+ },
702
+ ],
703
+ internalType: "struct MultiCall[]",
704
+ name: "calls",
705
+ type: "tuple[]",
706
+ },
707
+ ],
708
+ internalType: "struct StrategyPathTask",
709
+ name: "",
710
+ type: "tuple",
711
+ },
712
+ ],
713
+ stateMutability: "view",
714
+ type: "function",
715
+ },
716
+ ];
717
+ var IWithdrawerOptions__factory = /** @class */ (function () {
718
+ function IWithdrawerOptions__factory() {
719
+ }
720
+ IWithdrawerOptions__factory.createInterface = function () {
721
+ return new ethers_1.utils.Interface(_abi);
722
+ };
723
+ IWithdrawerOptions__factory.connect = function (address, signerOrProvider) {
724
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
725
+ };
726
+ IWithdrawerOptions__factory.abi = _abi;
727
+ return IWithdrawerOptions__factory;
728
+ }());
729
+ exports.IWithdrawerOptions__factory = IWithdrawerOptions__factory;