Skip to content

Commit

Permalink
feat: Add shortcuts for running dataworker and finalizer (#1022)
Browse files Browse the repository at this point in the history
This negates the need to modify env vars when switching between the
various dataworker personalities (and finalizer).

Usage:

 yarn run-disputer --wallet <wallet>
 yarn run-executor --wallet <wallet>
 yarn run-proposer --wallet <wallet>
 yarn run-finalizer --wallet <wallet>
  • Loading branch information
pxrl authored Oct 20, 2023
1 parent 58d07bd commit 482a360
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
"clean": "dir=\"./node_modules\"; mv \"${dir}\" \"${dir}_\" 2>/dev/null && rm -r \"${dir}_\" &",
"reinstall": "yarn clean && yarn install && yarn build",
"update": "git pull && yarn reinstall && yarn version --non-interactive && git show --quiet",
"run-disputer": "DISPUTER_ENABLED=true HARDHAT_CONFIG=./dist/hardhat.config.js node ./dist/index.js --dataworker",
"run-executor": "EXECUTOR_ENABLED=true HARDHAT_CONFIG=./dist/hardhat.config.js node ./dist/index.js --dataworker",
"run-proposer": "PROPOSER_ENABLED=true HARDHAT_CONFIG=./dist/hardhat.config.js node ./dist/index.js --dataworker",
"run-finalizer": "FINALIZER_ENABLED=true HARDHAT_CONFIG=./dist/hardhat.config.js node ./dist/index.js --finalizer",
"relay": "HARDHAT_CONFIG=./dist/hardhat.config.js node ./dist/index.js --relayer",
"deposit": "yarn ts-node ./scripts/spokepool.ts deposit",
"dispute": "yarn ts-node ./scripts/hubpool.ts dispute"
Expand Down

0 comments on commit 482a360

Please sign in to comment.