Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔧 chore(spark-stop-loss): add new command address #102

Merged
merged 5 commits into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/automation/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oasisdex/automation",
"version": "1.5.4",
"version": "1.5.6",
"description": "The set of utilities for Oasis automation",
"homepage": "https://github.com/OasisDEX/common#readme",
"main": "lib/src/index.js",
Expand All @@ -15,7 +15,8 @@
"scripts": {
"build": "tsc -b",
"watch": "tsc -b -w",
"test": "mocha -r ts-node/register 'test/**/*.ts'"
"test": "mocha -r ts-node/register 'test/**/*.ts'",
"prepublish": "npm run build"
},
"dependencies": {
"ethers": "^5.6.2"
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 @@ -163,6 +163,9 @@ export const commandAddressMapping: Record<
'0xc49e905346bC68BdfB46ED1E46E0804ffDC4458a': {
type: CommandContractType.SparkStopLossCommandV2,
},
'0x9F47b484E921619028eF1c6F7fE73F9921B5AC6D': {
type: CommandContractType.SparkStopLossCommandV2,
},
},
}).map(([network, mapping]) => [
network,
Expand Down
6 changes: 4 additions & 2 deletions packages/automation/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ export enum TriggerType {
// AaveStopLossToDebtV2 = 110,
AaveStopLossToCollateralV2 = 111,
AaveStopLossToDebtV2 = 112,
SparkStopLossToCollateralV2 = 113,
SparkStopLossToDebtV2 = 114,
// SparkStopLossToCollateralV2 = 113,
// SparkStopLossToDebtV2 = 114,
SparkStopLossToCollateralV2 = 115,
SparkStopLossToDebtV2 = 116,
}

export enum TriggerGroupType {
Expand Down