From 482a36075dbe1d8966fd7528bae00cf6bcaf194a Mon Sep 17 00:00:00 2001 From: Paul <108695806+pxrl@users.noreply.github.com> Date: Fri, 20 Oct 2023 17:54:13 +0200 Subject: [PATCH] feat: Add shortcuts for running dataworker and finalizer (#1022) This negates the need to modify env vars when switching between the various dataworker personalities (and finalizer). Usage: yarn run-disputer --wallet yarn run-executor --wallet yarn run-proposer --wallet yarn run-finalizer --wallet --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index a871fc016..7a509d66a 100644 --- a/package.json +++ b/package.json @@ -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"