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