@oasisdex/automation
Advanced tools
Comparing version 1.6.0-alpha.16 to 1.6.0-alpha.17
@@ -131,2 +131,28 @@ "use strict"; | ||
], | ||
[types_1.CommandContractType.DmaSparkBasicBuyCommandV2]: [ | ||
'positionAddress', | ||
'triggerType', | ||
'maxCoverage', | ||
'debtToken', | ||
'collateralToken', | ||
'operationName', | ||
'executionLtv', | ||
'targetLtv', | ||
'maxBuyPrice', | ||
'deviation', | ||
'maxBaseFeeInGwei', | ||
], | ||
[types_1.CommandContractType.DmaSparkBasicSellCommandV2]: [ | ||
'positionAddress', | ||
'triggerType', | ||
'maxCoverage', | ||
'debtToken', | ||
'collateralToken', | ||
'operationName', | ||
'executionLtv', | ||
'targetLtv', | ||
'minSellPrice', | ||
'deviation', | ||
'maxBaseFeeInGwei', | ||
], | ||
[types_1.CommandContractType.DmaSparkStopLossCommandV2]: [ | ||
@@ -245,2 +271,9 @@ 'positionAddress', | ||
}, | ||
// TODO: replace after deploy | ||
'0x0000000000000000000000000000000000000001': { | ||
type: types_1.CommandContractType.DmaSparkBasicBuyCommandV2, | ||
}, | ||
'0x0000000000000000000000000000000000000002': { | ||
type: types_1.CommandContractType.DmaSparkBasicSellCommandV2, | ||
}, | ||
}, | ||
@@ -385,2 +418,28 @@ [types_1.EthereumNetwork.BASE]: { | ||
], | ||
[types_1.CommandContractType.DmaSparkBasicBuyCommandV2]: [ | ||
'address', | ||
'uint16', | ||
'uint256', | ||
'address', | ||
'address', | ||
'bytes32', | ||
'uint256', | ||
'uint256', | ||
'uint256', | ||
'uint64', | ||
'uint32', // maxBaseFeeInGwei | ||
], | ||
[types_1.CommandContractType.DmaSparkBasicSellCommandV2]: [ | ||
'address', | ||
'uint16', | ||
'uint256', | ||
'address', | ||
'address', | ||
'bytes32', | ||
'uint256', | ||
'uint256', | ||
'uint256', | ||
'uint64', | ||
'uint32', // maxBaseFeeInGwei | ||
], | ||
[types_1.CommandContractType.DmaSparkStopLossCommandV2]: [ | ||
@@ -387,0 +446,0 @@ 'address', |
@@ -24,2 +24,4 @@ import { ethers } from 'ethers'; | ||
DmaAaveBasicSellCommandV2 = "DmaAaveV3BasicSellCommandV2", | ||
DmaSparkBasicBuyCommandV2 = "DmaSparkBasicBuyCommandV2", | ||
DmaSparkBasicSellCommandV2 = "DmaSparkBasicSellCommandV2", | ||
DmaSparkStopLossCommandV2 = "DmaSparkStopLossCommandV2", | ||
@@ -55,2 +57,4 @@ DmaAaveStopLossCommandV2 = "DmaAaveV3StopLossCommandV2", | ||
DmaSparkStopLossToDebtV2 = 130, | ||
DmaSparkBasicBuyV2 = 131, | ||
DmaSparkBasicSellV2 = 132, | ||
DmaAaveTrailingStopLossV2 = 10006 | ||
@@ -57,0 +61,0 @@ } |
@@ -28,2 +28,4 @@ "use strict"; | ||
CommandContractType["DmaAaveBasicSellCommandV2"] = "DmaAaveV3BasicSellCommandV2"; | ||
CommandContractType["DmaSparkBasicBuyCommandV2"] = "DmaSparkBasicBuyCommandV2"; | ||
CommandContractType["DmaSparkBasicSellCommandV2"] = "DmaSparkBasicSellCommandV2"; | ||
CommandContractType["DmaSparkStopLossCommandV2"] = "DmaSparkStopLossCommandV2"; | ||
@@ -60,2 +62,4 @@ CommandContractType["DmaAaveStopLossCommandV2"] = "DmaAaveV3StopLossCommandV2"; | ||
TriggerType[TriggerType["DmaSparkStopLossToDebtV2"] = 130] = "DmaSparkStopLossToDebtV2"; | ||
TriggerType[TriggerType["DmaSparkBasicBuyV2"] = 131] = "DmaSparkBasicBuyV2"; | ||
TriggerType[TriggerType["DmaSparkBasicSellV2"] = 132] = "DmaSparkBasicSellV2"; | ||
TriggerType[TriggerType["DmaAaveTrailingStopLossV2"] = 10006] = "DmaAaveTrailingStopLossV2"; | ||
@@ -89,2 +93,4 @@ })(TriggerType = exports.TriggerType || (exports.TriggerType = {})); | ||
[TriggerType.DmaSparkStopLossToDebtV2]: CommandContractType.DmaSparkStopLossCommandV2, | ||
[TriggerType.DmaSparkBasicBuyV2]: CommandContractType.DmaSparkBasicBuyCommandV2, | ||
[TriggerType.DmaSparkBasicSellV2]: CommandContractType.DmaSparkBasicSellCommandV2, | ||
[TriggerType.DmaAaveTrailingStopLossV2]: CommandContractType.DmaAaveTrailingStopLossCommandV2, | ||
@@ -91,0 +97,0 @@ }; |
{ | ||
"name": "@oasisdex/automation", | ||
"packageManager": "yarn@1.22.21", | ||
"version": "1.6.0-alpha.16", | ||
"version": "1.6.0-alpha.17", | ||
"description": "The set of utilities for Oasis automation", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/OasisDEX/common#readme", |
@@ -136,2 +136,28 @@ import { | ||
], | ||
[CommandContractType.DmaSparkBasicBuyCommandV2]: [ | ||
'positionAddress', | ||
'triggerType', | ||
'maxCoverage', | ||
'debtToken', | ||
'collateralToken', | ||
'operationName', | ||
'executionLtv', | ||
'targetLtv', | ||
'maxBuyPrice', | ||
'deviation', | ||
'maxBaseFeeInGwei', | ||
], | ||
[CommandContractType.DmaSparkBasicSellCommandV2]: [ | ||
'positionAddress', | ||
'triggerType', | ||
'maxCoverage', | ||
'debtToken', | ||
'collateralToken', | ||
'operationName', | ||
'executionLtv', | ||
'targetLtv', | ||
'minSellPrice', | ||
'deviation', | ||
'maxBaseFeeInGwei', | ||
], | ||
[CommandContractType.DmaSparkStopLossCommandV2]: [ | ||
@@ -254,2 +280,9 @@ 'positionAddress', | ||
}, | ||
// TODO: replace after deploy | ||
'0x0000000000000000000000000000000000000001': { | ||
type: CommandContractType.DmaSparkBasicBuyCommandV2, | ||
}, | ||
'0x0000000000000000000000000000000000000002': { | ||
type: CommandContractType.DmaSparkBasicSellCommandV2, | ||
}, | ||
}, | ||
@@ -398,2 +431,28 @@ [EthereumNetwork.BASE]: { | ||
], | ||
[CommandContractType.DmaSparkBasicBuyCommandV2]: [ | ||
'address', //positionAddress | ||
'uint16', // triggerType | ||
'uint256', // maxCoverage | ||
'address', // debtToken | ||
'address', // collateralToken | ||
'bytes32', // operationName | ||
'uint256', // execCollRatio | ||
'uint256', // targetCollRatio | ||
'uint256', // maxBuyPrice | ||
'uint64', // deviation | ||
'uint32', // maxBaseFeeInGwei | ||
], | ||
[CommandContractType.DmaSparkBasicSellCommandV2]: [ | ||
'address', //positionAddress | ||
'uint16', // triggerType | ||
'uint256', // maxCoverage | ||
'address', // debtToken | ||
'address', // collateralToken | ||
'bytes32', // operationName | ||
'uint256', // execCollRatio | ||
'uint256', // targetCollRatio | ||
'uint256', // minSellPrice | ||
'uint64', // deviation | ||
'uint32', // maxBaseFeeInGwei | ||
], | ||
[CommandContractType.DmaSparkStopLossCommandV2]: [ | ||
@@ -400,0 +459,0 @@ 'address', //positionAddress |
@@ -26,2 +26,4 @@ import { ethers } from 'ethers'; | ||
DmaAaveBasicSellCommandV2 = 'DmaAaveV3BasicSellCommandV2', | ||
DmaSparkBasicBuyCommandV2 = 'DmaSparkBasicBuyCommandV2', | ||
DmaSparkBasicSellCommandV2 = 'DmaSparkBasicSellCommandV2', | ||
DmaSparkStopLossCommandV2 = 'DmaSparkStopLossCommandV2', | ||
@@ -58,2 +60,4 @@ DmaAaveStopLossCommandV2 = 'DmaAaveV3StopLossCommandV2', | ||
DmaSparkStopLossToDebtV2 = 130, | ||
DmaSparkBasicBuyV2 = 131, | ||
DmaSparkBasicSellV2 = 132, | ||
DmaAaveTrailingStopLossV2 = 10006, | ||
@@ -88,2 +92,4 @@ } | ||
[TriggerType.DmaSparkStopLossToDebtV2]: CommandContractType.DmaSparkStopLossCommandV2, | ||
[TriggerType.DmaSparkBasicBuyV2]: CommandContractType.DmaSparkBasicBuyCommandV2, | ||
[TriggerType.DmaSparkBasicSellV2]: CommandContractType.DmaSparkBasicSellCommandV2, | ||
[TriggerType.DmaAaveTrailingStopLossV2]: CommandContractType.DmaAaveTrailingStopLossCommandV2, | ||
@@ -90,0 +96,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
159116
2220