@defisaver/sdk 1.3.6-dev.3 → 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/AaveV3OpenRatioCheckAction.d.ts +2 -3
- package/esm/src/actions/checkers/AaveV3OpenRatioCheckAction.js +7 -5
- package/esm/src/actions/checkers/AaveV3RatioCheckAction.d.ts +2 -4
- package/esm/src/actions/checkers/AaveV3RatioCheckAction.js +2 -6
- 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 +6 -392
- package/esm/src/addresses.js +10 -125
- package/esm/src/config.js +0 -16
- package/esm/src/index.d.ts +427 -1971
- package/esm/src/triggers/index.d.ts +0 -4
- package/esm/src/triggers/index.js +0 -4
- package/esm/src/types.d.ts +0 -2
- package/package.json +1 -1
- package/src/actions/checkers/AaveV3OpenRatioCheckAction.ts +8 -10
- package/src/actions/checkers/AaveV3RatioCheckAction.ts +4 -18
- package/src/addresses.ts +4 -2
- package/src/config.ts +6 -6
- package/src/triggers/index.ts +0 -1
- package/umd/index.js +560 -1582
- 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/AaveV3QuotePriceRangeTrigger.d.ts +0 -13
- package/esm/src/triggers/AaveV3QuotePriceRangeTrigger.js +0 -15
- 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
- package/src/triggers/AaveV3QuotePriceRangeTrigger.ts +0 -27
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Action } from '../../Action';
|
|
2
2
|
import { EthAddress, uint256 } from '../../types';
|
|
3
3
|
/**
|
|
4
|
-
* AaveV3OpenRatioCheckAction - Checks aave V3 ratio for
|
|
4
|
+
* AaveV3OpenRatioCheckAction - Checks aave V3 ratio for users proxy position and reverts if faulty.
|
|
5
5
|
*
|
|
6
6
|
* @dev This checker action is different from AaveV3RatioCheckAction in that it checks current ratio without checking previous ratio.
|
|
7
7
|
*
|
|
@@ -11,7 +11,6 @@ export declare class AaveV3OpenRatioCheckAction extends Action {
|
|
|
11
11
|
/**
|
|
12
12
|
* @param targetRatio The ratio user want to be at
|
|
13
13
|
* @param market Address provider for specific market
|
|
14
|
-
* @param user Address of the user (EOA/SW). This param was added later
|
|
15
14
|
*/
|
|
16
|
-
constructor(targetRatio: uint256, market: EthAddress
|
|
15
|
+
constructor(targetRatio: uint256, market: EthAddress);
|
|
17
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Action } from '../../Action';
|
|
2
2
|
import { getAddr } from '../../addresses';
|
|
3
3
|
/**
|
|
4
|
-
* AaveV3OpenRatioCheckAction - Checks aave V3 ratio for
|
|
4
|
+
* AaveV3OpenRatioCheckAction - Checks aave V3 ratio for users proxy position and reverts if faulty.
|
|
5
5
|
*
|
|
6
6
|
* @dev This checker action is different from AaveV3RatioCheckAction in that it checks current ratio without checking previous ratio.
|
|
7
7
|
*
|
|
@@ -11,10 +11,12 @@ export class AaveV3OpenRatioCheckAction extends Action {
|
|
|
11
11
|
/**
|
|
12
12
|
* @param targetRatio The ratio user want to be at
|
|
13
13
|
* @param market Address provider for specific market
|
|
14
|
-
* @param user Address of the user (EOA/SW). This param was added later
|
|
15
14
|
*/
|
|
16
|
-
constructor(targetRatio, market
|
|
17
|
-
super('AaveV3OpenRatioCheck', getAddr('Empty'), ['uint256', 'address'
|
|
18
|
-
this.mappableArgs = [
|
|
15
|
+
constructor(targetRatio, market) {
|
|
16
|
+
super('AaveV3OpenRatioCheck', getAddr('Empty'), ['uint256', 'address'], [targetRatio, market]);
|
|
17
|
+
this.mappableArgs = [
|
|
18
|
+
this.args[0],
|
|
19
|
+
this.args[1],
|
|
20
|
+
];
|
|
19
21
|
}
|
|
20
22
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Action } from '../../Action';
|
|
2
|
-
import { uint8, uint256
|
|
2
|
+
import { uint8, uint256 } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* AaveV3RatioCheckAction - Checks aave V3 ratio for users proxy position and reverts if faulty
|
|
5
5
|
*
|
|
@@ -9,8 +9,6 @@ export declare class AaveV3RatioCheckAction extends Action {
|
|
|
9
9
|
/**
|
|
10
10
|
* @param ratioState If it should lower/higher
|
|
11
11
|
* @param targetRatio The ratio user want to be at
|
|
12
|
-
* @param market Address provider for specific market. This param was added later
|
|
13
|
-
* @param user Address of the user (EOA/SW). This param was added later
|
|
14
12
|
*/
|
|
15
|
-
constructor(ratioState: uint8, targetRatio: uint256
|
|
13
|
+
constructor(ratioState: uint8, targetRatio: uint256);
|
|
16
14
|
}
|
|
@@ -9,16 +9,12 @@ export class AaveV3RatioCheckAction extends Action {
|
|
|
9
9
|
/**
|
|
10
10
|
* @param ratioState If it should lower/higher
|
|
11
11
|
* @param targetRatio The ratio user want to be at
|
|
12
|
-
* @param market Address provider for specific market. This param was added later
|
|
13
|
-
* @param user Address of the user (EOA/SW). This param was added later
|
|
14
12
|
*/
|
|
15
|
-
constructor(ratioState, targetRatio
|
|
16
|
-
super('AaveV3RatioCheck', getAddr('
|
|
13
|
+
constructor(ratioState, targetRatio) {
|
|
14
|
+
super('AaveV3RatioCheck', getAddr('AaveV3RatioCheck'), ['uint8', 'uint256'], [ratioState, targetRatio]);
|
|
17
15
|
this.mappableArgs = [
|
|
18
16
|
this.args[0],
|
|
19
17
|
this.args[1],
|
|
20
|
-
this.args[2],
|
|
21
|
-
this.args[3],
|
|
22
18
|
];
|
|
23
19
|
}
|
|
24
20
|
}
|
|
@@ -13,5 +13,4 @@ export * from './AaveV3OpenRatioCheckAction';
|
|
|
13
13
|
export * from './MorphoBlueTargetRatioCheckAction';
|
|
14
14
|
export * from './LiquityV2RatioCheckAction';
|
|
15
15
|
export * from './LiquityV2TargetRatioCheckAction';
|
|
16
|
-
export * from './LiquityV2NewInterestRateCheckerAction';
|
|
17
16
|
export * from './FluidRatioCheckAction';
|
|
@@ -13,5 +13,4 @@ export * from './AaveV3OpenRatioCheckAction';
|
|
|
13
13
|
export * from './MorphoBlueTargetRatioCheckAction';
|
|
14
14
|
export * from './LiquityV2RatioCheckAction';
|
|
15
15
|
export * from './LiquityV2TargetRatioCheckAction';
|
|
16
|
-
export * from './LiquityV2NewInterestRateCheckerAction';
|
|
17
16
|
export * from './FluidRatioCheckAction';
|
|
@@ -5,12 +5,3 @@ export * from './FluidVaultT1PaybackAction';
|
|
|
5
5
|
export * from './FluidVaultT1SupplyAction';
|
|
6
6
|
export * from './FluidVaultT1WithdrawAction';
|
|
7
7
|
export * from './FluidClaimAction';
|
|
8
|
-
export * from './FluidDexOpenAction';
|
|
9
|
-
export * from './FluidDexRegularBorrowAction';
|
|
10
|
-
export * from './FluidDexRegularSupplyAction';
|
|
11
|
-
export * from './FluidDexRegularPaybackAction';
|
|
12
|
-
export * from './FluidDexRegularWithdrawAction';
|
|
13
|
-
export * from './FluidDexSmartCollSupplyAction';
|
|
14
|
-
export * from './FluidDexSmartCollWithdrawAction';
|
|
15
|
-
export * from './FluidDexSmartDebtBorrowAction';
|
|
16
|
-
export * from './FluidDexSmartDebtPaybackAction';
|
|
@@ -5,12 +5,3 @@ export * from './FluidVaultT1PaybackAction';
|
|
|
5
5
|
export * from './FluidVaultT1SupplyAction';
|
|
6
6
|
export * from './FluidVaultT1WithdrawAction';
|
|
7
7
|
export * from './FluidClaimAction';
|
|
8
|
-
export * from './FluidDexOpenAction';
|
|
9
|
-
export * from './FluidDexRegularBorrowAction';
|
|
10
|
-
export * from './FluidDexRegularSupplyAction';
|
|
11
|
-
export * from './FluidDexRegularPaybackAction';
|
|
12
|
-
export * from './FluidDexRegularWithdrawAction';
|
|
13
|
-
export * from './FluidDexSmartCollSupplyAction';
|
|
14
|
-
export * from './FluidDexSmartCollWithdrawAction';
|
|
15
|
-
export * from './FluidDexSmartDebtBorrowAction';
|
|
16
|
-
export * from './FluidDexSmartDebtPaybackAction';
|
|
@@ -27,7 +27,6 @@ import * as lsv from './lsv';
|
|
|
27
27
|
import * as curveusd from './curveusd';
|
|
28
28
|
import * as spark from './spark';
|
|
29
29
|
import * as morphoblue from './morpho-blue';
|
|
30
|
-
import * as summerfi from './summerfi';
|
|
31
30
|
import * as llamalend from './llamalend';
|
|
32
31
|
import * as merkl from './merkl';
|
|
33
32
|
import * as eulerV2 from './eulerV2';
|
|
@@ -38,5 +37,4 @@ import * as renzo from './renzo';
|
|
|
38
37
|
import * as etherfi from './etherfi';
|
|
39
38
|
import * as fluid from './fluid';
|
|
40
39
|
import * as pendle from './pendle';
|
|
41
|
-
|
|
42
|
-
export { aave, maker, compound, basic, flashloan, uniswap, reflexer, dydx, uniswapV3, checkers, liquity, yearn, lido, insta, balancer, curve, guni, mstable, rari, aaveV3, convex, chickenBonds, compoundV3, morpho, bprotocol, lsv, spark, curveusd, morphoblue, summerfi, llamalend, merkl, eulerV2, sky, liquityV2, stkgho, renzo, etherfi, fluid, pendle, umbrella, };
|
|
40
|
+
export { aave, maker, compound, basic, flashloan, uniswap, reflexer, dydx, uniswapV3, checkers, liquity, yearn, lido, insta, balancer, curve, guni, mstable, rari, aaveV3, convex, chickenBonds, compoundV3, morpho, bprotocol, lsv, spark, curveusd, morphoblue, llamalend, merkl, eulerV2, sky, liquityV2, stkgho, renzo, etherfi, fluid, pendle, };
|
package/esm/src/actions/index.js
CHANGED
|
@@ -27,7 +27,6 @@ import * as lsv from './lsv';
|
|
|
27
27
|
import * as curveusd from './curveusd';
|
|
28
28
|
import * as spark from './spark';
|
|
29
29
|
import * as morphoblue from './morpho-blue';
|
|
30
|
-
import * as summerfi from './summerfi';
|
|
31
30
|
import * as llamalend from './llamalend';
|
|
32
31
|
import * as merkl from './merkl';
|
|
33
32
|
import * as eulerV2 from './eulerV2';
|
|
@@ -38,5 +37,4 @@ import * as renzo from './renzo';
|
|
|
38
37
|
import * as etherfi from './etherfi';
|
|
39
38
|
import * as fluid from './fluid';
|
|
40
39
|
import * as pendle from './pendle';
|
|
41
|
-
|
|
42
|
-
export { aave, maker, compound, basic, flashloan, uniswap, reflexer, dydx, uniswapV3, checkers, liquity, yearn, lido, insta, balancer, curve, guni, mstable, rari, aaveV3, convex, chickenBonds, compoundV3, morpho, bprotocol, lsv, spark, curveusd, morphoblue, summerfi, llamalend, merkl, eulerV2, sky, liquityV2, stkgho, renzo, etherfi, fluid, pendle, umbrella, };
|
|
40
|
+
export { aave, maker, compound, basic, flashloan, uniswap, reflexer, dydx, uniswapV3, checkers, liquity, yearn, lido, insta, balancer, curve, guni, mstable, rari, aaveV3, convex, chickenBonds, compoundV3, morpho, bprotocol, lsv, spark, curveusd, morphoblue, llamalend, merkl, eulerV2, sky, liquityV2, stkgho, renzo, etherfi, fluid, pendle, };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Action } from '../../Action';
|
|
2
2
|
import { EthAddress } from '../../types';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* SkyStakeAction
|
|
5
5
|
*
|
|
6
6
|
* @category Sky
|
|
7
7
|
*/
|
|
8
8
|
export declare class SkyClaimRewardsAction extends Action {
|
|
9
9
|
/**
|
|
10
10
|
* @param stakingContract
|
|
11
|
-
* @param
|
|
11
|
+
* @param stakingToken
|
|
12
12
|
* @param to
|
|
13
13
|
*/
|
|
14
14
|
constructor(stakingContract: EthAddress, rewardToken: EthAddress, to: EthAddress);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Action } from '../../Action';
|
|
2
2
|
import { getAddr } from '../../addresses';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* SkyStakeAction
|
|
5
5
|
*
|
|
6
6
|
* @category Sky
|
|
7
7
|
*/
|
|
8
8
|
export class SkyClaimRewardsAction extends Action {
|
|
9
9
|
/**
|
|
10
10
|
* @param stakingContract
|
|
11
|
-
* @param
|
|
11
|
+
* @param stakingToken
|
|
12
12
|
* @param to
|
|
13
13
|
*/
|
|
14
14
|
constructor(stakingContract, rewardToken, to) {
|
|
@@ -1,8 +1,3 @@
|
|
|
1
1
|
export * from './SkyClaimRewardsAction';
|
|
2
2
|
export * from './SkyStakeAction';
|
|
3
3
|
export * from './SkyUnstakeAction';
|
|
4
|
-
export * from './SkyStakingEngineOpen';
|
|
5
|
-
export * from './SkyStakingEngineSelectFarm';
|
|
6
|
-
export * from './SkyStakingEngineStake';
|
|
7
|
-
export * from './SkyStakingEngineUnstake';
|
|
8
|
-
export * from './SkyStakingEngineClaimRewards';
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
export * from './SkyClaimRewardsAction';
|
|
2
2
|
export * from './SkyStakeAction';
|
|
3
3
|
export * from './SkyUnstakeAction';
|
|
4
|
-
// Sky Staking Engine
|
|
5
|
-
export * from './SkyStakingEngineOpen';
|
|
6
|
-
export * from './SkyStakingEngineSelectFarm';
|
|
7
|
-
export * from './SkyStakingEngineStake';
|
|
8
|
-
export * from './SkyStakingEngineUnstake';
|
|
9
|
-
export * from './SkyStakingEngineClaimRewards';
|