Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 1.97 KB

README.md

File metadata and controls

48 lines (34 loc) · 1.97 KB

Local Finschia nodes with IBC development network

Requirements

  • Required: docker, jq, docker-compose

Starting the blockchain

Run with docker

# Start the Finschia nodes and IBC relayer
docker-compose up -d

# Stop the Finschia nodes and IBC relayer
docker-compose down
# Delete volumes as well
docker-compose down --volumes

How to change and generate default genesis and configurations

  1. change the docker image you want in the ./[finsciha or finschia2]/env file.
  2. cd ./[finsciha or finschia2]/template.
  3. execute setup.sh docker.
  4. check the difference of app.toml, client.toml, config.toml and genesis.json in the ./[finsciha or finschia2]/template/.finschia/config directory and select the code you want.

Accounts

Through setup.sh, 11 accounts added to genesis. Every accounts are derived from same mnemonic (mind flame tobacco sense move hammer drift crime ring globe art gaze cinnamon helmet cruise special produce notable negative wait path scrap recall have) and every accounts have same amount of balances (100000000000[cony or brown],20000000000stake). finschia uses cony and finschia2 uses brown as minimum denom.

  • 1 validator account : hdpath(44/438/1/0/0)
  • 9 ordinary account: hdpath(44/438/0/0/0~8)
  • 1 multisig account: multisig of account0,account1,account2,account3,account4 and threshold is 2.

How to transfer via IBC

# transfer with rly cli
$ docker exec -it with-ibc_relayer_1 rly tx transfer finschia-0 finschia2-0 1000cony link146asaycmtydq45kxc8evntqfgepagygelel00h channel-0 -d
$ docker exec -it with-ibc_relayer_1 rly q bal finschia2-0

# transfer with fnsad cli
$ docker exec -it with-ibc_finschia-app_1 sh -c "fnsad tx ibc-transfer transfer transfer channel-0 link1g7gsgktl9yjqatacswlwvns5yzy4u5jehsx2pz 5cony --from account0 --chain-id finschia-0 --keyring-backend test --gas-prices 0.01cony"
$ docker exec -it with-ibc_finschia2-app_1 fnsad query bank balances link1g7gsgktl9yjqatacswlwvns5yzy4u5jehsx2pz