@defisaver/sdk 1.0.64 → 1.0.66-dev-1

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 (34) hide show
  1. package/esm/src/actions/basic/ExecuteSafeTxAction.d.ts +23 -0
  2. package/esm/src/actions/basic/ExecuteSafeTxAction.js +60 -0
  3. package/esm/src/actions/basic/LimitSellAction.d.ts +24 -0
  4. package/esm/src/actions/basic/LimitSellAction.js +63 -0
  5. package/esm/src/actions/basic/RemoveTokenApprovalAction.d.ts +15 -0
  6. package/esm/src/actions/basic/RemoveTokenApprovalAction.js +42 -0
  7. package/esm/src/actions/basic/index.d.ts +3 -0
  8. package/esm/src/actions/basic/index.js +3 -0
  9. package/esm/src/actions/checkers/index.d.ts +0 -1
  10. package/esm/src/actions/checkers/index.js +0 -1
  11. package/esm/src/actions/maker/MakerGiveAction.d.ts +1 -2
  12. package/esm/src/actions/maker/MakerGiveAction.js +2 -3
  13. package/esm/src/addresses.d.ts +3 -3
  14. package/esm/src/addresses.js +3 -6
  15. package/esm/src/index.d.ts +12 -12
  16. package/esm/src/triggers/OffchainPriceTrigger.d.ts +10 -0
  17. package/esm/src/triggers/OffchainPriceTrigger.js +12 -0
  18. package/esm/src/triggers/index.d.ts +1 -1
  19. package/esm/src/triggers/index.js +1 -1
  20. package/package.json +1 -1
  21. package/src/actions/basic/ExecuteSafeTxAction.ts +85 -0
  22. package/src/actions/basic/LimitSellAction.ts +63 -0
  23. package/src/actions/basic/RemoveTokenApprovalAction.ts +39 -0
  24. package/src/actions/basic/WrapEthAction.ts +4 -3
  25. package/src/actions/basic/index.ts +3 -0
  26. package/src/actions/maker/MakerGiveAction.ts +2 -3
  27. package/src/addresses.ts +3 -3
  28. package/src/triggers/OffchainPriceTrigger.ts +14 -0
  29. package/src/triggers/index.ts +2 -0
  30. package/umd/index.js +631 -514
  31. package/esm/src/actions/checkers/MorphoBlueRatioCheckAction.d.ts +0 -20
  32. package/esm/src/actions/checkers/MorphoBlueRatioCheckAction.js +0 -32
  33. package/esm/src/triggers/MorphoBlueRatioTrigger.d.ts +0 -10
  34. package/esm/src/triggers/MorphoBlueRatioTrigger.js +0 -12
@@ -1,20 +0,0 @@
1
- import { Action } from '../../Action';
2
- import { uint8, uint256, EthAddress } from '../../types';
3
- /**
4
- * MorphoBlueRatioCheckAction - Checks MorphoBlue ratio for user position and reverts if faulty
5
- *
6
- * @category Checkers
7
- */
8
- export declare class MorphoBlueRatioCheckAction extends Action {
9
- /**
10
- * @param loanToken - MarketParams loanToken
11
- * @param collateralToken - MarketParams collateralToken
12
- * @param oracle - MarketParams oracle
13
- * @param irm - MarketParams irm
14
- * @param lltv - MarketParams lltv
15
- * @param user Address of the user we are checking the ratio for
16
- * @param ratioState If it should lower/higher
17
- * @param targetRatio The ratio user want to be at
18
- */
19
- constructor(loanToken: EthAddress, collateralToken: EthAddress, oracle: EthAddress, irm: EthAddress, lltv: uint256, user: EthAddress, ratioState: uint8, targetRatio: uint256);
20
- }
@@ -1,32 +0,0 @@
1
- import { Action } from '../../Action';
2
- import { getAddr } from '../../addresses';
3
- /**
4
- * MorphoBlueRatioCheckAction - Checks MorphoBlue ratio for user position and reverts if faulty
5
- *
6
- * @category Checkers
7
- */
8
- export class MorphoBlueRatioCheckAction extends Action {
9
- /**
10
- * @param loanToken - MarketParams loanToken
11
- * @param collateralToken - MarketParams collateralToken
12
- * @param oracle - MarketParams oracle
13
- * @param irm - MarketParams irm
14
- * @param lltv - MarketParams lltv
15
- * @param user Address of the user we are checking the ratio for
16
- * @param ratioState If it should lower/higher
17
- * @param targetRatio The ratio user want to be at
18
- */
19
- constructor(loanToken, collateralToken, oracle, irm, lltv, user, ratioState, targetRatio) {
20
- super('MorphoBlueRatioCheck', getAddr('MorphoBlueRatioCheck'), [['address', 'address', 'address', 'address', 'uint256'], 'address', 'uint8', 'uint256'], [[loanToken, collateralToken, oracle, irm, lltv], user, ratioState, targetRatio]);
21
- this.mappableArgs = [
22
- this.args[0][0],
23
- this.args[0][1],
24
- this.args[0][2],
25
- this.args[0][3],
26
- this.args[0][4],
27
- this.args[1],
28
- this.args[2],
29
- this.args[3],
30
- ];
31
- }
32
- }
@@ -1,10 +0,0 @@
1
- import { Action } from '../Action';
2
- import { EthAddress, bytes32, uint256, uint8 } from '../types';
3
- /**
4
- *
5
- *
6
- * @category Triggers
7
- */
8
- export declare class MorphoBlueRatioTrigger extends Action {
9
- constructor(marketId: bytes32, user: EthAddress, ratio: uint256, state: uint8);
10
- }
@@ -1,12 +0,0 @@
1
- import { Action } from '../Action';
2
- import { getAddr } from '../addresses';
3
- /**
4
- *
5
- *
6
- * @category Triggers
7
- */
8
- export class MorphoBlueRatioTrigger extends Action {
9
- constructor(marketId, user, ratio, state) {
10
- super('MorphoBlueRatioTrigger', getAddr('MorphoBlueRatioTrigger'), [['bytes32', 'address', 'uint256', 'uint8']], [[marketId, user, ratio, state]]);
11
- }
12
- }