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