Compare commits

...

2 Commits

Author SHA1 Message Date
0f90364112
add help message and ability to use blockscout as verifier
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
2025-06-29 15:00:26 +03:00
a001198eba
change back slash to forward slash to make git submodule work
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
2025-06-29 14:57:02 +03:00
2 changed files with 27 additions and 2 deletions

4
.gitmodules vendored
View File

@ -1,3 +1,3 @@
[submodule "lib\\forge-std"]
path = lib\\forge-std
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std

View File

@ -6,6 +6,20 @@ START=1
END=4
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) WETH9"
echo "1) UniswapV2Factory"
echo "2) UniswapV2Router"
exit 1
}
while [[ $# -gt 0 ]];
do
case "${1}" in
@ -24,6 +38,17 @@ do
shift
shift
;;
-b|--blockscout)
VERIFY_NEEDED+=" --verifier blockscout"
shift
;;
-h|--help)
usage
;;
*)
echo -e "\nERROR: Unknown option provided\n"
usage
;;
esac
done