@defisaver/sdk 1.3.6 → 1.3.7
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/esm/src/actions/checkers/index.d.ts +0 -1
- package/esm/src/actions/checkers/index.js +0 -1
- package/esm/src/actions/fluid/index.d.ts +0 -9
- package/esm/src/actions/fluid/index.js +0 -9
- package/esm/src/actions/index.d.ts +1 -3
- package/esm/src/actions/index.js +1 -3
- package/esm/src/actions/sky/SkyClaimRewardsAction.d.ts +2 -2
- package/esm/src/actions/sky/SkyClaimRewardsAction.js +2 -2
- package/esm/src/actions/sky/SkyUnstakeAction.d.ts +1 -1
- package/esm/src/actions/sky/SkyUnstakeAction.js +1 -1
- package/esm/src/actions/sky/index.d.ts +0 -5
- package/esm/src/actions/sky/index.js +0 -6
- package/esm/src/actions/spark/index.d.ts +0 -1
- package/esm/src/actions/spark/index.js +0 -1
- package/esm/src/actions/stkgho/index.d.ts +0 -1
- package/esm/src/actions/stkgho/index.js +0 -1
- package/esm/src/addresses.d.ts +5 -391
- package/esm/src/addresses.js +10 -124
- package/esm/src/config.js +0 -16
- package/esm/src/index.d.ts +424 -1968
- package/esm/src/triggers/index.d.ts +0 -3
- package/esm/src/triggers/index.js +0 -3
- package/esm/src/types.d.ts +0 -2
- package/package.json +1 -1
- package/src/addresses.ts +4 -1
- package/umd/index.js +561 -1547
- package/esm/src/actions/checkers/LiquityV2NewInterestRateCheckerAction.d.ts +0 -15
- package/esm/src/actions/checkers/LiquityV2NewInterestRateCheckerAction.js +0 -22
- package/esm/src/actions/fluid/FluidDexOpenAction.d.ts +0 -20
- package/esm/src/actions/fluid/FluidDexOpenAction.js +0 -45
- package/esm/src/actions/fluid/FluidDexRegularBorrowAction.d.ts +0 -17
- package/esm/src/actions/fluid/FluidDexRegularBorrowAction.js +0 -36
- package/esm/src/actions/fluid/FluidDexRegularPaybackAction.d.ts +0 -16
- package/esm/src/actions/fluid/FluidDexRegularPaybackAction.js +0 -34
- package/esm/src/actions/fluid/FluidDexRegularSupplyAction.d.ts +0 -16
- package/esm/src/actions/fluid/FluidDexRegularSupplyAction.js +0 -33
- package/esm/src/actions/fluid/FluidDexRegularWithdrawAction.d.ts +0 -17
- package/esm/src/actions/fluid/FluidDexRegularWithdrawAction.js +0 -37
- package/esm/src/actions/fluid/FluidDexSmartCollSupplyAction.d.ts +0 -16
- package/esm/src/actions/fluid/FluidDexSmartCollSupplyAction.js +0 -33
- package/esm/src/actions/fluid/FluidDexSmartCollWithdrawAction.d.ts +0 -17
- package/esm/src/actions/fluid/FluidDexSmartCollWithdrawAction.js +0 -37
- package/esm/src/actions/fluid/FluidDexSmartDebtBorrowAction.d.ts +0 -17
- package/esm/src/actions/fluid/FluidDexSmartDebtBorrowAction.js +0 -36
- package/esm/src/actions/fluid/FluidDexSmartDebtPaybackAction.d.ts +0 -16
- package/esm/src/actions/fluid/FluidDexSmartDebtPaybackAction.js +0 -34
- package/esm/src/actions/sky/SkyStakingEngineClaimRewards.d.ts +0 -16
- package/esm/src/actions/sky/SkyStakingEngineClaimRewards.js +0 -24
- package/esm/src/actions/sky/SkyStakingEngineOpen.d.ts +0 -13
- package/esm/src/actions/sky/SkyStakingEngineOpen.js +0 -18
- package/esm/src/actions/sky/SkyStakingEngineSelectFarm.d.ts +0 -15
- package/esm/src/actions/sky/SkyStakingEngineSelectFarm.js +0 -22
- package/esm/src/actions/sky/SkyStakingEngineStake.d.ts +0 -16
- package/esm/src/actions/sky/SkyStakingEngineStake.js +0 -24
- package/esm/src/actions/sky/SkyStakingEngineUnstake.d.ts +0 -16
- package/esm/src/actions/sky/SkyStakingEngineUnstake.js +0 -24
- package/esm/src/actions/spark/SparkSPKClaimAction.d.ts +0 -20
- package/esm/src/actions/spark/SparkSPKClaimAction.js +0 -25
- package/esm/src/actions/stkgho/GhoStakeAction.d.ts +0 -15
- package/esm/src/actions/stkgho/GhoStakeAction.js +0 -25
- package/esm/src/actions/summerfi/SFApproveTokensAction.d.ts +0 -14
- package/esm/src/actions/summerfi/SFApproveTokensAction.js +0 -17
- package/esm/src/actions/summerfi/index.d.ts +0 -1
- package/esm/src/actions/summerfi/index.js +0 -1
- package/esm/src/actions/umbrella/UmbrellaClaimRewardsAction.d.ts +0 -16
- package/esm/src/actions/umbrella/UmbrellaClaimRewardsAction.js +0 -22
- package/esm/src/actions/umbrella/UmbrellaFinalizeUnstakeAction.d.ts +0 -18
- package/esm/src/actions/umbrella/UmbrellaFinalizeUnstakeAction.js +0 -31
- package/esm/src/actions/umbrella/UmbrellaStakeAction.d.ts +0 -19
- package/esm/src/actions/umbrella/UmbrellaStakeAction.js +0 -29
- package/esm/src/actions/umbrella/UmbrellaStartUnstakeAction.d.ts +0 -13
- package/esm/src/actions/umbrella/UmbrellaStartUnstakeAction.js +0 -18
- package/esm/src/actions/umbrella/index.d.ts +0 -4
- package/esm/src/actions/umbrella/index.js +0 -4
- package/esm/src/triggers/CompV3PriceRangeTrigger.d.ts +0 -10
- package/esm/src/triggers/CompV3PriceRangeTrigger.js +0 -12
- package/esm/src/triggers/CompV3PriceTrigger.d.ts +0 -10
- package/esm/src/triggers/CompV3PriceTrigger.js +0 -12
- package/esm/src/triggers/LiquityV2AdjustRateDebtInFrontTrigger.d.ts +0 -8
- package/esm/src/triggers/LiquityV2AdjustRateDebtInFrontTrigger.js +0 -10
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Action } from '../../Action';
|
|
2
|
-
import { uint256, EthAddress } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* LiquityV2NewInterestRateCheckerAction - Checks new interest rate for user position and reverts if faulty
|
|
5
|
-
*
|
|
6
|
-
* @category Checkers
|
|
7
|
-
*/
|
|
8
|
-
export declare class LiquityV2NewInterestRateCheckerAction extends Action {
|
|
9
|
-
/**
|
|
10
|
-
* @param market Address of the market
|
|
11
|
-
* @param troveId Trove id of the user
|
|
12
|
-
* @param interestRateChange The interest rate change to check
|
|
13
|
-
*/
|
|
14
|
-
constructor(market: EthAddress, troveId: uint256, interestRateChange: uint256);
|
|
15
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Action } from '../../Action';
|
|
2
|
-
import { getAddr } from '../../addresses';
|
|
3
|
-
/**
|
|
4
|
-
* LiquityV2NewInterestRateCheckerAction - Checks new interest rate for user position and reverts if faulty
|
|
5
|
-
*
|
|
6
|
-
* @category Checkers
|
|
7
|
-
*/
|
|
8
|
-
export class LiquityV2NewInterestRateCheckerAction extends Action {
|
|
9
|
-
/**
|
|
10
|
-
* @param market Address of the market
|
|
11
|
-
* @param troveId Trove id of the user
|
|
12
|
-
* @param interestRateChange The interest rate change to check
|
|
13
|
-
*/
|
|
14
|
-
constructor(market, troveId, interestRateChange) {
|
|
15
|
-
super('LiquityV2NewInterestRateChecker', getAddr('Empty'), ['address', 'uint256', 'uint256'], [market, troveId, interestRateChange]);
|
|
16
|
-
this.mappableArgs = [
|
|
17
|
-
this.args[0],
|
|
18
|
-
this.args[1],
|
|
19
|
-
this.args[2],
|
|
20
|
-
];
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Action } from '../../Action';
|
|
2
|
-
import { EthAddress, uint256 } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* FluidDexOpenAction - Open a new position in the Fluid DEX vault.
|
|
5
|
-
*
|
|
6
|
-
* @category Fluid
|
|
7
|
-
*/
|
|
8
|
-
export declare class FluidDexOpenAction extends Action {
|
|
9
|
-
/**
|
|
10
|
-
* @param vault The address of the Fluid DEX vault.
|
|
11
|
-
* @param from Address to pull the collateral from.
|
|
12
|
-
* @param to Address to send the borrowed assets to.
|
|
13
|
-
* @param supplyAmount Amount of collateral to deposit. Used if vault is T3.
|
|
14
|
-
* @param supplyVariableData Variable data for supply action. Used if vault is T2 or T4.
|
|
15
|
-
* @param borrowAmount Amount of debt to borrow. Used if vault is T2.
|
|
16
|
-
* @param borrowVariableData Variable data for borrow action. Used if vault is T3 or T4.
|
|
17
|
-
* @param wrapBorrowedEth Whether to wrap the borrowed ETH into WETH if one of the borrowed assets is ETH.
|
|
18
|
-
*/
|
|
19
|
-
constructor(vault: EthAddress, from: EthAddress, to: EthAddress, supplyAmount: uint256, supplyVariableData: Array<any>, borrowAmount: uint256, borrowVariableData: Array<any>, wrapBorrowedEth: boolean);
|
|
20
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Action } from '../../Action';
|
|
2
|
-
import { getAddr } from '../../addresses';
|
|
3
|
-
/**
|
|
4
|
-
* FluidDexOpenAction - Open a new position in the Fluid DEX vault.
|
|
5
|
-
*
|
|
6
|
-
* @category Fluid
|
|
7
|
-
*/
|
|
8
|
-
export class FluidDexOpenAction extends Action {
|
|
9
|
-
/**
|
|
10
|
-
* @param vault The address of the Fluid DEX vault.
|
|
11
|
-
* @param from Address to pull the collateral from.
|
|
12
|
-
* @param to Address to send the borrowed assets to.
|
|
13
|
-
* @param supplyAmount Amount of collateral to deposit. Used if vault is T3.
|
|
14
|
-
* @param supplyVariableData Variable data for supply action. Used if vault is T2 or T4.
|
|
15
|
-
* @param borrowAmount Amount of debt to borrow. Used if vault is T2.
|
|
16
|
-
* @param borrowVariableData Variable data for borrow action. Used if vault is T3 or T4.
|
|
17
|
-
* @param wrapBorrowedEth Whether to wrap the borrowed ETH into WETH if one of the borrowed assets is ETH.
|
|
18
|
-
*/
|
|
19
|
-
constructor(vault, from, to, supplyAmount, supplyVariableData, borrowAmount, borrowVariableData, wrapBorrowedEth) {
|
|
20
|
-
super('FluidDexOpen', getAddr('FluidDexOpen'), [
|
|
21
|
-
'address',
|
|
22
|
-
'address',
|
|
23
|
-
'address',
|
|
24
|
-
'uint256',
|
|
25
|
-
['uint256', 'uint256', 'uint256'],
|
|
26
|
-
'uint256',
|
|
27
|
-
['uint256', 'uint256', 'uint256'],
|
|
28
|
-
'bool',
|
|
29
|
-
], [vault, from, to, supplyAmount, supplyVariableData, borrowAmount, borrowVariableData, wrapBorrowedEth]);
|
|
30
|
-
this.mappableArgs = [
|
|
31
|
-
this.args[0],
|
|
32
|
-
this.args[1],
|
|
33
|
-
this.args[2],
|
|
34
|
-
this.args[3],
|
|
35
|
-
this.args[4][0],
|
|
36
|
-
this.args[4][1],
|
|
37
|
-
this.args[4][2],
|
|
38
|
-
this.args[5],
|
|
39
|
-
this.args[6][0],
|
|
40
|
-
this.args[6][1],
|
|
41
|
-
this.args[6][2],
|
|
42
|
-
this.args[7],
|
|
43
|
-
];
|
|
44
|
-
}
|
|
45
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Action } from '../../Action';
|
|
2
|
-
import { EthAddress, uint256 } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* FluidDexRegularBorrowAction - Borrow assets from the Fluid DEX T2 vault.
|
|
5
|
-
*
|
|
6
|
-
* @category Fluid
|
|
7
|
-
*/
|
|
8
|
-
export declare class FluidDexRegularBorrowAction extends Action {
|
|
9
|
-
/**
|
|
10
|
-
* @param vault The address of the Fluid DEX vault.
|
|
11
|
-
* @param to Address to send the borrowed assets to.
|
|
12
|
-
* @param nftId The NFT ID of the position.
|
|
13
|
-
* @param borrowAmount Amount of debt to borrow
|
|
14
|
-
* @param wrapBorrowedEth Whether to wrap the borrowed ETH into WETH if one of the borrowed assets is ETH.
|
|
15
|
-
*/
|
|
16
|
-
constructor(vault: EthAddress, to: EthAddress, nftId: uint256, borrowAmount: uint256, wrapBorrowedEth: boolean);
|
|
17
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Action } from '../../Action';
|
|
2
|
-
import { getAddr } from '../../addresses';
|
|
3
|
-
/**
|
|
4
|
-
* FluidDexRegularBorrowAction - Borrow assets from the Fluid DEX T2 vault.
|
|
5
|
-
*
|
|
6
|
-
* @category Fluid
|
|
7
|
-
*/
|
|
8
|
-
export class FluidDexRegularBorrowAction extends Action {
|
|
9
|
-
/**
|
|
10
|
-
* @param vault The address of the Fluid DEX vault.
|
|
11
|
-
* @param to Address to send the borrowed assets to.
|
|
12
|
-
* @param nftId The NFT ID of the position.
|
|
13
|
-
* @param borrowAmount Amount of debt to borrow
|
|
14
|
-
* @param wrapBorrowedEth Whether to wrap the borrowed ETH into WETH if one of the borrowed assets is ETH.
|
|
15
|
-
*/
|
|
16
|
-
constructor(vault, to, nftId, borrowAmount, wrapBorrowedEth) {
|
|
17
|
-
super('FluidDexBorrow', getAddr('FluidDexBorrow'), [
|
|
18
|
-
'address',
|
|
19
|
-
'address',
|
|
20
|
-
'uint256',
|
|
21
|
-
'uint256',
|
|
22
|
-
['uint256', 'uint256', 'uint256'],
|
|
23
|
-
'bool',
|
|
24
|
-
], [vault, to, nftId, borrowAmount, ['0', '0', '0'], wrapBorrowedEth]);
|
|
25
|
-
this.mappableArgs = [
|
|
26
|
-
this.args[0],
|
|
27
|
-
this.args[1],
|
|
28
|
-
this.args[2],
|
|
29
|
-
this.args[3],
|
|
30
|
-
this.args[4][0],
|
|
31
|
-
this.args[4][1],
|
|
32
|
-
this.args[4][2],
|
|
33
|
-
this.args[5],
|
|
34
|
-
];
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Action } from '../../Action';
|
|
2
|
-
import { EthAddress, uint256 } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* FluidDexRegularPaybackAction - Payback debt on the Fluid DEX T2 vault.
|
|
5
|
-
*
|
|
6
|
-
* @category Fluid
|
|
7
|
-
*/
|
|
8
|
-
export declare class FluidDexRegularPaybackAction extends Action {
|
|
9
|
-
/**
|
|
10
|
-
* @param vault The address of the Fluid DEX vault.
|
|
11
|
-
* @param from Address to pull the debt tokens from.
|
|
12
|
-
* @param nftId The NFT ID of the position.
|
|
13
|
-
* @param paybackAmount The amount of debt to payback.
|
|
14
|
-
*/
|
|
15
|
-
constructor(vault: EthAddress, from: EthAddress, nftId: uint256, paybackAmount: uint256);
|
|
16
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Action } from '../../Action';
|
|
2
|
-
import { getAddr } from '../../addresses';
|
|
3
|
-
/**
|
|
4
|
-
* FluidDexRegularPaybackAction - Payback debt on the Fluid DEX T2 vault.
|
|
5
|
-
*
|
|
6
|
-
* @category Fluid
|
|
7
|
-
*/
|
|
8
|
-
export class FluidDexRegularPaybackAction extends Action {
|
|
9
|
-
/**
|
|
10
|
-
* @param vault The address of the Fluid DEX vault.
|
|
11
|
-
* @param from Address to pull the debt tokens from.
|
|
12
|
-
* @param nftId The NFT ID of the position.
|
|
13
|
-
* @param paybackAmount The amount of debt to payback.
|
|
14
|
-
*/
|
|
15
|
-
constructor(vault, from, nftId, paybackAmount) {
|
|
16
|
-
super('FluidDexPayback', getAddr('FluidDexPayback'), [
|
|
17
|
-
'address',
|
|
18
|
-
'address',
|
|
19
|
-
'uint256',
|
|
20
|
-
'uint256',
|
|
21
|
-
['uint256', 'uint256', 'uint256', 'uint256'],
|
|
22
|
-
], [vault, from, nftId, paybackAmount, ['0', '0', '0', '0']]);
|
|
23
|
-
this.mappableArgs = [
|
|
24
|
-
this.args[0],
|
|
25
|
-
this.args[1],
|
|
26
|
-
this.args[2],
|
|
27
|
-
this.args[3],
|
|
28
|
-
this.args[4][0],
|
|
29
|
-
this.args[4][1],
|
|
30
|
-
this.args[4][2],
|
|
31
|
-
this.args[4][3],
|
|
32
|
-
];
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Action } from '../../Action';
|
|
2
|
-
import { EthAddress, uint256 } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* FluidDexRegularSupplyAction - Supply collateral to the Fluid DEX T3 vault.
|
|
5
|
-
*
|
|
6
|
-
* @category Fluid
|
|
7
|
-
*/
|
|
8
|
-
export declare class FluidDexRegularSupplyAction extends Action {
|
|
9
|
-
/**
|
|
10
|
-
* @param vault The address of the Fluid DEX vault.
|
|
11
|
-
* @param from Address to pull the collateral from.
|
|
12
|
-
* @param nftId The NFT ID of the position.
|
|
13
|
-
* @param supplyAmount Amount of collateral to deposit.
|
|
14
|
-
*/
|
|
15
|
-
constructor(vault: EthAddress, from: EthAddress, nftId: uint256, supplyAmount: uint256);
|
|
16
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Action } from '../../Action';
|
|
2
|
-
import { getAddr } from '../../addresses';
|
|
3
|
-
/**
|
|
4
|
-
* FluidDexRegularSupplyAction - Supply collateral to the Fluid DEX T3 vault.
|
|
5
|
-
*
|
|
6
|
-
* @category Fluid
|
|
7
|
-
*/
|
|
8
|
-
export class FluidDexRegularSupplyAction extends Action {
|
|
9
|
-
/**
|
|
10
|
-
* @param vault The address of the Fluid DEX vault.
|
|
11
|
-
* @param from Address to pull the collateral from.
|
|
12
|
-
* @param nftId The NFT ID of the position.
|
|
13
|
-
* @param supplyAmount Amount of collateral to deposit.
|
|
14
|
-
*/
|
|
15
|
-
constructor(vault, from, nftId, supplyAmount) {
|
|
16
|
-
super('FluidDexSupply', getAddr('FluidDexSupply'), [
|
|
17
|
-
'address',
|
|
18
|
-
'address',
|
|
19
|
-
'uint256',
|
|
20
|
-
'uint256',
|
|
21
|
-
['uint256', 'uint256', 'uint256'],
|
|
22
|
-
], [vault, from, nftId, supplyAmount, ['0', '0', '0']]);
|
|
23
|
-
this.mappableArgs = [
|
|
24
|
-
this.args[0],
|
|
25
|
-
this.args[1],
|
|
26
|
-
this.args[2],
|
|
27
|
-
this.args[3],
|
|
28
|
-
this.args[4][0],
|
|
29
|
-
this.args[4][1],
|
|
30
|
-
this.args[4][2],
|
|
31
|
-
];
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Action } from '../../Action';
|
|
2
|
-
import { EthAddress, uint256 } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* FluidDexRegularWithdrawAction - Withdraw assets from the Fluid DEX T3 vault.
|
|
5
|
-
*
|
|
6
|
-
* @category Fluid
|
|
7
|
-
*/
|
|
8
|
-
export declare class FluidDexRegularWithdrawAction extends Action {
|
|
9
|
-
/**
|
|
10
|
-
* @param vault The address of the Fluid DEX vault.
|
|
11
|
-
* @param to Address to send the withdrawn assets to.
|
|
12
|
-
* @param nftId The NFT ID of the position.
|
|
13
|
-
* @param withdrawAmount Amount of collateral to withdraw.
|
|
14
|
-
* @param wrapWithdrawnEth Whether to wrap the withdrawn ETH into WETH if one of the withdrawn assets is ETH.
|
|
15
|
-
*/
|
|
16
|
-
constructor(vault: EthAddress, to: EthAddress, nftId: uint256, withdrawAmount: uint256, wrapWithdrawnEth: boolean);
|
|
17
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Action } from '../../Action';
|
|
2
|
-
import { getAddr } from '../../addresses';
|
|
3
|
-
/**
|
|
4
|
-
* FluidDexRegularWithdrawAction - Withdraw assets from the Fluid DEX T3 vault.
|
|
5
|
-
*
|
|
6
|
-
* @category Fluid
|
|
7
|
-
*/
|
|
8
|
-
export class FluidDexRegularWithdrawAction extends Action {
|
|
9
|
-
/**
|
|
10
|
-
* @param vault The address of the Fluid DEX vault.
|
|
11
|
-
* @param to Address to send the withdrawn assets to.
|
|
12
|
-
* @param nftId The NFT ID of the position.
|
|
13
|
-
* @param withdrawAmount Amount of collateral to withdraw.
|
|
14
|
-
* @param wrapWithdrawnEth Whether to wrap the withdrawn ETH into WETH if one of the withdrawn assets is ETH.
|
|
15
|
-
*/
|
|
16
|
-
constructor(vault, to, nftId, withdrawAmount, wrapWithdrawnEth) {
|
|
17
|
-
super('FluidDexWithdraw', getAddr('FluidDexWithdraw'), [
|
|
18
|
-
'address',
|
|
19
|
-
'address',
|
|
20
|
-
'uint256',
|
|
21
|
-
'uint256',
|
|
22
|
-
['uint256', 'uint256', 'uint256', 'uint256'],
|
|
23
|
-
'bool',
|
|
24
|
-
], [vault, to, nftId, withdrawAmount, ['0', '0', '0', '0'], wrapWithdrawnEth]);
|
|
25
|
-
this.mappableArgs = [
|
|
26
|
-
this.args[0],
|
|
27
|
-
this.args[1],
|
|
28
|
-
this.args[2],
|
|
29
|
-
this.args[3],
|
|
30
|
-
this.args[4][0],
|
|
31
|
-
this.args[4][1],
|
|
32
|
-
this.args[4][2],
|
|
33
|
-
this.args[4][3],
|
|
34
|
-
this.args[5],
|
|
35
|
-
];
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Action } from '../../Action';
|
|
2
|
-
import { EthAddress, uint256 } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* FluidDexSmartCollSupplyAction - Supply collateral to the Fluid DEX with smart collateral (T2, T4).
|
|
5
|
-
*
|
|
6
|
-
* @category Fluid
|
|
7
|
-
*/
|
|
8
|
-
export declare class FluidDexSmartCollSupplyAction extends Action {
|
|
9
|
-
/**
|
|
10
|
-
* @param vault The address of the Fluid DEX vault.
|
|
11
|
-
* @param from Address to pull the collateral from.
|
|
12
|
-
* @param nftId The NFT ID of the position.
|
|
13
|
-
* @param supplyVariableData Variable data for supply action
|
|
14
|
-
*/
|
|
15
|
-
constructor(vault: EthAddress, from: EthAddress, nftId: uint256, supplyVariableData: Array<any>);
|
|
16
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Action } from '../../Action';
|
|
2
|
-
import { getAddr } from '../../addresses';
|
|
3
|
-
/**
|
|
4
|
-
* FluidDexSmartCollSupplyAction - Supply collateral to the Fluid DEX with smart collateral (T2, T4).
|
|
5
|
-
*
|
|
6
|
-
* @category Fluid
|
|
7
|
-
*/
|
|
8
|
-
export class FluidDexSmartCollSupplyAction extends Action {
|
|
9
|
-
/**
|
|
10
|
-
* @param vault The address of the Fluid DEX vault.
|
|
11
|
-
* @param from Address to pull the collateral from.
|
|
12
|
-
* @param nftId The NFT ID of the position.
|
|
13
|
-
* @param supplyVariableData Variable data for supply action
|
|
14
|
-
*/
|
|
15
|
-
constructor(vault, from, nftId, supplyVariableData) {
|
|
16
|
-
super('FluidDexSupply', getAddr('FluidDexSupply'), [
|
|
17
|
-
'address',
|
|
18
|
-
'address',
|
|
19
|
-
'uint256',
|
|
20
|
-
'uint256',
|
|
21
|
-
['uint256', 'uint256', 'uint256'],
|
|
22
|
-
], [vault, from, nftId, '0', supplyVariableData]);
|
|
23
|
-
this.mappableArgs = [
|
|
24
|
-
this.args[0],
|
|
25
|
-
this.args[1],
|
|
26
|
-
this.args[2],
|
|
27
|
-
this.args[3],
|
|
28
|
-
this.args[4][0],
|
|
29
|
-
this.args[4][1],
|
|
30
|
-
this.args[4][2],
|
|
31
|
-
];
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Action } from '../../Action';
|
|
2
|
-
import { EthAddress, uint256 } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* FluidDexSmartCollWithdrawAction - Withdraw assets from the Fluid DEX with smart collateral (T2, T4).
|
|
5
|
-
*
|
|
6
|
-
* @category Fluid
|
|
7
|
-
*/
|
|
8
|
-
export declare class FluidDexSmartCollWithdrawAction extends Action {
|
|
9
|
-
/**
|
|
10
|
-
* @param vault The address of the Fluid DEX vault.
|
|
11
|
-
* @param to Address to send the withdrawn assets to.
|
|
12
|
-
* @param nftId The NFT ID of the position.
|
|
13
|
-
* @param withdrawVariableData Variable data for withdraw action.
|
|
14
|
-
* @param wrapWithdrawnEth Whether to wrap the withdrawn ETH into WETH if one of the withdrawn assets is ETH.
|
|
15
|
-
*/
|
|
16
|
-
constructor(vault: EthAddress, to: EthAddress, nftId: uint256, withdrawVariableData: Array<any>, wrapWithdrawnEth: boolean);
|
|
17
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Action } from '../../Action';
|
|
2
|
-
import { getAddr } from '../../addresses';
|
|
3
|
-
/**
|
|
4
|
-
* FluidDexSmartCollWithdrawAction - Withdraw assets from the Fluid DEX with smart collateral (T2, T4).
|
|
5
|
-
*
|
|
6
|
-
* @category Fluid
|
|
7
|
-
*/
|
|
8
|
-
export class FluidDexSmartCollWithdrawAction extends Action {
|
|
9
|
-
/**
|
|
10
|
-
* @param vault The address of the Fluid DEX vault.
|
|
11
|
-
* @param to Address to send the withdrawn assets to.
|
|
12
|
-
* @param nftId The NFT ID of the position.
|
|
13
|
-
* @param withdrawVariableData Variable data for withdraw action.
|
|
14
|
-
* @param wrapWithdrawnEth Whether to wrap the withdrawn ETH into WETH if one of the withdrawn assets is ETH.
|
|
15
|
-
*/
|
|
16
|
-
constructor(vault, to, nftId, withdrawVariableData, wrapWithdrawnEth) {
|
|
17
|
-
super('FluidDexWithdraw', getAddr('FluidDexWithdraw'), [
|
|
18
|
-
'address',
|
|
19
|
-
'address',
|
|
20
|
-
'uint256',
|
|
21
|
-
'uint256',
|
|
22
|
-
['uint256', 'uint256', 'uint256', 'uint256'],
|
|
23
|
-
'bool',
|
|
24
|
-
], [vault, to, nftId, '0', withdrawVariableData, wrapWithdrawnEth]);
|
|
25
|
-
this.mappableArgs = [
|
|
26
|
-
this.args[0],
|
|
27
|
-
this.args[1],
|
|
28
|
-
this.args[2],
|
|
29
|
-
this.args[3],
|
|
30
|
-
this.args[4][0],
|
|
31
|
-
this.args[4][1],
|
|
32
|
-
this.args[4][2],
|
|
33
|
-
this.args[4][3],
|
|
34
|
-
this.args[5],
|
|
35
|
-
];
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Action } from '../../Action';
|
|
2
|
-
import { EthAddress, uint256 } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* FluidDexSmartDebtBorrowAction - Borrow assets from the Fluid DEX with smart debt (T3, T4).
|
|
5
|
-
*
|
|
6
|
-
* @category Fluid
|
|
7
|
-
*/
|
|
8
|
-
export declare class FluidDexSmartDebtBorrowAction extends Action {
|
|
9
|
-
/**
|
|
10
|
-
* @param vault The address of the Fluid DEX vault.
|
|
11
|
-
* @param to Address to send the borrowed assets to.
|
|
12
|
-
* @param nftId The NFT ID of the position.
|
|
13
|
-
* @param borrowVariableData Variable data for borrow action.
|
|
14
|
-
* @param wrapBorrowedEth Whether to wrap the borrowed ETH into WETH if one of the borrowed assets is ETH.
|
|
15
|
-
*/
|
|
16
|
-
constructor(vault: EthAddress, to: EthAddress, nftId: uint256, borrowVariableData: Array<any>, wrapBorrowedEth: boolean);
|
|
17
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Action } from '../../Action';
|
|
2
|
-
import { getAddr } from '../../addresses';
|
|
3
|
-
/**
|
|
4
|
-
* FluidDexSmartDebtBorrowAction - Borrow assets from the Fluid DEX with smart debt (T3, T4).
|
|
5
|
-
*
|
|
6
|
-
* @category Fluid
|
|
7
|
-
*/
|
|
8
|
-
export class FluidDexSmartDebtBorrowAction extends Action {
|
|
9
|
-
/**
|
|
10
|
-
* @param vault The address of the Fluid DEX vault.
|
|
11
|
-
* @param to Address to send the borrowed assets to.
|
|
12
|
-
* @param nftId The NFT ID of the position.
|
|
13
|
-
* @param borrowVariableData Variable data for borrow action.
|
|
14
|
-
* @param wrapBorrowedEth Whether to wrap the borrowed ETH into WETH if one of the borrowed assets is ETH.
|
|
15
|
-
*/
|
|
16
|
-
constructor(vault, to, nftId, borrowVariableData, wrapBorrowedEth) {
|
|
17
|
-
super('FluidDexBorrow', getAddr('FluidDexBorrow'), [
|
|
18
|
-
'address',
|
|
19
|
-
'address',
|
|
20
|
-
'uint256',
|
|
21
|
-
'uint256',
|
|
22
|
-
['uint256', 'uint256', 'uint256'],
|
|
23
|
-
'bool',
|
|
24
|
-
], [vault, to, nftId, '0', borrowVariableData, wrapBorrowedEth]);
|
|
25
|
-
this.mappableArgs = [
|
|
26
|
-
this.args[0],
|
|
27
|
-
this.args[1],
|
|
28
|
-
this.args[2],
|
|
29
|
-
this.args[3],
|
|
30
|
-
this.args[4][0],
|
|
31
|
-
this.args[4][1],
|
|
32
|
-
this.args[4][2],
|
|
33
|
-
this.args[5],
|
|
34
|
-
];
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Action } from '../../Action';
|
|
2
|
-
import { EthAddress, uint256 } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* FluidDexSmartDebtPaybackAction - Payback debt on the Fluid DEX with smart debt (T3, T4).
|
|
5
|
-
*
|
|
6
|
-
* @category Fluid
|
|
7
|
-
*/
|
|
8
|
-
export declare class FluidDexSmartDebtPaybackAction extends Action {
|
|
9
|
-
/**
|
|
10
|
-
* @param vault The address of the Fluid DEX vault.
|
|
11
|
-
* @param from Address to pull the debt tokens from.
|
|
12
|
-
* @param nftId The NFT ID of the position.
|
|
13
|
-
* @param paybackVariableData Variable data for payback action.
|
|
14
|
-
*/
|
|
15
|
-
constructor(vault: EthAddress, from: EthAddress, nftId: uint256, paybackVariableData: Array<any>);
|
|
16
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Action } from '../../Action';
|
|
2
|
-
import { getAddr } from '../../addresses';
|
|
3
|
-
/**
|
|
4
|
-
* FluidDexSmartDebtPaybackAction - Payback debt on the Fluid DEX with smart debt (T3, T4).
|
|
5
|
-
*
|
|
6
|
-
* @category Fluid
|
|
7
|
-
*/
|
|
8
|
-
export class FluidDexSmartDebtPaybackAction extends Action {
|
|
9
|
-
/**
|
|
10
|
-
* @param vault The address of the Fluid DEX vault.
|
|
11
|
-
* @param from Address to pull the debt tokens from.
|
|
12
|
-
* @param nftId The NFT ID of the position.
|
|
13
|
-
* @param paybackVariableData Variable data for payback action.
|
|
14
|
-
*/
|
|
15
|
-
constructor(vault, from, nftId, paybackVariableData) {
|
|
16
|
-
super('FluidDexPayback', getAddr('FluidDexPayback'), [
|
|
17
|
-
'address',
|
|
18
|
-
'address',
|
|
19
|
-
'uint256',
|
|
20
|
-
'uint256',
|
|
21
|
-
['uint256', 'uint256', 'uint256', 'uint256'],
|
|
22
|
-
], [vault, from, nftId, '0', paybackVariableData]);
|
|
23
|
-
this.mappableArgs = [
|
|
24
|
-
this.args[0],
|
|
25
|
-
this.args[1],
|
|
26
|
-
this.args[2],
|
|
27
|
-
this.args[3],
|
|
28
|
-
this.args[4][0],
|
|
29
|
-
this.args[4][1],
|
|
30
|
-
this.args[4][2],
|
|
31
|
-
this.args[4][3],
|
|
32
|
-
];
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Action } from '../../Action';
|
|
2
|
-
import { uint256, EthAddress } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* SkyStakingEngineClaimRewardsAction
|
|
5
|
-
*
|
|
6
|
-
* @category Sky
|
|
7
|
-
*/
|
|
8
|
-
export declare class SkyStakingEngineClaimRewardsAction extends Action {
|
|
9
|
-
/**
|
|
10
|
-
* @param stakingContract
|
|
11
|
-
* @param index
|
|
12
|
-
* @param farm
|
|
13
|
-
* @param to
|
|
14
|
-
*/
|
|
15
|
-
constructor(stakingContract: EthAddress, index: uint256, farm: EthAddress, to: EthAddress);
|
|
16
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Action } from '../../Action';
|
|
2
|
-
import { getAddr } from '../../addresses';
|
|
3
|
-
/**
|
|
4
|
-
* SkyStakingEngineClaimRewardsAction
|
|
5
|
-
*
|
|
6
|
-
* @category Sky
|
|
7
|
-
*/
|
|
8
|
-
export class SkyStakingEngineClaimRewardsAction extends Action {
|
|
9
|
-
/**
|
|
10
|
-
* @param stakingContract
|
|
11
|
-
* @param index
|
|
12
|
-
* @param farm
|
|
13
|
-
* @param to
|
|
14
|
-
*/
|
|
15
|
-
constructor(stakingContract, index, farm, to) {
|
|
16
|
-
super('SkyStakingEngineClaimRewards', getAddr('SkyStakingEngineClaimRewards'), ['address', 'uint256', 'address', 'address'], [stakingContract, index, farm, to]);
|
|
17
|
-
this.mappableArgs = [
|
|
18
|
-
this.args[0],
|
|
19
|
-
this.args[1],
|
|
20
|
-
this.args[2],
|
|
21
|
-
this.args[3],
|
|
22
|
-
];
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Action } from '../../Action';
|
|
2
|
-
import { EthAddress } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* SkyStakingEngineOpenAction
|
|
5
|
-
*
|
|
6
|
-
* @category Sky
|
|
7
|
-
*/
|
|
8
|
-
export declare class SkyStakingEngineOpenAction extends Action {
|
|
9
|
-
/**
|
|
10
|
-
* @param stakingContract
|
|
11
|
-
*/
|
|
12
|
-
constructor(stakingContract: EthAddress);
|
|
13
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Action } from '../../Action';
|
|
2
|
-
import { getAddr } from '../../addresses';
|
|
3
|
-
/**
|
|
4
|
-
* SkyStakingEngineOpenAction
|
|
5
|
-
*
|
|
6
|
-
* @category Sky
|
|
7
|
-
*/
|
|
8
|
-
export class SkyStakingEngineOpenAction extends Action {
|
|
9
|
-
/**
|
|
10
|
-
* @param stakingContract
|
|
11
|
-
*/
|
|
12
|
-
constructor(stakingContract) {
|
|
13
|
-
super('SkyStakingEngineOpen', getAddr('SkyStakingEngineOpen'), ['address'], [stakingContract]);
|
|
14
|
-
this.mappableArgs = [
|
|
15
|
-
this.args[0],
|
|
16
|
-
];
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Action } from '../../Action';
|
|
2
|
-
import { uint256, EthAddress } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* SkyStakingEngineSelectFarmAction
|
|
5
|
-
*
|
|
6
|
-
* @category Sky
|
|
7
|
-
*/
|
|
8
|
-
export declare class SkyStakingEngineSelectFarmAction extends Action {
|
|
9
|
-
/**
|
|
10
|
-
* @param stakingContract
|
|
11
|
-
* @param index
|
|
12
|
-
* @param farm
|
|
13
|
-
*/
|
|
14
|
-
constructor(stakingContract: EthAddress, index: uint256, farm: EthAddress);
|
|
15
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Action } from '../../Action';
|
|
2
|
-
import { getAddr } from '../../addresses';
|
|
3
|
-
/**
|
|
4
|
-
* SkyStakingEngineSelectFarmAction
|
|
5
|
-
*
|
|
6
|
-
* @category Sky
|
|
7
|
-
*/
|
|
8
|
-
export class SkyStakingEngineSelectFarmAction extends Action {
|
|
9
|
-
/**
|
|
10
|
-
* @param stakingContract
|
|
11
|
-
* @param index
|
|
12
|
-
* @param farm
|
|
13
|
-
*/
|
|
14
|
-
constructor(stakingContract, index, farm) {
|
|
15
|
-
super('SkyStakingEngineSelectFarm', getAddr('SkyStakingEngineSelectFarm'), ['address', 'uint256', 'address'], [stakingContract, index, farm]);
|
|
16
|
-
this.mappableArgs = [
|
|
17
|
-
this.args[0],
|
|
18
|
-
this.args[1],
|
|
19
|
-
this.args[2],
|
|
20
|
-
];
|
|
21
|
-
}
|
|
22
|
-
}
|