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