This is an e2e demo and test between two hyperledger besu chains using yui-relayer.
First, need to install go >= v1.22 and node >= v20.
Also, need to install npm dependencies:
$ npm install
Just execute the single command:
$ make network-qbft test
The above commands execute the following in sequence:
- Launch two HB chains (both chain uses QBFT consensus)
make network-qbft
- Deploy the IBC contracts from yui-ibc-solidity to the chains using hardhat
make deploy
- Configurate yui-relayer setting with ./relayer/configs
make init
- Perform IBC handshake using yui-relayer
make handshake
- Send a packet using ./scripts/sendPacket.js and relay it using yui-relayer
make relay
- Shutdown two HB chains
make network-down
If you want to test with IBFT2, please do the following commands.
$ make network-ibft2 test-ibft2