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
|
set -e
|
||||||
|
|
||||||
AVAILIABLE_NETWORKS=(anvil-localnet sepolia-testnet hoodi-testnet mordor-testnet)
|
AVAILABLE_NETWORKS=(anvil-localnet sepolia-testnet hoodi-testnet mordor-testnet)
|
||||||
NETWORK="${AVAILIABLE_NETWORKS[0]}"
|
NETWORK="${AVAILABLE_NETWORKS[0]}"
|
||||||
START=1
|
START=1
|
||||||
END=14
|
END=13
|
||||||
VERIFY_NEEDED="--verify"
|
VERIFY_NEEDED="--verify"
|
||||||
LEGACY_FLAGS=""
|
LEGACY_FLAGS=""
|
||||||
|
|
||||||
@ -13,7 +13,7 @@ usage() {
|
|||||||
echo -e "\t-e, --end - last contract deployment to be done."
|
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-n, --network - network name to be deployed on."
|
||||||
echo -e "\t-b, --blockscout - should try to use blockscout as verifier."
|
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 -e "\nContract enumeration:"
|
||||||
echo "0) Reserve"
|
echo "0) Reserve"
|
||||||
echo "1) Authority"
|
echo "1) Authority"
|
||||||
@ -29,7 +29,7 @@ usage() {
|
|||||||
echo "11) AfterPartyFirst"
|
echo "11) AfterPartyFirst"
|
||||||
echo "12) AfterPartySecond"
|
echo "12) AfterPartySecond"
|
||||||
echo "13) AfterPartyThird"
|
echo "13) AfterPartyThird"
|
||||||
echo "14) Gatekeeper"
|
echo "69) Gatekeeper"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ if [ "$NETWORK" == "anvil-localnet" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
found=false
|
found=false
|
||||||
for i in "${AVAILIABLE_NETWORKS[@]}"
|
for i in "${AVAILABLE_NETWORKS[@]}"
|
||||||
do
|
do
|
||||||
if [ "$i" == "$NETWORK" ] ; then
|
if [ "$i" == "$NETWORK" ] ; then
|
||||||
found=true
|
found=true
|
||||||
@ -82,7 +82,7 @@ done
|
|||||||
|
|
||||||
if [ $found == false ] ; then
|
if [ $found == false ] ; then
|
||||||
echo "ERROR: '${NETWORK}' is incorrect network for deployment, valid networks are:"
|
echo "ERROR: '${NETWORK}' is incorrect network for deployment, valid networks are:"
|
||||||
for i in "${AVAILIABLE_NETWORKS[@]}"
|
for i in "${AVAILABLE_NETWORKS[@]}"
|
||||||
do
|
do
|
||||||
echo -e "\t${i}"
|
echo -e "\t${i}"
|
||||||
done
|
done
|
||||||
@ -118,7 +118,7 @@ for i in $(seq $START $END); do
|
|||||||
CONTRACT="AfterPartySecond"
|
CONTRACT="AfterPartySecond"
|
||||||
elif [ "13" == "$i" ]; then
|
elif [ "13" == "$i" ]; then
|
||||||
CONTRACT="AfterPartyThird"
|
CONTRACT="AfterPartyThird"
|
||||||
elif [ "14" == "$i" ]; then
|
elif [ "69" == "$i" ]; then
|
||||||
CONTRACT="Gatekeeper"
|
CONTRACT="Gatekeeper"
|
||||||
else
|
else
|
||||||
echo "No contract found for index $i"
|
echo "No contract found for index $i"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user