Skip to content

Commit

Permalink
feat: update e2e upgrade test for v0.50.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ledanghuy1811 committed Jan 7, 2025
1 parent 8168d4b commit 5654b33
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
7 changes: 5 additions & 2 deletions scripts/e2e-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ set -eu

# setup the network using the old binary

OLD_VERSION=${OLD_VERSION:-"v0.50.2"}
OLD_VERSION=${OLD_VERSION:-"v0.50.3"}
WASM_PATH=${WASM_PATH:-"$PWD/scripts/wasm_file/oraiswap-token.wasm"}
ARGS="--chain-id testing -y --keyring-backend test --gas auto --gas-adjustment 1.5"
NEW_VERSION=${NEW_VERSION:-"v0.50.3"}
NEW_VERSION=${NEW_VERSION:-"v0.50.4"}
VALIDATOR_HOME=${VALIDATOR_HOME:-"$HOME/.oraid/validator1"}
MIGRATE_MSG=${MIGRATE_MSG:-'{}'}
EXECUTE_MSG=${EXECUTE_MSG:-'{"ping":{}}'}
Expand Down Expand Up @@ -150,5 +150,8 @@ NODE_HOME=$VALIDATOR_HOME USER=validator1 sh $PWD/scripts/tests-0.50.2/test-para
NODE_HOME=$VALIDATOR_HOME USER=validator1 FUND=1000orai sh $PWD/scripts/tests-0.50.3/test-tokenfactory-metadata-binding.sh
USER=validator1 USER2=validator2 sh $PWD/scripts/tests-0.50.3/test-gasless.sh

# v0.50.4 tests
NODE_HOME=$VALIDATOR_HOME USER=validator1 FUND=1000orai sh $PWD/scripts/tests-0.50.4/test-tokenfactory-force-transfer.sh

echo "Tests Passed!!"
bash scripts/clean-multinode-local-testnet.sh
6 changes: 3 additions & 3 deletions scripts/json/proposal.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@type": "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade",
"authority": "orai10d07y265gmmuvt4z0w9aw880jnsr700jf39xhq",
"plan": {
"name": "v0.50.3",
"name": "v0.50.4",
"time": "0001-01-01T00:00:00Z",
"height": "35",
"info": "upgrade info",
Expand All @@ -14,7 +14,7 @@
],
"metadata": "",
"deposit": "10000000orai",
"title": "Upgrade Oraichain to v0.50.3",
"summary": "Please refer to the CHANGELOG: https://github.com/oraichain/wasmd/blob/release/v0.50.x/CHANGELOG_ORAI.md#v0503 for more details about the upgrade",
"title": "Upgrade Oraichain to v0.50.4",
"summary": "Please refer to the CHANGELOG: https://github.com/oraichain/wasmd/blob/release/v0.50.x/CHANGELOG_ORAI.md#v0504 for more details about the upgrade",
"expedited": false
}
12 changes: 6 additions & 6 deletions scripts/tests-0.50.1/test-gov-params.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ voting_period=$(oraid query gov params --output json | jq -r '.params.voting_per
expected_burn_vote_veto="true"
expected_expedited_min_deposit_amount="50000000"
expected_expedited_min_deposit_denom="orai"
expected_expedited_threshold="0.667"
expected_expedited_threshold="0.667000000000000000"
expected_min_deposit_amount="10000000"
expected_min_deposit_denom="orai"
expected_min_deposit_ratio="0.01"
expected_min_deposit_ratio="0.010000000000000000"
expected_min_initial_deposit_ratio="0.000000000000000000"
expected_proposal_cancel_ratio="0.5"
expected_quorum="0.334"
expected_threshold="0.5"
expected_veto_threshold="0.334"
expected_proposal_cancel_ratio="0.500000000000000000"
expected_quorum="0.334000000000000000"
expected_threshold="0.500000000000000000"
expected_veto_threshold="0.334000000000000000"

# Comparison without quotes on right-hand side
if [[ $burn_vote_veto != $expected_burn_vote_veto ]]; then
Expand Down
2 changes: 1 addition & 1 deletion scripts/tests-0.50.4/test-tokenfactory-force-transfer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if ! [[ $admin =~ $user_address ]]; then
fi

sleep 2
# try to mint token
# try to mint token
oraid tx tokenfactory mint 10000$first_denom $ARGS >$HIDE_LOGS

# query balance after mint
Expand Down

0 comments on commit 5654b33

Please sign in to comment.