@defisaver/sdk 1.3.7 → 1.3.8

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 (79) hide show
  1. package/esm/src/actions/checkers/LiquityV2NewInterestRateCheckerAction.d.ts +15 -0
  2. package/esm/src/actions/checkers/LiquityV2NewInterestRateCheckerAction.js +22 -0
  3. package/esm/src/actions/checkers/index.d.ts +1 -0
  4. package/esm/src/actions/checkers/index.js +1 -0
  5. package/esm/src/actions/fluid/FluidDexOpenAction.d.ts +20 -0
  6. package/esm/src/actions/fluid/FluidDexOpenAction.js +45 -0
  7. package/esm/src/actions/fluid/FluidDexRegularBorrowAction.d.ts +17 -0
  8. package/esm/src/actions/fluid/FluidDexRegularBorrowAction.js +36 -0
  9. package/esm/src/actions/fluid/FluidDexRegularPaybackAction.d.ts +16 -0
  10. package/esm/src/actions/fluid/FluidDexRegularPaybackAction.js +34 -0
  11. package/esm/src/actions/fluid/FluidDexRegularSupplyAction.d.ts +16 -0
  12. package/esm/src/actions/fluid/FluidDexRegularSupplyAction.js +33 -0
  13. package/esm/src/actions/fluid/FluidDexRegularWithdrawAction.d.ts +17 -0
  14. package/esm/src/actions/fluid/FluidDexRegularWithdrawAction.js +37 -0
  15. package/esm/src/actions/fluid/FluidDexSmartCollSupplyAction.d.ts +16 -0
  16. package/esm/src/actions/fluid/FluidDexSmartCollSupplyAction.js +33 -0
  17. package/esm/src/actions/fluid/FluidDexSmartCollWithdrawAction.d.ts +17 -0
  18. package/esm/src/actions/fluid/FluidDexSmartCollWithdrawAction.js +37 -0
  19. package/esm/src/actions/fluid/FluidDexSmartDebtBorrowAction.d.ts +17 -0
  20. package/esm/src/actions/fluid/FluidDexSmartDebtBorrowAction.js +36 -0
  21. package/esm/src/actions/fluid/FluidDexSmartDebtPaybackAction.d.ts +16 -0
  22. package/esm/src/actions/fluid/FluidDexSmartDebtPaybackAction.js +34 -0
  23. package/esm/src/actions/fluid/index.d.ts +9 -0
  24. package/esm/src/actions/fluid/index.js +9 -0
  25. package/esm/src/actions/index.d.ts +3 -1
  26. package/esm/src/actions/index.js +3 -1
  27. package/esm/src/actions/sky/SkyClaimRewardsAction.d.ts +2 -2
  28. package/esm/src/actions/sky/SkyClaimRewardsAction.js +2 -2
  29. package/esm/src/actions/sky/SkyStakingEngineClaimRewards.d.ts +16 -0
  30. package/esm/src/actions/sky/SkyStakingEngineClaimRewards.js +24 -0
  31. package/esm/src/actions/sky/SkyStakingEngineOpen.d.ts +13 -0
  32. package/esm/src/actions/sky/SkyStakingEngineOpen.js +18 -0
  33. package/esm/src/actions/sky/SkyStakingEngineSelectFarm.d.ts +15 -0
  34. package/esm/src/actions/sky/SkyStakingEngineSelectFarm.js +22 -0
  35. package/esm/src/actions/sky/SkyStakingEngineStake.d.ts +16 -0
  36. package/esm/src/actions/sky/SkyStakingEngineStake.js +24 -0
  37. package/esm/src/actions/sky/SkyStakingEngineUnstake.d.ts +16 -0
  38. package/esm/src/actions/sky/SkyStakingEngineUnstake.js +24 -0
  39. package/esm/src/actions/sky/SkyUnstakeAction.d.ts +1 -1
  40. package/esm/src/actions/sky/SkyUnstakeAction.js +1 -1
  41. package/esm/src/actions/sky/index.d.ts +5 -0
  42. package/esm/src/actions/sky/index.js +6 -0
  43. package/esm/src/actions/spark/SparkSPKClaimAction.d.ts +20 -0
  44. package/esm/src/actions/spark/SparkSPKClaimAction.js +25 -0
  45. package/esm/src/actions/spark/index.d.ts +1 -0
  46. package/esm/src/actions/spark/index.js +1 -0
  47. package/esm/src/actions/stkgho/GhoStakeAction.d.ts +15 -0
  48. package/esm/src/actions/stkgho/GhoStakeAction.js +25 -0
  49. package/esm/src/actions/stkgho/index.d.ts +1 -0
  50. package/esm/src/actions/stkgho/index.js +1 -0
  51. package/esm/src/actions/summerfi/SFApproveTokensAction.d.ts +14 -0
  52. package/esm/src/actions/summerfi/SFApproveTokensAction.js +17 -0
  53. package/esm/src/actions/summerfi/index.d.ts +1 -0
  54. package/esm/src/actions/summerfi/index.js +1 -0
  55. package/esm/src/actions/umbrella/UmbrellaClaimRewardsAction.d.ts +16 -0
  56. package/esm/src/actions/umbrella/UmbrellaClaimRewardsAction.js +22 -0
  57. package/esm/src/actions/umbrella/UmbrellaFinalizeUnstakeAction.d.ts +18 -0
  58. package/esm/src/actions/umbrella/UmbrellaFinalizeUnstakeAction.js +31 -0
  59. package/esm/src/actions/umbrella/UmbrellaStakeAction.d.ts +19 -0
  60. package/esm/src/actions/umbrella/UmbrellaStakeAction.js +29 -0
  61. package/esm/src/actions/umbrella/UmbrellaStartUnstakeAction.d.ts +13 -0
  62. package/esm/src/actions/umbrella/UmbrellaStartUnstakeAction.js +18 -0
  63. package/esm/src/actions/umbrella/index.d.ts +4 -0
  64. package/esm/src/actions/umbrella/index.js +4 -0
  65. package/esm/src/addresses.d.ts +736 -70
  66. package/esm/src/addresses.js +126 -10
  67. package/esm/src/config.js +18 -2
  68. package/esm/src/index.d.ts +3856 -1192
  69. package/esm/src/triggers/CompV3PriceRangeTrigger.d.ts +10 -0
  70. package/esm/src/triggers/CompV3PriceRangeTrigger.js +12 -0
  71. package/esm/src/triggers/CompV3PriceTrigger.d.ts +10 -0
  72. package/esm/src/triggers/CompV3PriceTrigger.js +12 -0
  73. package/esm/src/triggers/LiquityV2AdjustRateDebtInFrontTrigger.d.ts +8 -0
  74. package/esm/src/triggers/LiquityV2AdjustRateDebtInFrontTrigger.js +10 -0
  75. package/esm/src/triggers/index.d.ts +3 -0
  76. package/esm/src/triggers/index.js +3 -0
  77. package/esm/src/types.d.ts +2 -0
  78. package/package.json +1 -1
  79. package/umd/index.js +1559 -571
@@ -0,0 +1,10 @@
1
+ import { Action } from '../Action';
2
+ import { EthAddress, uint256 } from '../types';
3
+ /**
4
+ *
5
+ *
6
+ * @category Triggers
7
+ */
8
+ export declare class CompV3PriceRangeTrigger extends Action {
9
+ constructor(market: EthAddress, collToken: EthAddress, lowerPrice: uint256, upperPrice: uint256);
10
+ }
@@ -0,0 +1,12 @@
1
+ import { Action } from '../Action';
2
+ import { getAddr } from '../addresses';
3
+ /**
4
+ *
5
+ *
6
+ * @category Triggers
7
+ */
8
+ export class CompV3PriceRangeTrigger extends Action {
9
+ constructor(market, collToken, lowerPrice, upperPrice) {
10
+ super('CompV3PriceRangeTrigger', getAddr('Empty'), [['address', 'address', 'uint256', 'uint256']], [[market, collToken, lowerPrice, upperPrice]]);
11
+ }
12
+ }
@@ -0,0 +1,10 @@
1
+ import { Action } from '../Action';
2
+ import { EthAddress, uint256, uint8 } from '../types';
3
+ /**
4
+ *
5
+ *
6
+ * @category Triggers
7
+ */
8
+ export declare class CompV3PriceTrigger extends Action {
9
+ constructor(market: EthAddress, collToken: EthAddress, user: EthAddress, price: uint256, state: uint8);
10
+ }
@@ -0,0 +1,12 @@
1
+ import { Action } from '../Action';
2
+ import { getAddr } from '../addresses';
3
+ /**
4
+ *
5
+ *
6
+ * @category Triggers
7
+ */
8
+ export class CompV3PriceTrigger extends Action {
9
+ constructor(market, collToken, user, price, state) {
10
+ super('CompV3PriceTrigger', getAddr('Empty'), [['address', 'address', 'address', 'uint256', 'uint8']], [[market, collToken, user, price, state]]);
11
+ }
12
+ }
@@ -0,0 +1,8 @@
1
+ import { Action } from '../Action';
2
+ import { EthAddress, uint256 } from '../types';
3
+ /**
4
+ * @category Triggers
5
+ */
6
+ export declare class LiquityV2AdjustRateDebtInFrontTrigger extends Action {
7
+ constructor(market: EthAddress, troveId: uint256, criticalDebtInFrontLimit: uint256, nonCriticalDebtInFrontLimit: uint256);
8
+ }
@@ -0,0 +1,10 @@
1
+ import { Action } from '../Action';
2
+ import { getAddr } from '../addresses';
3
+ /**
4
+ * @category Triggers
5
+ */
6
+ export class LiquityV2AdjustRateDebtInFrontTrigger extends Action {
7
+ constructor(market, troveId, criticalDebtInFrontLimit, nonCriticalDebtInFrontLimit) {
8
+ super('LiquityV2AdjustRateDebtInFrontTrigger', getAddr('Empty'), ['address', 'uint256', 'uint256', 'uint256'], [market, troveId, criticalDebtInFrontLimit, nonCriticalDebtInFrontLimit]);
9
+ }
10
+ }
@@ -25,3 +25,6 @@ export * from './LiquityV2RatioTrigger';
25
25
  export * from './ClosePriceTrigger';
26
26
  export * from './LiquityV2QuotePriceTrigger';
27
27
  export * from './FluidRatioTrigger';
28
+ export * from './CompV3PriceTrigger';
29
+ export * from './CompV3PriceRangeTrigger';
30
+ export * from './LiquityV2AdjustRateDebtInFrontTrigger';
@@ -25,3 +25,6 @@ export * from './LiquityV2RatioTrigger';
25
25
  export * from './ClosePriceTrigger';
26
26
  export * from './LiquityV2QuotePriceTrigger';
27
27
  export * from './FluidRatioTrigger';
28
+ export * from './CompV3PriceTrigger';
29
+ export * from './CompV3PriceRangeTrigger';
30
+ export * from './LiquityV2AdjustRateDebtInFrontTrigger';
@@ -28,6 +28,8 @@ declare type Networks = {
28
28
  optimism: Network;
29
29
  arbitrum: Network;
30
30
  base: Network;
31
+ linea: Network;
32
+ plasma: Network;
31
33
  };
32
34
  declare type TxSaverData = {
33
35
  maxTxCostInFeeToken: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/sdk",
3
- "version": "1.3.7",
3
+ "version": "1.3.8",
4
4
  "description": "",
5
5
  "main": "./umd/index.js",
6
6
  "module": "./esm/src/index.js",