You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 7, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: guides/use-tia-for-gas.md
+8-85Lines changed: 8 additions & 85 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,14 @@
1
-
---
2
-
description: Build a sovereign rollup using Rollkit CLI and a local DA network, with TIA as the gas token.
3
-
---
4
-
5
1
# How to use IBC token (TIA) as gas token in your rollup
6
2
7
3
## 🌞 Introduction {#introduction}
8
4
9
5
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](/guides/quick-start.md), which uses a native rollup token for gas, this tutorial demonstrates how to integrate an IBC-enabled token, TIA, as the gas token within the rollup, providing a deeper exploration of sovereign rollup development.
10
6
11
-
We will cover:
7
+
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.
12
8
13
-
- Building and configuring a Cosmos-SDK application-specific rollup blockchain.
14
-
- Posting rollup data to a Data Availability (DA) network.
15
-
- Executing transactions using TIA as the gas token (the end goal).
9
+
## Requirements {#requirements}
16
10
17
-
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.
11
+
Before proceeding, ensure that you have completed the [build a chain](/guides/gm-world.md) tutorial, which covers setting-up, building and running your chain.
18
12
19
13
<!-- markdownlint-disable MD033 -->
20
14
<scriptsetup>
@@ -28,91 +22,20 @@ import constants from '../.vitepress/constants/constants.js'
28
22
29
23
<!-- markdownlint-enable MD033 -->
30
24
31
-
## 🛠️ Dependencies {#dependencies}
32
-
33
-
Rollkit uses the [Go programming language](https://go.dev/dl/). Here's how to install it:
This script builds and runs the node, now listening on port `7980`.
73
-
74
-
## 🏗️ Building Your Sovereign Rollup {#building-your-sovereign-rollup}
75
-
76
-
With the local DA network running, let’s prepare your rollup blockchain.
77
-
78
-
To make it simple, we will download a repository with a `gm-world` rollup that includes an `init.sh` script to handle all the setup for you.
79
-
80
-
Download and build a `gm-world` rollup with an interactive script in a new terminal:
81
-
82
-
::: warning
83
-
Ensure the `jq` command line tool is installed before proceeding. Install it using `sudo apt-get install jq` on Ubuntu or `brew install jq` on macOS.
84
-
:::
85
-
::: tip
86
-
If you get errors of `gmd` not found, you may need to add the `go/bin` directory to your PATH. You can do this by running `export PATH=$PATH:$HOME/go/bin` and then running the `init.sh` script manually again.
87
-
:::
88
-
89
-
```bash
90
-
curl -sSL https://rollkit.dev/install-gm-rollup.sh | sh
Change to the `gm` directory and initialize the rollkit toml configuration:
27
+
Your local DA network is already running if you followed the [quick start guide](/guides/quick-start.md) or the [build a chain](/guides/gm-world.md). If not, you can start it with the following command:
96
28
97
29
```bash
98
-
cd ./gm && rollkit toml init
99
-
```
100
-
101
-
Edit the `rollkit.toml` file to include the following configuration:
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:
0 commit comments