@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.
- package/esm/src/actions/checkers/index.d.ts +0 -1
- package/esm/src/actions/checkers/index.js +0 -1
- 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/addresses.d.ts +4 -0
- package/esm/src/addresses.js +1 -0
- package/esm/src/index.d.ts +16 -0
- package/esm/src/triggers/index.d.ts +0 -2
- package/esm/src/triggers/index.js +0 -2
- package/package.json +2 -2
- package/src/actions/checkers/index.ts +0 -1
- package/src/actions/stkgho/GhoStakeAction.ts +32 -0
- package/src/actions/stkgho/index.ts +2 -1
- package/src/addresses.ts +1 -0
- package/src/triggers/index.ts +0 -2
- package/test/accessLists/Recipe.js +2 -2
- package/umd/index.js +451 -498
- package/esm/src/actions/checkers/CompV3TargetRatioCheck.d.ts +0 -15
- package/esm/src/actions/checkers/CompV3TargetRatioCheck.js +0 -22
- package/esm/src/triggers/CompV3PriceRangeTrigger.d.ts +0 -10
- package/esm/src/triggers/CompV3PriceRangeTrigger.js +0 -12
- package/esm/src/triggers/CompV3PriceTrigger.d.ts +0 -10
- package/esm/src/triggers/CompV3PriceTrigger.js +0 -12
- package/src/actions/checkers/CompV3TargetRatioCheck.ts +0 -30
- package/src/triggers/CompV3PriceRangeTrigger.ts +0 -19
- package/src/triggers/CompV3PriceTrigger.ts +0 -19
|
@@ -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
|
-
}
|