mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-27 21:57:16 +00:00
89531c1667
* Fix bash scripts for chain * Fix flag * Change sendDeposits.go to handle multiple keys * Fix scripts for startup
27 lines
582 B
Bash
Executable File
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 |