2022-12-18 22:27:59 -08:00
|
|
|
#!/usr/bin/env bash
|
2022-12-02 16:24:03 -08:00
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
2022-12-18 22:50:40 -08:00
|
|
|
# (TODO: Change after figuring out how to run const-gen without tilt)
|
|
|
|
cp ./aptos/.env ./wormhole/aptos/
|
|
|
|
|
|
|
|
# Start Aptos Chain
|
2022-12-02 16:24:03 -08:00
|
|
|
npx pm2 delete aptos 2> /dev/null || true
|
|
|
|
npx pm2 start 'aptos node run-local-testnet --with-faucet --force-restart --assume-yes' --name aptos
|
|
|
|
sleep 15
|
2022-12-18 22:27:59 -08:00
|
|
|
cd wormhole/aptos/scripts && bash deploy devnet && worm aptos faucet && bash register_devnet && cd ../../../
|