-
Notifications
You must be signed in to change notification settings - Fork 168
Upgrade test v9.x #3222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: release/protocol/v9.x
Are you sure you want to change the base?
Upgrade test v9.x #3222
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
||
| cosmovisor init /bin/dydxprotocold | ||
| cosmovisor init $PREUPGRADE_BINARY_PATH | ||
| mkdir -p "$VAL_HOME_DIR/cosmovisor/upgrades/v5.0.0/bin/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v9.4
| cosmovisor init /bin/dydxprotocold | ||
| cosmovisor init $PREUPGRADE_BINARY_PATH | ||
| mkdir -p "$VAL_HOME_DIR/cosmovisor/upgrades/v5.0.0/bin/" | ||
| ln -s /bin/dydxprotocold "$VAL_HOME_DIR/cosmovisor/upgrades/v5.0.0/bin/dydxprotocold" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here too^
| $PREUPGRADE_BINARY_PATH init "${MONIKERS[$i]}" -o --chain-id=$CHAIN_ID --home "$VAL_HOME_DIR" | ||
|
|
||
| # Overwrite the randomly generated `priv_validator_key.json` with a key generated deterministically from the mnemonic. | ||
| dydxprotocold tendermint gen-priv-key --home "$VAL_HOME_DIR" --mnemonic "${MNEMONICS[$i]}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$PREUPGRADE_BINARY?
|
|
||
| edit_config "$VAL_CONFIG_DIR" | ||
|
|
||
| echo "${MNEMONICS[$i]}" | dydxprotocold keys add "${MONIKERS[$i]}" --recover --keyring-backend=test --home "$VAL_HOME_DIR" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$PREUPGRADE_BINARY?
| update_genesis_complete_bridge_delay "$VAL_CONFIG_DIR" "600" | ||
|
|
||
| for acct in "${TEST_ACCOUNTS[@]}"; do | ||
| dydxprotocold add-genesis-account "$acct" 100000000000000000$USDC_DENOM,$TESTNET_VALIDATOR_NATIVE_TOKEN_BALANCE$NATIVE_TOKEN --home "$VAL_HOME_DIR" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here too^
| $PREUPGRADE_BINARY_PATH init "${MONIKERS[$i]}" -o --chain-id=$CHAIN_ID --home "$VAL_HOME_DIR" | ||
|
|
||
| # Overwrite the randomly generated `priv_validator_key.json` with a key generated deterministically from the mnemonic. | ||
| dydxprotocold tendermint gen-priv-key --home "$VAL_HOME_DIR" --mnemonic "${MNEMONICS[$i]}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$PREUPGRADE_BINARY
| dydxprotocold add-genesis-account "$acct" 100000000000000000$USDC_DENOM,$TESTNET_VALIDATOR_NATIVE_TOKEN_BALANCE$NATIVE_TOKEN --home "$VAL_HOME_DIR" | ||
| done | ||
| for acct in "${FAUCET_ACCOUNTS[@]}"; do | ||
| dydxprotocold add-genesis-account "$acct" 900000000000000000$USDC_DENOM,$TESTNET_VALIDATOR_NATIVE_TOKEN_BALANCE$NATIVE_TOKEN --home "$VAL_HOME_DIR" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PREUPGRADE_BINARY
| cp -r /tmp/gentx "$FIRST_VAL_CONFIG_DIR" | ||
|
|
||
| # Build the final genesis.json file that all validators and the full-nodes will use. | ||
| dydxprotocold collect-gentxs --home "$FIRST_VAL_HOME_DIR" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PREUPGRADE_BINARY
|
|
||
| cosmovisor init /bin/dydxprotocold | ||
| cosmovisor init $PREUPGRADE_BINARY_PATH | ||
| mkdir -p "$FULL_NODE_HOME_DIR/cosmovisor/upgrades/v9.4.0/bin/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
think this should be just v9.4 - but more of a nit bc it then depends on ur proposal name
|
|
||
| cosmovisor init /bin/dydxprotocold | ||
| cosmovisor init $PREUPGRADE_BINARY_PATH | ||
| mkdir -p "$VAL_HOME_DIR/cosmovisor/upgrades/v9.4.0/bin/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you change it then same here
Changelist
[Describe or list the changes made in this PR]
Test Plan
[Describe how this PR was tested (if applicable)]
Author/Reviewer Checklist
state-breakinglabel.indexer-postgres-breakinglabel.PrepareProposalorProcessProposal, manually add the labelproposal-breaking.feature:[feature-name].backport/[branch-name].refactor,chore,bug.