fix typos and add numeration gap for gatekeeper deployment
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
e2f0d0fea4
commit
635853f170
16
deployer.sh
16
deployer.sh
@ -1,9 +1,9 @@
|
||||
set -e
|
||||
|
||||
AVAILIABLE_NETWORKS=(anvil-localnet sepolia-testnet hoodi-testnet mordor-testnet)
|
||||
NETWORK="${AVAILIABLE_NETWORKS[0]}"
|
||||
AVAILABLE_NETWORKS=(anvil-localnet sepolia-testnet hoodi-testnet mordor-testnet)
|
||||
NETWORK="${AVAILABLE_NETWORKS[0]}"
|
||||
START=1
|
||||
END=14
|
||||
END=13
|
||||
VERIFY_NEEDED="--verify"
|
||||
LEGACY_FLAGS=""
|
||||
|
||||
@ -13,7 +13,7 @@ usage() {
|
||||
echo -e "\t-e, --end - last contract deployment to be done."
|
||||
echo -e "\t-n, --network - network name to be deployed on."
|
||||
echo -e "\t-b, --blockscout - should try to use blockscout as verifier."
|
||||
echo -e "\nAvailable network names: ${AVAILIABLE_NETWORKS[@]}"
|
||||
echo -e "\nAvailable network names: ${AVAILABLE_NETWORKS[@]}"
|
||||
echo -e "\nContract enumeration:"
|
||||
echo "0) Reserve"
|
||||
echo "1) Authority"
|
||||
@ -29,7 +29,7 @@ usage() {
|
||||
echo "11) AfterPartyFirst"
|
||||
echo "12) AfterPartySecond"
|
||||
echo "13) AfterPartyThird"
|
||||
echo "14) Gatekeeper"
|
||||
echo "69) Gatekeeper"
|
||||
exit 1
|
||||
}
|
||||
|
||||
@ -70,7 +70,7 @@ if [ "$NETWORK" == "anvil-localnet" ]; then
|
||||
fi
|
||||
|
||||
found=false
|
||||
for i in "${AVAILIABLE_NETWORKS[@]}"
|
||||
for i in "${AVAILABLE_NETWORKS[@]}"
|
||||
do
|
||||
if [ "$i" == "$NETWORK" ] ; then
|
||||
found=true
|
||||
@ -82,7 +82,7 @@ done
|
||||
|
||||
if [ $found == false ] ; then
|
||||
echo "ERROR: '${NETWORK}' is incorrect network for deployment, valid networks are:"
|
||||
for i in "${AVAILIABLE_NETWORKS[@]}"
|
||||
for i in "${AVAILABLE_NETWORKS[@]}"
|
||||
do
|
||||
echo -e "\t${i}"
|
||||
done
|
||||
@ -118,7 +118,7 @@ for i in $(seq $START $END); do
|
||||
CONTRACT="AfterPartySecond"
|
||||
elif [ "13" == "$i" ]; then
|
||||
CONTRACT="AfterPartyThird"
|
||||
elif [ "14" == "$i" ]; then
|
||||
elif [ "69" == "$i" ]; then
|
||||
CONTRACT="Gatekeeper"
|
||||
else
|
||||
echo "No contract found for index $i"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user