diff --git a/package.json b/package.json index f3648521..fb877879 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "local:ci": "cd scripts/localdev; rm -rf .child.bridge.contracts.json .root.bridge.contracts.json; ./ci.sh && ./deploy.sh && AXELAR_API_URL=skip npx mocha --require mocha-suppress-logs ../e2e/e2e.ts && ./stop.sh", "local:chainonly": "cd scripts/localdev; LOCAL_CHAIN_ONLY=true ./start.sh", "local:axelaronly": "cd scripts/localdev; npx ts-node axelar_setup.ts", + "local:threechains": "cd scripts/localdev; ./chains.sh", "stop": "cd scripts/localdev; ./stop.sh" }, "author": "", diff --git a/scripts/localdev/chains.sh b/scripts/localdev/chains.sh new file mode 100755 index 00000000..31d3cb0b --- /dev/null +++ b/scripts/localdev/chains.sh @@ -0,0 +1,12 @@ +#!/bin/bash +set -ex +set -o pipefail + +# Stop previous deployment. +./stop.sh + +# Start root & child chain. +npx hardhat node --config ./rootchain.config.ts --port 8500 > /dev/null 2>&1 & +npx hardhat node --config ./childchain.config.ts --port 8501 > /dev/null 2>&1 & +npx hardhat node --config ./resetchain.config.ts --port 8502 > /dev/null 2>&1 & +sleep 10