Skip to content

Commit

Permalink
chore: bump automation
Browse files Browse the repository at this point in the history
  • Loading branch information
halaprix committed Jan 30, 2024
1 parent b1826cd commit 168894f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion packages/automation/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oasisdex/automation",
"packageManager": "[email protected]",
"version": "1.6.0-alpha.3",
"version": "1.6.0-alpha.5",
"description": "The set of utilities for Oasis automation",
"homepage": "https://github.com/OasisDEX/common#readme",
"main": "lib/src/index.js",
Expand Down
18 changes: 9 additions & 9 deletions packages/automation/src/mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const commandTypeJsonMapping: Record<CommandContractType, string[]> = {
'maxCoverage',
'debtToken',
'collateralToken',
'opName',
'operationName',
'execLtv',
'targetLtv',
'minSellPrice',
Expand All @@ -117,7 +117,7 @@ export const commandTypeJsonMapping: Record<CommandContractType, string[]> = {
'maxCoverage',
'debtToken',
'collateralToken',
'opName',
'operationName',
'execLtv',
'targetLtv',
'maxBuyPrice',
Expand All @@ -130,7 +130,7 @@ export const commandTypeJsonMapping: Record<CommandContractType, string[]> = {
'maxCoverage',
'debtToken',
'collateralToken',
'opName',
'operationName',
'ltv',
],
[CommandContractType.DmaSparkStopLossCommandV2]: [
Expand All @@ -139,8 +139,8 @@ export const commandTypeJsonMapping: Record<CommandContractType, string[]> = {
'maxCoverage',
'debtToken',
'collateralToken',
'opName',
'ltv',
'operationName',
'executionLtv',
],
};

Expand Down Expand Up @@ -313,7 +313,7 @@ export const defaultCommandTypeMapping = {
'uint256', // maxCoverage
'address', // debtToken
'address', // collateralToken
'bytes32', // opName
'bytes32', // operationName
'uint256', // execCollRatio
'uint256', // targetCollRatio
'uint256', // maxBuyPrice
Expand All @@ -326,7 +326,7 @@ export const defaultCommandTypeMapping = {
'uint256', // maxCoverage
'address', // debtToken
'address', // collateralToken
'bytes32', // opName
'bytes32', // operationName
'uint256', // execCollRatio
'uint256', // targetCollRatio
'uint256', // minSellPrice
Expand All @@ -339,7 +339,7 @@ export const defaultCommandTypeMapping = {
'uint256', // maxCoverage
'address', // debtToken
'address', // collateralToken
'bytes32', // opName
'bytes32', // operationName
'uint256', // executionLTV
],
[CommandContractType.DmaSparkStopLossCommandV2]: [
Expand All @@ -348,7 +348,7 @@ export const defaultCommandTypeMapping = {
'uint256', // maxCoverage
'address', // debtToken
'address', // collateralToken
'bytes32', // opName
'bytes32', // operationName
'uint256', // executionLTV
],
} as const;
Expand Down
8 changes: 4 additions & 4 deletions packages/automation/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export enum CommandContractType {
AaveStopLossToDebtV2 = 112,
SparkStopLossToCollateralV2 = 117,
SparkStopLossToDebtV2 = 118,
AaveBasicBuyV2 = 119,
AaveBasicSellV2 = 120,
DmaAaveBasicBuyV2 = 119,
DmaAaveBasicSellV2 = 120,
DmaAaveStopLossToCollateralV2 = 121,
DmaAaveStopLossToDebtV2 = 122,
DmaSparkStopLossToCollateralV2 = 123,
Expand All @@ -75,8 +75,8 @@ export const triggerTypeToCommandContractTypeMap: Record<TriggerType, CommandCon
[TriggerType.AaveStopLossToDebtV2]: CommandContractType.AaveStopLossCommandV2,
[TriggerType.SparkStopLossToCollateralV2]: CommandContractType.SparkStopLossCommandV2,
[TriggerType.SparkStopLossToDebtV2]: CommandContractType.SparkStopLossCommandV2,
[TriggerType.AaveBasicBuyV2]: CommandContractType.DmaAaveBasicBuyCommandV2,
[TriggerType.AaveBasicSellV2]: CommandContractType.DmaAaveBasicSellCommandV2,
[TriggerType.DmaAaveBasicBuyV2]: CommandContractType.DmaAaveBasicBuyCommandV2,
[TriggerType.DmaAaveBasicSellV2]: CommandContractType.DmaAaveBasicSellCommandV2,
[TriggerType.DmaAaveStopLossToCollateralV2]: CommandContractType.DmaAaveStopLossCommandV2,
[TriggerType.DmaAaveStopLossToDebtV2]: CommandContractType.DmaAaveStopLossCommandV2,
[TriggerType.DmaSparkStopLossToCollateralV2]: CommandContractType.DmaSparkStopLossCommandV2,
Expand Down

0 comments on commit 168894f

Please sign in to comment.