Skip to content

Commit

Permalink
chore: bump trigger types
Browse files Browse the repository at this point in the history
  • Loading branch information
halaprix committed Feb 19, 2024
1 parent dd44fa9 commit 2f39fce
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 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": "yarn@1.22.21",
"version": "1.6.0-alpha.14",
"version": "1.6.0-alpha.16",
"description": "The set of utilities for Oasis automation",
"homepage": "https://github.com/OasisDEX/common#readme",
"main": "lib/src/index.js",
Expand Down
3 changes: 3 additions & 0 deletions packages/automation/src/mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@ export const commandAddressMapping: Record<
'0x4A13b02ef24B2906a33e48e8F0AaF343C5316327': {
type: CommandContractType.DmaAaveBasicSellCommandV2,
},
'0xea0c35bd1c2fae4d540ce30d9738bc55147f2a9c': {
type: CommandContractType.DmaAaveStopLossCommandV2,
},
},
[EthereumNetwork.BASE]: {
'0xb7CB13e4cD2D64e739b5746563978Ab7ee36B064': {
Expand Down
10 changes: 5 additions & 5 deletions packages/automation/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ export enum TriggerType {
SparkStopLossToDebtV2 = 118,
DmaAaveBasicBuyV2 = 121,
DmaAaveBasicSellV2 = 122,
DmaAaveStopLossToCollateralV2 = 123,
DmaAaveStopLossToDebtV2 = 124,
DmaSparkStopLossToCollateralV2 = 125,
DmaSparkStopLossToDebtV2 = 126,
DmaAaveTrailingStopLossV2 = 10005,
DmaAaveStopLossToCollateralV2 = 127,
DmaAaveStopLossToDebtV2 = 128,
DmaSparkStopLossToCollateralV2 = 129,
DmaSparkStopLossToDebtV2 = 130,
DmaAaveTrailingStopLossV2 = 10006,
}

export const triggerTypeToCommandContractTypeMap: Record<TriggerType, CommandContractType> = {
Expand Down

0 comments on commit 2f39fce

Please sign in to comment.