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

fix(setup script): gas price set for rollapp in scripts/ibc/setup_ibc.sh #164

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/ibc/rollapp.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions scripts/ibc/setup_ibc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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... --------------------------------'

Expand Down
2 changes: 1 addition & 1 deletion scripts/trigger_rollapp_genesis_event.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Loading