- 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
-
Wait until ibc-0, ibc-1, node-0, node-1 are ready. Hermes will fail repeatedly until every node starts.
-
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')
-
Execute test shell script
bash interchain-query-test.sh
-
Set appropriate query messages in interchain-query-result.sh
- You have to increment query-id according to the test script.
-
Check the query result
bash interchain-query-result.sh