Skip to content

Commit

Permalink
Added mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrwitek committed Sep 8, 2023
1 parent 66303c3 commit 547b66c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/automation/src/mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ export const commandTypeJsonMapping: Record<CommandContractType, string[]> = {
'collateralToken',
'ltv',
],
[CommandContractType.SparkStopLossCommandV2]: [
'positionAddress',
'triggerType',
'maxCoverage',
'debtToken',
'collateralToken',
'ltv',
],
[CommandContractType.MakerStopLossCommandV2]: [
'cdpId',
'triggerType',
Expand Down Expand Up @@ -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]: [
Expand Down

0 comments on commit 547b66c

Please sign in to comment.