make help and ability to use blockscout as verifier
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
		
							parent
							
								
									9e40d4ed4f
								
							
						
					
					
						commit
						07c752754b
					
				
							
								
								
									
										35
									
								
								deployer.sh
									
									
									
									
									
								
							
							
						
						
									
										35
									
								
								deployer.sh
									
									
									
									
									
								
							| @ -6,6 +6,30 @@ START=1 | |||||||
| END=12 | END=12 | ||||||
| VERIFY_NEEDED="--verify" | 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 ]]; | while [[ $# -gt 0 ]]; | ||||||
| do | do | ||||||
|     case "${1}" in |     case "${1}" in | ||||||
| @ -24,6 +48,17 @@ do | |||||||
|         shift |         shift | ||||||
|         shift |         shift | ||||||
|         ;; |         ;; | ||||||
|  |         -b|--blockscout) | ||||||
|  |         VERIFY_NEEDED+=" --verifier blockscout" | ||||||
|  |         shift | ||||||
|  |         ;; | ||||||
|  |         -h|--help) | ||||||
|  |         usage | ||||||
|  |         ;; | ||||||
|  |         *) | ||||||
|  |         echo -e "\nERROR: Unknown option provided\n" | ||||||
|  |         usage | ||||||
|  |         ;; | ||||||
|     esac |     esac | ||||||
| done | done | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user