prysm-pulse/scripts/deploy-deposit-contract.sh
Ivan Martinez 89531c1667 Fix bash scripts for initializing beacon-chain (#2080)
* Fix bash scripts for chain

* Fix flag

* Change sendDeposits.go to handle multiple keys

* Fix scripts for startup
2019-04-02 15:45:40 -05:00

27 lines
582 B
Bash
Executable File

#!/bin/sh
PRIVATE_KEY_PATH=~/priv
while test $# -gt 0; do
case "$1" in
--privkey-path)
shift
PRIVATE_KEY_PATH=$1
shift
;;
*)
echo "$1 is not a recognized flag!"
exit 1;
;;
esac
done
CMD="bazel run //contracts/deposit-contract/deployContract --"
HTTPFLAG="--httpPath=https://goerli.prylabs.net"
PRIVFLAG="--privKey=$(cat $PRIVATE_KEY_PATH)"
CONFIGFLAGS="--chainStart=8 --minDeposit=100000 --maxDeposit=3200000 --customChainstartDelay 120"
CMD="$CMD $HTTPFLAG $PRIVFLAG $CONFIGFLAGS"
$CMD