Skip to content

Commit e5f27ca

Browse files
authored
docs: local-ic testnet ibc transfer + query (#69)
* faster ibc testnet * switch to cosmos-hub * IBC transfer docs
1 parent 6fd3fec commit e5f27ca

File tree

2 files changed

+43
-16
lines changed

2 files changed

+43
-16
lines changed

README.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,14 @@ make install
3333
2. Create your chain using the `spawn` command and customize it to your needs!
3434

3535
```shell
36+
GITHUB_USERNAME=rollchains
37+
3638
spawn new rollchain \
37-
--bech32=roll # the prefix for addresses \
38-
--denom=uroll # the coin denomination to create \
39-
--bin=rolld # the name of the binary \
40-
--disabled=cosmwasm # modules to disable. By default all modules are enabled [tokenfactory, PoA, globalfee, cosmwasm] \
41-
--org={your_github_username} # the github username or organization to use for the module imports
39+
--bech32=roll `# the prefix for addresses` \
40+
--denom=uroll `# the coin denomination to create` \
41+
--bin=rolld `# the name of the binary` \
42+
--disabled=cosmwasm `# modules to disable. By default all modules are enabled [tokenfactory, PoA, globalfee, cosmwasm]` \
43+
--org=${GITHUB_USERNAME} `# the github username or organization to use for the module imports`
4244
```
4345

4446
> *NOTE:* `spawn` creates a ready to use repository complete with `git` and GitHub CI. It can be quickly pushed to a new repository getting you and your team up and running quickly.
@@ -64,7 +66,23 @@ rolld tx bank send acc0 $(rolld keys show acc1 -a) 1337uroll --chain-id=chainid-
6466
rolld q bank balances $(rolld keys show acc1 -a)
6567
```
6668

67-
5. Push your new chain to a new repository
69+
5. (optional) Send an IBC transaction
70+
71+
```shell
72+
# submit a cross chain transfer from acc0 to the other address
73+
rolld tx ibc-transfer transfer transfer channel-0 cosmos1hj5fveer5cjtn4wd6wstzugjfdxzl0xpxvjjvr 7uroll --from=acc0 --chain-id=chainid-1 --yes
74+
75+
# Query the other side to confirm it went through
76+
sleep 10
77+
78+
curl -X POST -H "Content-Type: application/json" -d '{
79+
"chain_id": "localcosmos-1",
80+
"action": "query",
81+
"cmd": "bank balances cosmos1hj5fveer5cjtn4wd6wstzugjfdxzl0xpxvjjvr"
82+
}' http://127.0.0.1:8080/
83+
```
84+
85+
6. Push your new chain to a new repository
6886

6987
> [Create a new repository on GitHub](https://github.com/new)
7088

simapp/chains/ibc-testnet.json

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,28 @@
7676
}
7777
},
7878
{
79-
"name": "terra",
80-
"chain_id": "localterra-1",
81-
"binary": "terrad",
82-
"bech32_prefix": "terra",
83-
"denom": "uluna",
79+
"name": "gaia",
80+
"chain_id": "localcosmos-1",
81+
"denom": "uatom",
82+
"binary": "gaiad",
83+
"bech32_prefix": "cosmos",
8484
"docker_image": {
85-
"version": "v2.3.4"
85+
"version": "v9.1.0"
8686
},
87-
"block_time": "6s",
88-
"encoding-options": ["wasm"],
89-
"gas_prices": "0uluna",
87+
"block_time": "1000ms",
88+
"gas_prices": "0%DENOM%",
9089
"gas_adjustment": 2.0,
91-
"ibc_paths": ["ibc-connection-1"]
90+
"ibc_paths": ["ibc-connection-1"],
91+
"genesis": {
92+
"accounts": [
93+
{
94+
"name": "acc0",
95+
"address": "cosmos1hj5fveer5cjtn4wd6wstzugjfdxzl0xpxvjjvr",
96+
"amount": "10000000%DENOM%",
97+
"mnemonic": "decorate bright ozone fork gallery riot bus exhaust worth way bone indoor calm squirrel merry zero scheme cotton until shop any excess stage laundry"
98+
}
99+
]
100+
}
92101
}
93102
]
94103
}

0 commit comments

Comments
 (0)