Skip to content

Commit

Permalink
removed trasnger scripts. added logging of established channels
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsitrin committed Aug 13, 2023
1 parent 32549f1 commit fa1a156
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 133 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
cmd/rollappd/rollappd
scripts/ibc/*.json
build/
release/
.idea/
Expand Down
62 changes: 0 additions & 62 deletions scripts/ibc/ibc_transfer.sh

This file was deleted.

71 changes: 0 additions & 71 deletions scripts/ibc/ibc_transfer_commands.sh

This file was deleted.

8 changes: 8 additions & 0 deletions scripts/ibc/setup_ibc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,11 @@ echo '# -------------------------------- creating IBC link ---------------------
rly chains set-settlement "$SETTLEMENT_CHAIN_ID"
rly paths new "$ROLLAPP_CHAIN_ID" "$SETTLEMENT_CHAIN_ID" "$RELAYER_PATH" --src-port "$IBC_PORT" --dst-port "$IBC_PORT" --version "$IBC_VERSION"
rly transact link -t300s "$RELAYER_PATH" --src-port "$IBC_PORT" --dst-port "$IBC_PORT" --version "$IBC_VERSION"


echo '# -------------------------------- IBC channel established ------------------------------- #'
ROLLAPP_CHANNEL_ID=$(rly q channels "$ROLLAPP_CHAIN_ID" | jq -r 'select(.state == "STATE_OPEN") | .channel_id' | tail -n 1)
HUB_CHANNEL_ID=$(rly q channels "$SETTLEMENT_CHAIN_ID" | jq -r 'select(.state == "STATE_OPEN") | .counterparty.channel_id' | tail -n 1)

echo "ROLLAPP_CHANNEL_ID: $ROLLAPP_CHANNEL_ID"
echo "HUB_CHANNEL_ID: $HUB_CHANNEL_ID"

0 comments on commit fa1a156

Please sign in to comment.