deployer touchup; deploy script

This commit is contained in:
Tim Olson
2023-09-01 18:58:55 -04:00
parent 75150949dd
commit 44f17c14c1
6 changed files with 42 additions and 0 deletions

2
bin/deploy.sh Executable file
View File

@@ -0,0 +1,2 @@
#!/usr/bin/env bash
forge script script/Deploy.sol --fork-url http://localhost:8545 --broadcast

21
bin/reset.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/usr/bin/env bash
#cd ../server
#pwd
#db-migrate down
#db-migrate up
#cd ../contract
anvil -f arbitrum_ankr &
ANVIL_PID=$!
sleep 2
forge script script/Deploy.sol --fork-url http://localhost:8545 --broadcast
trap_ctrlc() {
echo
kill $ANVIL_PID
}
trap trap_ctrlc INT
# wait for all background processes to terminate
wait