Boilerplate scripts for boostrapping simd nodes and relayer
Install the simd binary from the ibc-go repository.
git clone git@github.com:cosmos/ibc-go.git && cd ibc-go
make installcargo install ibc-relayer-cli --bin hermes --locked
hermes version # v1.6.0Bootsrap two simd chains. The following will clear any existing chain state under ./data and create a new environment.
It bootstraps two single validator nodes for different simd chains test-1 and test-2.
The scripts create a couple of accounts, both for relayers and demo accounts.
make initRestore keys for relayer wallets rly-1 and rly-2.
make hermes-restore-keysCreate a connection from test-1 to test-2. Note, this also creates ibc clients out of the box.
make hermes-setup-connectionCreate an incentivized transfer channel.
make hermes-setup-channelStart relaying.
make hermes-startWhere cosmos1kzjk9frgfgpguvdazesgpllwsggk8472xryjvr is your ledger account address.
Add your ledger key:
simd keys add ledgerKey --ledger --home ./data/test-1Fund your ledger account from one of the demo accounts - wallet1:
simd tx bank send wallet1 cosmos1kzjk9frgfgpguvdazesgpllwsggk8472xryjvr 1000000stake --from wallet1 --node tcp://localhost:16657 --home ./data/test-1 --keyring-backend testQuery balance of ledger account:
simd q bank balances cosmos1kzjk9frgfgpguvdazesgpllwsggk8472xryjvr --home ./data/test-1 --node tcp://localhost:16657Regular bank send using ledger signing:
simd tx bank send cosmos1kzjk9frgfgpguvdazesgpllwsggk8472xryjvr cosmos17dtl0mjt3t77kpuhg2edqzjpszulwhgzuj9ljs 10stake --from ledgerKey --ledger --node tcp://localhost:16657 --home ./data/test-1IBC transfer using ledger signing:
simd tx ibc-transfer transfer transfer channel-0 cosmos17dtl0mjt3t77kpuhg2edqzjpszulwhgzuj9ljs 1000stake --from ledgerKey --ledger --node tcp://localhost:16657 --home ./data/test-1