@defisaver/automation-sdk 1.2.10 → 1.2.12
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/constants/index.d.ts +24 -2
- package/esm/constants/index.js +34 -2
- package/esm/services/strategiesService.js +20 -0
- package/esm/services/strategySubService.d.ts +4 -0
- package/esm/services/strategySubService.js +17 -1
- package/esm/services/subDataService.d.ts +17 -0
- package/esm/services/subDataService.js +40 -5
- package/esm/services/triggerService.d.ts +14 -0
- package/esm/services/triggerService.js +34 -5
- package/esm/types/enums.d.ts +12 -3
- package/esm/types/enums.js +9 -0
- package/package.json +1 -1
- package/src/constants/index.ts +34 -2
- package/src/services/strategiesService.ts +27 -0
- package/src/services/strategySubService.ts +32 -1
- package/src/services/subDataService.ts +44 -5
- package/src/services/triggerService.ts +48 -6
- package/src/types/enums.ts +13 -2
- package/umd/index.js +784 -408
- package/yarn-error.log +6937 -0
package/src/types/enums.ts
CHANGED
|
@@ -30,6 +30,7 @@ export namespace ProtocolIdentifiers {
|
|
|
30
30
|
CompoundV3 = 'Compound__V3',
|
|
31
31
|
AaveV3 = 'Aave__V3',
|
|
32
32
|
MorphoAaveV2 = 'Morpho-Aave__V2',
|
|
33
|
+
Exchange = 'Exchange',
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
export enum LegacyAutomation {
|
|
@@ -49,11 +50,19 @@ export namespace Strategies {
|
|
|
49
50
|
LIQUITY_TRAILING_STOP_LOSS_TO_COLL = 13,
|
|
50
51
|
LIQUITY_CLOSE_ON_PRICE_TO_COLL = 14,
|
|
51
52
|
CHICKEN_BONDS_REBOND = 31,
|
|
53
|
+
EXCHANGE_DCA = 46,
|
|
54
|
+
EXCHANGE_LIMIT_ORDER = 47,
|
|
52
55
|
}
|
|
53
56
|
|
|
54
|
-
export enum OptimismIds {
|
|
57
|
+
export enum OptimismIds {
|
|
58
|
+
EXCHANGE_DCA = 8,
|
|
59
|
+
EXCHANGE_LIMIT_ORDER = 9,
|
|
60
|
+
}
|
|
55
61
|
|
|
56
|
-
export enum ArbitrumIds {
|
|
62
|
+
export enum ArbitrumIds {
|
|
63
|
+
EXCHANGE_DCA = 8,
|
|
64
|
+
EXCHANGE_LIMIT_ORDER = 9,
|
|
65
|
+
}
|
|
57
66
|
|
|
58
67
|
export enum Identifiers {
|
|
59
68
|
SavingsLiqProtection = 'smart-savings-liquidation-protection',
|
|
@@ -69,6 +78,8 @@ export namespace Strategies {
|
|
|
69
78
|
TrailingStopToDebt = 'trailing-stop-to-debt',
|
|
70
79
|
Rebond = 'rebond',
|
|
71
80
|
BondProtection = 'bond-protection',
|
|
81
|
+
Dca = 'dca',
|
|
82
|
+
LimitOrder = 'limit-order',
|
|
72
83
|
}
|
|
73
84
|
export enum IdOverrides {
|
|
74
85
|
TakeProfit = 'take-profit',
|