@defisaver/sdk 1.2.34-dev-1 → 1.2.35-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.
@@ -1,15 +0,0 @@
1
- import { Action } from '../../Action';
2
- import { uint256, EthAddress } from '../../types';
3
- /**
4
- * CompV3TargetRatioCheckAction - Checks compV3 target ratio for user position and reverts if faulty
5
- *
6
- * @category Checkers
7
- */
8
- export declare class CompV3TargetRatioCheckAction extends Action {
9
- /**
10
- * @param targetRatio The ratio user want to be at
11
- * @param market Address of the market
12
- * @param user Address of the user
13
- */
14
- constructor(targetRatio: uint256, market: EthAddress, user: EthAddress);
15
- }
@@ -1,22 +0,0 @@
1
- import { Action } from '../../Action';
2
- import { getAddr } from '../../addresses';
3
- /**
4
- * CompV3TargetRatioCheckAction - Checks compV3 target ratio for user position and reverts if faulty
5
- *
6
- * @category Checkers
7
- */
8
- export class CompV3TargetRatioCheckAction extends Action {
9
- /**
10
- * @param targetRatio The ratio user want to be at
11
- * @param market Address of the market
12
- * @param user Address of the user
13
- */
14
- constructor(targetRatio, market, user) {
15
- super('CompV3TargetRatioCheck', getAddr('Empty'), ['uint256', 'address', 'address'], [targetRatio, market, user]);
16
- this.mappableArgs = [
17
- this.args[0],
18
- this.args[1],
19
- this.args[2],
20
- ];
21
- }
22
- }
@@ -1,10 +0,0 @@
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
- }
@@ -1,12 +0,0 @@
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
- }
@@ -1,10 +0,0 @@
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, price: 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 CompV3PriceTrigger extends Action {
9
- constructor(market, collToken, price, state) {
10
- super('CompV3PriceTrigger', getAddr('Empty'), [['address', 'address', 'uint256', 'uint8']], [[market, collToken, price, state]]);
11
- }
12
- }
@@ -1,30 +0,0 @@
1
- import { Action } from '../../Action';
2
- import { getAddr } from '../../addresses';
3
- import { uint256, EthAddress } from '../../types';
4
-
5
- /**
6
- * CompV3TargetRatioCheckAction - Checks compV3 target ratio for user position and reverts if faulty
7
- *
8
- * @category Checkers
9
- */
10
- export class CompV3TargetRatioCheckAction extends Action {
11
- /**
12
- * @param targetRatio The ratio user want to be at
13
- * @param market Address of the market
14
- * @param user Address of the user
15
- */
16
- constructor(targetRatio:uint256, market: EthAddress, user: EthAddress) {
17
- super(
18
- 'CompV3TargetRatioCheck',
19
- getAddr('Empty'),
20
- ['uint256', 'address', 'address'],
21
- [targetRatio, market, user],
22
- );
23
-
24
- this.mappableArgs = [
25
- this.args[0],
26
- this.args[1],
27
- this.args[2],
28
- ];
29
- }
30
- }
@@ -1,19 +0,0 @@
1
- import { Action } from '../Action';
2
- import { getAddr } from '../addresses';
3
- import { EthAddress, uint256 } from '../types';
4
-
5
- /**
6
- *
7
- *
8
- * @category Triggers
9
- */
10
- export class CompV3PriceRangeTrigger extends Action {
11
- constructor(market:EthAddress, collToken:EthAddress, lowerPrice:uint256, upperPrice:uint256) {
12
- super(
13
- 'CompV3PriceRangeTrigger',
14
- getAddr('Empty'),
15
- [['address', 'address', 'uint256', 'uint256']],
16
- [[market, collToken, lowerPrice, upperPrice]],
17
- );
18
- }
19
- }
@@ -1,19 +0,0 @@
1
- import { Action } from '../Action';
2
- import { getAddr } from '../addresses';
3
- import { EthAddress, uint256, uint8 } from '../types';
4
-
5
- /**
6
- *
7
- *
8
- * @category Triggers
9
- */
10
- export class CompV3PriceTrigger extends Action {
11
- constructor(market:EthAddress, collToken:EthAddress, price:uint256, state:uint8) {
12
- super(
13
- 'CompV3PriceTrigger',
14
- getAddr('Empty'),
15
- [['address', 'address', 'uint256', 'uint8']],
16
- [[market, collToken, price, state]],
17
- );
18
- }
19
- }