diff --git a/packages/automation/package.json b/packages/automation/package.json index ba631cc..101510e 100644 --- a/packages/automation/package.json +++ b/packages/automation/package.json @@ -1,6 +1,6 @@ { "name": "@oasisdex/automation", - "version": "1.5.4", + "version": "1.5.6", "description": "The set of utilities for Oasis automation", "homepage": "https://github.com/OasisDEX/common#readme", "main": "lib/src/index.js", @@ -15,7 +15,8 @@ "scripts": { "build": "tsc -b", "watch": "tsc -b -w", - "test": "mocha -r ts-node/register 'test/**/*.ts'" + "test": "mocha -r ts-node/register 'test/**/*.ts'", + "prepublish": "npm run build" }, "dependencies": { "ethers": "^5.6.2" diff --git a/packages/automation/src/mapping.ts b/packages/automation/src/mapping.ts index 2faccf8..9b1218b 100644 --- a/packages/automation/src/mapping.ts +++ b/packages/automation/src/mapping.ts @@ -163,6 +163,9 @@ export const commandAddressMapping: Record< '0xc49e905346bC68BdfB46ED1E46E0804ffDC4458a': { type: CommandContractType.SparkStopLossCommandV2, }, + '0x9F47b484E921619028eF1c6F7fE73F9921B5AC6D': { + type: CommandContractType.SparkStopLossCommandV2, + }, }, }).map(([network, mapping]) => [ network, diff --git a/packages/automation/src/types.ts b/packages/automation/src/types.ts index 71fea58..1d0fd18 100644 --- a/packages/automation/src/types.ts +++ b/packages/automation/src/types.ts @@ -43,8 +43,10 @@ export enum TriggerType { // AaveStopLossToDebtV2 = 110, AaveStopLossToCollateralV2 = 111, AaveStopLossToDebtV2 = 112, - SparkStopLossToCollateralV2 = 113, - SparkStopLossToDebtV2 = 114, + // SparkStopLossToCollateralV2 = 113, + // SparkStopLossToDebtV2 = 114, + SparkStopLossToCollateralV2 = 115, + SparkStopLossToDebtV2 = 116, } export enum TriggerGroupType {