From c3f6c181cd1d2c9643ec596d4868c5f14dff6c47 Mon Sep 17 00:00:00 2001 From: Edwin Guajardo Date: Mon, 13 Jan 2025 16:10:22 -0600 Subject: [PATCH] update readme file --- cosmwasm/README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cosmwasm/README.md b/cosmwasm/README.md index 1e1cfeb7..3cbd5c3e 100644 --- a/cosmwasm/README.md +++ b/cosmwasm/README.md @@ -112,7 +112,7 @@ This folder contains deployment scripts for cosmwasm contracts needed for amplif Deploy each contract. Chain name should match the key of an object in the `chains` section of the config. Chain name should be omitted for contracts that are not chain specific. - `node deploy-contract.js [upload|instantiate|upload-instantiate] -m [mnemonic] -a [path to contract artifacts] -c [contract name] -e [environment] -n ` + `node deploy-contract.js [upload|instantiate|upload-instantiate|migrate] -m [mnemonic] -a [path to contract artifacts] -c [contract name] -e [environment] -n ` Available subcommands: @@ -126,6 +126,8 @@ Available subcommands: - `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 +- `migrate`: Migrates a contract using a new codeId, which is retrieved the same way as `instantiate` subcommand. The migrate message must be provided using the `--msg` option. + Some of the contracts depend on each other and need to be deployed in a specific order. Note the connection router and axelarnet gateway each need to know the other's address, so you need to pass `--instantiate2`, and upload both contract before instatiating them. Example deployments: @@ -146,9 +148,8 @@ Example deployments: ### Constant Address Deployment To deploy with a constant address using instantiate2, pass the `--instantiate2` flag. -To upload the contract and compute the expected address without instantiating, pass `--instantiate2` and `-u`. This will write the contract address and the code id to the config file. +To upload the contract and compute the expected address without instantiating, pass `--instantiate2` while using the `upload` subcommand. This will write the contract address and the code id to the config file. A salt can be passed with `-s`. If no salt is passed but a salt is needed for constant address deployment, the contract name will be used as a salt. -Pass `-r` to skip the upload step, and reuse the previous code id (specified in the config). ### Deploying through governance proposals