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]: [