Skip to content

Commit 8a77c44

Browse files
committed
Fix stuff
1 parent 90a1a83 commit 8a77c44

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

tutorials/gm-world-tia-gas.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ description: Build a sovereign rollup using only Rollkit CLI and a local DA netw
66

77
## 🌞 Introduction {#introduction}
88

9-
This tutorial will guide you through building a sovereign `gm-world` rollup using Rollkit, with `TIA` as the gas token. Unlike the [quick start guide](https://rollkit.dev/tutorials/quick-start), this tutorial provides a more practical approach to understanding sovereign rollup development using `TIA` as the gas token.
9+
This tutorial will guide you through building a sovereign `gm-world` rollup using Rollkit, with TIA as the gas token. Unlike the [quick start guide](https://rollkit.dev/tutorials/quick-start), this tutorial provides a more practical approach to understanding sovereign rollup development using TIA as the gas token.
1010

1111
We will cover:
1212

1313
- Building and configuring a Cosmos-SDK application-specific rollup blockchain.
1414
- Posting rollup data to a Data Availability (DA) network.
15-
- Executing transactions using `TIA` as the gas token (the end goal).
15+
- Executing transactions using TIA as the gas token (the end goal).
1616

1717
No prior understanding of the build process is required, just that it utilizes the [Cosmos SDK](https://github.com/cosmos/cosmos-sdk) for blockchain applications.
1818

@@ -50,7 +50,7 @@ Learn to run a local DA network, designed for educational purposes, on your mach
5050
To set up a local DA network node:
5151

5252
```bash-vue
53-
curl -sSL https://rollkit.dev/install-local-da.sh | bash -s {{constants.localDALatestTag}}
53+
(cd /tmp && curl -sSL https://rollkit.dev/install-local-da.sh | bash -s {{constants.localDALatestTag}})
5454
```
5555

5656
This script builds and runs the node, now listening on port `7980`.
@@ -71,7 +71,7 @@ If you get errors of `gmd` not found, you may need to add the `go/bin` directory
7171
:::
7272

7373
```bash
74-
cd $HOME && bash -c "$(curl -sSL https://rollkit.dev/install-gm-rollup.sh)"
74+
(cd /tmp && bash -c "$(curl -sSL https://rollkit.dev/install-gm-rollup.sh)")
7575
```
7676

7777
## 🚀 Starting your rollup {#start-your-rollup}
@@ -82,7 +82,7 @@ Start the rollup, posting to the local DA network:
8282
gmd start --rollkit.aggregator --rollkit.da_address http://localhost:7980 --minimum-gas-prices="0.02ibc/C3E53D20BC7A4CC993B17C7971F8ECD06A433C10B6A96F4C4C3714F0624C56DA,0.025stake"
8383
```
8484

85-
Note that we specified the gas token to be IBC `TIA`. We still haven't made an IBC connection to Celestia's Mocha testnet, however, if we assume our first channel will be an ICS-20 transfer channel to Celestia, we can already calculate the token denom using this formula:
85+
Note that we specified the gas token to be IBC TIA. We still haven't made an IBC connection to Celestia's Mocha testnet, however, if we assume our first channel will be an ICS-20 transfer channel to Celestia, we can already calculate the token denom using this formula:
8686

8787
```js
8888
"ibc/" + toHex(sha256(toUtf8("transfer/channel-0/utia"))).toUpperCase();
@@ -135,12 +135,12 @@ Configure the relayer:
135135
```bash
136136
rly config init
137137

138-
mkdir -p $HOME/.relayer/keys/{gm,mocha-4}
138+
mkdir -p "$HOME/.relayer/keys/{gm,mocha-4}"
139139

140-
echo $'global:
140+
echo "global:
141141
api-listen-addr: :5183
142142
timeout: 10s
143-
memo: ""
143+
memo: ''
144144
light-cache-size: 20
145145
log-level: info
146146
ics20-memo-limit: 0
@@ -149,7 +149,7 @@ chains:
149149
gm_rollup:
150150
type: cosmos
151151
value:
152-
key-directory: /home/assafmo/.relayer/keys/gm
152+
key-directory: '$HOME/.relayer/keys/gm'
153153
key: a
154154
chain-id: gm
155155
rpc-addr: http://localhost:26657
@@ -161,20 +161,20 @@ chains:
161161
max-gas-amount: 0
162162
debug: false
163163
timeout: 20s
164-
block-timeout: ""
164+
block-timeout: ''
165165
output-format: json
166166
sign-mode: direct
167167
extra-codecs: []
168168
coin-type: 118
169-
signing-algorithm: ""
169+
signing-algorithm: ''
170170
broadcast-mode: batch
171171
min-loop-duration: 0s
172172
extension-options: []
173173
feegrants: null
174174
mocha:
175175
type: cosmos
176176
value:
177-
key-directory: /home/assafmo/.relayer/keys/mocha-4
177+
key-directory: '$HOME/.relayer/keys/mocha-4'
178178
key: a
179179
chain-id: mocha-4
180180
rpc-addr: https://celestia-testnet-rpc.publicnode.com:443
@@ -186,12 +186,12 @@ chains:
186186
max-gas-amount: 0
187187
debug: false
188188
timeout: 20s
189-
block-timeout: ""
189+
block-timeout: ''
190190
output-format: json
191191
sign-mode: direct
192192
extra-codecs: []
193193
coin-type: 118
194-
signing-algorithm: ""
194+
signing-algorithm: ''
195195
broadcast-mode: batch
196196
min-loop-duration: 0s
197197
extension-options: []
@@ -203,9 +203,9 @@ paths:
203203
dst:
204204
chain-id: mocha-4
205205
src-channel-filter:
206-
rule: ""
206+
rule: ''
207207
channel-list: []
208-
' > "$HOME/.relayer/config/config.yaml"
208+
" > "$HOME/.relayer/config/config.yaml"
209209

210210
rly keys restore gm_rollup a "regret resist either bid upon yellow leaf early symbol win market vital"
211211
rly keys restore mocha a "regret resist either bid upon yellow leaf early symbol win market vital"
@@ -226,7 +226,7 @@ Fund the relayer on our rollup:
226226
gmd tx bank send gm-key-2 gm1jqevcsld0dqpjp3csfg7alkv3lehvn8uswknrc 10000000stake --keyring-backend test --chain-id gm --fees 5000stake -y
227227
```
228228

229-
Fund the relayer on the Celestia Mocha testnet:
229+
Fund the relayer on the Celestia Mocha testnet:
230230

231231
[Mocha Testnet Faucet Instructions](https://docs.celestia.org/nodes/mocha-testnet#mocha-testnet-faucet).
232232

@@ -262,16 +262,16 @@ Start the relayer:
262262
rly start gm_mocha-4
263263
```
264264

265-
Transfer `TIA` from Mocha to our rollup:
265+
Transfer TIA from Mocha to our rollup:
266266

267267
```bash
268268
ACCOUNT_ON_ROLLUP="$(gmd keys show -a --keyring-backend test gm-key-2)"
269-
CHANNEL_ID_ON_MOCHA="$(rly q channels mocha gm_rollup | jq -r .channel_id)"
269+
CHANNEL_ID_ON_MOCHA="$(rly q channels mocha gm_rollup | jq -r .channel_id | tail -1)"
270270

271271
rly tx transfer mocha gm_rollup 1000000utia "$ACCOUNT_ON_ROLLUP" "$CHANNEL_ID_ON_MOCHA" --path gm_mocha-4
272272
```
273273

274-
Verify the account on our rollup is funded with IBC `TIA`:
274+
Verify the account on our rollup is funded with IBC TIA:
275275

276276
```bash
277277
gmd q bank balances "$(gmd keys show -a --keyring-backend test gm-key-2)"
@@ -287,7 +287,7 @@ gmd q bank balances "$(gmd keys show -a --keyring-backend test gm-key-2)"
287287

288288
## 💸 Transactions {#transactions}
289289

290-
Finally, send a transaction on our rollup using IBC `TIA` as the gas token:
290+
Finally, send a transaction on our rollup using IBC TIA as the gas token:
291291

292292
```bash
293293
ACCOUNT_ON_ROLLUP="$(gmd keys show -a --keyring-backend test gm-key-2)"
@@ -301,4 +301,4 @@ gmd q tx "$TX_HASH" --output json | jq .code # => 0
301301

302302
## 🎉 Next steps
303303

304-
Congratulations! You've built a local rollup that posts to a local DA network and uses `TIA` as the gas token!
304+
Congratulations! You've built a local rollup that posts to a local DA network and uses TIA as the gas token!

0 commit comments

Comments
 (0)