@defisaver/sdk 1.3.18 → 1.3.21

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.
@@ -11,7 +11,7 @@ export class SparkRatioCheckAction extends Action {
11
11
  * @param targetRatio The ratio user want to be at
12
12
  */
13
13
  constructor(ratioState, targetRatio) {
14
- super('SparkRatioCheck', getAddr('SparkRatioCheck'), ['uint8', 'uint256'], [ratioState, targetRatio]);
14
+ super('SparkRatioCheck', getAddr('Empty'), ['uint8', 'uint256'], [ratioState, targetRatio]);
15
15
  this.mappableArgs = [
16
16
  this.args[0],
17
17
  this.args[1],
@@ -0,0 +1,14 @@
1
+ import { Action } from '../../Action';
2
+ import { EthAddress, uint256 } from '../../types';
3
+ /**
4
+ * SparkTargetRatioCheck - SparkRatioCheckAction - Checks spark ratio for users proxy position and reverts if faulty
5
+ *
6
+ * @category Checkers
7
+ */
8
+ export declare class SparkTargetRatioCheck extends Action {
9
+ /**
10
+ * @param targetRatio The ratio user want to be at
11
+ * @param market Address of the market
12
+ */
13
+ constructor(targetRatio: uint256, market: EthAddress);
14
+ }
@@ -0,0 +1,20 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ /**
4
+ * SparkTargetRatioCheck - SparkRatioCheckAction - Checks spark ratio for users proxy position and reverts if faulty
5
+ *
6
+ * @category Checkers
7
+ */
8
+ export class SparkTargetRatioCheck extends Action {
9
+ /**
10
+ * @param targetRatio The ratio user want to be at
11
+ * @param market Address of the market
12
+ */
13
+ constructor(targetRatio, market) {
14
+ super('SparkTargetRatioCheck', getAddr('Empty'), ['uint256', 'address'], [targetRatio, market]);
15
+ this.mappableArgs = [
16
+ this.args[0],
17
+ this.args[1],
18
+ ];
19
+ }
20
+ }
@@ -15,3 +15,4 @@ export * from './LiquityV2RatioCheckAction';
15
15
  export * from './LiquityV2TargetRatioCheckAction';
16
16
  export * from './LiquityV2NewInterestRateCheckerAction';
17
17
  export * from './FluidRatioCheckAction';
18
+ export * from './SparkTargetRatioCheck';
@@ -15,3 +15,4 @@ export * from './LiquityV2RatioCheckAction';
15
15
  export * from './LiquityV2TargetRatioCheckAction';
16
16
  export * from './LiquityV2NewInterestRateCheckerAction';
17
17
  export * from './FluidRatioCheckAction';
18
+ export * from './SparkTargetRatioCheck';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/sdk",
3
- "version": "1.3.18",
3
+ "version": "1.3.21",
4
4
  "description": "",
5
5
  "main": "./umd/index.js",
6
6
  "module": "./esm/src/index.js",
@@ -13,7 +13,7 @@ export class SparkRatioCheckAction extends Action {
13
13
  * @param targetRatio The ratio user want to be at
14
14
  */
15
15
  constructor(ratioState:uint8, targetRatio:uint256) {
16
- super('SparkRatioCheck', getAddr('SparkRatioCheck'), ['uint8', 'uint256'], [ratioState, targetRatio]);
16
+ super('SparkRatioCheck', getAddr('Empty'), ['uint8', 'uint256'], [ratioState, targetRatio]);
17
17
 
18
18
  this.mappableArgs = [
19
19
  this.args[0],
@@ -0,0 +1,23 @@
1
+ import { Action } from '../../Action';
2
+ import { getAddr } from '../../addresses';
3
+ import { EthAddress, uint256 } from '../../types';
4
+
5
+ /**
6
+ * SparkTargetRatioCheck - SparkRatioCheckAction - Checks spark ratio for users proxy position and reverts if faulty
7
+ *
8
+ * @category Checkers
9
+ */
10
+ export class SparkTargetRatioCheck extends Action {
11
+ /**
12
+ * @param targetRatio The ratio user want to be at
13
+ * @param market Address of the market
14
+ */
15
+ constructor(targetRatio: uint256, market: EthAddress) {
16
+ super('SparkTargetRatioCheck', getAddr('Empty'), ['uint256', 'address'], [targetRatio, market]);
17
+
18
+ this.mappableArgs = [
19
+ this.args[0],
20
+ this.args[1],
21
+ ];
22
+ }
23
+ }
@@ -14,4 +14,5 @@ export * from './MorphoBlueTargetRatioCheckAction';
14
14
  export * from './LiquityV2RatioCheckAction';
15
15
  export * from './LiquityV2TargetRatioCheckAction';
16
16
  export * from './LiquityV2NewInterestRateCheckerAction';
17
- export * from './FluidRatioCheckAction';
17
+ export * from './FluidRatioCheckAction';
18
+ export * from './SparkTargetRatioCheck';