Skip to content

Commit

Permalink
print provider ibc channel
Browse files Browse the repository at this point in the history
  • Loading branch information
dasanchez committed Feb 12, 2024
1 parent 0979920 commit 7e4ebc9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/upgrade-gaia-v15-fresh-state.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1309,7 +1309,7 @@ jobs:
- name: _CCV channel verified> ICS v3.1.0 chain 1
env:
CONSUMER_HOME_1: /home/runner/.v310-1-1
CON1_RPC_PORT: 27301
CON1_RPC_PORT: 31121
run: tests/test_ccv_key_assignment.sh
- name: _IBC transfer successful> ICS v3.1.0 chain 1
env:
Expand Down Expand Up @@ -1768,6 +1768,7 @@ jobs:
client_id=$($CHAIN_BINARY q provider list-consumer-chains -o json --home $HOME_1 | jq -r --arg chain "$CONSUMER_CHAIN_ID" '.chains[] | select(.chain_id==$chain).client_id')
connection_id=$($CHAIN_BINARY q ibc connection connections -o json --home $HOME_1 | jq -r --arg client "$client_id" '.connections[] | select(.client_id==$client).id')
channel_id=$($CHAIN_BINARY q ibc channel connections $connection_id -o json --home $HOME_1 | jq -r '.channels[] | select(.port_id=="transfer").channel_id')
echo "Provider channel id: $channel_id"
tests/test_consumer_ibc_transfer.sh $channel_id
- name: Stop validator services
Expand Down
4 changes: 3 additions & 1 deletion tests/test_consumer_ibc_transfer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ echo "Consumer starting balance in expected denom: $consumer_start_balance"

# Transfer provider token to consumer chain
echo "Sending $DENOM to $CONSUMER_CHAIN_ID..."
$CHAIN_BINARY --home $HOME_1 tx ibc-transfer transfer transfer $PROVIDER_CHANNEL $RECIPIENT 1000$DENOM --from $WALLET_1 --keyring-backend test --gas $GAS --gas-adjustment $GAS_ADJUSTMENT --gas-prices $GAS_PRICE$DENOM -y
command="$CHAIN_BINARY --home $HOME_1 tx ibc-transfer transfer transfer $PROVIDER_CHANNEL $RECIPIENT 1000$DENOM --from $WALLET_1 --keyring-backend test --gas $GAS --gas-adjustment $GAS_ADJUSTMENT --gas-prices $GAS_PRICE$DENOM -y"
echo $command
$command
echo "Waiting for the transfer to reach the consumer chain..."
sleep $(($COMMIT_TIMEOUT*15))
$CONSUMER_CHAIN_BINARY --home $CONSUMER_HOME_1 q bank balances $RECIPIENT
Expand Down

0 comments on commit 7e4ebc9

Please sign in to comment.