@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.
- package/esm/src/actions/checkers/LiquityV2NewInterestRateCheckerAction.d.ts +15 -0
- package/esm/src/actions/checkers/LiquityV2NewInterestRateCheckerAction.js +22 -0
- package/esm/src/actions/checkers/index.d.ts +1 -0
- package/esm/src/actions/checkers/index.js +1 -0
- package/esm/src/actions/fluid/FluidDexOpenAction.d.ts +20 -0
- package/esm/src/actions/fluid/FluidDexOpenAction.js +45 -0
- package/esm/src/actions/fluid/FluidDexRegularBorrowAction.d.ts +17 -0
- package/esm/src/actions/fluid/FluidDexRegularBorrowAction.js +36 -0
- package/esm/src/actions/fluid/FluidDexRegularPaybackAction.d.ts +16 -0
- package/esm/src/actions/fluid/FluidDexRegularPaybackAction.js +34 -0
- package/esm/src/actions/fluid/FluidDexRegularSupplyAction.d.ts +16 -0
- package/esm/src/actions/fluid/FluidDexRegularSupplyAction.js +33 -0
- package/esm/src/actions/fluid/FluidDexRegularWithdrawAction.d.ts +17 -0
- package/esm/src/actions/fluid/FluidDexRegularWithdrawAction.js +37 -0
- package/esm/src/actions/fluid/FluidDexSmartCollSupplyAction.d.ts +16 -0
- package/esm/src/actions/fluid/FluidDexSmartCollSupplyAction.js +33 -0
- package/esm/src/actions/fluid/FluidDexSmartCollWithdrawAction.d.ts +17 -0
- package/esm/src/actions/fluid/FluidDexSmartCollWithdrawAction.js +37 -0
- package/esm/src/actions/fluid/FluidDexSmartDebtBorrowAction.d.ts +17 -0
- package/esm/src/actions/fluid/FluidDexSmartDebtBorrowAction.js +36 -0
- package/esm/src/actions/fluid/FluidDexSmartDebtPaybackAction.d.ts +16 -0
- package/esm/src/actions/fluid/FluidDexSmartDebtPaybackAction.js +34 -0
- package/esm/src/actions/fluid/index.d.ts +9 -0
- package/esm/src/actions/fluid/index.js +9 -0
- package/esm/src/actions/index.d.ts +3 -1
- package/esm/src/actions/index.js +3 -1
- package/esm/src/actions/sky/SkyClaimRewardsAction.d.ts +2 -2
- package/esm/src/actions/sky/SkyClaimRewardsAction.js +2 -2
- package/esm/src/actions/sky/SkyStakingEngineClaimRewards.d.ts +16 -0
- package/esm/src/actions/sky/SkyStakingEngineClaimRewards.js +24 -0
- package/esm/src/actions/sky/SkyStakingEngineOpen.d.ts +13 -0
- package/esm/src/actions/sky/SkyStakingEngineOpen.js +18 -0
- package/esm/src/actions/sky/SkyStakingEngineSelectFarm.d.ts +15 -0
- package/esm/src/actions/sky/SkyStakingEngineSelectFarm.js +22 -0
- package/esm/src/actions/sky/SkyStakingEngineStake.d.ts +16 -0
- package/esm/src/actions/sky/SkyStakingEngineStake.js +24 -0
- package/esm/src/actions/sky/SkyStakingEngineUnstake.d.ts +16 -0
- package/esm/src/actions/sky/SkyStakingEngineUnstake.js +24 -0
- 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 +5 -0
- package/esm/src/actions/sky/index.js +6 -0
- package/esm/src/actions/spark/SparkSPKClaimAction.d.ts +20 -0
- package/esm/src/actions/spark/SparkSPKClaimAction.js +25 -0
- package/esm/src/actions/spark/index.d.ts +1 -0
- package/esm/src/actions/spark/index.js +1 -0
- package/esm/src/actions/stkgho/GhoStakeAction.d.ts +15 -0
- package/esm/src/actions/stkgho/GhoStakeAction.js +25 -0
- package/esm/src/actions/stkgho/index.d.ts +1 -0
- package/esm/src/actions/stkgho/index.js +1 -0
- package/esm/src/actions/summerfi/SFApproveTokensAction.d.ts +14 -0
- package/esm/src/actions/summerfi/SFApproveTokensAction.js +17 -0
- package/esm/src/actions/summerfi/index.d.ts +1 -0
- package/esm/src/actions/summerfi/index.js +1 -0
- package/esm/src/actions/umbrella/UmbrellaClaimRewardsAction.d.ts +16 -0
- package/esm/src/actions/umbrella/UmbrellaClaimRewardsAction.js +22 -0
- package/esm/src/actions/umbrella/UmbrellaFinalizeUnstakeAction.d.ts +18 -0
- package/esm/src/actions/umbrella/UmbrellaFinalizeUnstakeAction.js +31 -0
- package/esm/src/actions/umbrella/UmbrellaStakeAction.d.ts +19 -0
- package/esm/src/actions/umbrella/UmbrellaStakeAction.js +29 -0
- package/esm/src/actions/umbrella/UmbrellaStartUnstakeAction.d.ts +13 -0
- package/esm/src/actions/umbrella/UmbrellaStartUnstakeAction.js +18 -0
- package/esm/src/actions/umbrella/index.d.ts +4 -0
- package/esm/src/actions/umbrella/index.js +4 -0
- package/esm/src/addresses.d.ts +736 -70
- package/esm/src/addresses.js +126 -10
- package/esm/src/config.js +18 -2
- package/esm/src/index.d.ts +3856 -1192
- package/esm/src/triggers/CompV3PriceRangeTrigger.d.ts +10 -0
- package/esm/src/triggers/CompV3PriceRangeTrigger.js +12 -0
- package/esm/src/triggers/CompV3PriceTrigger.d.ts +10 -0
- package/esm/src/triggers/CompV3PriceTrigger.js +12 -0
- package/esm/src/triggers/LiquityV2AdjustRateDebtInFrontTrigger.d.ts +8 -0
- package/esm/src/triggers/LiquityV2AdjustRateDebtInFrontTrigger.js +10 -0
- package/esm/src/triggers/index.d.ts +3 -0
- package/esm/src/triggers/index.js +3 -0
- package/esm/src/types.d.ts +2 -0
- package/package.json +1 -1
- 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';
|
package/esm/src/types.d.ts
CHANGED