@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.
Files changed (91) hide show
  1. package/esm/src/actions/checkers/AaveV3OpenRatioCheckAction.d.ts +2 -3
  2. package/esm/src/actions/checkers/AaveV3OpenRatioCheckAction.js +7 -5
  3. package/esm/src/actions/checkers/AaveV3RatioCheckAction.d.ts +2 -4
  4. package/esm/src/actions/checkers/AaveV3RatioCheckAction.js +2 -6
  5. package/esm/src/actions/checkers/index.d.ts +0 -1
  6. package/esm/src/actions/checkers/index.js +0 -1
  7. package/esm/src/actions/fluid/index.d.ts +0 -9
  8. package/esm/src/actions/fluid/index.js +0 -9
  9. package/esm/src/actions/index.d.ts +1 -3
  10. package/esm/src/actions/index.js +1 -3
  11. package/esm/src/actions/sky/SkyClaimRewardsAction.d.ts +2 -2
  12. package/esm/src/actions/sky/SkyClaimRewardsAction.js +2 -2
  13. package/esm/src/actions/sky/SkyUnstakeAction.d.ts +1 -1
  14. package/esm/src/actions/sky/SkyUnstakeAction.js +1 -1
  15. package/esm/src/actions/sky/index.d.ts +0 -5
  16. package/esm/src/actions/sky/index.js +0 -6
  17. package/esm/src/actions/spark/index.d.ts +0 -1
  18. package/esm/src/actions/spark/index.js +0 -1
  19. package/esm/src/actions/stkgho/index.d.ts +0 -1
  20. package/esm/src/actions/stkgho/index.js +0 -1
  21. package/esm/src/addresses.d.ts +6 -392
  22. package/esm/src/addresses.js +10 -125
  23. package/esm/src/config.js +0 -16
  24. package/esm/src/index.d.ts +427 -1971
  25. package/esm/src/triggers/index.d.ts +0 -4
  26. package/esm/src/triggers/index.js +0 -4
  27. package/esm/src/types.d.ts +0 -2
  28. package/package.json +1 -1
  29. package/src/actions/checkers/AaveV3OpenRatioCheckAction.ts +8 -10
  30. package/src/actions/checkers/AaveV3RatioCheckAction.ts +4 -18
  31. package/src/addresses.ts +4 -2
  32. package/src/config.ts +6 -6
  33. package/src/triggers/index.ts +0 -1
  34. package/umd/index.js +560 -1582
  35. package/esm/src/actions/checkers/LiquityV2NewInterestRateCheckerAction.d.ts +0 -15
  36. package/esm/src/actions/checkers/LiquityV2NewInterestRateCheckerAction.js +0 -22
  37. package/esm/src/actions/fluid/FluidDexOpenAction.d.ts +0 -20
  38. package/esm/src/actions/fluid/FluidDexOpenAction.js +0 -45
  39. package/esm/src/actions/fluid/FluidDexRegularBorrowAction.d.ts +0 -17
  40. package/esm/src/actions/fluid/FluidDexRegularBorrowAction.js +0 -36
  41. package/esm/src/actions/fluid/FluidDexRegularPaybackAction.d.ts +0 -16
  42. package/esm/src/actions/fluid/FluidDexRegularPaybackAction.js +0 -34
  43. package/esm/src/actions/fluid/FluidDexRegularSupplyAction.d.ts +0 -16
  44. package/esm/src/actions/fluid/FluidDexRegularSupplyAction.js +0 -33
  45. package/esm/src/actions/fluid/FluidDexRegularWithdrawAction.d.ts +0 -17
  46. package/esm/src/actions/fluid/FluidDexRegularWithdrawAction.js +0 -37
  47. package/esm/src/actions/fluid/FluidDexSmartCollSupplyAction.d.ts +0 -16
  48. package/esm/src/actions/fluid/FluidDexSmartCollSupplyAction.js +0 -33
  49. package/esm/src/actions/fluid/FluidDexSmartCollWithdrawAction.d.ts +0 -17
  50. package/esm/src/actions/fluid/FluidDexSmartCollWithdrawAction.js +0 -37
  51. package/esm/src/actions/fluid/FluidDexSmartDebtBorrowAction.d.ts +0 -17
  52. package/esm/src/actions/fluid/FluidDexSmartDebtBorrowAction.js +0 -36
  53. package/esm/src/actions/fluid/FluidDexSmartDebtPaybackAction.d.ts +0 -16
  54. package/esm/src/actions/fluid/FluidDexSmartDebtPaybackAction.js +0 -34
  55. package/esm/src/actions/sky/SkyStakingEngineClaimRewards.d.ts +0 -16
  56. package/esm/src/actions/sky/SkyStakingEngineClaimRewards.js +0 -24
  57. package/esm/src/actions/sky/SkyStakingEngineOpen.d.ts +0 -13
  58. package/esm/src/actions/sky/SkyStakingEngineOpen.js +0 -18
  59. package/esm/src/actions/sky/SkyStakingEngineSelectFarm.d.ts +0 -15
  60. package/esm/src/actions/sky/SkyStakingEngineSelectFarm.js +0 -22
  61. package/esm/src/actions/sky/SkyStakingEngineStake.d.ts +0 -16
  62. package/esm/src/actions/sky/SkyStakingEngineStake.js +0 -24
  63. package/esm/src/actions/sky/SkyStakingEngineUnstake.d.ts +0 -16
  64. package/esm/src/actions/sky/SkyStakingEngineUnstake.js +0 -24
  65. package/esm/src/actions/spark/SparkSPKClaimAction.d.ts +0 -20
  66. package/esm/src/actions/spark/SparkSPKClaimAction.js +0 -25
  67. package/esm/src/actions/stkgho/GhoStakeAction.d.ts +0 -15
  68. package/esm/src/actions/stkgho/GhoStakeAction.js +0 -25
  69. package/esm/src/actions/summerfi/SFApproveTokensAction.d.ts +0 -14
  70. package/esm/src/actions/summerfi/SFApproveTokensAction.js +0 -17
  71. package/esm/src/actions/summerfi/index.d.ts +0 -1
  72. package/esm/src/actions/summerfi/index.js +0 -1
  73. package/esm/src/actions/umbrella/UmbrellaClaimRewardsAction.d.ts +0 -16
  74. package/esm/src/actions/umbrella/UmbrellaClaimRewardsAction.js +0 -22
  75. package/esm/src/actions/umbrella/UmbrellaFinalizeUnstakeAction.d.ts +0 -18
  76. package/esm/src/actions/umbrella/UmbrellaFinalizeUnstakeAction.js +0 -31
  77. package/esm/src/actions/umbrella/UmbrellaStakeAction.d.ts +0 -19
  78. package/esm/src/actions/umbrella/UmbrellaStakeAction.js +0 -29
  79. package/esm/src/actions/umbrella/UmbrellaStartUnstakeAction.d.ts +0 -13
  80. package/esm/src/actions/umbrella/UmbrellaStartUnstakeAction.js +0 -18
  81. package/esm/src/actions/umbrella/index.d.ts +0 -4
  82. package/esm/src/actions/umbrella/index.js +0 -4
  83. package/esm/src/triggers/AaveV3QuotePriceRangeTrigger.d.ts +0 -13
  84. package/esm/src/triggers/AaveV3QuotePriceRangeTrigger.js +0 -15
  85. package/esm/src/triggers/CompV3PriceRangeTrigger.d.ts +0 -10
  86. package/esm/src/triggers/CompV3PriceRangeTrigger.js +0 -12
  87. package/esm/src/triggers/CompV3PriceTrigger.d.ts +0 -10
  88. package/esm/src/triggers/CompV3PriceTrigger.js +0 -12
  89. package/esm/src/triggers/LiquityV2AdjustRateDebtInFrontTrigger.d.ts +0 -8
  90. package/esm/src/triggers/LiquityV2AdjustRateDebtInFrontTrigger.js +0 -10
  91. 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 position of `user` and reverts if faulty.
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, user?: 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 position of `user` and reverts if faulty.
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, user = getAddr('Empty')) {
17
- super('AaveV3OpenRatioCheck', getAddr('Empty'), ['uint256', 'address', 'address'], [targetRatio, market, user]);
18
- this.mappableArgs = [this.args[0], this.args[1], this.args[2]];
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, EthAddress } from '../../types';
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, market?: EthAddress, user?: EthAddress);
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, market = getAddr('Empty'), user = getAddr('Empty')) {
16
- super('AaveV3RatioCheck', getAddr('Empty'), ['uint8', 'uint256', 'address', 'address'], [ratioState, targetRatio, market, user]);
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
- import * as umbrella from './umbrella';
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, };
@@ -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
- import * as umbrella from './umbrella';
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
- * SkyClaimRewardsAction
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 rewardToken
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
- * SkyClaimRewardsAction
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 rewardToken
11
+ * @param stakingToken
12
12
  * @param to
13
13
  */
14
14
  constructor(stakingContract, rewardToken, to) {
@@ -1,7 +1,7 @@
1
1
  import { Action } from '../../Action';
2
2
  import { uint256, EthAddress } from '../../types';
3
3
  /**
4
- * SkyUnstakeAction
4
+ * SkyStakeAction
5
5
  *
6
6
  * @category Sky
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Action } from '../../Action';
2
2
  import { getAddr } from '../../addresses';
3
3
  /**
4
- * SkyUnstakeAction
4
+ * SkyStakeAction
5
5
  *
6
6
  * @category Sky
7
7
  */
@@ -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';
@@ -9,4 +9,3 @@ export * from './SparkClaimRewardsAction';
9
9
  export * from './SparkSwapBorrowRateModeAction';
10
10
  export * from './SparkDelegateCredit';
11
11
  export * from './SparkDelegateWithSigAction';
12
- export * from './SparkSPKClaimAction';
@@ -9,4 +9,3 @@ export * from './SparkClaimRewardsAction';
9
9
  export * from './SparkSwapBorrowRateModeAction';
10
10
  export * from './SparkDelegateCredit';
11
11
  export * from './SparkDelegateWithSigAction';
12
- export * from './SparkSPKClaimAction';
@@ -1,4 +1,3 @@
1
1
  export * from './GhoClaimAAVEAction';
2
2
  export * from './GhoFinalizeUnstakeAction';
3
3
  export * from './GhoStartUnstakeAction';
4
- export * from './GhoStakeAction';
@@ -1,4 +1,3 @@
1
1
  export * from './GhoClaimAAVEAction';
2
2
  export * from './GhoFinalizeUnstakeAction';
3
3
  export * from './GhoStartUnstakeAction';
4
- export * from './GhoStakeAction';