From 7864a41d0c146d5a4c22b22ea05a425808783230 Mon Sep 17 00:00:00 2001 From: James Tuckett Date: Fri, 15 Sep 2023 13:18:13 +0100 Subject: [PATCH 1/4] chore: bump SparkTrigger types --- packages/automation/src/mapping.ts | 3 +++ packages/automation/src/types.ts | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/automation/src/mapping.ts b/packages/automation/src/mapping.ts index deaa32a..9289b54 100644 --- a/packages/automation/src/mapping.ts +++ b/packages/automation/src/mapping.ts @@ -160,6 +160,9 @@ export const commandAddressMapping: Record< '0xDC1c84Aac43F21f103e9bD0B091a1B5cc6433554': { type: CommandContractType.AaveStopLossCommandV2, }, + '0xDC1c84Aac43F21f103e9bD0B091a1B5cc6433554': { + 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 { From 7c69c7ee6b0eff47bebd6c10c4da217be8620947 Mon Sep 17 00:00:00 2001 From: James Tuckett Date: Fri, 15 Sep 2023 13:26:19 +0100 Subject: [PATCH 2/4] fix: Update command address in mapping.ts --- packages/automation/src/mapping.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/automation/src/mapping.ts b/packages/automation/src/mapping.ts index 9289b54..c18b0b3 100644 --- a/packages/automation/src/mapping.ts +++ b/packages/automation/src/mapping.ts @@ -160,7 +160,7 @@ export const commandAddressMapping: Record< '0xDC1c84Aac43F21f103e9bD0B091a1B5cc6433554': { type: CommandContractType.AaveStopLossCommandV2, }, - '0xDC1c84Aac43F21f103e9bD0B091a1B5cc6433554': { + '0x9F47b484E921619028eF1c6F7fE73F9921B5AC6D': { type: CommandContractType.SparkStopLossCommandV2, }, }, From e0459a05c166147edc973093984de19621772182 Mon Sep 17 00:00:00 2001 From: James Tuckett Date: Fri, 15 Sep 2023 13:42:24 +0100 Subject: [PATCH 3/4] v1.5.5 --- packages/automation/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/automation/package.json b/packages/automation/package.json index ba631cc..4d55b78 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.5", "description": "The set of utilities for Oasis automation", "homepage": "https://github.com/OasisDEX/common#readme", "main": "lib/src/index.js", From 56299af410f49c22db71b78f9e16f52d104e6ff3 Mon Sep 17 00:00:00 2001 From: James Tuckett Date: Fri, 15 Sep 2023 13:46:07 +0100 Subject: [PATCH 4/4] v1.5.6 --- packages/automation/package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/automation/package.json b/packages/automation/package.json index 4d55b78..101510e 100644 --- a/packages/automation/package.json +++ b/packages/automation/package.json @@ -1,6 +1,6 @@ { "name": "@oasisdex/automation", - "version": "1.5.5", + "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"