Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
wcgcyx committed Feb 21, 2024
1 parent 9178788 commit 8081872
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "",
Expand Down
12 changes: 12 additions & 0 deletions scripts/localdev/chains.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8081872

Please sign in to comment.