@defisaver/automation-sdk 2.0.0 → 2.0.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.
|
@@ -19,8 +19,8 @@ export declare namespace AaveSubscriptionsV2 {
|
|
|
19
19
|
boolean
|
|
20
20
|
] | {
|
|
21
21
|
user: string;
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
triggerRepayRatio: number | string | BN;
|
|
23
|
+
triggerBoostRatio: number | string | BN;
|
|
24
24
|
optimalRatioBoost: number | string | BN;
|
|
25
25
|
optimalRatioRepay: number | string | BN;
|
|
26
26
|
boostEnabled: boolean;
|
|
@@ -35,8 +35,8 @@ export declare namespace AaveSubscriptionsV2 {
|
|
|
35
35
|
];
|
|
36
36
|
type AaveHolderStructOutputStruct = {
|
|
37
37
|
user: string;
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
triggerRepayRatio: string;
|
|
39
|
+
triggerBoostRatio: string;
|
|
40
40
|
optimalRatioBoost: string;
|
|
41
41
|
optimalRatioRepay: string;
|
|
42
42
|
boostEnabled: boolean;
|
|
@@ -80,7 +80,7 @@ export interface Legacy_AaveV2Subscriptions extends BaseContract {
|
|
|
80
80
|
setAdminByAdmin(_admin: string): NonPayableTransactionObject<void>;
|
|
81
81
|
setAdminByOwner(_admin: string): NonPayableTransactionObject<void>;
|
|
82
82
|
setOwnerByAdmin(_owner: string): NonPayableTransactionObject<void>;
|
|
83
|
-
subscribe(
|
|
83
|
+
subscribe(_triggerRepayRatio: number | string | BN, _triggerBoostRatio: number | string | BN, _optimalBoost: number | string | BN, _optimalRepay: number | string | BN, _boostEnabled: boolean): NonPayableTransactionObject<void>;
|
|
84
84
|
subscribers(arg0: number | string | BN): NonPayableTransactionObject<[
|
|
85
85
|
string,
|
|
86
86
|
string,
|
|
@@ -90,8 +90,8 @@ export interface Legacy_AaveV2Subscriptions extends BaseContract {
|
|
|
90
90
|
boolean
|
|
91
91
|
] & {
|
|
92
92
|
user: string;
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
triggerRepayRatio: string;
|
|
94
|
+
triggerBoostRatio: string;
|
|
95
95
|
optimalRatioBoost: string;
|
|
96
96
|
optimalRatioRepay: string;
|
|
97
97
|
boostEnabled: boolean;
|
|
@@ -19,8 +19,8 @@ export declare namespace CompoundSubscriptions {
|
|
|
19
19
|
boolean
|
|
20
20
|
] | {
|
|
21
21
|
user: string;
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
triggerRepayRatio: number | string | BN;
|
|
23
|
+
triggerBoostRatio: number | string | BN;
|
|
24
24
|
optimalRatioBoost: number | string | BN;
|
|
25
25
|
optimalRatioRepay: number | string | BN;
|
|
26
26
|
boostEnabled: boolean;
|
|
@@ -35,8 +35,8 @@ export declare namespace CompoundSubscriptions {
|
|
|
35
35
|
];
|
|
36
36
|
type CompoundHolderStructOutputStruct = {
|
|
37
37
|
user: string;
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
triggerRepayRatio: string;
|
|
39
|
+
triggerBoostRatio: string;
|
|
40
40
|
optimalRatioBoost: string;
|
|
41
41
|
optimalRatioRepay: string;
|
|
42
42
|
boostEnabled: boolean;
|
|
@@ -79,7 +79,7 @@ export interface Legacy_CompoundV2Subscriptions extends BaseContract {
|
|
|
79
79
|
setAdminByAdmin(_admin: string): NonPayableTransactionObject<void>;
|
|
80
80
|
setAdminByOwner(_admin: string): NonPayableTransactionObject<void>;
|
|
81
81
|
setOwnerByAdmin(_owner: string): NonPayableTransactionObject<void>;
|
|
82
|
-
subscribe(
|
|
82
|
+
subscribe(_triggerRepayRatio: number | string | BN, _triggerBoostRatio: number | string | BN, _optimalBoost: number | string | BN, _optimalRepay: number | string | BN, _boostEnabled: boolean): NonPayableTransactionObject<void>;
|
|
83
83
|
subscribers(arg0: number | string | BN): NonPayableTransactionObject<[
|
|
84
84
|
string,
|
|
85
85
|
string,
|
|
@@ -89,8 +89,8 @@ export interface Legacy_CompoundV2Subscriptions extends BaseContract {
|
|
|
89
89
|
boolean
|
|
90
90
|
] & {
|
|
91
91
|
user: string;
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
triggerRepayRatio: string;
|
|
93
|
+
triggerBoostRatio: string;
|
|
94
94
|
optimalRatioBoost: string;
|
|
95
95
|
optimalRatioRepay: string;
|
|
96
96
|
boostEnabled: boolean;
|
|
@@ -55,8 +55,8 @@ export interface Legacy_MakerSubscriptions extends BaseContract {
|
|
|
55
55
|
boolean,
|
|
56
56
|
boolean
|
|
57
57
|
] & {
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
triggerRepayRatio: string;
|
|
59
|
+
triggerBoostRatio: string;
|
|
60
60
|
optimalRatioBoost: string;
|
|
61
61
|
optimalRatioRepay: string;
|
|
62
62
|
owner: string;
|
|
@@ -79,8 +79,8 @@ export interface Legacy_MakerSubscriptions extends BaseContract {
|
|
|
79
79
|
boolean,
|
|
80
80
|
boolean
|
|
81
81
|
] & {
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
triggerRepayRatio: string;
|
|
83
|
+
triggerBoostRatio: string;
|
|
84
84
|
optimalRatioBoost: string;
|
|
85
85
|
optimalRatioRepay: string;
|
|
86
86
|
owner: string;
|
|
@@ -135,8 +135,8 @@ export interface Legacy_MakerSubscriptions extends BaseContract {
|
|
|
135
135
|
boolean,
|
|
136
136
|
boolean
|
|
137
137
|
] & {
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
triggerRepayRatio: string;
|
|
139
|
+
triggerBoostRatio: string;
|
|
140
140
|
optimalRatioBoost: string;
|
|
141
141
|
optimalRatioRepay: string;
|
|
142
142
|
owner: string;
|
|
@@ -144,7 +144,7 @@ export interface Legacy_MakerSubscriptions extends BaseContract {
|
|
|
144
144
|
boostEnabled: boolean;
|
|
145
145
|
nextPriceEnabled: boolean;
|
|
146
146
|
}>;
|
|
147
|
-
subscribe(_cdpId: number | string | BN,
|
|
147
|
+
subscribe(_cdpId: number | string | BN, _triggerRepayRatio: number | string | BN, _triggerBoostRatio: number | string | BN, _optimalBoost: number | string | BN, _optimalRepay: number | string | BN, _boostEnabled: boolean, _nextPriceEnabled: boolean): NonPayableTransactionObject<void>;
|
|
148
148
|
MIGRATION_ACTIONS_PROXY(): NonPayableTransactionObject<string>;
|
|
149
149
|
minLimits(arg0: string | number[]): NonPayableTransactionObject<string>;
|
|
150
150
|
SPOTTER_ADDRESS(): NonPayableTransactionObject<string>;
|
|
@@ -169,8 +169,8 @@ export interface Legacy_MakerSubscriptions extends BaseContract {
|
|
|
169
169
|
boolean,
|
|
170
170
|
boolean
|
|
171
171
|
] & {
|
|
172
|
-
|
|
173
|
-
|
|
172
|
+
triggerRepayRatio: string;
|
|
173
|
+
triggerBoostRatio: string;
|
|
174
174
|
optimalRatioBoost: string;
|
|
175
175
|
optimalRatioRepay: string;
|
|
176
176
|
owner: string;
|
|
@@ -218,7 +218,7 @@ export interface Legacy_MakerSubscriptions extends BaseContract {
|
|
|
218
218
|
UNISWAP_WRAPPER(): NonPayableTransactionObject<string>;
|
|
219
219
|
setAdminByOwner(_admin: string): NonPayableTransactionObject<void>;
|
|
220
220
|
saverProxy(): NonPayableTransactionObject<string>;
|
|
221
|
-
|
|
221
|
+
changetriggerRepayRatios(_ilk: string | number[], _newRatio: number | string | BN): NonPayableTransactionObject<void>;
|
|
222
222
|
TUB_ADDRESS(): NonPayableTransactionObject<string>;
|
|
223
223
|
ETH_JOIN_ADDRESS(): NonPayableTransactionObject<string>;
|
|
224
224
|
SCD_MCD_MIGRATION(): NonPayableTransactionObject<string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@defisaver/automation-sdk",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./umd/index.js",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"license": "ISC",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@defisaver/eslint-config": "^1.0.0",
|
|
24
|
-
"@defisaver/sdk": "^1.0.
|
|
25
|
-
"@defisaver/tokens": "^1.4.
|
|
24
|
+
"@defisaver/sdk": "^1.0.43",
|
|
25
|
+
"@defisaver/tokens": "^1.4.55",
|
|
26
26
|
"@ethersproject/address": "^5.0.10",
|
|
27
27
|
"@ethersproject/solidity": "^5.0.9",
|
|
28
28
|
"decimal.js": "^10.4.3",
|
|
29
29
|
"lodash": "^4.17.21",
|
|
30
|
-
"web3": "^1.
|
|
30
|
+
"web3": "^1.10.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@babel/core": "^7.12.10",
|