Skip to content
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

feat(cosmwasm)!: change non-governance scripts to use subcommands #492

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

eguajardo
Copy link
Contributor

@eguajardo eguajardo commented Jan 9, 2025

Available subcommands:

  • upload: Uploads wasm file and saves codeId to lastUploadedCodeId in config

    e.g.: node cosmwasm/deploy-contract.js upload -m "$MNEMONIC" -a "../artifacts/" -c "Router" --instantiate2 -e devnet -y --salt "$ROUTER_SALT"

  • instantiate: Instantiates a contract, it gets the codeId by order of priority from:

    1. Value of --codeId option
    2. From the network by comparing code hash when using --fetchCodeId option
    3. Value of previously saved lastUploadedCodeId in config

    e.g.: node cosmwasm/deploy-contract.js instantiate -m "$MNEMONIC" -c "Router" --instantiate2 -e devnet --admin "$ADMIN_ADDR" -y --salt "$ROUTER_SALT"

  • upload-instantiate: Both uploads and then instantiates a contract using the code Id that was just created. It doesn't accept --codeId nor --fetchCodeId options

    e.g.: node cosmwasm/deploy-contract.js upload-instantiate -m "$MNEMONIC" -a "../artifacts/" -c "ServiceRegistry" -e devnet --admin "$ADMIN_ADDR" -y --instantiate2 --salt "$SALT"

https://axelarnetwork.atlassian.net/browse/AXE-5190

@eguajardo eguajardo requested a review from a team as a code owner January 9, 2025 02:47
@eguajardo eguajardo changed the title feat(cosmwasm)!: split script into separate upload and instantiate subcommands feat(cosmwasm)!: change non-governance scripts to use subcommands Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant