From 547b66cc8813c879bbb3349281e830ae05269297 Mon Sep 17 00:00:00 2001 From: Piotr Witek <739075+piotrwitek@users.noreply.github.com> Date: Fri, 8 Sep 2023 09:49:12 +0200 Subject: [PATCH] Added mapping --- packages/automation/src/mapping.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/packages/automation/src/mapping.ts b/packages/automation/src/mapping.ts index cb3a50e..deaa32a 100644 --- a/packages/automation/src/mapping.ts +++ b/packages/automation/src/mapping.ts @@ -55,6 +55,14 @@ export const commandTypeJsonMapping: Record = { 'collateralToken', 'ltv', ], + [CommandContractType.SparkStopLossCommandV2]: [ + 'positionAddress', + 'triggerType', + 'maxCoverage', + 'debtToken', + 'collateralToken', + 'ltv', + ], [CommandContractType.MakerStopLossCommandV2]: [ 'cdpId', 'triggerType', @@ -200,6 +208,14 @@ export const defaultCommandTypeMapping = { 'address', 'uint256', ], + [CommandContractType.SparkStopLossCommandV2]: [ + 'address', + 'uint16', + 'uint256', + 'address', + 'address', + 'uint256', + ], [CommandContractType.MakerStopLossCommandV2]: ['uint256', 'uint16', 'uint256', 'uint256'], [CommandContractType.MakerAutoTakeProfitCommandV2]: ['uint256', 'uint16', 'uint256', 'uint32'], [CommandContractType.MakerBasicBuyCommandV2]: [