From a18eebfdd88e26f3718a91c6a4ffbd2af387261d Mon Sep 17 00:00:00 2001 From: Sergi Rene Date: Thu, 18 Apr 2024 18:24:05 +0200 Subject: [PATCH 1/2] gas price set --- scripts/ibc/rollapp.json | 6 +++--- scripts/ibc/setup_ibc.sh | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/ibc/rollapp.json b/scripts/ibc/rollapp.json index 26c8d7ed..1ce83be8 100644 --- a/scripts/ibc/rollapp.json +++ b/scripts/ibc/rollapp.json @@ -2,12 +2,12 @@ "type": "cosmos", "value": { "key": "relayer-rollapp-key", - "chain-id": "rollappevm_4321-1", - "rpc-addr": "http://127.0.0.1:26657", + "chain-id": "rollappevm_1234-1", + "rpc-addr": "tcp://localhost:26657", "account-prefix": "ethm", "keyring-backend": "test", "gas-adjustment": 1.2, - "gas-prices": "0.0arax", + "gas-prices": "1000000000arax", "debug": true, "timeout": "10s", "output-format": "json", diff --git a/scripts/ibc/setup_ibc.sh b/scripts/ibc/setup_ibc.sh index b00ad817..4251b09d 100755 --- a/scripts/ibc/setup_ibc.sh +++ b/scripts/ibc/setup_ibc.sh @@ -53,7 +53,7 @@ tmp=$(mktemp) jq --arg key "$RELAYER_KEY_FOR_ROLLAP" '.value.key = $key' "$ROLLAPP_IBC_CONF_FILE" >"$tmp" && mv "$tmp" "$ROLLAPP_IBC_CONF_FILE" jq --arg chain "$ROLLAPP_CHAIN_ID" '.value."chain-id" = $chain' "$ROLLAPP_IBC_CONF_FILE" >"$tmp" && mv "$tmp" "$ROLLAPP_IBC_CONF_FILE" jq --arg rpc "$ROLLAPP_RPC_FOR_RELAYER" '.value."rpc-addr" = $rpc' "$ROLLAPP_IBC_CONF_FILE" >"$tmp" && mv "$tmp" "$ROLLAPP_IBC_CONF_FILE" -jq --arg denom "0.0$BASE_DENOM" '.value."gas-prices" = $denom' "$ROLLAPP_IBC_CONF_FILE" >"$tmp" && mv "$tmp" "$ROLLAPP_IBC_CONF_FILE" +jq --arg denom "1000000000$BASE_DENOM" '.value."gas-prices" = $denom' "$ROLLAPP_IBC_CONF_FILE" >"$tmp" && mv "$tmp" "$ROLLAPP_IBC_CONF_FILE" jq --arg key "$RELAYER_KEY_FOR_HUB" '.value.key = $key' "$HUB_IBC_CONF_FILE" >"$tmp" && mv "$tmp" "$HUB_IBC_CONF_FILE" jq --arg chain "$SETTLEMENT_CHAIN_ID" '.value."chain-id" = $chain' "$HUB_IBC_CONF_FILE" >"$tmp" && mv "$tmp" "$HUB_IBC_CONF_FILE" @@ -76,7 +76,7 @@ echo '--------------------------------- Funding rly account on hub ['"$RLY_HUB_A echo '--------------------------------- Funding rly account on rollapp ['"$RLY_ROLLAPP_ADDR"'].. --------------------------------' -"$EXECUTABLE" tx bank send "$KEY_NAME_ROLLAPP" "$RLY_ROLLAPP_ADDR" 100000000000000000000"$BASE_DENOM" --keyring-backend test --broadcast-mode block -y +"$EXECUTABLE" tx bank send "$KEY_NAME_ROLLAPP" "$RLY_ROLLAPP_ADDR" 100000000000000000000"$BASE_DENOM" --keyring-backend test --gas-prices 1000000000"$BASE_DENOM" --broadcast-mode block -y echo '--------------------------------- Creating IBC path... --------------------------------' From 1f27e884ae77bf6730cd852d4ef7dab0053a7919 Mon Sep 17 00:00:00 2001 From: Sergi Rene Date: Fri, 19 Apr 2024 18:16:23 +0200 Subject: [PATCH 2/2] gas prices in rollapp genesis event script --- scripts/trigger_rollapp_genesis_event.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/trigger_rollapp_genesis_event.sh b/scripts/trigger_rollapp_genesis_event.sh index 5921ef76..258f0571 100755 --- a/scripts/trigger_rollapp_genesis_event.sh +++ b/scripts/trigger_rollapp_genesis_event.sh @@ -2,5 +2,5 @@ echo "Triggering genesis event on rollapp" ROLLAPP_CHANNEL_ID=$(rly q channels "$ROLLAPP_CHAIN_ID" | jq -r 'select(.state == "STATE_OPEN") | .channel_id' | tail -n 1) -"$EXECUTABLE" tx hubgenesis genesis-event "$HUB_CHAIN_ID" "$ROLLAPP_CHANNEL_ID" --from "$KEY_NAME_ROLLAPP" --keyring-backend test --broadcast-mode block +"$EXECUTABLE" tx hubgenesis genesis-event "$HUB_CHAIN_ID" "$ROLLAPP_CHANNEL_ID" --from "$KEY_NAME_ROLLAPP" --keyring-backend test --gas-prices 1000000000"$BASE_DENOM" --broadcast-mode block