Skip to content

Commit 34eb37e

Browse files
committed
s/ts-relayer/rly/g
1 parent e3d63fb commit 34eb37e

File tree

1 file changed

+91
-42
lines changed

1 file changed

+91
-42
lines changed

tutorials/gm-world-tia-gas.md

Lines changed: 91 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -125,66 +125,115 @@ Next, we're going to create an IBC connection between our rollup and the Celesti
125125
Install the IBC relayer:
126126

127127
```bash
128-
npm i -g @confio/relayer
128+
git clone --depth 1 --branch v2.5.2 https://github.com/cosmos/relayer.git /tmp/relayer
129+
cd /tmp/relayer
130+
make install
129131
```
130132

131133
After installation, `ibc-setup` and `ibc-relayer` executables should be available.
132134

133135
Configure the relayer:
134136

135137
```bash
136-
mkdir -p "$HOME/.ibc-setup"
137-
138-
echo $'version: 1
139-
138+
rly config init
139+
140+
mkdir -p /home/assafmo/.relayer/keys/{gm,mocha-4}
141+
142+
echo $'global:
143+
api-listen-addr: :5183
144+
timeout: 10s
145+
memo: ""
146+
light-cache-size: 20
147+
log-level: info
148+
ics20-memo-limit: 0
149+
max-receiver-size: 150
140150
chains:
141-
gm_rollup:
142-
chain_id: gm
143-
prefix: gm
144-
gas_price: 0stake
145-
hd_path: m/44\'/118\'/0\'/0/0
146-
ics20_port: transfer
147-
estimated_block_time: 1000
148-
estimated_indexer_time: 250
149-
rpc:
150-
- http://localhost:26657
151-
mocha:
152-
chain_id: mocha-4
153-
prefix: celestia
154-
gas_price: 0.02utia
155-
hd_path: m/44\'/118\'/0\'/0/0
156-
ics20_port: transfer
157-
estimated_block_time: 7000
158-
estimated_indexer_time: 250
159-
rpc:
160-
- https://rpc-mocha.pops.one:443
161-
' > "$HOME/.ibc-setup/registry.yaml"
162-
163-
echo 'src: gm_rollup
164-
dest: mocha
165-
mnemonic: regret resist either bid upon yellow leaf early symbol win market vital
166-
' > "$HOME/.ibc-setup/app.yaml"
151+
gm_rollup:
152+
type: cosmos
153+
value:
154+
key-directory: /home/assafmo/.relayer/keys/gm
155+
key: default
156+
chain-id: gm
157+
rpc-addr: http://localhost:26657
158+
account-prefix: gm
159+
keyring-backend: test
160+
gas-adjustment: 1.2
161+
gas-prices: 0.025stake
162+
min-gas-amount: 0
163+
max-gas-amount: 0
164+
debug: false
165+
timeout: 20s
166+
block-timeout: ""
167+
output-format: json
168+
sign-mode: direct
169+
extra-codecs: []
170+
coin-type: 118
171+
signing-algorithm: ""
172+
broadcast-mode: batch
173+
min-loop-duration: 0s
174+
extension-options: []
175+
feegrants: null
176+
mocha:
177+
type: cosmos
178+
value:
179+
key-directory: /home/assafmo/.relayer/keys/mocha-4
180+
key: default
181+
chain-id: mocha-4
182+
rpc-addr: https://rpc-mocha.pops.one:443
183+
account-prefix: celestia
184+
keyring-backend: test
185+
gas-adjustment: 1.2
186+
gas-prices: 0.02utia
187+
min-gas-amount: 0
188+
max-gas-amount: 0
189+
debug: false
190+
timeout: 20s
191+
block-timeout: ""
192+
output-format: json
193+
sign-mode: direct
194+
extra-codecs: []
195+
coin-type: 118
196+
signing-algorithm: ""
197+
broadcast-mode: batch
198+
min-loop-duration: 0s
199+
extension-options: []
200+
feegrants: null
201+
paths: {}
202+
' > "$HOME/.relayer/config/config.yaml"
203+
204+
rly keys restore gm_rollup a "regret resist either bid upon yellow leaf early symbol win market vital"
205+
rly keys restore mocha a "regret resist either bid upon yellow leaf early symbol win market vital"
167206
```
168207

169208
Get the relayer accounts:
170209

171210
```bash
172-
ibc-setup keys list
211+
rly address gm_rollup a # => gm1jqevcsld0dqpjp3csfg7alkv3lehvn8uswknrc
212+
rly address mocha a # => celestia1jqevcsld0dqpjp3csfg7alkv3lehvn8u04ymsu
213+
```
214+
215+
Note: These accounts should always be the same because of the hardcoded mnemonics that we've used in `rly keys restore`.
173216

174-
# Output should be:
175-
# gm_rollup: gm1jqevcsld0dqpjp3csfg7alkv3lehvn8uswknrc
176-
# mocha: celestia1jqevcsld0dqpjp3csfg7alkv3lehvn8u04ymsu
217+
Fund the relayer on our rollup:
218+
219+
```bash
220+
gmd tx bank send gm-key-2 gm1jqevcsld0dqpjp3csfg7alkv3lehvn8uswknrc 10000000stake --keyring-backend test --chain-id gm --fees 5000stake -y
177221
```
178222

179-
Note: These accounts should always be the same because of the hardcoded mnemonic that we've set in `$HOME/.ibc-setup/app.yaml`.
223+
Fund the relayer on Celestia:
180224

181-
Fund the relayer:
225+
https://docs.celestia.org/nodes/mocha-testnet#mocha-testnet-faucet
182226

183-
- On Celestia: https://docs.celestia.org/nodes/mocha-testnet#mocha-testnet-faucet
184-
- On our rollup:
185-
```bash
186-
gmd tx bank send gm-key-2 gm1jqevcsld0dqpjp3csfg7alkv3lehvn8uswknrc 10000000stake --keyring-backend test --chain-id gm --fees 5000stake -y
187-
```
227+
```bash
228+
rly q balance mocha a
229+
```
230+
231+
Verify the relayer is funded:
232+
233+
```bash
234+
rly q balance mocha a # => address {celestia1jqevcsld0dqpjp3csfg7alkv3lehvn8u04ymsu} balance {10000000utia}
235+
rly q balance gm_rollup a # => address {gm1jqevcsld0dqpjp3csfg7alkv3lehvn8uswknrc} balance {10000000stake}
236+
```
188237

189238
## 💸 Transactions {#transactions}
190239

0 commit comments

Comments
 (0)