-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0b6910a
commit 1a3bbed
Showing
1 changed file
with
35 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
#!/bin/bash | ||
|
||
while true | ||
do | ||
echo "Welcome to the deployment menu" | ||
echo "Please select an option:" | ||
|
||
PS3='Choose a deployment option: ' | ||
options=("Tests" "Deploy Local" "Deploy Harmonie Testnet" "Quit") | ||
select opt in "${options[@]}" | ||
do | ||
case $opt in | ||
"Tests") | ||
echo "Testing the contracts on localhost network" | ||
REPORT_GAS=true npx hardhat coverage | ||
break | ||
;; | ||
"Deploy Local") | ||
echo "Deploying contracts on localhost network" | ||
npx hardhat run scripts/deploy.js --network localhost | ||
break | ||
;; | ||
"Deploy Harmonie Testnet") | ||
echo "Deploying factory on localhost network" | ||
npx hardhat run scripts/deploy.js --network localhost | ||
break | ||
;; | ||
"Quit") | ||
echo "Exiting..." | ||
exit 0 | ||
;; | ||
*) echo "Invalid option $REPLY";; | ||
esac | ||
done | ||
done | ||
#!/bin/bash | ||
|
||
while true | ||
do | ||
echo "Welcome to the deployment menu" | ||
echo "Please select an option:" | ||
|
||
PS3='Choose a deployment option: ' | ||
options=("Tests" "Deploy Local" "Deploy Harmonie Testnet" "Quit") | ||
select opt in "${options[@]}" | ||
do | ||
case $opt in | ||
"Tests") | ||
echo "Testing the contracts on localhost network" | ||
REPORT_GAS=true npx hardhat coverage | ||
break | ||
;; | ||
"Deploy Local") | ||
echo "Deploying contracts on localhost network" | ||
npx hardhat run scripts/deploy.js --network localhost | ||
break | ||
;; | ||
"Deploy Harmonie Testnet") | ||
echo "Deploying factory on localhost network" | ||
npx hardhat run scripts/deploy.js --network localhost | ||
break | ||
;; | ||
"Quit") | ||
echo "Exiting..." | ||
exit 0 | ||
;; | ||
*) echo "Invalid option $REPLY";; | ||
esac | ||
done | ||
done |