@gearbox-protocol/sdk 1.6.4 → 1.6.6
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/oracles/priceFeeds.js +0 -49
- package/lib/tokens/decimals.js +0 -4
- package/lib/tokens/normal.d.ts +1 -1
- package/lib/tokens/normal.js +0 -72
- package/lib/tokens/token.js +0 -8
- package/lib/types/contracts/interfaces/ICreditFacade.sol/ICreditFacade.d.ts +13 -5
- package/lib/types/contracts/interfaces/ICreditFacade.sol/ICreditFacadeEvents.d.ts +4 -4
- package/lib/types/contracts/pathfinder/interfaces/IClosePathResolver.d.ts +1 -4
- package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/IDepositor.d.ts +3 -6
- package/lib/types/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions.d.ts +4 -7
- package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker.d.ts +1 -4
- package/lib/types/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions.d.ts +1 -4
- package/lib/types/contracts/pathfinder/interfaces/IPathResolver.d.ts +2 -5
- package/lib/types/contracts/pathfinder/interfaces/ISwapAggregator.d.ts +5 -8
- package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer.d.ts +4 -7
- package/lib/types/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions.d.ts +4 -7
- package/lib/types/factories/contracts/interfaces/ICreditFacade.sol/ICreditFacadeEvents__factory.js +4 -4
- package/lib/types/factories/contracts/interfaces/ICreditFacade.sol/ICreditFacade__factory.js +17 -4
- package/lib/types/factories/contracts/pathfinder/interfaces/IClosePathResolver__factory.js +0 -10
- package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositorOptions__factory.js +0 -40
- package/lib/types/factories/contracts/pathfinder/interfaces/IDepositor.sol/IDepositor__factory.js +0 -30
- package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorkerOptions__factory.js +0 -10
- package/lib/types/factories/contracts/pathfinder/interfaces/ILPWorker.sol/ILPWorker__factory.js +0 -10
- package/lib/types/factories/contracts/pathfinder/interfaces/IPathResolver__factory.js +0 -20
- package/lib/types/factories/contracts/pathfinder/interfaces/ISwapAggregator__factory.js +0 -50
- package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawerOptions__factory.js +0 -40
- package/lib/types/factories/contracts/pathfinder/interfaces/IWithdrawer.sol/IWithdrawer__factory.js +0 -40
- package/package.json +1 -1
|
@@ -157,22 +157,6 @@ exports.priceFeedsByNetwork = {
|
|
|
157
157
|
},
|
|
158
158
|
},
|
|
159
159
|
},
|
|
160
|
-
SUSHI: {
|
|
161
|
-
priceFeedETH: {
|
|
162
|
-
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
163
|
-
address: {
|
|
164
|
-
Mainnet: "0xe572CeF69f43c2E488b33924AF04BDacE19079cf",
|
|
165
|
-
Goerli: "0xcCAddBB8C5670fBc379b0AA902F8393a449e3Be6",
|
|
166
|
-
},
|
|
167
|
-
},
|
|
168
|
-
priceFeedUSD: {
|
|
169
|
-
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
170
|
-
address: {
|
|
171
|
-
Mainnet: "0xCc70F09A6CC17553b2E31954cD36E4A2d89501f7",
|
|
172
|
-
Goerli: "0xD49468DFB9512a657D1B308d04B7e31DdC483960",
|
|
173
|
-
},
|
|
174
|
-
},
|
|
175
|
-
},
|
|
176
160
|
UNI: {
|
|
177
161
|
priceFeedETH: {
|
|
178
162
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
@@ -279,18 +263,6 @@ exports.priceFeedsByNetwork = {
|
|
|
279
263
|
},
|
|
280
264
|
},
|
|
281
265
|
},
|
|
282
|
-
FTM: {
|
|
283
|
-
priceFeedETH: {
|
|
284
|
-
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
285
|
-
address: {
|
|
286
|
-
Mainnet: "0x2de7e4a9488488e0058b95854cc2f7955b35dc9b",
|
|
287
|
-
Goerli: "0x852C111881f35bbE46B08C3143Aba02f44B6CBFf",
|
|
288
|
-
},
|
|
289
|
-
},
|
|
290
|
-
priceFeedUSD: {
|
|
291
|
-
type: oracles_1.OracleType.ZERO_ORACLE,
|
|
292
|
-
},
|
|
293
|
-
},
|
|
294
266
|
CVX: {
|
|
295
267
|
priceFeedUSD: {
|
|
296
268
|
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
@@ -354,27 +326,6 @@ exports.priceFeedsByNetwork = {
|
|
|
354
326
|
type: oracles_1.OracleType.ZERO_ORACLE,
|
|
355
327
|
},
|
|
356
328
|
},
|
|
357
|
-
SPELL: {
|
|
358
|
-
priceFeedUSD: {
|
|
359
|
-
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
360
|
-
address: {
|
|
361
|
-
Mainnet: "0x8c110B94C5f1d347fAcF5E1E938AB2db60E3c9a8",
|
|
362
|
-
Goerli: "0x7F2414A025EA6BbF06e422bC9E78Acd66c94873a",
|
|
363
|
-
},
|
|
364
|
-
},
|
|
365
|
-
},
|
|
366
|
-
LUNA: {
|
|
367
|
-
priceFeedETH: {
|
|
368
|
-
type: oracles_1.OracleType.CHAINLINK_ORACLE,
|
|
369
|
-
address: {
|
|
370
|
-
Mainnet: "0x91e9331556ed76c9393055719986409e11b56f73",
|
|
371
|
-
Goerli: "0xeFDAcd1F7390a16647d945e56c0ab4EB9bF22fBe",
|
|
372
|
-
},
|
|
373
|
-
},
|
|
374
|
-
priceFeedUSD: {
|
|
375
|
-
type: oracles_1.OracleType.ZERO_ORACLE,
|
|
376
|
-
},
|
|
377
|
-
},
|
|
378
329
|
yvDAI: {
|
|
379
330
|
priceFeedETH: {
|
|
380
331
|
type: oracles_1.OracleType.YEARN_TOKEN_ORACLE,
|
package/lib/tokens/decimals.js
CHANGED
|
@@ -11,7 +11,6 @@ exports.decimals = {
|
|
|
11
11
|
FEI: 18,
|
|
12
12
|
LINK: 18,
|
|
13
13
|
SNX: 18,
|
|
14
|
-
SUSHI: 18,
|
|
15
14
|
UNI: 18,
|
|
16
15
|
USDC: 6,
|
|
17
16
|
USDT: 6,
|
|
@@ -19,16 +18,13 @@ exports.decimals = {
|
|
|
19
18
|
WETH: 18,
|
|
20
19
|
YFI: 18,
|
|
21
20
|
STETH: 18,
|
|
22
|
-
FTM: 18,
|
|
23
21
|
CVX: 18,
|
|
24
22
|
FRAX: 18,
|
|
25
23
|
FXS: 18,
|
|
26
24
|
LDO: 18,
|
|
27
|
-
SPELL: 18,
|
|
28
25
|
LUSD: 18,
|
|
29
26
|
sUSD: 18,
|
|
30
27
|
GUSD: 2,
|
|
31
|
-
LUNA: 18,
|
|
32
28
|
LQTY: 18,
|
|
33
29
|
"3Crv": 18,
|
|
34
30
|
steCRV: 18,
|
package/lib/tokens/normal.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TradeAction } from "../pathfinder/tradeTypes";
|
|
2
2
|
import type { TokenBase } from "./token";
|
|
3
3
|
import { TokenType } from "./tokenType";
|
|
4
|
-
export declare type NormalToken = "1INCH" | "AAVE" | "COMP" | "CRV" | "DPI" | "FEI" | "LINK" | "SNX" | "
|
|
4
|
+
export declare type NormalToken = "1INCH" | "AAVE" | "COMP" | "CRV" | "DPI" | "FEI" | "LINK" | "SNX" | "UNI" | "USDT" | "USDC" | "DAI" | "WETH" | "WBTC" | "YFI" | "STETH" | "CVX" | "FRAX" | "FXS" | "LDO" | "LUSD" | "sUSD" | "GUSD" | "LQTY";
|
|
5
5
|
export declare type NormalTokenData = {
|
|
6
6
|
symbol: NormalToken;
|
|
7
7
|
type: TokenType.NORMAL_TOKEN;
|
package/lib/tokens/normal.js
CHANGED
|
@@ -211,18 +211,6 @@ exports.normalTokens = {
|
|
|
211
211
|
},
|
|
212
212
|
],
|
|
213
213
|
},
|
|
214
|
-
SUSHI: {
|
|
215
|
-
name: "SUSHI",
|
|
216
|
-
decimals: 18,
|
|
217
|
-
symbol: "SUSHI",
|
|
218
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN,
|
|
219
|
-
swapActions: [
|
|
220
|
-
{
|
|
221
|
-
type: tradeTypes_1.TradeType.UniswapV2Swap,
|
|
222
|
-
contract: "SUSHISWAP_ROUTER",
|
|
223
|
-
},
|
|
224
|
-
],
|
|
225
|
-
},
|
|
226
214
|
UNI: {
|
|
227
215
|
name: "UNI",
|
|
228
216
|
decimals: 18,
|
|
@@ -445,26 +433,6 @@ exports.normalTokens = {
|
|
|
445
433
|
},
|
|
446
434
|
],
|
|
447
435
|
},
|
|
448
|
-
FTM: {
|
|
449
|
-
name: "FTM",
|
|
450
|
-
decimals: 18,
|
|
451
|
-
symbol: "FTM",
|
|
452
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN,
|
|
453
|
-
swapActions: [
|
|
454
|
-
{
|
|
455
|
-
type: tradeTypes_1.TradeType.UniswapV3Swap,
|
|
456
|
-
contract: "UNISWAP_V3_ROUTER",
|
|
457
|
-
},
|
|
458
|
-
{
|
|
459
|
-
type: tradeTypes_1.TradeType.UniswapV2Swap,
|
|
460
|
-
contract: "UNISWAP_V2_ROUTER",
|
|
461
|
-
},
|
|
462
|
-
{
|
|
463
|
-
type: tradeTypes_1.TradeType.UniswapV2Swap,
|
|
464
|
-
contract: "SUSHISWAP_ROUTER",
|
|
465
|
-
},
|
|
466
|
-
],
|
|
467
|
-
},
|
|
468
436
|
CVX: {
|
|
469
437
|
name: "CVX",
|
|
470
438
|
decimals: 18,
|
|
@@ -557,26 +525,6 @@ exports.normalTokens = {
|
|
|
557
525
|
},
|
|
558
526
|
],
|
|
559
527
|
},
|
|
560
|
-
SPELL: {
|
|
561
|
-
name: "SPELL",
|
|
562
|
-
decimals: 18,
|
|
563
|
-
symbol: "SPELL",
|
|
564
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN,
|
|
565
|
-
swapActions: [
|
|
566
|
-
{
|
|
567
|
-
type: tradeTypes_1.TradeType.UniswapV3Swap,
|
|
568
|
-
contract: "UNISWAP_V3_ROUTER",
|
|
569
|
-
},
|
|
570
|
-
{
|
|
571
|
-
type: tradeTypes_1.TradeType.UniswapV2Swap,
|
|
572
|
-
contract: "UNISWAP_V2_ROUTER",
|
|
573
|
-
},
|
|
574
|
-
{
|
|
575
|
-
type: tradeTypes_1.TradeType.UniswapV2Swap,
|
|
576
|
-
contract: "SUSHISWAP_ROUTER",
|
|
577
|
-
},
|
|
578
|
-
],
|
|
579
|
-
},
|
|
580
528
|
LUSD: {
|
|
581
529
|
name: "LUSD",
|
|
582
530
|
decimals: 18,
|
|
@@ -673,26 +621,6 @@ exports.normalTokens = {
|
|
|
673
621
|
},
|
|
674
622
|
],
|
|
675
623
|
},
|
|
676
|
-
LUNA: {
|
|
677
|
-
name: "LUNA",
|
|
678
|
-
decimals: 18,
|
|
679
|
-
symbol: "LUNA",
|
|
680
|
-
type: tokenType_1.TokenType.NORMAL_TOKEN,
|
|
681
|
-
swapActions: [
|
|
682
|
-
{
|
|
683
|
-
type: tradeTypes_1.TradeType.UniswapV3Swap,
|
|
684
|
-
contract: "UNISWAP_V3_ROUTER",
|
|
685
|
-
},
|
|
686
|
-
{
|
|
687
|
-
type: tradeTypes_1.TradeType.UniswapV2Swap,
|
|
688
|
-
contract: "UNISWAP_V2_ROUTER",
|
|
689
|
-
},
|
|
690
|
-
{
|
|
691
|
-
type: tradeTypes_1.TradeType.UniswapV2Swap,
|
|
692
|
-
contract: "SUSHISWAP_ROUTER",
|
|
693
|
-
},
|
|
694
|
-
],
|
|
695
|
-
},
|
|
696
624
|
LQTY: {
|
|
697
625
|
name: "LQTY",
|
|
698
626
|
decimals: 18,
|
package/lib/tokens/token.js
CHANGED
|
@@ -34,7 +34,6 @@ exports.tokenDataByNetwork = {
|
|
|
34
34
|
FEI: "0x956F47F50A910163D8BF957Cf5846D573E7f87CA",
|
|
35
35
|
LINK: "0x514910771AF9Ca656af840dff83E8264EcF986CA",
|
|
36
36
|
SNX: "0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F",
|
|
37
|
-
SUSHI: "0x6B3595068778DD592e39A122f4f5a5cF09C90fE2",
|
|
38
37
|
UNI: "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",
|
|
39
38
|
USDC: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
|
|
40
39
|
USDT: "0xdAC17F958D2ee523a2206206994597C13D831ec7",
|
|
@@ -43,16 +42,13 @@ exports.tokenDataByNetwork = {
|
|
|
43
42
|
YFI: "0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e",
|
|
44
43
|
/// UPDATE
|
|
45
44
|
STETH: "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84",
|
|
46
|
-
FTM: "0x4E15361FD6b4BB609Fa63C81A2be19d873717870",
|
|
47
45
|
CVX: "0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B",
|
|
48
46
|
FRAX: "0x853d955aCEf822Db058eb8505911ED77F175b99e",
|
|
49
47
|
FXS: "0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0",
|
|
50
48
|
LDO: "0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32",
|
|
51
|
-
SPELL: "0x090185f2135308BaD17527004364eBcC2D37e5F6",
|
|
52
49
|
LUSD: "0x5f98805A4E8be255a32880FDeC7F6728C6568bA0",
|
|
53
50
|
sUSD: "0x57Ab1ec28D129707052df4dF418D58a2D46d5f51",
|
|
54
51
|
GUSD: "0x056Fd409E1d7A124BD7017459dFEa2F387b6d5Cd",
|
|
55
|
-
LUNA: "0xd2877702675e6cEb975b4A1dFf9fb7BAF4C91ea9",
|
|
56
52
|
LQTY: "0x6DEA81C8171D0bA574754EF6F8b412F2Ed88c54D",
|
|
57
53
|
// CURVE LP TOKENS
|
|
58
54
|
"3Crv": "0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490",
|
|
@@ -104,7 +100,6 @@ exports.tokenDataByNetwork = {
|
|
|
104
100
|
FEI: "0x49FCC2B5978839FAB2E0364C8ed4be222689f1aF",
|
|
105
101
|
LINK: "0x609CeB4781A3A37C81122FD69b20dc5155dABe0B",
|
|
106
102
|
SNX: "0x293177E8F7DEA75e44C6799e975A42222cBB326B",
|
|
107
|
-
SUSHI: "0xe8e880b8280d264989e63cBD0b70C1EA52b5CD83",
|
|
108
103
|
UNI: "0xd354fEF0E34ef0ee467d61eee5Af8336fd36Cb7D",
|
|
109
104
|
USDT: "0xc81c248c44e96D85a0eCddc104843cE55B1ff35c",
|
|
110
105
|
USDC: "0x1F2cd0D7E5a7d8fE41f886063E9F11A05dE217Fa",
|
|
@@ -113,16 +108,13 @@ exports.tokenDataByNetwork = {
|
|
|
113
108
|
YFI: "0xCad5D7701e0A85fe50B3aCaBDcdF7e75672F326e",
|
|
114
109
|
/// UPDATE
|
|
115
110
|
STETH: "0xd628baa42b3080593a231016bF3F229161C9F745",
|
|
116
|
-
FTM: "0x0bf727bFFB6008Fa8b0B480Dd8f77Fa47B539830",
|
|
117
111
|
CVX: "0x9683a59Ad8D7B5ac3eD01e4cff1D1A2a51A8f1c0",
|
|
118
112
|
FRAX: "0x92d43093959C7DDa89896418bCE9DE0B87879646",
|
|
119
113
|
FXS: "0x34C035818Dd308f3aC20e68bC03C3E4FC8924d9d",
|
|
120
114
|
LDO: "0x13781b54cd88cC115a17Db53b058706B29FaD341",
|
|
121
|
-
SPELL: "0x7BEaF8B56974157b4Df2AFE139d6016572b0049D",
|
|
122
115
|
LUSD: "0xF1D178615E7BB6a7331EE73F84D5Ac6c95d8BC91",
|
|
123
116
|
sUSD: "0x4F02e25531520709114e470f45A1Fb50862e3147",
|
|
124
117
|
GUSD: "0x50688e51B3941BFdf6a878F810dAF85bFc0657cf",
|
|
125
|
-
LUNA: "0xc2b78fF97aF7b616DefE63285DA9cFf928eC9Af9",
|
|
126
118
|
LQTY: "0x7f5E8e47d982052bD6A1CA26551b80821802847d",
|
|
127
119
|
// YEARN TOKENS
|
|
128
120
|
yvDAI: "0xd5bd19D424fF89131fE59993B97e7462f5B1c2fA",
|
|
@@ -34,9 +34,10 @@ export interface ICreditFacadeInterface extends utils.Interface {
|
|
|
34
34
|
"params()": FunctionFragment;
|
|
35
35
|
"transferAccountOwnership(address)": FunctionFragment;
|
|
36
36
|
"transfersAllowed(address,address)": FunctionFragment;
|
|
37
|
+
"underlying()": FunctionFragment;
|
|
37
38
|
"version()": FunctionFragment;
|
|
38
39
|
};
|
|
39
|
-
getFunction(nameOrSignatureOrTopic: "addCollateral" | "approve" | "approveAccountTransfer" | "calcCreditAccountHealthFactor" | "calcTotalValue" | "closeCreditAccount" | "creditManager" | "decreaseDebt" | "degenNFT" | "enableToken" | "hasOpenedCreditAccount" | "increaseDebt" | "isTokenAllowed" | "limits" | "liquidateCreditAccount" | "liquidateExpiredCreditAccount" | "multicall" | "openCreditAccount" | "openCreditAccountMulticall" | "params" | "transferAccountOwnership" | "transfersAllowed" | "version"): FunctionFragment;
|
|
40
|
+
getFunction(nameOrSignatureOrTopic: "addCollateral" | "approve" | "approveAccountTransfer" | "calcCreditAccountHealthFactor" | "calcTotalValue" | "closeCreditAccount" | "creditManager" | "decreaseDebt" | "degenNFT" | "enableToken" | "hasOpenedCreditAccount" | "increaseDebt" | "isTokenAllowed" | "limits" | "liquidateCreditAccount" | "liquidateExpiredCreditAccount" | "multicall" | "openCreditAccount" | "openCreditAccountMulticall" | "params" | "transferAccountOwnership" | "transfersAllowed" | "underlying" | "version"): FunctionFragment;
|
|
40
41
|
encodeFunctionData(functionFragment: "addCollateral", values: [string, string, BigNumberish]): string;
|
|
41
42
|
encodeFunctionData(functionFragment: "approve", values: [string, string, BigNumberish]): string;
|
|
42
43
|
encodeFunctionData(functionFragment: "approveAccountTransfer", values: [string, boolean]): string;
|
|
@@ -59,6 +60,7 @@ export interface ICreditFacadeInterface extends utils.Interface {
|
|
|
59
60
|
encodeFunctionData(functionFragment: "params", values?: undefined): string;
|
|
60
61
|
encodeFunctionData(functionFragment: "transferAccountOwnership", values: [string]): string;
|
|
61
62
|
encodeFunctionData(functionFragment: "transfersAllowed", values: [string, string]): string;
|
|
63
|
+
encodeFunctionData(functionFragment: "underlying", values?: undefined): string;
|
|
62
64
|
encodeFunctionData(functionFragment: "version", values?: undefined): string;
|
|
63
65
|
decodeFunctionResult(functionFragment: "addCollateral", data: BytesLike): Result;
|
|
64
66
|
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
|
|
@@ -82,6 +84,7 @@ export interface ICreditFacadeInterface extends utils.Interface {
|
|
|
82
84
|
decodeFunctionResult(functionFragment: "params", data: BytesLike): Result;
|
|
83
85
|
decodeFunctionResult(functionFragment: "transferAccountOwnership", data: BytesLike): Result;
|
|
84
86
|
decodeFunctionResult(functionFragment: "transfersAllowed", data: BytesLike): Result;
|
|
87
|
+
decodeFunctionResult(functionFragment: "underlying", data: BytesLike): Result;
|
|
85
88
|
decodeFunctionResult(functionFragment: "version", data: BytesLike): Result;
|
|
86
89
|
events: {
|
|
87
90
|
"AddCollateral(address,address,uint256)": EventFragment;
|
|
@@ -321,6 +324,7 @@ export interface ICreditFacade extends BaseContract {
|
|
|
321
324
|
from?: string | Promise<string>;
|
|
322
325
|
}): Promise<ContractTransaction>;
|
|
323
326
|
transfersAllowed(from: string, to: string, overrides?: CallOverrides): Promise<[boolean]>;
|
|
327
|
+
underlying(overrides?: CallOverrides): Promise<[string]>;
|
|
324
328
|
version(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
325
329
|
};
|
|
326
330
|
addCollateral(onBehalfOf: string, token: string, amount: BigNumberish, overrides?: PayableOverrides & {
|
|
@@ -388,6 +392,7 @@ export interface ICreditFacade extends BaseContract {
|
|
|
388
392
|
from?: string | Promise<string>;
|
|
389
393
|
}): Promise<ContractTransaction>;
|
|
390
394
|
transfersAllowed(from: string, to: string, overrides?: CallOverrides): Promise<boolean>;
|
|
395
|
+
underlying(overrides?: CallOverrides): Promise<string>;
|
|
391
396
|
version(overrides?: CallOverrides): Promise<BigNumber>;
|
|
392
397
|
callStatic: {
|
|
393
398
|
addCollateral(onBehalfOf: string, token: string, amount: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
|
@@ -429,6 +434,7 @@ export interface ICreditFacade extends BaseContract {
|
|
|
429
434
|
}>;
|
|
430
435
|
transferAccountOwnership(to: string, overrides?: CallOverrides): Promise<void>;
|
|
431
436
|
transfersAllowed(from: string, to: string, overrides?: CallOverrides): Promise<boolean>;
|
|
437
|
+
underlying(overrides?: CallOverrides): Promise<string>;
|
|
432
438
|
version(overrides?: CallOverrides): Promise<BigNumber>;
|
|
433
439
|
};
|
|
434
440
|
filters: {
|
|
@@ -450,10 +456,10 @@ export interface ICreditFacade extends BaseContract {
|
|
|
450
456
|
MultiCallStarted(borrower?: string | null): MultiCallStartedEventFilter;
|
|
451
457
|
"OpenCreditAccount(address,address,uint256,uint16)"(onBehalfOf?: string | null, creditAccount?: string | null, borrowAmount?: null, referralCode?: null): OpenCreditAccountEventFilter;
|
|
452
458
|
OpenCreditAccount(onBehalfOf?: string | null, creditAccount?: string | null, borrowAmount?: null, referralCode?: null): OpenCreditAccountEventFilter;
|
|
453
|
-
"TokenDisabled(address,address)"(borrower?: null, token?: null): TokenDisabledEventFilter;
|
|
454
|
-
TokenDisabled(borrower?: null, token?: null): TokenDisabledEventFilter;
|
|
455
|
-
"TokenEnabled(address,address)"(borrower?: null, token?: null): TokenEnabledEventFilter;
|
|
456
|
-
TokenEnabled(borrower?: null, token?: null): TokenEnabledEventFilter;
|
|
459
|
+
"TokenDisabled(address,address)"(borrower?: string | null, token?: string | null): TokenDisabledEventFilter;
|
|
460
|
+
TokenDisabled(borrower?: string | null, token?: string | null): TokenDisabledEventFilter;
|
|
461
|
+
"TokenEnabled(address,address)"(borrower?: string | null, token?: string | null): TokenEnabledEventFilter;
|
|
462
|
+
TokenEnabled(borrower?: string | null, token?: string | null): TokenEnabledEventFilter;
|
|
457
463
|
"TransferAccount(address,address)"(oldOwner?: string | null, newOwner?: string | null): TransferAccountEventFilter;
|
|
458
464
|
TransferAccount(oldOwner?: string | null, newOwner?: string | null): TransferAccountEventFilter;
|
|
459
465
|
"TransferAccountAllowed(address,address,bool)"(from?: string | null, to?: string | null, state?: null): TransferAccountAllowedEventFilter;
|
|
@@ -508,6 +514,7 @@ export interface ICreditFacade extends BaseContract {
|
|
|
508
514
|
from?: string | Promise<string>;
|
|
509
515
|
}): Promise<BigNumber>;
|
|
510
516
|
transfersAllowed(from: string, to: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
517
|
+
underlying(overrides?: CallOverrides): Promise<BigNumber>;
|
|
511
518
|
version(overrides?: CallOverrides): Promise<BigNumber>;
|
|
512
519
|
};
|
|
513
520
|
populateTransaction: {
|
|
@@ -559,6 +566,7 @@ export interface ICreditFacade extends BaseContract {
|
|
|
559
566
|
from?: string | Promise<string>;
|
|
560
567
|
}): Promise<PopulatedTransaction>;
|
|
561
568
|
transfersAllowed(from: string, to: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
569
|
+
underlying(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
562
570
|
version(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
563
571
|
};
|
|
564
572
|
}
|
|
@@ -195,10 +195,10 @@ export interface ICreditFacadeEvents extends BaseContract {
|
|
|
195
195
|
MultiCallStarted(borrower?: string | null): MultiCallStartedEventFilter;
|
|
196
196
|
"OpenCreditAccount(address,address,uint256,uint16)"(onBehalfOf?: string | null, creditAccount?: string | null, borrowAmount?: null, referralCode?: null): OpenCreditAccountEventFilter;
|
|
197
197
|
OpenCreditAccount(onBehalfOf?: string | null, creditAccount?: string | null, borrowAmount?: null, referralCode?: null): OpenCreditAccountEventFilter;
|
|
198
|
-
"TokenDisabled(address,address)"(borrower?: null, token?: null): TokenDisabledEventFilter;
|
|
199
|
-
TokenDisabled(borrower?: null, token?: null): TokenDisabledEventFilter;
|
|
200
|
-
"TokenEnabled(address,address)"(borrower?: null, token?: null): TokenEnabledEventFilter;
|
|
201
|
-
TokenEnabled(borrower?: null, token?: null): TokenEnabledEventFilter;
|
|
198
|
+
"TokenDisabled(address,address)"(borrower?: string | null, token?: string | null): TokenDisabledEventFilter;
|
|
199
|
+
TokenDisabled(borrower?: string | null, token?: string | null): TokenDisabledEventFilter;
|
|
200
|
+
"TokenEnabled(address,address)"(borrower?: string | null, token?: string | null): TokenEnabledEventFilter;
|
|
201
|
+
TokenEnabled(borrower?: string | null, token?: string | null): TokenEnabledEventFilter;
|
|
202
202
|
"TransferAccount(address,address)"(oldOwner?: string | null, newOwner?: string | null): TransferAccountEventFilter;
|
|
203
203
|
TransferAccount(oldOwner?: string | null, newOwner?: string | null): TransferAccountEventFilter;
|
|
204
204
|
"TransferAccountAllowed(address,address,bool)"(from?: string | null, to?: string | null, state?: null): TransferAccountAllowedEventFilter;
|
|
@@ -40,7 +40,6 @@ export declare type StrategyPathTaskStruct = {
|
|
|
40
40
|
foundAdapters: TokenAdaptersStruct[];
|
|
41
41
|
gasPriceTargetRAY: BigNumberish;
|
|
42
42
|
gasUsage: BigNumberish;
|
|
43
|
-
slippageMultiplier: BigNumberish;
|
|
44
43
|
initTargetBalance: BigNumberish;
|
|
45
44
|
calls: MultiCallStruct[];
|
|
46
45
|
};
|
|
@@ -57,7 +56,6 @@ export declare type StrategyPathTaskStructOutput = [
|
|
|
57
56
|
BigNumber,
|
|
58
57
|
BigNumber,
|
|
59
58
|
BigNumber,
|
|
60
|
-
BigNumber,
|
|
61
59
|
MultiCallStructOutput[]
|
|
62
60
|
] & {
|
|
63
61
|
creditAccount: string;
|
|
@@ -71,7 +69,6 @@ export declare type StrategyPathTaskStructOutput = [
|
|
|
71
69
|
foundAdapters: TokenAdaptersStructOutput[];
|
|
72
70
|
gasPriceTargetRAY: BigNumber;
|
|
73
71
|
gasUsage: BigNumber;
|
|
74
|
-
slippageMultiplier: BigNumber;
|
|
75
72
|
initTargetBalance: BigNumber;
|
|
76
73
|
calls: MultiCallStructOutput[];
|
|
77
74
|
};
|
|
@@ -87,7 +84,7 @@ export declare type PathOptionStructOutput = [string, number, number] & {
|
|
|
87
84
|
};
|
|
88
85
|
export interface IClosePathResolverInterface extends utils.Interface {
|
|
89
86
|
functions: {
|
|
90
|
-
"findBestClosePath((address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,
|
|
87
|
+
"findBestClosePath((address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,(address,bytes)[]),(address,uint8,uint8)[],uint256)": FunctionFragment;
|
|
91
88
|
"getComponentId()": FunctionFragment;
|
|
92
89
|
"version()": FunctionFragment;
|
|
93
90
|
};
|
|
@@ -40,7 +40,6 @@ export declare type StrategyPathTaskStruct = {
|
|
|
40
40
|
foundAdapters: TokenAdaptersStruct[];
|
|
41
41
|
gasPriceTargetRAY: BigNumberish;
|
|
42
42
|
gasUsage: BigNumberish;
|
|
43
|
-
slippageMultiplier: BigNumberish;
|
|
44
43
|
initTargetBalance: BigNumberish;
|
|
45
44
|
calls: MultiCallStruct[];
|
|
46
45
|
};
|
|
@@ -57,7 +56,6 @@ export declare type StrategyPathTaskStructOutput = [
|
|
|
57
56
|
BigNumber,
|
|
58
57
|
BigNumber,
|
|
59
58
|
BigNumber,
|
|
60
|
-
BigNumber,
|
|
61
59
|
MultiCallStructOutput[]
|
|
62
60
|
] & {
|
|
63
61
|
creditAccount: string;
|
|
@@ -71,16 +69,15 @@ export declare type StrategyPathTaskStructOutput = [
|
|
|
71
69
|
foundAdapters: TokenAdaptersStructOutput[];
|
|
72
70
|
gasPriceTargetRAY: BigNumber;
|
|
73
71
|
gasUsage: BigNumber;
|
|
74
|
-
slippageMultiplier: BigNumber;
|
|
75
72
|
initTargetBalance: BigNumber;
|
|
76
73
|
calls: MultiCallStructOutput[];
|
|
77
74
|
};
|
|
78
75
|
export interface IDepositorInterface extends utils.Interface {
|
|
79
76
|
functions: {
|
|
80
|
-
"deposit(uint256,address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,
|
|
81
|
-
"depositAll(address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,
|
|
77
|
+
"deposit(uint256,address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
|
|
78
|
+
"depositAll(address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
|
|
82
79
|
"getComponentId()": FunctionFragment;
|
|
83
|
-
"getUnderlying(address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,
|
|
80
|
+
"getUnderlying(address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
|
|
84
81
|
"version()": FunctionFragment;
|
|
85
82
|
};
|
|
86
83
|
getFunction(nameOrSignatureOrTopic: "deposit" | "depositAll" | "getComponentId" | "getUnderlying" | "version"): FunctionFragment;
|
|
@@ -40,7 +40,6 @@ export declare type StrategyPathTaskStruct = {
|
|
|
40
40
|
foundAdapters: TokenAdaptersStruct[];
|
|
41
41
|
gasPriceTargetRAY: BigNumberish;
|
|
42
42
|
gasUsage: BigNumberish;
|
|
43
|
-
slippageMultiplier: BigNumberish;
|
|
44
43
|
initTargetBalance: BigNumberish;
|
|
45
44
|
calls: MultiCallStruct[];
|
|
46
45
|
};
|
|
@@ -57,7 +56,6 @@ export declare type StrategyPathTaskStructOutput = [
|
|
|
57
56
|
BigNumber,
|
|
58
57
|
BigNumber,
|
|
59
58
|
BigNumber,
|
|
60
|
-
BigNumber,
|
|
61
59
|
MultiCallStructOutput[]
|
|
62
60
|
] & {
|
|
63
61
|
creditAccount: string;
|
|
@@ -71,17 +69,16 @@ export declare type StrategyPathTaskStructOutput = [
|
|
|
71
69
|
foundAdapters: TokenAdaptersStructOutput[];
|
|
72
70
|
gasPriceTargetRAY: BigNumber;
|
|
73
71
|
gasUsage: BigNumber;
|
|
74
|
-
slippageMultiplier: BigNumber;
|
|
75
72
|
initTargetBalance: BigNumber;
|
|
76
73
|
calls: MultiCallStructOutput[];
|
|
77
74
|
};
|
|
78
75
|
export interface IDepositorOptionsInterface extends utils.Interface {
|
|
79
76
|
functions: {
|
|
80
|
-
"deposit(uint8,address,uint256,address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,
|
|
81
|
-
"depositAll(uint8,address,address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,
|
|
82
|
-
"depositAllTokens(address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,
|
|
77
|
+
"deposit(uint8,address,uint256,address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
|
|
78
|
+
"depositAll(uint8,address,address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
|
|
79
|
+
"depositAllTokens(address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
|
|
83
80
|
"getComponentId()": FunctionFragment;
|
|
84
|
-
"getUnderlyings(uint8,address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,
|
|
81
|
+
"getUnderlyings(uint8,address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
|
|
85
82
|
"version()": FunctionFragment;
|
|
86
83
|
};
|
|
87
84
|
getFunction(nameOrSignatureOrTopic: "deposit" | "depositAll" | "depositAllTokens" | "getComponentId" | "getUnderlyings" | "version"): FunctionFragment;
|
|
@@ -40,7 +40,6 @@ export declare type StrategyPathTaskStruct = {
|
|
|
40
40
|
foundAdapters: TokenAdaptersStruct[];
|
|
41
41
|
gasPriceTargetRAY: BigNumberish;
|
|
42
42
|
gasUsage: BigNumberish;
|
|
43
|
-
slippageMultiplier: BigNumberish;
|
|
44
43
|
initTargetBalance: BigNumberish;
|
|
45
44
|
calls: MultiCallStruct[];
|
|
46
45
|
};
|
|
@@ -57,7 +56,6 @@ export declare type StrategyPathTaskStructOutput = [
|
|
|
57
56
|
BigNumber,
|
|
58
57
|
BigNumber,
|
|
59
58
|
BigNumber,
|
|
60
|
-
BigNumber,
|
|
61
59
|
MultiCallStructOutput[]
|
|
62
60
|
] & {
|
|
63
61
|
creditAccount: string;
|
|
@@ -71,14 +69,13 @@ export declare type StrategyPathTaskStructOutput = [
|
|
|
71
69
|
foundAdapters: TokenAdaptersStructOutput[];
|
|
72
70
|
gasPriceTargetRAY: BigNumber;
|
|
73
71
|
gasUsage: BigNumber;
|
|
74
|
-
slippageMultiplier: BigNumber;
|
|
75
72
|
initTargetBalance: BigNumber;
|
|
76
73
|
calls: MultiCallStructOutput[];
|
|
77
74
|
};
|
|
78
75
|
export interface ILPWorkerInterface extends utils.Interface {
|
|
79
76
|
functions: {
|
|
80
77
|
"getComponentId()": FunctionFragment;
|
|
81
|
-
"getUnderlying(address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,
|
|
78
|
+
"getUnderlying(address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
|
|
82
79
|
"version()": FunctionFragment;
|
|
83
80
|
};
|
|
84
81
|
getFunction(nameOrSignatureOrTopic: "getComponentId" | "getUnderlying" | "version"): FunctionFragment;
|
|
@@ -40,7 +40,6 @@ export declare type StrategyPathTaskStruct = {
|
|
|
40
40
|
foundAdapters: TokenAdaptersStruct[];
|
|
41
41
|
gasPriceTargetRAY: BigNumberish;
|
|
42
42
|
gasUsage: BigNumberish;
|
|
43
|
-
slippageMultiplier: BigNumberish;
|
|
44
43
|
initTargetBalance: BigNumberish;
|
|
45
44
|
calls: MultiCallStruct[];
|
|
46
45
|
};
|
|
@@ -57,7 +56,6 @@ export declare type StrategyPathTaskStructOutput = [
|
|
|
57
56
|
BigNumber,
|
|
58
57
|
BigNumber,
|
|
59
58
|
BigNumber,
|
|
60
|
-
BigNumber,
|
|
61
59
|
MultiCallStructOutput[]
|
|
62
60
|
] & {
|
|
63
61
|
creditAccount: string;
|
|
@@ -71,14 +69,13 @@ export declare type StrategyPathTaskStructOutput = [
|
|
|
71
69
|
foundAdapters: TokenAdaptersStructOutput[];
|
|
72
70
|
gasPriceTargetRAY: BigNumber;
|
|
73
71
|
gasUsage: BigNumber;
|
|
74
|
-
slippageMultiplier: BigNumber;
|
|
75
72
|
initTargetBalance: BigNumber;
|
|
76
73
|
calls: MultiCallStructOutput[];
|
|
77
74
|
};
|
|
78
75
|
export interface ILPWorkerOptionsInterface extends utils.Interface {
|
|
79
76
|
functions: {
|
|
80
77
|
"getComponentId()": FunctionFragment;
|
|
81
|
-
"getUnderlyings(uint8,address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,
|
|
78
|
+
"getUnderlyings(uint8,address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
|
|
82
79
|
"version()": FunctionFragment;
|
|
83
80
|
};
|
|
84
81
|
getFunction(nameOrSignatureOrTopic: "getComponentId" | "getUnderlyings" | "version"): FunctionFragment;
|
|
@@ -40,7 +40,6 @@ export declare type StrategyPathTaskStruct = {
|
|
|
40
40
|
foundAdapters: TokenAdaptersStruct[];
|
|
41
41
|
gasPriceTargetRAY: BigNumberish;
|
|
42
42
|
gasUsage: BigNumberish;
|
|
43
|
-
slippageMultiplier: BigNumberish;
|
|
44
43
|
initTargetBalance: BigNumberish;
|
|
45
44
|
calls: MultiCallStruct[];
|
|
46
45
|
};
|
|
@@ -57,7 +56,6 @@ export declare type StrategyPathTaskStructOutput = [
|
|
|
57
56
|
BigNumber,
|
|
58
57
|
BigNumber,
|
|
59
58
|
BigNumber,
|
|
60
|
-
BigNumber,
|
|
61
59
|
MultiCallStructOutput[]
|
|
62
60
|
] & {
|
|
63
61
|
creditAccount: string;
|
|
@@ -71,14 +69,13 @@ export declare type StrategyPathTaskStructOutput = [
|
|
|
71
69
|
foundAdapters: TokenAdaptersStructOutput[];
|
|
72
70
|
gasPriceTargetRAY: BigNumber;
|
|
73
71
|
gasUsage: BigNumber;
|
|
74
|
-
slippageMultiplier: BigNumber;
|
|
75
72
|
initTargetBalance: BigNumber;
|
|
76
73
|
calls: MultiCallStructOutput[];
|
|
77
74
|
};
|
|
78
75
|
export interface IPathResolverInterface extends utils.Interface {
|
|
79
76
|
functions: {
|
|
80
|
-
"findOneTokenPath(uint8,address,uint256,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,
|
|
81
|
-
"findOpenStrategyPath((address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,
|
|
77
|
+
"findOneTokenPath(uint8,address,uint256,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
|
|
78
|
+
"findOpenStrategyPath((address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
|
|
82
79
|
"getComponentId()": FunctionFragment;
|
|
83
80
|
"version()": FunctionFragment;
|
|
84
81
|
};
|
|
@@ -86,7 +86,6 @@ export declare type StrategyPathTaskStruct = {
|
|
|
86
86
|
foundAdapters: TokenAdaptersStruct[];
|
|
87
87
|
gasPriceTargetRAY: BigNumberish;
|
|
88
88
|
gasUsage: BigNumberish;
|
|
89
|
-
slippageMultiplier: BigNumberish;
|
|
90
89
|
initTargetBalance: BigNumberish;
|
|
91
90
|
calls: MultiCallStruct[];
|
|
92
91
|
};
|
|
@@ -103,7 +102,6 @@ export declare type StrategyPathTaskStructOutput = [
|
|
|
103
102
|
BigNumber,
|
|
104
103
|
BigNumber,
|
|
105
104
|
BigNumber,
|
|
106
|
-
BigNumber,
|
|
107
105
|
MultiCallStructOutput[]
|
|
108
106
|
] & {
|
|
109
107
|
creditAccount: string;
|
|
@@ -117,21 +115,20 @@ export declare type StrategyPathTaskStructOutput = [
|
|
|
117
115
|
foundAdapters: TokenAdaptersStructOutput[];
|
|
118
116
|
gasPriceTargetRAY: BigNumber;
|
|
119
117
|
gasUsage: BigNumber;
|
|
120
|
-
slippageMultiplier: BigNumber;
|
|
121
118
|
initTargetBalance: BigNumber;
|
|
122
119
|
calls: MultiCallStructOutput[];
|
|
123
120
|
};
|
|
124
121
|
export interface ISwapAggregatorInterface extends utils.Interface {
|
|
125
122
|
functions: {
|
|
126
123
|
"findAllSwaps((uint8,address,address,address,address[],uint256,uint256,bool),address[])": FunctionFragment;
|
|
127
|
-
"findBestAllInputSwap(address,address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,
|
|
128
|
-
"findBestAllInputSwapOrRevert(address,address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,
|
|
129
|
-
"findBestSwap(address,uint256,address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,
|
|
130
|
-
"findBestSwapOrRevert(address,uint256,address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,
|
|
124
|
+
"findBestAllInputSwap(address,address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
|
|
125
|
+
"findBestAllInputSwapOrRevert(address,address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
|
|
126
|
+
"findBestSwap(address,uint256,address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
|
|
127
|
+
"findBestSwapOrRevert(address,uint256,address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
|
|
131
128
|
"findBestSwapQuote((uint8,address,address,address,address[],uint256,uint256,bool),address[])": FunctionFragment;
|
|
132
129
|
"getBestDirectPairSwap((uint8,address,address,address,address[],uint256,uint256,bool),address[],uint256)": FunctionFragment;
|
|
133
130
|
"getComponentId()": FunctionFragment;
|
|
134
|
-
"swapAllNormalTokens((address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,
|
|
131
|
+
"swapAllNormalTokens((address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,(address,bytes)[]),address)": FunctionFragment;
|
|
135
132
|
"version()": FunctionFragment;
|
|
136
133
|
};
|
|
137
134
|
getFunction(nameOrSignatureOrTopic: "findAllSwaps" | "findBestAllInputSwap" | "findBestAllInputSwapOrRevert" | "findBestSwap" | "findBestSwapOrRevert" | "findBestSwapQuote" | "getBestDirectPairSwap" | "getComponentId" | "swapAllNormalTokens" | "version"): FunctionFragment;
|
|
@@ -40,7 +40,6 @@ export declare type StrategyPathTaskStruct = {
|
|
|
40
40
|
foundAdapters: TokenAdaptersStruct[];
|
|
41
41
|
gasPriceTargetRAY: BigNumberish;
|
|
42
42
|
gasUsage: BigNumberish;
|
|
43
|
-
slippageMultiplier: BigNumberish;
|
|
44
43
|
initTargetBalance: BigNumberish;
|
|
45
44
|
calls: MultiCallStruct[];
|
|
46
45
|
};
|
|
@@ -57,7 +56,6 @@ export declare type StrategyPathTaskStructOutput = [
|
|
|
57
56
|
BigNumber,
|
|
58
57
|
BigNumber,
|
|
59
58
|
BigNumber,
|
|
60
|
-
BigNumber,
|
|
61
59
|
MultiCallStructOutput[]
|
|
62
60
|
] & {
|
|
63
61
|
creditAccount: string;
|
|
@@ -71,18 +69,17 @@ export declare type StrategyPathTaskStructOutput = [
|
|
|
71
69
|
foundAdapters: TokenAdaptersStructOutput[];
|
|
72
70
|
gasPriceTargetRAY: BigNumber;
|
|
73
71
|
gasUsage: BigNumber;
|
|
74
|
-
slippageMultiplier: BigNumber;
|
|
75
72
|
initTargetBalance: BigNumber;
|
|
76
73
|
calls: MultiCallStructOutput[];
|
|
77
74
|
};
|
|
78
75
|
export interface IWithdrawerInterface extends utils.Interface {
|
|
79
76
|
functions: {
|
|
80
77
|
"getComponentId()": FunctionFragment;
|
|
81
|
-
"getUnderlying(address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,
|
|
78
|
+
"getUnderlying(address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
|
|
82
79
|
"version()": FunctionFragment;
|
|
83
|
-
"withdraw(uint256,address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,
|
|
84
|
-
"withdrawAll(address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,
|
|
85
|
-
"withdrawAllTokens((address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,
|
|
80
|
+
"withdraw(uint256,address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
|
|
81
|
+
"withdrawAll(address,(address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
|
|
82
|
+
"withdrawAllTokens((address,(address,uint256)[],address,address[],address[],uint256,bool,uint8,(address,address,address)[],uint256,uint256,uint256,(address,bytes)[]))": FunctionFragment;
|
|
86
83
|
};
|
|
87
84
|
getFunction(nameOrSignatureOrTopic: "getComponentId" | "getUnderlying" | "version" | "withdraw" | "withdrawAll" | "withdrawAllTokens"): FunctionFragment;
|
|
88
85
|
encodeFunctionData(functionFragment: "getComponentId", values?: undefined): string;
|