Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Latest commit

 

History

History
29 lines (20 loc) · 985 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 985 Bytes

Cross-Chain-Query E2E Test

  1. Init two local blockchains, hermes relayer which implements ics-31 cross-chain-query
    • Since ics31 doesn't want heavy-stacked ibc components such as connection, channel, port, etc, module doesn't emit packets(which is defined in ics4).
    • Chains don't have to send txs for connection to each other, relayer catches ibc query events and deals all the processes.
docker compose up
  1. Wait until ibc-0, ibc-1, node-0, node-1 are ready. Hermes will fail repeatedly until every node starts.

  2. Define your own cross-chain-query requests in interchain-query-test.sh.

    • All you have to do is changing the query path(parameter after command 'ibc-query')
  3. Execute test shell script

bash interchain-query-test.sh
  1. Set appropriate query messages in interchain-query-result.sh

    • You have to increment query-id according to the test script.
  2. Check the query result

bash interchain-query-result.sh