diff --git a/scripts/deploy.sh b/scripts/deploy.sh index f016681..ea58f2f 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -6,14 +6,14 @@ then exit fi -IMAGE_TAG=${2:-"v9.0.0"} +IMAGE_TAG=${2:-"wasmd_029_rc1"} CONTAINER_NAME="juno_cw_unity_prop" BINARY="docker exec -i $CONTAINER_NAME junod" DENOM='ujunox' CHAIN_ID='testing' RPC='http://localhost:26657/' TXFLAG="--gas-prices 0.1$DENOM --gas auto --gas-adjustment 1.3 -y -b block --chain-id $CHAIN_ID --node $RPC" -BLOCK_GAS_LIMIT=${GAS_LIMIT:-100000000} # mirrors mainnet +BLOCK_GAS_LIMIT=${GAS_LIMIT:-10000000} # mirrors mainnet echo "Building $IMAGE_TAG" echo "Configured Block Gas Limit: $BLOCK_GAS_LIMIT" @@ -35,7 +35,7 @@ docker run --rm -d --name $CONTAINER_NAME \ docker run --rm -v "$(pwd)":/code \ --mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \ --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \ - cosmwasm/rust-optimizer:0.12.6 + cosmwasm/rust-optimizer:0.12.8 # copy wasm to docker container docker cp artifacts/cw_unity_prop.wasm $CONTAINER_NAME:/cw_unity_prop.wasm @@ -56,7 +56,7 @@ echo "TX Flags: $TXFLAG" set -e # upload wasm -CONTRACT_CODE=$($BINARY tx wasm store "/cw_unity_prop.wasm" --from validator $TXFLAG --output json | jq -r '.logs[0].events[-1].attributes[0].value') +CONTRACT_CODE=$($BINARY tx wasm store "/cw_unity_prop.wasm" --from validator $TXFLAG --output json | jq -r '.logs[0].events[-1].attributes[-1].value') echo "Stored: $CONTRACT_CODE" BALANCE_2=$($BINARY q bank balances $VALIDATOR_ADDR) diff --git a/scripts/deploy_ci.sh b/scripts/deploy_ci.sh index 21aa3a3..760ec55 100755 --- a/scripts/deploy_ci.sh +++ b/scripts/deploy_ci.sh @@ -12,7 +12,7 @@ DENOM='ujunox' CHAIN_ID='testing' RPC='http://localhost:26657/' TXFLAG="--gas-prices 0.1$DENOM --gas auto --gas-adjustment 1.3 -y -b block --chain-id $CHAIN_ID --node $RPC" -BLOCK_GAS_LIMIT=${GAS_LIMIT:-100000000} # mirrors mainnet +BLOCK_GAS_LIMIT=${GAS_LIMIT:-10000000} # mirrors mainnet echo "Configured Block Gas Limit: $BLOCK_GAS_LIMIT" @@ -20,7 +20,7 @@ echo "Configured Block Gas Limit: $BLOCK_GAS_LIMIT" docker run --rm -v "$(pwd)":/code \ --mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \ --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \ - cosmwasm/rust-optimizer:0.12.6 + cosmwasm/rust-optimizer:0.12.8 # copy wasm to docker container docker cp artifacts/cw_unity_prop.wasm $CONTAINER_NAME:/cw_unity_prop.wasm @@ -41,7 +41,7 @@ echo "TX Flags: $TXFLAG" set -e # upload wasm -CONTRACT_CODE=$($BINARY tx wasm store "/cw_unity_prop.wasm" --from validator $TXFLAG --output json | jq -r '.logs[0].events[-1].attributes[0].value') +CONTRACT_CODE=$($BINARY tx wasm store "/cw_unity_prop.wasm" --from validator $TXFLAG --output json | jq -r '.logs[0].events[-1].attributes[-1].value') echo "Stored: $CONTRACT_CODE" BALANCE_2=$($BINARY q bank balances $VALIDATOR_ADDR) diff --git a/scripts/submit_gov.sh b/scripts/submit_gov.sh index a1f38f2..029e486 100755 --- a/scripts/submit_gov.sh +++ b/scripts/submit_gov.sh @@ -6,7 +6,7 @@ then exit fi -IMAGE_TAG=${2:-"v9.0.0"} +IMAGE_TAG=${2:-"wasmd_029_rc1"} CONTAINER_NAME="juno_cw_unity_prop" BINARY="docker exec -i $CONTAINER_NAME junod" DENOM='ujunox' @@ -56,7 +56,7 @@ echo "TX Flags: $TXFLAG" set -e # upload wasm -CONTRACT_CODE=$($BINARY tx wasm store "/cw_unity_prop.wasm" --from validator $TXFLAG --output json | jq -r '.logs[0].events[-1].attributes[0].value') +CONTRACT_CODE=$($BINARY tx wasm store "/cw_unity_prop.wasm" --from validator $TXFLAG --output json | jq -r '.logs[0].events[-1].attributes[-1].value') echo "Stored: $CONTRACT_CODE" BALANCE_2=$($BINARY q bank balances $VALIDATOR_ADDR) @@ -88,7 +88,6 @@ $BINARY tx gov submit-proposal sudo-contract $CONTRACT_ADDRESS '{"execute_send": --from test-user $TXFLAG \ --title "Prop title" \ --description "LFG" \ - --type sudo-contract \ --deposit 500000000ujunox $BINARY q gov proposal 1 diff --git a/scripts/submit_gov_ci.sh b/scripts/submit_gov_ci.sh index c0a915a..3128bdd 100755 --- a/scripts/submit_gov_ci.sh +++ b/scripts/submit_gov_ci.sh @@ -41,7 +41,7 @@ echo "TX Flags: $TXFLAG" set -e # upload wasm -CONTRACT_CODE=$($BINARY tx wasm store "/cw_unity_prop.wasm" --from validator $TXFLAG --output json | jq -r '.logs[0].events[-1].attributes[0].value') +CONTRACT_CODE=$($BINARY tx wasm store "/cw_unity_prop.wasm" --from validator $TXFLAG --output json | jq -r '.logs[0].events[-1].attributes[-1].value') echo "Stored: $CONTRACT_CODE" BALANCE_2=$($BINARY q bank balances $VALIDATOR_ADDR)