diff --git a/packages/synthetic-chain/public/upgrade-test-scripts/env_setup.sh b/packages/synthetic-chain/public/upgrade-test-scripts/env_setup.sh index a594036a..8904959a 100755 --- a/packages/synthetic-chain/public/upgrade-test-scripts/env_setup.sh +++ b/packages/synthetic-chain/public/upgrade-test-scripts/env_setup.sh @@ -107,10 +107,12 @@ provisionSmartWallet() { addr="$1" amount="$2" echo "funding $addr" - agd tx -bblock bank send "validator" "$addr" "$amount" -y --keyring-backend=test --chain-id="$CHAINID" + # shellcheck disable=SC2086 + agd tx bank send "validator" "$addr" "$amount" $SIGN_BROADCAST_OPTS waitForBlock echo "provisioning $addr" - agd tx -bblock swingset provision-one my-wallet "$addr" SMART_WALLET --keyring-backend=test --yes --chain-id="$CHAINID" --from="$addr" + # shellcheck disable=SC2086 + agd tx swingset provision-one my-wallet "$addr" SMART_WALLET --from="$addr" $SIGN_BROADCAST_OPTS echo "Waiting for wallet $addr to reach vstorage" waitForBlock 5 echo "Reading $addr from vstorage" @@ -192,7 +194,7 @@ test_not_val() { # gas=200000 is the default but gas used may be higher or lower. Setting it # to "auto" makes the proposal executions less brittle. GAS_ADJUSTMENT=1.2 -export SUBMIT_PROPOSAL_OPTS="--keyring-backend=test --chain-id=$CHAINID \ +export SIGN_BROADCAST_OPTS="--keyring-backend=test --chain-id=$CHAINID \ --gas=auto --gas-adjustment=$GAS_ADJUSTMENT \ --yes --broadcast-mode block --from validator" @@ -202,9 +204,11 @@ voteLatestProposalAndWait() { proposal=$($binary q gov proposals -o json | jq -r '.proposals | last | if .proposal_id == null then .id else .proposal_id end') echo "Latest proposal: $proposal" waitForBlock - $binary tx -bblock gov deposit "$proposal" 50000000ubld --from=validator --chain-id="$CHAINID" --yes --keyring-backend test + # shellcheck disable=SC2086 + $binary tx gov deposit "$proposal" 50000000ubld $SIGN_BROADCAST_OPTS waitForBlock - $binary tx -bblock gov vote "$proposal" yes --from=validator --chain-id="$CHAINID" --yes --keyring-backend test + # shellcheck disable=SC2086 + $binary tx gov vote "$proposal" yes $SIGN_BROADCAST_OPTS waitForBlock echo "Voted in proposal $proposal" diff --git a/packages/synthetic-chain/public/upgrade-test-scripts/run_prepare.sh b/packages/synthetic-chain/public/upgrade-test-scripts/run_prepare.sh index 77970642..d615b7e9 100755 --- a/packages/synthetic-chain/public/upgrade-test-scripts/run_prepare.sh +++ b/packages/synthetic-chain/public/upgrade-test-scripts/run_prepare.sh @@ -58,7 +58,7 @@ fi agd tx gov submit-proposal software-upgrade "$UPGRADE_TO" \ --upgrade-height="$height" --upgrade-info="$info" \ --title="Upgrade to ${UPGRADE_TO}" --description="upgrades" \ - ${SUBMIT_PROPOSAL_OPTS="--missing-env-setup"} + ${SIGN_BROADCAST_OPTS="--missing-env-setup"} waitForBlock voteLatestProposalAndWait diff --git a/packages/synthetic-chain/public/upgrade-test-scripts/start_to_to.sh b/packages/synthetic-chain/public/upgrade-test-scripts/start_to_to.sh index 7867f28f..6d86da02 100755 --- a/packages/synthetic-chain/public/upgrade-test-scripts/start_to_to.sh +++ b/packages/synthetic-chain/public/upgrade-test-scripts/start_to_to.sh @@ -32,7 +32,7 @@ fi agd tx gov submit-proposal software-upgrade "$UPGRADE_TO" \ --upgrade-height="$height" --upgrade-info="$info" \ --title="Upgrade to ${UPGRADE_TO}" --description="upgrades" \ - ${SUBMIT_PROPOSAL_OPTS="--missing-env-setup"} + ${SIGN_BROADCAST_OPTS="--missing-env-setup"} waitForBlock voteLatestProposalAndWait diff --git a/proposals/16:upgrade-8/use.sh b/proposals/16:upgrade-8/use.sh index 8291f894..984c9785 100755 --- a/proposals/16:upgrade-8/use.sh +++ b/proposals/16:upgrade-8/use.sh @@ -24,7 +24,8 @@ waitForBlock 2 waitForBlock 3 # fund provision pool stakeamount="20000000${USDC_DENOM}" -agd tx bank send "validator" "agoric1megzytg65cyrgzs6fvzxgrcqvwwl7ugpt62346" "$stakeamount" -y --keyring-backend=test --chain-id="$CHAINID" -bblock +# shellcheck disable=SC2086 +agd tx bank send "validator" "agoric1megzytg65cyrgzs6fvzxgrcqvwwl7ugpt62346" "$stakeamount" ${SIGN_BROADCAST_OPTS="--missing-env-setup"} waitForBlock 3 govaccounts=("$GOV1ADDR" "$GOV2ADDR" "$GOV3ADDR") diff --git a/proposals/61:lo-bundle-cost/eval.sh b/proposals/61:lo-bundle-cost/eval.sh index 8de3424a..c1cd4c2b 100644 --- a/proposals/61:lo-bundle-cost/eval.sh +++ b/proposals/61:lo-bundle-cost/eval.sh @@ -7,6 +7,6 @@ source /usr/src/upgrade-test-scripts/env_setup.sh # shellcheck disable=SC2086 agd tx gov submit-proposal param-change lower-bundle-cost.json \ - ${SUBMIT_PROPOSAL_OPTS="--missing-env-setup"} + ${SIGN_BROADCAST_OPTS="--missing-env-setup"} voteLatestProposalAndWait