@defisaver/automation-sdk 1.2.33 → 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.
- package/esm/abis/legacy_AaveV2Subscriptions.json +1 -1
- package/esm/abis/legacy_CompoundV2Subscriptions.json +1 -1
- package/esm/abis/legacy_MakerSubscriptions.json +1 -1
- package/esm/services/strategiesService.js +36 -36
- package/esm/services/strategySubService.d.ts +9 -9
- package/esm/services/strategySubService.js +31 -31
- package/esm/services/subDataService.d.ts +4 -4
- package/esm/services/subDataService.js +20 -20
- package/esm/types/contracts/generated/Legacy_AaveV2Subscriptions.d.ts +7 -7
- package/esm/types/contracts/generated/Legacy_CompoundV2Subscriptions.d.ts +7 -7
- package/esm/types/contracts/generated/Legacy_MakerSubscriptions.d.ts +10 -10
- package/esm/types/index.d.ts +4 -4
- package/package.json +4 -4
- package/src/abis/legacy_AaveV2Subscriptions.json +1 -1
- package/src/abis/legacy_CompoundV2Subscriptions.json +1 -1
- package/src/abis/legacy_MakerSubscriptions.json +1 -1
- package/src/services/strategiesService.ts +36 -36
- package/src/services/strategySubService.ts +56 -56
- package/src/services/subDataService.ts +32 -32
- package/src/types/contracts/generated/Legacy_AaveV2Subscriptions.ts +8 -8
- package/src/types/contracts/generated/Legacy_CompoundV2Subscriptions.ts +8 -8
- package/src/types/contracts/generated/Legacy_MakerSubscriptions.ts +11 -11
- package/src/types/index.ts +4 -4
- package/umd/index.js +73 -73
- package/yarn-error.log +7233 -0
|
@@ -33,8 +33,8 @@ export declare namespace AaveSubscriptionsV2 {
|
|
|
33
33
|
]
|
|
34
34
|
| {
|
|
35
35
|
user: string;
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
triggerRepayRatio: number | string | BN;
|
|
37
|
+
triggerBoostRatio: number | string | BN;
|
|
38
38
|
optimalRatioBoost: number | string | BN;
|
|
39
39
|
optimalRatioRepay: number | string | BN;
|
|
40
40
|
boostEnabled: boolean;
|
|
@@ -50,8 +50,8 @@ export declare namespace AaveSubscriptionsV2 {
|
|
|
50
50
|
];
|
|
51
51
|
export type AaveHolderStructOutputStruct = {
|
|
52
52
|
user: string;
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
triggerRepayRatio: string;
|
|
54
|
+
triggerBoostRatio: string;
|
|
55
55
|
optimalRatioBoost: string;
|
|
56
56
|
optimalRatioRepay: string;
|
|
57
57
|
boostEnabled: boolean;
|
|
@@ -124,8 +124,8 @@ export interface Legacy_AaveV2Subscriptions extends BaseContract {
|
|
|
124
124
|
setOwnerByAdmin(_owner: string): NonPayableTransactionObject<void>;
|
|
125
125
|
|
|
126
126
|
subscribe(
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
_triggerRepayRatio: number | string | BN,
|
|
128
|
+
_triggerBoostRatio: number | string | BN,
|
|
129
129
|
_optimalBoost: number | string | BN,
|
|
130
130
|
_optimalRepay: number | string | BN,
|
|
131
131
|
_boostEnabled: boolean
|
|
@@ -136,8 +136,8 @@ export interface Legacy_AaveV2Subscriptions extends BaseContract {
|
|
|
136
136
|
): NonPayableTransactionObject<
|
|
137
137
|
[string, string, string, string, string, boolean] & {
|
|
138
138
|
user: string;
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
triggerRepayRatio: string;
|
|
140
|
+
triggerBoostRatio: string;
|
|
141
141
|
optimalRatioBoost: string;
|
|
142
142
|
optimalRatioRepay: string;
|
|
143
143
|
boostEnabled: boolean;
|
|
@@ -33,8 +33,8 @@ export declare namespace CompoundSubscriptions {
|
|
|
33
33
|
]
|
|
34
34
|
| {
|
|
35
35
|
user: string;
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
triggerRepayRatio: number | string | BN;
|
|
37
|
+
triggerBoostRatio: number | string | BN;
|
|
38
38
|
optimalRatioBoost: number | string | BN;
|
|
39
39
|
optimalRatioRepay: number | string | BN;
|
|
40
40
|
boostEnabled: boolean;
|
|
@@ -50,8 +50,8 @@ export declare namespace CompoundSubscriptions {
|
|
|
50
50
|
];
|
|
51
51
|
export type CompoundHolderStructOutputStruct = {
|
|
52
52
|
user: string;
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
triggerRepayRatio: string;
|
|
54
|
+
triggerBoostRatio: string;
|
|
55
55
|
optimalRatioBoost: string;
|
|
56
56
|
optimalRatioRepay: string;
|
|
57
57
|
boostEnabled: boolean;
|
|
@@ -122,8 +122,8 @@ export interface Legacy_CompoundV2Subscriptions extends BaseContract {
|
|
|
122
122
|
setOwnerByAdmin(_owner: string): NonPayableTransactionObject<void>;
|
|
123
123
|
|
|
124
124
|
subscribe(
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
_triggerRepayRatio: number | string | BN,
|
|
126
|
+
_triggerBoostRatio: number | string | BN,
|
|
127
127
|
_optimalBoost: number | string | BN,
|
|
128
128
|
_optimalRepay: number | string | BN,
|
|
129
129
|
_boostEnabled: boolean
|
|
@@ -134,8 +134,8 @@ export interface Legacy_CompoundV2Subscriptions extends BaseContract {
|
|
|
134
134
|
): NonPayableTransactionObject<
|
|
135
135
|
[string, string, string, string, string, boolean] & {
|
|
136
136
|
user: string;
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
triggerRepayRatio: string;
|
|
138
|
+
triggerBoostRatio: string;
|
|
139
139
|
optimalRatioBoost: string;
|
|
140
140
|
optimalRatioRepay: string;
|
|
141
141
|
boostEnabled: boolean;
|
|
@@ -67,8 +67,8 @@ export interface Legacy_MakerSubscriptions extends BaseContract {
|
|
|
67
67
|
getSubscribers(): NonPayableTransactionObject<
|
|
68
68
|
[string, string, string, string, string, string, boolean, boolean] &
|
|
69
69
|
{
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
triggerRepayRatio: string;
|
|
71
|
+
triggerBoostRatio: string;
|
|
72
72
|
optimalRatioBoost: string;
|
|
73
73
|
optimalRatioRepay: string;
|
|
74
74
|
owner: string;
|
|
@@ -90,8 +90,8 @@ export interface Legacy_MakerSubscriptions extends BaseContract {
|
|
|
90
90
|
[
|
|
91
91
|
boolean,
|
|
92
92
|
[string, string, string, string, string, string, boolean, boolean] & {
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
triggerRepayRatio: string;
|
|
94
|
+
triggerBoostRatio: string;
|
|
95
95
|
optimalRatioBoost: string;
|
|
96
96
|
optimalRatioRepay: string;
|
|
97
97
|
owner: string;
|
|
@@ -152,8 +152,8 @@ export interface Legacy_MakerSubscriptions extends BaseContract {
|
|
|
152
152
|
arg0: number | string | BN
|
|
153
153
|
): NonPayableTransactionObject<
|
|
154
154
|
[string, string, string, string, string, string, boolean, boolean] & {
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
triggerRepayRatio: string;
|
|
156
|
+
triggerBoostRatio: string;
|
|
157
157
|
optimalRatioBoost: string;
|
|
158
158
|
optimalRatioRepay: string;
|
|
159
159
|
owner: string;
|
|
@@ -165,8 +165,8 @@ export interface Legacy_MakerSubscriptions extends BaseContract {
|
|
|
165
165
|
|
|
166
166
|
subscribe(
|
|
167
167
|
_cdpId: number | string | BN,
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
_triggerRepayRatio: number | string | BN,
|
|
169
|
+
_triggerBoostRatio: number | string | BN,
|
|
170
170
|
_optimalBoost: number | string | BN,
|
|
171
171
|
_optimalRepay: number | string | BN,
|
|
172
172
|
_boostEnabled: boolean,
|
|
@@ -199,8 +199,8 @@ export interface Legacy_MakerSubscriptions extends BaseContract {
|
|
|
199
199
|
): NonPayableTransactionObject<
|
|
200
200
|
[string, string, string, string, string, string, boolean, boolean] &
|
|
201
201
|
{
|
|
202
|
-
|
|
203
|
-
|
|
202
|
+
triggerRepayRatio: string;
|
|
203
|
+
triggerBoostRatio: string;
|
|
204
204
|
optimalRatioBoost: string;
|
|
205
205
|
optimalRatioRepay: string;
|
|
206
206
|
owner: string;
|
|
@@ -277,7 +277,7 @@ export interface Legacy_MakerSubscriptions extends BaseContract {
|
|
|
277
277
|
|
|
278
278
|
saverProxy(): NonPayableTransactionObject<string>;
|
|
279
279
|
|
|
280
|
-
|
|
280
|
+
changetriggerRepayRatios(
|
|
281
281
|
_ilk: string | number[],
|
|
282
282
|
_newRatio: number | string | BN
|
|
283
283
|
): NonPayableTransactionObject<void>;
|
package/src/types/index.ts
CHANGED
|
@@ -119,11 +119,11 @@ export declare namespace Position {
|
|
|
119
119
|
mergeWithSameId?: boolean
|
|
120
120
|
}
|
|
121
121
|
interface RatioProtection extends Base {
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
triggerRepayRatio?: number,
|
|
123
|
+
targetRepayRatio?: number,
|
|
124
124
|
repayEnabled?: boolean,
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
triggerBoostRatio?: number,
|
|
126
|
+
targetBoostRatio?: number,
|
|
127
127
|
boostEnabled?: boolean,
|
|
128
128
|
}
|
|
129
129
|
interface CloseOnPrice extends Base {
|