@gearbox-protocol/sdk 1.3.3 → 1.5.0
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.
- package/lib/apy/index.d.ts +1 -0
- package/lib/core/adapter.d.ts +34 -0
- package/lib/core/adapter.js +76 -0
- package/lib/core/assets.d.ts +34 -0
- package/lib/core/assets.js +98 -0
- package/lib/core/constants.d.ts +1 -0
- package/lib/core/constants.js +3 -1
- package/lib/core/creditAccount.d.ts +14 -5
- package/lib/core/creditAccount.js +35 -3
- package/lib/core/creditManager.d.ts +12 -3
- package/lib/core/creditManager.js +34 -36
- package/lib/core/strategy.d.ts +15 -5
- package/lib/core/strategy.js +42 -7
- package/lib/core/trade.d.ts +49 -0
- package/lib/core/trade.js +70 -0
- package/lib/core/wcOperation.d.ts +54 -0
- package/lib/core/wcOperation.js +76 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +6 -0
- package/lib/parsers/abstractParser.d.ts +18 -0
- package/lib/parsers/abstractParser.js +32 -0
- package/lib/parsers/convexBaseRewardPoolAdapterParser.d.ts +9 -0
- package/lib/parsers/convexBaseRewardPoolAdapterParser.js +60 -0
- package/lib/parsers/convexBaseRewardPoolAdapterParser.spec.d.ts +1 -0
- package/lib/parsers/convexBaseRewardPoolAdapterParser.spec.js +24 -0
- package/lib/parsers/convexBoosterAdapterParser.d.ts +10 -0
- package/lib/parsers/convexBoosterAdapterParser.js +62 -0
- package/lib/parsers/convexBoosterAdapterParser.spec.d.ts +1 -0
- package/lib/parsers/convexBoosterAdapterParser.spec.js +20 -0
- package/lib/parsers/creditFacadeParser.d.ts +9 -0
- package/lib/parsers/creditFacadeParser.js +66 -0
- package/lib/parsers/creditFacadeParser.spec.d.ts +1 -0
- package/lib/parsers/creditFacadeParser.spec.js +27 -0
- package/lib/parsers/curveAdapterParser.d.ts +12 -0
- package/lib/parsers/curveAdapterParser.js +106 -0
- package/lib/parsers/curveAdapterParser.spec.d.ts +1 -0
- package/lib/parsers/curveAdapterParser.spec.js +49 -0
- package/lib/parsers/iParser.d.ts +3 -0
- package/lib/{types/contracts/test/suites/mainnet/IPriceFeedsRegistry.js → parsers/iParser.js} +0 -0
- package/lib/parsers/lidoAdapterParser.d.ts +7 -0
- package/lib/parsers/lidoAdapterParser.js +46 -0
- package/lib/parsers/lidoAdapterParser.spec.d.ts +1 -0
- package/lib/parsers/lidoAdapterParser.spec.js +17 -0
- package/lib/parsers/txParser.d.ts +18 -0
- package/lib/parsers/txParser.js +122 -0
- package/lib/parsers/uniV2AdapterParser.d.ts +8 -0
- package/lib/parsers/uniV2AdapterParser.js +73 -0
- package/lib/parsers/uniV2AdapterParser.spec.d.ts +1 -0
- package/lib/parsers/uniV2AdapterParser.spec.js +48 -0
- package/lib/parsers/uniV3AdapterParser.d.ts +9 -0
- package/lib/parsers/uniV3AdapterParser.js +99 -0
- package/lib/parsers/uniV3AdapterParser.spec.d.ts +1 -0
- package/lib/parsers/uniV3AdapterParser.spec.js +82 -0
- package/lib/parsers/yearnAdapterParser.spec.d.ts +1 -0
- package/lib/parsers/yearnAdapterParser.spec.js +36 -0
- package/lib/parsers/yearnV2AdapterParser.d.ts +7 -0
- package/lib/parsers/yearnV2AdapterParser.js +54 -0
- package/lib/tokens/convex.d.ts +4 -2
- package/lib/tokens/convex.js +10 -1
- package/lib/tokens/decimals.d.ts +2 -0
- package/lib/tokens/decimals.js +62 -0
- package/lib/tokens/tokenType.d.ts +10 -9
- package/lib/tokens/tokenType.js +10 -9
- package/lib/types/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExtended.d.ts +66 -2
- package/lib/types/contracts/interfaces/adapters/curve/ICurveV1_2AssetsAdapter.d.ts +620 -0
- package/lib/types/contracts/interfaces/adapters/curve/ICurveV1_2AssetsAdapter.js +2 -0
- package/lib/types/contracts/interfaces/adapters/curve/ICurveV1_3AssetsAdapter.d.ts +622 -0
- package/lib/types/contracts/interfaces/adapters/curve/ICurveV1_3AssetsAdapter.js +2 -0
- package/lib/types/contracts/interfaces/adapters/curve/ICurveV1_4AssetsAdapter.d.ts +648 -0
- package/lib/types/contracts/interfaces/adapters/curve/ICurveV1_4AssetsAdapter.js +2 -0
- package/lib/types/contracts/interfaces/adapters/curve/index.d.ts +3 -0
- package/lib/types/contracts/interfaces/adapters/index.d.ts +2 -0
- package/lib/types/contracts/interfaces/adapters/yearn/IYearnV2Adapter.d.ts +330 -0
- package/lib/types/contracts/interfaces/adapters/yearn/IYearnV2Adapter.js +2 -0
- package/lib/types/contracts/interfaces/adapters/yearn/index.d.ts +1 -0
- package/lib/types/contracts/interfaces/adapters/yearn/index.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/IClosePathResolver.d.ts +28 -7
- package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/IDepositor.d.ts +30 -9
- package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions.d.ts +31 -10
- package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker.d.ts +28 -7
- package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions.d.ts +28 -7
- package/lib/types/contracts/pathfinder/interfaces/IPathFinder.d.ts +24 -0
- package/lib/types/contracts/pathfinder/interfaces/IPathFinderComponent.d.ts +50 -0
- package/lib/types/contracts/pathfinder/interfaces/IPathFinderComponent.js +2 -0
- package/lib/types/contracts/pathfinder/interfaces/IPathResolver.d.ts +29 -8
- package/lib/types/contracts/pathfinder/interfaces/ISwapAggregator.d.ts +99 -15
- package/lib/types/contracts/pathfinder/interfaces/ISwapper.d.ts +17 -1
- package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer.d.ts +53 -9
- package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions.d.ts +53 -9
- package/lib/types/contracts/pathfinder/interfaces/index.d.ts +1 -0
- package/lib/types/contracts/test/suites/mainnet/ITokenTestSuite.d.ts +110 -18
- package/lib/types/contracts/test/suites/mainnet/SupportedContracts.sol/ISupportedContracts.d.ts +50 -0
- package/lib/types/contracts/test/suites/mainnet/SupportedContracts.sol/ISupportedContracts.js +2 -0
- package/lib/types/contracts/test/suites/mainnet/SupportedContracts.sol/index.d.ts +1 -0
- package/lib/types/contracts/test/suites/mainnet/SupportedContracts.sol/index.js +2 -0
- package/lib/types/contracts/test/suites/mainnet/Tokens.sol/IToken.d.ts +60 -0
- package/lib/types/contracts/test/suites/mainnet/Tokens.sol/IToken.js +2 -0
- package/lib/types/contracts/test/suites/mainnet/Tokens.sol/index.d.ts +1 -0
- package/lib/types/contracts/test/suites/mainnet/Tokens.sol/index.js +2 -0
- package/lib/types/contracts/test/suites/mainnet/index.d.ts +4 -1
- package/lib/types/factories/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExtended__factory.js +62 -0
- package/lib/types/factories/contracts/{test/suites/mainnet/IPriceFeedsRegistry__factory.d.ts → interfaces/adapters/curve/ICurveV1_2AssetsAdapter__factory.d.ts} +4 -4
- package/lib/types/factories/contracts/interfaces/adapters/curve/ICurveV1_2AssetsAdapter__factory.js +1066 -0
- package/lib/types/factories/contracts/interfaces/adapters/curve/ICurveV1_3AssetsAdapter__factory.d.ts +32 -0
- package/lib/types/factories/contracts/interfaces/adapters/curve/ICurveV1_3AssetsAdapter__factory.js +1066 -0
- package/lib/types/factories/contracts/interfaces/adapters/curve/ICurveV1_4AssetsAdapter__factory.d.ts +32 -0
- package/lib/types/factories/contracts/interfaces/adapters/curve/ICurveV1_4AssetsAdapter__factory.js +1066 -0
- package/lib/types/factories/contracts/interfaces/adapters/curve/index.d.ts +3 -0
- package/lib/types/factories/contracts/interfaces/adapters/curve/index.js +7 -1
- package/lib/types/factories/contracts/interfaces/adapters/index.d.ts +1 -0
- package/lib/types/factories/contracts/interfaces/adapters/index.js +2 -1
- package/lib/types/factories/contracts/interfaces/adapters/yearn/IYearnV2Adapter__factory.d.ts +46 -0
- package/lib/types/factories/contracts/interfaces/adapters/yearn/IYearnV2Adapter__factory.js +487 -0
- package/lib/types/factories/contracts/interfaces/adapters/yearn/index.d.ts +1 -0
- package/lib/types/factories/contracts/interfaces/adapters/yearn/index.js +8 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IClosePathResolver__factory.d.ts +12 -2
- package/lib/types/factories/contracts/pathfinder/interfaces/IClosePathResolver__factory.js +54 -8
- package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions__factory.js +138 -32
- package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositor__factory.js +110 -24
- package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions__factory.js +54 -8
- package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker__factory.js +54 -8
- package/lib/types/factories/contracts/pathfinder/interfaces/IPathFinderComponent__factory.d.ts +18 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IPathFinderComponent__factory.js +48 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IPathFinder__factory.js +32 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IPathResolver__factory.d.ts +12 -2
- package/lib/types/factories/contracts/pathfinder/interfaces/IPathResolver__factory.js +82 -16
- package/lib/types/factories/contracts/pathfinder/interfaces/ISwapAggregator__factory.js +877 -56
- package/lib/types/factories/contracts/pathfinder/interfaces/ISwapper__factory.d.ts +12 -2
- package/lib/types/factories/contracts/pathfinder/interfaces/ISwapper__factory.js +26 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions__factory.js +365 -24
- package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer__factory.js +355 -24
- package/lib/types/factories/contracts/pathfinder/interfaces/index.d.ts +1 -0
- package/lib/types/factories/contracts/pathfinder/interfaces/index.js +3 -1
- package/lib/types/factories/contracts/support/MultiCall.sol/Multicall2__factory.d.ts +1 -1
- package/lib/types/factories/contracts/support/MultiCall.sol/Multicall2__factory.js +1 -1
- package/lib/types/factories/contracts/test/suites/mainnet/ITokenTestSuite__factory.d.ts +2 -12
- package/lib/types/factories/contracts/test/suites/mainnet/ITokenTestSuite__factory.js +140 -12
- package/lib/types/factories/contracts/test/suites/mainnet/SupportedContracts.sol/ISupportedContracts__factory.d.ts +22 -0
- package/lib/types/factories/contracts/test/suites/mainnet/{IPriceFeedsRegistry__factory.js → SupportedContracts.sol/ISupportedContracts__factory.js} +25 -17
- package/lib/types/factories/contracts/test/suites/mainnet/SupportedContracts.sol/index.d.ts +1 -0
- package/lib/types/factories/contracts/test/suites/mainnet/SupportedContracts.sol/index.js +8 -0
- package/lib/types/factories/contracts/test/suites/mainnet/Tokens.sol/IToken__factory.d.ts +22 -0
- package/lib/types/factories/contracts/test/suites/mainnet/Tokens.sol/IToken__factory.js +79 -0
- package/lib/types/factories/contracts/test/suites/mainnet/Tokens.sol/index.d.ts +1 -0
- package/lib/types/factories/contracts/test/suites/mainnet/Tokens.sol/index.js +8 -0
- package/lib/types/factories/contracts/test/suites/mainnet/index.d.ts +2 -1
- package/lib/types/factories/contracts/test/suites/mainnet/index.js +26 -3
- package/lib/types/index.d.ts +14 -2
- package/lib/types/index.js +17 -5
- package/lib/utils/math.d.ts +1 -0
- package/lib/utils/math.js +5 -1
- package/package.json +6 -2
- package/lib/types/contracts/test/suites/mainnet/IPriceFeedsRegistry.d.ts +0 -42
package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositor__factory.js
CHANGED
|
@@ -59,7 +59,7 @@ var _abi = [
|
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
internalType: "uint256",
|
|
62
|
-
name: "
|
|
62
|
+
name: "slippagePerStep",
|
|
63
63
|
type: "uint256",
|
|
64
64
|
},
|
|
65
65
|
{
|
|
@@ -75,9 +75,14 @@ var _abi = [
|
|
|
75
75
|
type: "address",
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
internalType: "address
|
|
79
|
-
name: "
|
|
80
|
-
type: "address
|
|
78
|
+
internalType: "address",
|
|
79
|
+
name: "depositAdapter",
|
|
80
|
+
type: "address",
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
internalType: "address",
|
|
84
|
+
name: "withdrawAdapter",
|
|
85
|
+
type: "address",
|
|
81
86
|
},
|
|
82
87
|
],
|
|
83
88
|
internalType: "struct TokenAdapters[]",
|
|
@@ -94,6 +99,11 @@ var _abi = [
|
|
|
94
99
|
name: "gasUsage",
|
|
95
100
|
type: "uint256",
|
|
96
101
|
},
|
|
102
|
+
{
|
|
103
|
+
internalType: "uint256",
|
|
104
|
+
name: "slippageMultiplier",
|
|
105
|
+
type: "uint256",
|
|
106
|
+
},
|
|
97
107
|
{
|
|
98
108
|
internalType: "uint256",
|
|
99
109
|
name: "initTargetBalance",
|
|
@@ -170,7 +180,7 @@ var _abi = [
|
|
|
170
180
|
},
|
|
171
181
|
{
|
|
172
182
|
internalType: "uint256",
|
|
173
|
-
name: "
|
|
183
|
+
name: "slippagePerStep",
|
|
174
184
|
type: "uint256",
|
|
175
185
|
},
|
|
176
186
|
{
|
|
@@ -186,9 +196,14 @@ var _abi = [
|
|
|
186
196
|
type: "address",
|
|
187
197
|
},
|
|
188
198
|
{
|
|
189
|
-
internalType: "address
|
|
190
|
-
name: "
|
|
191
|
-
type: "address
|
|
199
|
+
internalType: "address",
|
|
200
|
+
name: "depositAdapter",
|
|
201
|
+
type: "address",
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
internalType: "address",
|
|
205
|
+
name: "withdrawAdapter",
|
|
206
|
+
type: "address",
|
|
192
207
|
},
|
|
193
208
|
],
|
|
194
209
|
internalType: "struct TokenAdapters[]",
|
|
@@ -205,6 +220,11 @@ var _abi = [
|
|
|
205
220
|
name: "gasUsage",
|
|
206
221
|
type: "uint256",
|
|
207
222
|
},
|
|
223
|
+
{
|
|
224
|
+
internalType: "uint256",
|
|
225
|
+
name: "slippageMultiplier",
|
|
226
|
+
type: "uint256",
|
|
227
|
+
},
|
|
208
228
|
{
|
|
209
229
|
internalType: "uint256",
|
|
210
230
|
name: "initTargetBalance",
|
|
@@ -284,7 +304,7 @@ var _abi = [
|
|
|
284
304
|
},
|
|
285
305
|
{
|
|
286
306
|
internalType: "uint256",
|
|
287
|
-
name: "
|
|
307
|
+
name: "slippagePerStep",
|
|
288
308
|
type: "uint256",
|
|
289
309
|
},
|
|
290
310
|
{
|
|
@@ -300,9 +320,14 @@ var _abi = [
|
|
|
300
320
|
type: "address",
|
|
301
321
|
},
|
|
302
322
|
{
|
|
303
|
-
internalType: "address
|
|
304
|
-
name: "
|
|
305
|
-
type: "address
|
|
323
|
+
internalType: "address",
|
|
324
|
+
name: "depositAdapter",
|
|
325
|
+
type: "address",
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
internalType: "address",
|
|
329
|
+
name: "withdrawAdapter",
|
|
330
|
+
type: "address",
|
|
306
331
|
},
|
|
307
332
|
],
|
|
308
333
|
internalType: "struct TokenAdapters[]",
|
|
@@ -319,6 +344,11 @@ var _abi = [
|
|
|
319
344
|
name: "gasUsage",
|
|
320
345
|
type: "uint256",
|
|
321
346
|
},
|
|
347
|
+
{
|
|
348
|
+
internalType: "uint256",
|
|
349
|
+
name: "slippageMultiplier",
|
|
350
|
+
type: "uint256",
|
|
351
|
+
},
|
|
322
352
|
{
|
|
323
353
|
internalType: "uint256",
|
|
324
354
|
name: "initTargetBalance",
|
|
@@ -395,7 +425,7 @@ var _abi = [
|
|
|
395
425
|
},
|
|
396
426
|
{
|
|
397
427
|
internalType: "uint256",
|
|
398
|
-
name: "
|
|
428
|
+
name: "slippagePerStep",
|
|
399
429
|
type: "uint256",
|
|
400
430
|
},
|
|
401
431
|
{
|
|
@@ -411,9 +441,14 @@ var _abi = [
|
|
|
411
441
|
type: "address",
|
|
412
442
|
},
|
|
413
443
|
{
|
|
414
|
-
internalType: "address
|
|
415
|
-
name: "
|
|
416
|
-
type: "address
|
|
444
|
+
internalType: "address",
|
|
445
|
+
name: "depositAdapter",
|
|
446
|
+
type: "address",
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
internalType: "address",
|
|
450
|
+
name: "withdrawAdapter",
|
|
451
|
+
type: "address",
|
|
417
452
|
},
|
|
418
453
|
],
|
|
419
454
|
internalType: "struct TokenAdapters[]",
|
|
@@ -430,6 +465,11 @@ var _abi = [
|
|
|
430
465
|
name: "gasUsage",
|
|
431
466
|
type: "uint256",
|
|
432
467
|
},
|
|
468
|
+
{
|
|
469
|
+
internalType: "uint256",
|
|
470
|
+
name: "slippageMultiplier",
|
|
471
|
+
type: "uint256",
|
|
472
|
+
},
|
|
433
473
|
{
|
|
434
474
|
internalType: "uint256",
|
|
435
475
|
name: "initTargetBalance",
|
|
@@ -461,6 +501,19 @@ var _abi = [
|
|
|
461
501
|
stateMutability: "view",
|
|
462
502
|
type: "function",
|
|
463
503
|
},
|
|
504
|
+
{
|
|
505
|
+
inputs: [],
|
|
506
|
+
name: "getComponentId",
|
|
507
|
+
outputs: [
|
|
508
|
+
{
|
|
509
|
+
internalType: "enum PathFinderComponent",
|
|
510
|
+
name: "",
|
|
511
|
+
type: "uint8",
|
|
512
|
+
},
|
|
513
|
+
],
|
|
514
|
+
stateMutability: "view",
|
|
515
|
+
type: "function",
|
|
516
|
+
},
|
|
464
517
|
{
|
|
465
518
|
inputs: [
|
|
466
519
|
{
|
|
@@ -509,7 +562,7 @@ var _abi = [
|
|
|
509
562
|
},
|
|
510
563
|
{
|
|
511
564
|
internalType: "uint256",
|
|
512
|
-
name: "
|
|
565
|
+
name: "slippagePerStep",
|
|
513
566
|
type: "uint256",
|
|
514
567
|
},
|
|
515
568
|
{
|
|
@@ -525,9 +578,14 @@ var _abi = [
|
|
|
525
578
|
type: "address",
|
|
526
579
|
},
|
|
527
580
|
{
|
|
528
|
-
internalType: "address
|
|
529
|
-
name: "
|
|
530
|
-
type: "address
|
|
581
|
+
internalType: "address",
|
|
582
|
+
name: "depositAdapter",
|
|
583
|
+
type: "address",
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
internalType: "address",
|
|
587
|
+
name: "withdrawAdapter",
|
|
588
|
+
type: "address",
|
|
531
589
|
},
|
|
532
590
|
],
|
|
533
591
|
internalType: "struct TokenAdapters[]",
|
|
@@ -544,6 +602,11 @@ var _abi = [
|
|
|
544
602
|
name: "gasUsage",
|
|
545
603
|
type: "uint256",
|
|
546
604
|
},
|
|
605
|
+
{
|
|
606
|
+
internalType: "uint256",
|
|
607
|
+
name: "slippageMultiplier",
|
|
608
|
+
type: "uint256",
|
|
609
|
+
},
|
|
547
610
|
{
|
|
548
611
|
internalType: "uint256",
|
|
549
612
|
name: "initTargetBalance",
|
|
@@ -620,7 +683,7 @@ var _abi = [
|
|
|
620
683
|
},
|
|
621
684
|
{
|
|
622
685
|
internalType: "uint256",
|
|
623
|
-
name: "
|
|
686
|
+
name: "slippagePerStep",
|
|
624
687
|
type: "uint256",
|
|
625
688
|
},
|
|
626
689
|
{
|
|
@@ -636,9 +699,14 @@ var _abi = [
|
|
|
636
699
|
type: "address",
|
|
637
700
|
},
|
|
638
701
|
{
|
|
639
|
-
internalType: "address
|
|
640
|
-
name: "
|
|
641
|
-
type: "address
|
|
702
|
+
internalType: "address",
|
|
703
|
+
name: "depositAdapter",
|
|
704
|
+
type: "address",
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
internalType: "address",
|
|
708
|
+
name: "withdrawAdapter",
|
|
709
|
+
type: "address",
|
|
642
710
|
},
|
|
643
711
|
],
|
|
644
712
|
internalType: "struct TokenAdapters[]",
|
|
@@ -655,6 +723,11 @@ var _abi = [
|
|
|
655
723
|
name: "gasUsage",
|
|
656
724
|
type: "uint256",
|
|
657
725
|
},
|
|
726
|
+
{
|
|
727
|
+
internalType: "uint256",
|
|
728
|
+
name: "slippageMultiplier",
|
|
729
|
+
type: "uint256",
|
|
730
|
+
},
|
|
658
731
|
{
|
|
659
732
|
internalType: "uint256",
|
|
660
733
|
name: "initTargetBalance",
|
|
@@ -686,6 +759,19 @@ var _abi = [
|
|
|
686
759
|
stateMutability: "view",
|
|
687
760
|
type: "function",
|
|
688
761
|
},
|
|
762
|
+
{
|
|
763
|
+
inputs: [],
|
|
764
|
+
name: "version",
|
|
765
|
+
outputs: [
|
|
766
|
+
{
|
|
767
|
+
internalType: "uint256",
|
|
768
|
+
name: "",
|
|
769
|
+
type: "uint256",
|
|
770
|
+
},
|
|
771
|
+
],
|
|
772
|
+
stateMutability: "view",
|
|
773
|
+
type: "function",
|
|
774
|
+
},
|
|
689
775
|
];
|
|
690
776
|
var IDepositor__factory = /** @class */ (function () {
|
|
691
777
|
function IDepositor__factory() {
|
|
@@ -6,6 +6,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.ILPWorkerOptions__factory = void 0;
|
|
7
7
|
var ethers_1 = require("ethers");
|
|
8
8
|
var _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [],
|
|
11
|
+
name: "getComponentId",
|
|
12
|
+
outputs: [
|
|
13
|
+
{
|
|
14
|
+
internalType: "enum PathFinderComponent",
|
|
15
|
+
name: "",
|
|
16
|
+
type: "uint8",
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
stateMutability: "view",
|
|
20
|
+
type: "function",
|
|
21
|
+
},
|
|
9
22
|
{
|
|
10
23
|
inputs: [
|
|
11
24
|
{
|
|
@@ -59,7 +72,7 @@ var _abi = [
|
|
|
59
72
|
},
|
|
60
73
|
{
|
|
61
74
|
internalType: "uint256",
|
|
62
|
-
name: "
|
|
75
|
+
name: "slippagePerStep",
|
|
63
76
|
type: "uint256",
|
|
64
77
|
},
|
|
65
78
|
{
|
|
@@ -75,9 +88,14 @@ var _abi = [
|
|
|
75
88
|
type: "address",
|
|
76
89
|
},
|
|
77
90
|
{
|
|
78
|
-
internalType: "address
|
|
79
|
-
name: "
|
|
80
|
-
type: "address
|
|
91
|
+
internalType: "address",
|
|
92
|
+
name: "depositAdapter",
|
|
93
|
+
type: "address",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
internalType: "address",
|
|
97
|
+
name: "withdrawAdapter",
|
|
98
|
+
type: "address",
|
|
81
99
|
},
|
|
82
100
|
],
|
|
83
101
|
internalType: "struct TokenAdapters[]",
|
|
@@ -94,6 +112,11 @@ var _abi = [
|
|
|
94
112
|
name: "gasUsage",
|
|
95
113
|
type: "uint256",
|
|
96
114
|
},
|
|
115
|
+
{
|
|
116
|
+
internalType: "uint256",
|
|
117
|
+
name: "slippageMultiplier",
|
|
118
|
+
type: "uint256",
|
|
119
|
+
},
|
|
97
120
|
{
|
|
98
121
|
internalType: "uint256",
|
|
99
122
|
name: "initTargetBalance",
|
|
@@ -170,7 +193,7 @@ var _abi = [
|
|
|
170
193
|
},
|
|
171
194
|
{
|
|
172
195
|
internalType: "uint256",
|
|
173
|
-
name: "
|
|
196
|
+
name: "slippagePerStep",
|
|
174
197
|
type: "uint256",
|
|
175
198
|
},
|
|
176
199
|
{
|
|
@@ -186,9 +209,14 @@ var _abi = [
|
|
|
186
209
|
type: "address",
|
|
187
210
|
},
|
|
188
211
|
{
|
|
189
|
-
internalType: "address
|
|
190
|
-
name: "
|
|
191
|
-
type: "address
|
|
212
|
+
internalType: "address",
|
|
213
|
+
name: "depositAdapter",
|
|
214
|
+
type: "address",
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
internalType: "address",
|
|
218
|
+
name: "withdrawAdapter",
|
|
219
|
+
type: "address",
|
|
192
220
|
},
|
|
193
221
|
],
|
|
194
222
|
internalType: "struct TokenAdapters[]",
|
|
@@ -205,6 +233,11 @@ var _abi = [
|
|
|
205
233
|
name: "gasUsage",
|
|
206
234
|
type: "uint256",
|
|
207
235
|
},
|
|
236
|
+
{
|
|
237
|
+
internalType: "uint256",
|
|
238
|
+
name: "slippageMultiplier",
|
|
239
|
+
type: "uint256",
|
|
240
|
+
},
|
|
208
241
|
{
|
|
209
242
|
internalType: "uint256",
|
|
210
243
|
name: "initTargetBalance",
|
|
@@ -236,6 +269,19 @@ var _abi = [
|
|
|
236
269
|
stateMutability: "view",
|
|
237
270
|
type: "function",
|
|
238
271
|
},
|
|
272
|
+
{
|
|
273
|
+
inputs: [],
|
|
274
|
+
name: "version",
|
|
275
|
+
outputs: [
|
|
276
|
+
{
|
|
277
|
+
internalType: "uint256",
|
|
278
|
+
name: "",
|
|
279
|
+
type: "uint256",
|
|
280
|
+
},
|
|
281
|
+
],
|
|
282
|
+
stateMutability: "view",
|
|
283
|
+
type: "function",
|
|
284
|
+
},
|
|
239
285
|
];
|
|
240
286
|
var ILPWorkerOptions__factory = /** @class */ (function () {
|
|
241
287
|
function ILPWorkerOptions__factory() {
|
package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker__factory.js
CHANGED
|
@@ -6,6 +6,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.ILPWorker__factory = void 0;
|
|
7
7
|
var ethers_1 = require("ethers");
|
|
8
8
|
var _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [],
|
|
11
|
+
name: "getComponentId",
|
|
12
|
+
outputs: [
|
|
13
|
+
{
|
|
14
|
+
internalType: "enum PathFinderComponent",
|
|
15
|
+
name: "",
|
|
16
|
+
type: "uint8",
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
stateMutability: "view",
|
|
20
|
+
type: "function",
|
|
21
|
+
},
|
|
9
22
|
{
|
|
10
23
|
inputs: [
|
|
11
24
|
{
|
|
@@ -54,7 +67,7 @@ var _abi = [
|
|
|
54
67
|
},
|
|
55
68
|
{
|
|
56
69
|
internalType: "uint256",
|
|
57
|
-
name: "
|
|
70
|
+
name: "slippagePerStep",
|
|
58
71
|
type: "uint256",
|
|
59
72
|
},
|
|
60
73
|
{
|
|
@@ -70,9 +83,14 @@ var _abi = [
|
|
|
70
83
|
type: "address",
|
|
71
84
|
},
|
|
72
85
|
{
|
|
73
|
-
internalType: "address
|
|
74
|
-
name: "
|
|
75
|
-
type: "address
|
|
86
|
+
internalType: "address",
|
|
87
|
+
name: "depositAdapter",
|
|
88
|
+
type: "address",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
internalType: "address",
|
|
92
|
+
name: "withdrawAdapter",
|
|
93
|
+
type: "address",
|
|
76
94
|
},
|
|
77
95
|
],
|
|
78
96
|
internalType: "struct TokenAdapters[]",
|
|
@@ -89,6 +107,11 @@ var _abi = [
|
|
|
89
107
|
name: "gasUsage",
|
|
90
108
|
type: "uint256",
|
|
91
109
|
},
|
|
110
|
+
{
|
|
111
|
+
internalType: "uint256",
|
|
112
|
+
name: "slippageMultiplier",
|
|
113
|
+
type: "uint256",
|
|
114
|
+
},
|
|
92
115
|
{
|
|
93
116
|
internalType: "uint256",
|
|
94
117
|
name: "initTargetBalance",
|
|
@@ -165,7 +188,7 @@ var _abi = [
|
|
|
165
188
|
},
|
|
166
189
|
{
|
|
167
190
|
internalType: "uint256",
|
|
168
|
-
name: "
|
|
191
|
+
name: "slippagePerStep",
|
|
169
192
|
type: "uint256",
|
|
170
193
|
},
|
|
171
194
|
{
|
|
@@ -181,9 +204,14 @@ var _abi = [
|
|
|
181
204
|
type: "address",
|
|
182
205
|
},
|
|
183
206
|
{
|
|
184
|
-
internalType: "address
|
|
185
|
-
name: "
|
|
186
|
-
type: "address
|
|
207
|
+
internalType: "address",
|
|
208
|
+
name: "depositAdapter",
|
|
209
|
+
type: "address",
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
internalType: "address",
|
|
213
|
+
name: "withdrawAdapter",
|
|
214
|
+
type: "address",
|
|
187
215
|
},
|
|
188
216
|
],
|
|
189
217
|
internalType: "struct TokenAdapters[]",
|
|
@@ -200,6 +228,11 @@ var _abi = [
|
|
|
200
228
|
name: "gasUsage",
|
|
201
229
|
type: "uint256",
|
|
202
230
|
},
|
|
231
|
+
{
|
|
232
|
+
internalType: "uint256",
|
|
233
|
+
name: "slippageMultiplier",
|
|
234
|
+
type: "uint256",
|
|
235
|
+
},
|
|
203
236
|
{
|
|
204
237
|
internalType: "uint256",
|
|
205
238
|
name: "initTargetBalance",
|
|
@@ -231,6 +264,19 @@ var _abi = [
|
|
|
231
264
|
stateMutability: "view",
|
|
232
265
|
type: "function",
|
|
233
266
|
},
|
|
267
|
+
{
|
|
268
|
+
inputs: [],
|
|
269
|
+
name: "version",
|
|
270
|
+
outputs: [
|
|
271
|
+
{
|
|
272
|
+
internalType: "uint256",
|
|
273
|
+
name: "",
|
|
274
|
+
type: "uint256",
|
|
275
|
+
},
|
|
276
|
+
],
|
|
277
|
+
stateMutability: "view",
|
|
278
|
+
type: "function",
|
|
279
|
+
},
|
|
234
280
|
];
|
|
235
281
|
var ILPWorker__factory = /** @class */ (function () {
|
|
236
282
|
function ILPWorker__factory() {
|
package/lib/types/factories/contracts/pathfinder/interfaces/IPathFinderComponent__factory.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { IPathFinderComponent, IPathFinderComponentInterface } from "../../../../contracts/pathfinder/interfaces/IPathFinderComponent";
|
|
4
|
+
export declare class IPathFinderComponent__factory {
|
|
5
|
+
static readonly abi: {
|
|
6
|
+
inputs: never[];
|
|
7
|
+
name: string;
|
|
8
|
+
outputs: {
|
|
9
|
+
internalType: string;
|
|
10
|
+
name: string;
|
|
11
|
+
type: string;
|
|
12
|
+
}[];
|
|
13
|
+
stateMutability: string;
|
|
14
|
+
type: string;
|
|
15
|
+
}[];
|
|
16
|
+
static createInterface(): IPathFinderComponentInterface;
|
|
17
|
+
static connect(address: string, signerOrProvider: Signer | Provider): IPathFinderComponent;
|
|
18
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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.IPathFinderComponent__factory = void 0;
|
|
7
|
+
var ethers_1 = require("ethers");
|
|
8
|
+
var _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [],
|
|
11
|
+
name: "getComponentId",
|
|
12
|
+
outputs: [
|
|
13
|
+
{
|
|
14
|
+
internalType: "enum PathFinderComponent",
|
|
15
|
+
name: "",
|
|
16
|
+
type: "uint8",
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
stateMutability: "view",
|
|
20
|
+
type: "function",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
inputs: [],
|
|
24
|
+
name: "version",
|
|
25
|
+
outputs: [
|
|
26
|
+
{
|
|
27
|
+
internalType: "uint256",
|
|
28
|
+
name: "",
|
|
29
|
+
type: "uint256",
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
stateMutability: "view",
|
|
33
|
+
type: "function",
|
|
34
|
+
},
|
|
35
|
+
];
|
|
36
|
+
var IPathFinderComponent__factory = /** @class */ (function () {
|
|
37
|
+
function IPathFinderComponent__factory() {
|
|
38
|
+
}
|
|
39
|
+
IPathFinderComponent__factory.createInterface = function () {
|
|
40
|
+
return new ethers_1.utils.Interface(_abi);
|
|
41
|
+
};
|
|
42
|
+
IPathFinderComponent__factory.connect = function (address, signerOrProvider) {
|
|
43
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
44
|
+
};
|
|
45
|
+
IPathFinderComponent__factory.abi = _abi;
|
|
46
|
+
return IPathFinderComponent__factory;
|
|
47
|
+
}());
|
|
48
|
+
exports.IPathFinderComponent__factory = IPathFinderComponent__factory;
|
|
@@ -25,6 +25,19 @@ var _abi = [
|
|
|
25
25
|
name: "PathFinderComponentUpdate",
|
|
26
26
|
type: "event",
|
|
27
27
|
},
|
|
28
|
+
{
|
|
29
|
+
anonymous: false,
|
|
30
|
+
inputs: [
|
|
31
|
+
{
|
|
32
|
+
indexed: false,
|
|
33
|
+
internalType: "address",
|
|
34
|
+
name: "",
|
|
35
|
+
type: "address",
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
name: "ResolverComponentUpdateFailed",
|
|
39
|
+
type: "event",
|
|
40
|
+
},
|
|
28
41
|
{
|
|
29
42
|
anonymous: false,
|
|
30
43
|
inputs: [
|
|
@@ -50,6 +63,25 @@ var _abi = [
|
|
|
50
63
|
name: "ResolverUpdate",
|
|
51
64
|
type: "event",
|
|
52
65
|
},
|
|
66
|
+
{
|
|
67
|
+
anonymous: false,
|
|
68
|
+
inputs: [
|
|
69
|
+
{
|
|
70
|
+
indexed: true,
|
|
71
|
+
internalType: "address",
|
|
72
|
+
name: "",
|
|
73
|
+
type: "address",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
indexed: true,
|
|
77
|
+
internalType: "enum TokenType",
|
|
78
|
+
name: "",
|
|
79
|
+
type: "uint8",
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
name: "TokenTypeUpdate",
|
|
83
|
+
type: "event",
|
|
84
|
+
},
|
|
53
85
|
{
|
|
54
86
|
inputs: [
|
|
55
87
|
{
|
|
@@ -2,7 +2,7 @@ import { Signer } from "ethers";
|
|
|
2
2
|
import type { Provider } from "@ethersproject/providers";
|
|
3
3
|
import type { IPathResolver, IPathResolverInterface } from "../../../../contracts/pathfinder/interfaces/IPathResolver";
|
|
4
4
|
export declare class IPathResolver__factory {
|
|
5
|
-
static readonly abi: {
|
|
5
|
+
static readonly abi: ({
|
|
6
6
|
inputs: ({
|
|
7
7
|
internalType: string;
|
|
8
8
|
name: string;
|
|
@@ -51,7 +51,17 @@ export declare class IPathResolver__factory {
|
|
|
51
51
|
}[];
|
|
52
52
|
stateMutability: string;
|
|
53
53
|
type: string;
|
|
54
|
-
}
|
|
54
|
+
} | {
|
|
55
|
+
inputs: never[];
|
|
56
|
+
name: string;
|
|
57
|
+
outputs: {
|
|
58
|
+
internalType: string;
|
|
59
|
+
name: string;
|
|
60
|
+
type: string;
|
|
61
|
+
}[];
|
|
62
|
+
stateMutability: string;
|
|
63
|
+
type: string;
|
|
64
|
+
})[];
|
|
55
65
|
static createInterface(): IPathResolverInterface;
|
|
56
66
|
static connect(address: string, signerOrProvider: Signer | Provider): IPathResolver;
|
|
57
67
|
}
|