@gearbox-protocol/sdk 1.3.4 → 1.5.1
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/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
|
@@ -2,7 +2,7 @@ import { Signer } from "ethers";
|
|
|
2
2
|
import type { Provider } from "@ethersproject/providers";
|
|
3
3
|
import type { ISwapper, ISwapperInterface } from "../../../../contracts/pathfinder/interfaces/ISwapper";
|
|
4
4
|
export declare class ISwapper__factory {
|
|
5
|
-
static readonly abi: {
|
|
5
|
+
static readonly abi: ({
|
|
6
6
|
inputs: ({
|
|
7
7
|
components: {
|
|
8
8
|
internalType: string;
|
|
@@ -41,7 +41,17 @@ export declare class ISwapper__factory {
|
|
|
41
41
|
}[];
|
|
42
42
|
stateMutability: string;
|
|
43
43
|
type: string;
|
|
44
|
-
}
|
|
44
|
+
} | {
|
|
45
|
+
inputs: never[];
|
|
46
|
+
name: string;
|
|
47
|
+
outputs: {
|
|
48
|
+
internalType: string;
|
|
49
|
+
name: string;
|
|
50
|
+
type: string;
|
|
51
|
+
}[];
|
|
52
|
+
stateMutability: string;
|
|
53
|
+
type: string;
|
|
54
|
+
})[];
|
|
45
55
|
static createInterface(): ISwapperInterface;
|
|
46
56
|
static connect(address: string, signerOrProvider: Signer | Provider): ISwapper;
|
|
47
57
|
}
|
|
@@ -206,6 +206,32 @@ var _abi = [
|
|
|
206
206
|
stateMutability: "nonpayable",
|
|
207
207
|
type: "function",
|
|
208
208
|
},
|
|
209
|
+
{
|
|
210
|
+
inputs: [],
|
|
211
|
+
name: "getComponentId",
|
|
212
|
+
outputs: [
|
|
213
|
+
{
|
|
214
|
+
internalType: "enum PathFinderComponent",
|
|
215
|
+
name: "",
|
|
216
|
+
type: "uint8",
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
stateMutability: "view",
|
|
220
|
+
type: "function",
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
inputs: [],
|
|
224
|
+
name: "version",
|
|
225
|
+
outputs: [
|
|
226
|
+
{
|
|
227
|
+
internalType: "uint256",
|
|
228
|
+
name: "",
|
|
229
|
+
type: "uint256",
|
|
230
|
+
},
|
|
231
|
+
],
|
|
232
|
+
stateMutability: "view",
|
|
233
|
+
type: "function",
|
|
234
|
+
},
|
|
209
235
|
];
|
|
210
236
|
var ISwapper__factory = /** @class */ (function () {
|
|
211
237
|
function ISwapper__factory() {
|
|
@@ -6,6 +6,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.IWithdrawerOptions__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
|
inputs: [
|
|
241
287
|
{
|
|
@@ -299,7 +345,7 @@ var _abi = [
|
|
|
299
345
|
},
|
|
300
346
|
{
|
|
301
347
|
internalType: "uint256",
|
|
302
|
-
name: "
|
|
348
|
+
name: "slippagePerStep",
|
|
303
349
|
type: "uint256",
|
|
304
350
|
},
|
|
305
351
|
{
|
|
@@ -315,9 +361,14 @@ var _abi = [
|
|
|
315
361
|
type: "address",
|
|
316
362
|
},
|
|
317
363
|
{
|
|
318
|
-
internalType: "address
|
|
319
|
-
name: "
|
|
320
|
-
type: "address
|
|
364
|
+
internalType: "address",
|
|
365
|
+
name: "depositAdapter",
|
|
366
|
+
type: "address",
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
internalType: "address",
|
|
370
|
+
name: "withdrawAdapter",
|
|
371
|
+
type: "address",
|
|
321
372
|
},
|
|
322
373
|
],
|
|
323
374
|
internalType: "struct TokenAdapters[]",
|
|
@@ -334,6 +385,11 @@ var _abi = [
|
|
|
334
385
|
name: "gasUsage",
|
|
335
386
|
type: "uint256",
|
|
336
387
|
},
|
|
388
|
+
{
|
|
389
|
+
internalType: "uint256",
|
|
390
|
+
name: "slippageMultiplier",
|
|
391
|
+
type: "uint256",
|
|
392
|
+
},
|
|
337
393
|
{
|
|
338
394
|
internalType: "uint256",
|
|
339
395
|
name: "initTargetBalance",
|
|
@@ -410,7 +466,7 @@ var _abi = [
|
|
|
410
466
|
},
|
|
411
467
|
{
|
|
412
468
|
internalType: "uint256",
|
|
413
|
-
name: "
|
|
469
|
+
name: "slippagePerStep",
|
|
414
470
|
type: "uint256",
|
|
415
471
|
},
|
|
416
472
|
{
|
|
@@ -426,9 +482,14 @@ var _abi = [
|
|
|
426
482
|
type: "address",
|
|
427
483
|
},
|
|
428
484
|
{
|
|
429
|
-
internalType: "address
|
|
430
|
-
name: "
|
|
431
|
-
type: "address
|
|
485
|
+
internalType: "address",
|
|
486
|
+
name: "depositAdapter",
|
|
487
|
+
type: "address",
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
internalType: "address",
|
|
491
|
+
name: "withdrawAdapter",
|
|
492
|
+
type: "address",
|
|
432
493
|
},
|
|
433
494
|
],
|
|
434
495
|
internalType: "struct TokenAdapters[]",
|
|
@@ -445,6 +506,11 @@ var _abi = [
|
|
|
445
506
|
name: "gasUsage",
|
|
446
507
|
type: "uint256",
|
|
447
508
|
},
|
|
509
|
+
{
|
|
510
|
+
internalType: "uint256",
|
|
511
|
+
name: "slippageMultiplier",
|
|
512
|
+
type: "uint256",
|
|
513
|
+
},
|
|
448
514
|
{
|
|
449
515
|
internalType: "uint256",
|
|
450
516
|
name: "initTargetBalance",
|
|
@@ -478,6 +544,21 @@ var _abi = [
|
|
|
478
544
|
},
|
|
479
545
|
{
|
|
480
546
|
inputs: [
|
|
547
|
+
{
|
|
548
|
+
internalType: "address",
|
|
549
|
+
name: "tokenIn",
|
|
550
|
+
type: "address",
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
internalType: "enum TokenType",
|
|
554
|
+
name: "ttOut",
|
|
555
|
+
type: "uint8",
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
internalType: "address",
|
|
559
|
+
name: "tokenOut",
|
|
560
|
+
type: "address",
|
|
561
|
+
},
|
|
481
562
|
{
|
|
482
563
|
components: [
|
|
483
564
|
{
|
|
@@ -519,7 +600,7 @@ var _abi = [
|
|
|
519
600
|
},
|
|
520
601
|
{
|
|
521
602
|
internalType: "uint256",
|
|
522
|
-
name: "
|
|
603
|
+
name: "slippagePerStep",
|
|
523
604
|
type: "uint256",
|
|
524
605
|
},
|
|
525
606
|
{
|
|
@@ -535,9 +616,14 @@ var _abi = [
|
|
|
535
616
|
type: "address",
|
|
536
617
|
},
|
|
537
618
|
{
|
|
538
|
-
internalType: "address
|
|
539
|
-
name: "
|
|
540
|
-
type: "address
|
|
619
|
+
internalType: "address",
|
|
620
|
+
name: "depositAdapter",
|
|
621
|
+
type: "address",
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
internalType: "address",
|
|
625
|
+
name: "withdrawAdapter",
|
|
626
|
+
type: "address",
|
|
541
627
|
},
|
|
542
628
|
],
|
|
543
629
|
internalType: "struct TokenAdapters[]",
|
|
@@ -554,6 +640,251 @@ var _abi = [
|
|
|
554
640
|
name: "gasUsage",
|
|
555
641
|
type: "uint256",
|
|
556
642
|
},
|
|
643
|
+
{
|
|
644
|
+
internalType: "uint256",
|
|
645
|
+
name: "slippageMultiplier",
|
|
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: "task",
|
|
673
|
+
type: "tuple",
|
|
674
|
+
},
|
|
675
|
+
],
|
|
676
|
+
name: "withdrawAll",
|
|
677
|
+
outputs: [
|
|
678
|
+
{
|
|
679
|
+
internalType: "uint256",
|
|
680
|
+
name: "amountOut",
|
|
681
|
+
type: "uint256",
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
components: [
|
|
685
|
+
{
|
|
686
|
+
internalType: "address",
|
|
687
|
+
name: "creditAccount",
|
|
688
|
+
type: "address",
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
components: [
|
|
692
|
+
{
|
|
693
|
+
internalType: "address",
|
|
694
|
+
name: "token",
|
|
695
|
+
type: "address",
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
internalType: "uint256",
|
|
699
|
+
name: "balance",
|
|
700
|
+
type: "uint256",
|
|
701
|
+
},
|
|
702
|
+
],
|
|
703
|
+
internalType: "struct Balance[]",
|
|
704
|
+
name: "balances",
|
|
705
|
+
type: "tuple[]",
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
internalType: "address",
|
|
709
|
+
name: "target",
|
|
710
|
+
type: "address",
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
internalType: "address[]",
|
|
714
|
+
name: "connectors",
|
|
715
|
+
type: "address[]",
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
internalType: "address[]",
|
|
719
|
+
name: "adapters",
|
|
720
|
+
type: "address[]",
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
internalType: "uint256",
|
|
724
|
+
name: "slippagePerStep",
|
|
725
|
+
type: "uint256",
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
internalType: "enum TokenType",
|
|
729
|
+
name: "targetType",
|
|
730
|
+
type: "uint8",
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
components: [
|
|
734
|
+
{
|
|
735
|
+
internalType: "address",
|
|
736
|
+
name: "token",
|
|
737
|
+
type: "address",
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
internalType: "address",
|
|
741
|
+
name: "depositAdapter",
|
|
742
|
+
type: "address",
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
internalType: "address",
|
|
746
|
+
name: "withdrawAdapter",
|
|
747
|
+
type: "address",
|
|
748
|
+
},
|
|
749
|
+
],
|
|
750
|
+
internalType: "struct TokenAdapters[]",
|
|
751
|
+
name: "foundAdapters",
|
|
752
|
+
type: "tuple[]",
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
internalType: "uint256",
|
|
756
|
+
name: "gasPriceTargetRAY",
|
|
757
|
+
type: "uint256",
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
internalType: "uint256",
|
|
761
|
+
name: "gasUsage",
|
|
762
|
+
type: "uint256",
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
internalType: "uint256",
|
|
766
|
+
name: "slippageMultiplier",
|
|
767
|
+
type: "uint256",
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
internalType: "uint256",
|
|
771
|
+
name: "initTargetBalance",
|
|
772
|
+
type: "uint256",
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
components: [
|
|
776
|
+
{
|
|
777
|
+
internalType: "address",
|
|
778
|
+
name: "target",
|
|
779
|
+
type: "address",
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
internalType: "bytes",
|
|
783
|
+
name: "callData",
|
|
784
|
+
type: "bytes",
|
|
785
|
+
},
|
|
786
|
+
],
|
|
787
|
+
internalType: "struct MultiCall[]",
|
|
788
|
+
name: "calls",
|
|
789
|
+
type: "tuple[]",
|
|
790
|
+
},
|
|
791
|
+
],
|
|
792
|
+
internalType: "struct StrategyPathTask",
|
|
793
|
+
name: "",
|
|
794
|
+
type: "tuple",
|
|
795
|
+
},
|
|
796
|
+
],
|
|
797
|
+
stateMutability: "view",
|
|
798
|
+
type: "function",
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
inputs: [
|
|
802
|
+
{
|
|
803
|
+
components: [
|
|
804
|
+
{
|
|
805
|
+
internalType: "address",
|
|
806
|
+
name: "creditAccount",
|
|
807
|
+
type: "address",
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
components: [
|
|
811
|
+
{
|
|
812
|
+
internalType: "address",
|
|
813
|
+
name: "token",
|
|
814
|
+
type: "address",
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
internalType: "uint256",
|
|
818
|
+
name: "balance",
|
|
819
|
+
type: "uint256",
|
|
820
|
+
},
|
|
821
|
+
],
|
|
822
|
+
internalType: "struct Balance[]",
|
|
823
|
+
name: "balances",
|
|
824
|
+
type: "tuple[]",
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
internalType: "address",
|
|
828
|
+
name: "target",
|
|
829
|
+
type: "address",
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
internalType: "address[]",
|
|
833
|
+
name: "connectors",
|
|
834
|
+
type: "address[]",
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
internalType: "address[]",
|
|
838
|
+
name: "adapters",
|
|
839
|
+
type: "address[]",
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
internalType: "uint256",
|
|
843
|
+
name: "slippagePerStep",
|
|
844
|
+
type: "uint256",
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
internalType: "enum TokenType",
|
|
848
|
+
name: "targetType",
|
|
849
|
+
type: "uint8",
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
components: [
|
|
853
|
+
{
|
|
854
|
+
internalType: "address",
|
|
855
|
+
name: "token",
|
|
856
|
+
type: "address",
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
internalType: "address",
|
|
860
|
+
name: "depositAdapter",
|
|
861
|
+
type: "address",
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
internalType: "address",
|
|
865
|
+
name: "withdrawAdapter",
|
|
866
|
+
type: "address",
|
|
867
|
+
},
|
|
868
|
+
],
|
|
869
|
+
internalType: "struct TokenAdapters[]",
|
|
870
|
+
name: "foundAdapters",
|
|
871
|
+
type: "tuple[]",
|
|
872
|
+
},
|
|
873
|
+
{
|
|
874
|
+
internalType: "uint256",
|
|
875
|
+
name: "gasPriceTargetRAY",
|
|
876
|
+
type: "uint256",
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
internalType: "uint256",
|
|
880
|
+
name: "gasUsage",
|
|
881
|
+
type: "uint256",
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
internalType: "uint256",
|
|
885
|
+
name: "slippageMultiplier",
|
|
886
|
+
type: "uint256",
|
|
887
|
+
},
|
|
557
888
|
{
|
|
558
889
|
internalType: "uint256",
|
|
559
890
|
name: "initTargetBalance",
|
|
@@ -647,7 +978,7 @@ var _abi = [
|
|
|
647
978
|
},
|
|
648
979
|
{
|
|
649
980
|
internalType: "uint256",
|
|
650
|
-
name: "
|
|
981
|
+
name: "slippagePerStep",
|
|
651
982
|
type: "uint256",
|
|
652
983
|
},
|
|
653
984
|
{
|
|
@@ -663,9 +994,14 @@ var _abi = [
|
|
|
663
994
|
type: "address",
|
|
664
995
|
},
|
|
665
996
|
{
|
|
666
|
-
internalType: "address
|
|
667
|
-
name: "
|
|
668
|
-
type: "address
|
|
997
|
+
internalType: "address",
|
|
998
|
+
name: "depositAdapter",
|
|
999
|
+
type: "address",
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
internalType: "address",
|
|
1003
|
+
name: "withdrawAdapter",
|
|
1004
|
+
type: "address",
|
|
669
1005
|
},
|
|
670
1006
|
],
|
|
671
1007
|
internalType: "struct TokenAdapters[]",
|
|
@@ -682,6 +1018,11 @@ var _abi = [
|
|
|
682
1018
|
name: "gasUsage",
|
|
683
1019
|
type: "uint256",
|
|
684
1020
|
},
|
|
1021
|
+
{
|
|
1022
|
+
internalType: "uint256",
|
|
1023
|
+
name: "slippageMultiplier",
|
|
1024
|
+
type: "uint256",
|
|
1025
|
+
},
|
|
685
1026
|
{
|
|
686
1027
|
internalType: "uint256",
|
|
687
1028
|
name: "initTargetBalance",
|