@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
|
@@ -49,7 +49,7 @@ var _abi = [
|
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
internalType: "uint256",
|
|
52
|
-
name: "
|
|
52
|
+
name: "slippagePerStep",
|
|
53
53
|
type: "uint256",
|
|
54
54
|
},
|
|
55
55
|
{
|
|
@@ -65,9 +65,14 @@ var _abi = [
|
|
|
65
65
|
type: "address",
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
|
-
internalType: "address
|
|
69
|
-
name: "
|
|
70
|
-
type: "address
|
|
68
|
+
internalType: "address",
|
|
69
|
+
name: "depositAdapter",
|
|
70
|
+
type: "address",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
internalType: "address",
|
|
74
|
+
name: "withdrawAdapter",
|
|
75
|
+
type: "address",
|
|
71
76
|
},
|
|
72
77
|
],
|
|
73
78
|
internalType: "struct TokenAdapters[]",
|
|
@@ -84,6 +89,11 @@ var _abi = [
|
|
|
84
89
|
name: "gasUsage",
|
|
85
90
|
type: "uint256",
|
|
86
91
|
},
|
|
92
|
+
{
|
|
93
|
+
internalType: "uint256",
|
|
94
|
+
name: "slippageMultiplier",
|
|
95
|
+
type: "uint256",
|
|
96
|
+
},
|
|
87
97
|
{
|
|
88
98
|
internalType: "uint256",
|
|
89
99
|
name: "initTargetBalance",
|
|
@@ -182,7 +192,7 @@ var _abi = [
|
|
|
182
192
|
},
|
|
183
193
|
{
|
|
184
194
|
internalType: "uint256",
|
|
185
|
-
name: "
|
|
195
|
+
name: "slippagePerStep",
|
|
186
196
|
type: "uint256",
|
|
187
197
|
},
|
|
188
198
|
{
|
|
@@ -198,9 +208,14 @@ var _abi = [
|
|
|
198
208
|
type: "address",
|
|
199
209
|
},
|
|
200
210
|
{
|
|
201
|
-
internalType: "address
|
|
202
|
-
name: "
|
|
203
|
-
type: "address
|
|
211
|
+
internalType: "address",
|
|
212
|
+
name: "depositAdapter",
|
|
213
|
+
type: "address",
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
internalType: "address",
|
|
217
|
+
name: "withdrawAdapter",
|
|
218
|
+
type: "address",
|
|
204
219
|
},
|
|
205
220
|
],
|
|
206
221
|
internalType: "struct TokenAdapters[]",
|
|
@@ -217,6 +232,11 @@ var _abi = [
|
|
|
217
232
|
name: "gasUsage",
|
|
218
233
|
type: "uint256",
|
|
219
234
|
},
|
|
235
|
+
{
|
|
236
|
+
internalType: "uint256",
|
|
237
|
+
name: "slippageMultiplier",
|
|
238
|
+
type: "uint256",
|
|
239
|
+
},
|
|
220
240
|
{
|
|
221
241
|
internalType: "uint256",
|
|
222
242
|
name: "initTargetBalance",
|
|
@@ -248,6 +268,32 @@ var _abi = [
|
|
|
248
268
|
stateMutability: "nonpayable",
|
|
249
269
|
type: "function",
|
|
250
270
|
},
|
|
271
|
+
{
|
|
272
|
+
inputs: [],
|
|
273
|
+
name: "getComponentId",
|
|
274
|
+
outputs: [
|
|
275
|
+
{
|
|
276
|
+
internalType: "enum PathFinderComponent",
|
|
277
|
+
name: "",
|
|
278
|
+
type: "uint8",
|
|
279
|
+
},
|
|
280
|
+
],
|
|
281
|
+
stateMutability: "view",
|
|
282
|
+
type: "function",
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
inputs: [],
|
|
286
|
+
name: "version",
|
|
287
|
+
outputs: [
|
|
288
|
+
{
|
|
289
|
+
internalType: "uint256",
|
|
290
|
+
name: "",
|
|
291
|
+
type: "uint256",
|
|
292
|
+
},
|
|
293
|
+
],
|
|
294
|
+
stateMutability: "view",
|
|
295
|
+
type: "function",
|
|
296
|
+
},
|
|
251
297
|
];
|
|
252
298
|
var IClosePathResolver__factory = /** @class */ (function () {
|
|
253
299
|
function IClosePathResolver__factory() {
|
|
@@ -69,7 +69,7 @@ var _abi = [
|
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
internalType: "uint256",
|
|
72
|
-
name: "
|
|
72
|
+
name: "slippagePerStep",
|
|
73
73
|
type: "uint256",
|
|
74
74
|
},
|
|
75
75
|
{
|
|
@@ -85,9 +85,14 @@ var _abi = [
|
|
|
85
85
|
type: "address",
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
|
-
internalType: "address
|
|
89
|
-
name: "
|
|
90
|
-
type: "address
|
|
88
|
+
internalType: "address",
|
|
89
|
+
name: "depositAdapter",
|
|
90
|
+
type: "address",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
internalType: "address",
|
|
94
|
+
name: "withdrawAdapter",
|
|
95
|
+
type: "address",
|
|
91
96
|
},
|
|
92
97
|
],
|
|
93
98
|
internalType: "struct TokenAdapters[]",
|
|
@@ -104,6 +109,11 @@ var _abi = [
|
|
|
104
109
|
name: "gasUsage",
|
|
105
110
|
type: "uint256",
|
|
106
111
|
},
|
|
112
|
+
{
|
|
113
|
+
internalType: "uint256",
|
|
114
|
+
name: "slippageMultiplier",
|
|
115
|
+
type: "uint256",
|
|
116
|
+
},
|
|
107
117
|
{
|
|
108
118
|
internalType: "uint256",
|
|
109
119
|
name: "initTargetBalance",
|
|
@@ -180,7 +190,7 @@ var _abi = [
|
|
|
180
190
|
},
|
|
181
191
|
{
|
|
182
192
|
internalType: "uint256",
|
|
183
|
-
name: "
|
|
193
|
+
name: "slippagePerStep",
|
|
184
194
|
type: "uint256",
|
|
185
195
|
},
|
|
186
196
|
{
|
|
@@ -196,9 +206,14 @@ var _abi = [
|
|
|
196
206
|
type: "address",
|
|
197
207
|
},
|
|
198
208
|
{
|
|
199
|
-
internalType: "address
|
|
200
|
-
name: "
|
|
201
|
-
type: "address
|
|
209
|
+
internalType: "address",
|
|
210
|
+
name: "depositAdapter",
|
|
211
|
+
type: "address",
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
internalType: "address",
|
|
215
|
+
name: "withdrawAdapter",
|
|
216
|
+
type: "address",
|
|
202
217
|
},
|
|
203
218
|
],
|
|
204
219
|
internalType: "struct TokenAdapters[]",
|
|
@@ -215,6 +230,11 @@ var _abi = [
|
|
|
215
230
|
name: "gasUsage",
|
|
216
231
|
type: "uint256",
|
|
217
232
|
},
|
|
233
|
+
{
|
|
234
|
+
internalType: "uint256",
|
|
235
|
+
name: "slippageMultiplier",
|
|
236
|
+
type: "uint256",
|
|
237
|
+
},
|
|
218
238
|
{
|
|
219
239
|
internalType: "uint256",
|
|
220
240
|
name: "initTargetBalance",
|
|
@@ -304,7 +324,7 @@ var _abi = [
|
|
|
304
324
|
},
|
|
305
325
|
{
|
|
306
326
|
internalType: "uint256",
|
|
307
|
-
name: "
|
|
327
|
+
name: "slippagePerStep",
|
|
308
328
|
type: "uint256",
|
|
309
329
|
},
|
|
310
330
|
{
|
|
@@ -320,9 +340,14 @@ var _abi = [
|
|
|
320
340
|
type: "address",
|
|
321
341
|
},
|
|
322
342
|
{
|
|
323
|
-
internalType: "address
|
|
324
|
-
name: "
|
|
325
|
-
type: "address
|
|
343
|
+
internalType: "address",
|
|
344
|
+
name: "depositAdapter",
|
|
345
|
+
type: "address",
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
internalType: "address",
|
|
349
|
+
name: "withdrawAdapter",
|
|
350
|
+
type: "address",
|
|
326
351
|
},
|
|
327
352
|
],
|
|
328
353
|
internalType: "struct TokenAdapters[]",
|
|
@@ -339,6 +364,11 @@ var _abi = [
|
|
|
339
364
|
name: "gasUsage",
|
|
340
365
|
type: "uint256",
|
|
341
366
|
},
|
|
367
|
+
{
|
|
368
|
+
internalType: "uint256",
|
|
369
|
+
name: "slippageMultiplier",
|
|
370
|
+
type: "uint256",
|
|
371
|
+
},
|
|
342
372
|
{
|
|
343
373
|
internalType: "uint256",
|
|
344
374
|
name: "initTargetBalance",
|
|
@@ -415,7 +445,7 @@ var _abi = [
|
|
|
415
445
|
},
|
|
416
446
|
{
|
|
417
447
|
internalType: "uint256",
|
|
418
|
-
name: "
|
|
448
|
+
name: "slippagePerStep",
|
|
419
449
|
type: "uint256",
|
|
420
450
|
},
|
|
421
451
|
{
|
|
@@ -431,9 +461,14 @@ var _abi = [
|
|
|
431
461
|
type: "address",
|
|
432
462
|
},
|
|
433
463
|
{
|
|
434
|
-
internalType: "address
|
|
435
|
-
name: "
|
|
436
|
-
type: "address
|
|
464
|
+
internalType: "address",
|
|
465
|
+
name: "depositAdapter",
|
|
466
|
+
type: "address",
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
internalType: "address",
|
|
470
|
+
name: "withdrawAdapter",
|
|
471
|
+
type: "address",
|
|
437
472
|
},
|
|
438
473
|
],
|
|
439
474
|
internalType: "struct TokenAdapters[]",
|
|
@@ -450,6 +485,11 @@ var _abi = [
|
|
|
450
485
|
name: "gasUsage",
|
|
451
486
|
type: "uint256",
|
|
452
487
|
},
|
|
488
|
+
{
|
|
489
|
+
internalType: "uint256",
|
|
490
|
+
name: "slippageMultiplier",
|
|
491
|
+
type: "uint256",
|
|
492
|
+
},
|
|
453
493
|
{
|
|
454
494
|
internalType: "uint256",
|
|
455
495
|
name: "initTargetBalance",
|
|
@@ -529,7 +569,7 @@ var _abi = [
|
|
|
529
569
|
},
|
|
530
570
|
{
|
|
531
571
|
internalType: "uint256",
|
|
532
|
-
name: "
|
|
572
|
+
name: "slippagePerStep",
|
|
533
573
|
type: "uint256",
|
|
534
574
|
},
|
|
535
575
|
{
|
|
@@ -545,9 +585,14 @@ var _abi = [
|
|
|
545
585
|
type: "address",
|
|
546
586
|
},
|
|
547
587
|
{
|
|
548
|
-
internalType: "address
|
|
549
|
-
name: "
|
|
550
|
-
type: "address
|
|
588
|
+
internalType: "address",
|
|
589
|
+
name: "depositAdapter",
|
|
590
|
+
type: "address",
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
internalType: "address",
|
|
594
|
+
name: "withdrawAdapter",
|
|
595
|
+
type: "address",
|
|
551
596
|
},
|
|
552
597
|
],
|
|
553
598
|
internalType: "struct TokenAdapters[]",
|
|
@@ -564,6 +609,11 @@ var _abi = [
|
|
|
564
609
|
name: "gasUsage",
|
|
565
610
|
type: "uint256",
|
|
566
611
|
},
|
|
612
|
+
{
|
|
613
|
+
internalType: "uint256",
|
|
614
|
+
name: "slippageMultiplier",
|
|
615
|
+
type: "uint256",
|
|
616
|
+
},
|
|
567
617
|
{
|
|
568
618
|
internalType: "uint256",
|
|
569
619
|
name: "initTargetBalance",
|
|
@@ -640,7 +690,7 @@ var _abi = [
|
|
|
640
690
|
},
|
|
641
691
|
{
|
|
642
692
|
internalType: "uint256",
|
|
643
|
-
name: "
|
|
693
|
+
name: "slippagePerStep",
|
|
644
694
|
type: "uint256",
|
|
645
695
|
},
|
|
646
696
|
{
|
|
@@ -656,9 +706,14 @@ var _abi = [
|
|
|
656
706
|
type: "address",
|
|
657
707
|
},
|
|
658
708
|
{
|
|
659
|
-
internalType: "address
|
|
660
|
-
name: "
|
|
661
|
-
type: "address
|
|
709
|
+
internalType: "address",
|
|
710
|
+
name: "depositAdapter",
|
|
711
|
+
type: "address",
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
internalType: "address",
|
|
715
|
+
name: "withdrawAdapter",
|
|
716
|
+
type: "address",
|
|
662
717
|
},
|
|
663
718
|
],
|
|
664
719
|
internalType: "struct TokenAdapters[]",
|
|
@@ -675,6 +730,11 @@ var _abi = [
|
|
|
675
730
|
name: "gasUsage",
|
|
676
731
|
type: "uint256",
|
|
677
732
|
},
|
|
733
|
+
{
|
|
734
|
+
internalType: "uint256",
|
|
735
|
+
name: "slippageMultiplier",
|
|
736
|
+
type: "uint256",
|
|
737
|
+
},
|
|
678
738
|
{
|
|
679
739
|
internalType: "uint256",
|
|
680
740
|
name: "initTargetBalance",
|
|
@@ -706,6 +766,19 @@ var _abi = [
|
|
|
706
766
|
stateMutability: "view",
|
|
707
767
|
type: "function",
|
|
708
768
|
},
|
|
769
|
+
{
|
|
770
|
+
inputs: [],
|
|
771
|
+
name: "getComponentId",
|
|
772
|
+
outputs: [
|
|
773
|
+
{
|
|
774
|
+
internalType: "enum PathFinderComponent",
|
|
775
|
+
name: "",
|
|
776
|
+
type: "uint8",
|
|
777
|
+
},
|
|
778
|
+
],
|
|
779
|
+
stateMutability: "view",
|
|
780
|
+
type: "function",
|
|
781
|
+
},
|
|
709
782
|
{
|
|
710
783
|
inputs: [
|
|
711
784
|
{
|
|
@@ -759,7 +832,7 @@ var _abi = [
|
|
|
759
832
|
},
|
|
760
833
|
{
|
|
761
834
|
internalType: "uint256",
|
|
762
|
-
name: "
|
|
835
|
+
name: "slippagePerStep",
|
|
763
836
|
type: "uint256",
|
|
764
837
|
},
|
|
765
838
|
{
|
|
@@ -775,9 +848,14 @@ var _abi = [
|
|
|
775
848
|
type: "address",
|
|
776
849
|
},
|
|
777
850
|
{
|
|
778
|
-
internalType: "address
|
|
779
|
-
name: "
|
|
780
|
-
type: "address
|
|
851
|
+
internalType: "address",
|
|
852
|
+
name: "depositAdapter",
|
|
853
|
+
type: "address",
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
internalType: "address",
|
|
857
|
+
name: "withdrawAdapter",
|
|
858
|
+
type: "address",
|
|
781
859
|
},
|
|
782
860
|
],
|
|
783
861
|
internalType: "struct TokenAdapters[]",
|
|
@@ -794,6 +872,11 @@ var _abi = [
|
|
|
794
872
|
name: "gasUsage",
|
|
795
873
|
type: "uint256",
|
|
796
874
|
},
|
|
875
|
+
{
|
|
876
|
+
internalType: "uint256",
|
|
877
|
+
name: "slippageMultiplier",
|
|
878
|
+
type: "uint256",
|
|
879
|
+
},
|
|
797
880
|
{
|
|
798
881
|
internalType: "uint256",
|
|
799
882
|
name: "initTargetBalance",
|
|
@@ -870,7 +953,7 @@ var _abi = [
|
|
|
870
953
|
},
|
|
871
954
|
{
|
|
872
955
|
internalType: "uint256",
|
|
873
|
-
name: "
|
|
956
|
+
name: "slippagePerStep",
|
|
874
957
|
type: "uint256",
|
|
875
958
|
},
|
|
876
959
|
{
|
|
@@ -886,9 +969,14 @@ var _abi = [
|
|
|
886
969
|
type: "address",
|
|
887
970
|
},
|
|
888
971
|
{
|
|
889
|
-
internalType: "address
|
|
890
|
-
name: "
|
|
891
|
-
type: "address
|
|
972
|
+
internalType: "address",
|
|
973
|
+
name: "depositAdapter",
|
|
974
|
+
type: "address",
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
internalType: "address",
|
|
978
|
+
name: "withdrawAdapter",
|
|
979
|
+
type: "address",
|
|
892
980
|
},
|
|
893
981
|
],
|
|
894
982
|
internalType: "struct TokenAdapters[]",
|
|
@@ -905,6 +993,11 @@ var _abi = [
|
|
|
905
993
|
name: "gasUsage",
|
|
906
994
|
type: "uint256",
|
|
907
995
|
},
|
|
996
|
+
{
|
|
997
|
+
internalType: "uint256",
|
|
998
|
+
name: "slippageMultiplier",
|
|
999
|
+
type: "uint256",
|
|
1000
|
+
},
|
|
908
1001
|
{
|
|
909
1002
|
internalType: "uint256",
|
|
910
1003
|
name: "initTargetBalance",
|
|
@@ -936,6 +1029,19 @@ var _abi = [
|
|
|
936
1029
|
stateMutability: "view",
|
|
937
1030
|
type: "function",
|
|
938
1031
|
},
|
|
1032
|
+
{
|
|
1033
|
+
inputs: [],
|
|
1034
|
+
name: "version",
|
|
1035
|
+
outputs: [
|
|
1036
|
+
{
|
|
1037
|
+
internalType: "uint256",
|
|
1038
|
+
name: "",
|
|
1039
|
+
type: "uint256",
|
|
1040
|
+
},
|
|
1041
|
+
],
|
|
1042
|
+
stateMutability: "view",
|
|
1043
|
+
type: "function",
|
|
1044
|
+
},
|
|
939
1045
|
];
|
|
940
1046
|
var IDepositorOptions__factory = /** @class */ (function () {
|
|
941
1047
|
function IDepositorOptions__factory() {
|