github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/x/wasm/keeper/testdata/download_releases.sh (about) 1 #!/bin/bash 2 set -o errexit -o nounset -o pipefail 3 command -v shellcheck > /dev/null && shellcheck "$0" 4 5 if [ $# -ne 1 ]; then 6 echo "Usage: ./download_releases.sh RELEASE_TAG" 7 exit 1 8 fi 9 10 tag="$1" 11 12 for contract in burner hackatom ibc_reflect ibc_reflect_send reflect staking; do 13 url="https://github.com/CosmWasm/cosmwasm/releases/download/$tag/${contract}.wasm" 14 echo "Downloading $url ..." 15 wget -O "${contract}.wasm" "$url" 16 done 17 18 # create the zip variant 19 gzip -k hackatom.wasm 20 mv hackatom.wasm.gz hackatom.wasm.gzip 21 22 rm -f version.txt 23 echo "$tag" >version.txt