diff --git a/scripts/gm/CHANGELOG.md b/scripts/gm/CHANGELOG.md index 749ddc4d97..251a954565 100644 --- a/scripts/gm/CHANGELOG.md +++ b/scripts/gm/CHANGELOG.md @@ -1,5 +1,18 @@ # Gaiad Manager Change Log +## v0.1.2 + +### BUGFIXES + +- Fixed `gm hermes keys` which was broken following a breaking change in Hermes CLI ([#2262]). + +### IMPROVEMENTS + +- Adjusted the `max_gas` and `gas_price.price` parameters used for `gm hermes config`. + +[#2262]: https://github.com/informalsystems/ibc-rs/issues/2262 + + ## v0.1.1 ### BUGFIXES diff --git a/scripts/gm/bin/lib-gm b/scripts/gm/bin/lib-gm index a32f20f170..d1d637b77c 100644 --- a/scripts/gm/bin/lib-gm +++ b/scripts/gm/bin/lib-gm @@ -5,7 +5,7 @@ if [ "${DEBUG:-}" = "2" ]; then fi version() { - VERSION="v0.1.1" + VERSION="v0.1.2" if is_json_output; then echo '{"status": "success", "message": "'"${VERSION}"'"}' else @@ -995,8 +995,8 @@ rpc_timeout = '15s' account_prefix = '${ACCOUNT_PREFIX}' key_name = 'wallet' store_prefix = 'ibc' -gas_price = { price = 0.001, denom = '${DENOM}' } -max_gas = 1000000 +gas_price = { price = 0.01, denom = '${DENOM}' } +max_gas = 10000000 clock_drift = '5s' trusting_period = '14days' trust_threshold = { numerator = '1', denominator = '3' } @@ -1023,13 +1023,13 @@ hermes_keys() { while [ "$EXTRA_WALLETS_COUNTER" -gt 0 ]; do if [ -z "$GLOBAL_HERMES_CONFIG" ] && [ -z "$HDPATH" ]; then - "$HERMES_BINARY" keys add "$ID" --name "wallet${EXTRA_WALLETS_COUNTER}" -f "${NETWORK_HOME_DIR}/wallet${EXTRA_WALLETS_COUNTER}_seed.json" + "$HERMES_BINARY" keys add "$ID" --key-name "wallet${EXTRA_WALLETS_COUNTER}" -f "${NETWORK_HOME_DIR}/wallet${EXTRA_WALLETS_COUNTER}_seed.json" elif [ -n "$GLOBAL_HERMES_CONFIG" ] && [ -z "$HDPATH" ]; then - "$HERMES_BINARY" -c "$GLOBAL_HERMES_CONFIG" keys add "$ID" --name "wallet${EXTRA_WALLETS_COUNTER}" -f "${NETWORK_HOME_DIR}/wallet${EXTRA_WALLETS_COUNTER}_seed.json" + "$HERMES_BINARY" -c "$GLOBAL_HERMES_CONFIG" keys add "$ID" --key-name "wallet${EXTRA_WALLETS_COUNTER}" -f "${NETWORK_HOME_DIR}/wallet${EXTRA_WALLETS_COUNTER}_seed.json" elif [ -z "$GLOBAL_HERMES_CONFIG" ] && [ -n "$HDPATH" ]; then - "$HERMES_BINARY" keys add "$ID" --hd-path "$HDPATH" --name "wallet${EXTRA_WALLETS_COUNTER}" -f "${NETWORK_HOME_DIR}/wallet${EXTRA_WALLETS_COUNTER}_seed.json" + "$HERMES_BINARY" keys add "$ID" --hd-path "$HDPATH" --key-name "wallet${EXTRA_WALLETS_COUNTER}" -f "${NETWORK_HOME_DIR}/wallet${EXTRA_WALLETS_COUNTER}_seed.json" elif [ -n "$GLOBAL_HERMES_CONFIG" ] && [ -n "$HDPATH" ]; then - "$HERMES_BINARY" -c "$GLOBAL_HERMES_CONFIG" keys add "$ID" --hd-path "$HDPATH" --name "wallet${EXTRA_WALLETS_COUNTER}" -f "${NETWORK_HOME_DIR}/wallet${EXTRA_WALLETS_COUNTER}_seed.json" + "$HERMES_BINARY" -c "$GLOBAL_HERMES_CONFIG" keys add "$ID" --hd-path "$HDPATH" --key-name "wallet${EXTRA_WALLETS_COUNTER}" -f "${NETWORK_HOME_DIR}/wallet${EXTRA_WALLETS_COUNTER}_seed.json" fi EXTRA_WALLETS_COUNTER="$((EXTRA_WALLETS_COUNTER - 1))" done diff --git a/scripts/init-hermes b/scripts/init-hermes index 22d2a81d63..ebf006e514 100755 --- a/scripts/init-hermes +++ b/scripts/init-hermes @@ -64,13 +64,13 @@ cargo build -q --locked # add the key seeds to the keyring of each chain echo "Importing keys..." cargo run -q --bin hermes -- -c "$CONFIG_FILE" keys add "$CHAIN_0_ID" -f "$GAIA_DATA/$CHAIN_0_ID/user_seed.json" -cargo run -q --bin hermes -- -c "$CONFIG_FILE" keys add "$CHAIN_0_ID" -f "$GAIA_DATA/$CHAIN_0_ID/user2_seed.json" -n user2 +cargo run -q --bin hermes -- -c "$CONFIG_FILE" keys add "$CHAIN_0_ID" -f "$GAIA_DATA/$CHAIN_0_ID/user2_seed.json" -k user2 cargo run -q --bin hermes -- -c "$CONFIG_FILE" keys add "$CHAIN_1_ID" -f "$GAIA_DATA/$CHAIN_1_ID/user_seed.json" -cargo run -q --bin hermes -- -c "$CONFIG_FILE" keys add "$CHAIN_1_ID" -f "$GAIA_DATA/$CHAIN_1_ID/user2_seed.json" -n user2 +cargo run -q --bin hermes -- -c "$CONFIG_FILE" keys add "$CHAIN_1_ID" -f "$GAIA_DATA/$CHAIN_1_ID/user2_seed.json" -k user2 if [ -n "$CHAIN_2_ID" ]; then cargo run -q --bin hermes -- -c "$CONFIG_FILE" keys add "$CHAIN_2_ID" -f "$GAIA_DATA/$CHAIN_2_ID/user_seed.json" - cargo run -q --bin hermes -- -c "$CONFIG_FILE" keys add "$CHAIN_2_ID" -f "$GAIA_DATA/$CHAIN_2_ID/user2_seed.json" -n user2 + cargo run -q --bin hermes -- -c "$CONFIG_FILE" keys add "$CHAIN_2_ID" -f "$GAIA_DATA/$CHAIN_2_ID/user2_seed.json" -k user2 fi echo "Done!"