make help and ability to use blockscout as verifier

Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
Uncle Fatso 2025-06-29 14:35:48 +03:00
parent 9e40d4ed4f
commit 07c752754b
Signed by: f4ts0
GPG Key ID: 565F4F2860226EBB

View File

@ -6,6 +6,30 @@ START=1
END=12
VERIFY_NEEDED="--verify"
usage() {
echo "Correct deployer script usage:"
echo -e "\t-s, --start - from which contract deployment should start."
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 "\nContract enumeration:"
echo "0) Reserve"
echo "1) Authority"
echo "2) Fatso"
echo "3) Stinky"
echo "4) Ghost"
echo "5) Staking"
echo "6) Treasury"
echo "7) BondDepository"
echo "8) StakingDistributor"
echo "9) BondingCalculator"
echo "10) AfterPartyFirst"
echo "11) AfterPartySecond"
echo "12) AfterPartyThird"
exit 1
}
while [[ $# -gt 0 ]];
do
case "${1}" in
@ -24,6 +48,17 @@ do
shift
shift
;;
-b|--blockscout)
VERIFY_NEEDED+=" --verifier blockscout"
shift
;;
-h|--help)
usage
;;
*)
echo -e "\nERROR: Unknown option provided\n"
usage
;;
esac
done