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
Copy file name to clipboardExpand all lines: tutorials/celestia-da.md
+27-25Lines changed: 27 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Deploying a rollup to Celestia
1
+
# Deploying a rollup to Celestia
2
2
3
3
<!-- markdownlint-disable MD033 -->
4
4
<scriptsetup>
@@ -9,7 +9,7 @@ import constants from '../.vitepress/constants/constants.js'
9
9
10
10
This tutorial serves as a comprehensive guide for deploying your rollup on Celestia's data availability (DA) network. From the Rollkit perspective, there's no difference in posting blocks to Celestia's testnets or Mainnet Beta.
11
11
12
-
Before proceeding, ensure that you have completed the [GM world rollup](/tutorials/gm-world) tutorial, which covers setting up a local sovereign gm-world rollup and connecting it to a local DA node.
12
+
Before proceeding, ensure that you have completed the [GM world rollup](/tutorials/gm-world) tutorial, which covers setting up a local sovereign `gm-world` rollup and connecting it to a local DA node.
13
13
14
14
## 🪶 Running a Celestia light node
15
15
@@ -21,11 +21,11 @@ Before you can start your rollup node, you need to initiate, sync, and possibly
21
21
22
22
The main difference lies in how you fund your wallet address: using testnet TIA or [TIA](https://docs.celestia.org/learn/tia#overview-of-tia) for Mainnet Beta.
23
23
24
-
After successfully starting a light node, it's time to start posting the batches of blocks of data that your rollup generates.
24
+
After successfully starting a light node, it's time to start posting the batches of blocks of data that your rollup generates to Celestia.
25
25
26
-
## 🏗️ Prerequisites {#prerequisites}
26
+
## 🏗️ Prerequisites {#prerequisites}
27
27
28
-
From the [GM world rollup](/tutorials/gm-world) tutorial, you should already have the `rollkit` CLI and `ignite` installed.
28
+
From the [GM world rollup](/tutorials/gm-world) tutorial, you should already have the `rollkit` CLI and `ignite`CLI installed.
29
29
30
30
## 🏗️ Building your sovereign rollup {#building-your-sovereign-rollup}
Next, move to the `gm` directory and add the Rollkit app:
46
+
Add the Rollkit app:
47
47
48
48
```bash
49
49
ignite rollkit add
@@ -57,17 +57,15 @@ ignite rollkit init
57
57
58
58
This will create a `$HOME/.gm` directory with the chain configuration files.
59
59
60
+
## 🧰 Configuring your sovereign rollup {#configuring-your-sovereign-rollup}
60
61
61
-
## 🧰 Configuring your rollup {#configuring-your-rollup}
62
-
63
-
64
-
From inside the `$HOME/gm` directory, generate a rollkit.toml file by running:
62
+
From the `$HOME/gm` directory, generate a `rollkit.toml` file by running:
65
63
66
64
```bash
67
65
rollkit toml init
68
66
```
69
67
70
-
The output should be similar to this (our `$HOME` is `/root`):
68
+
The output should be similar to this (`$HOME` in the below example is `/root`):
71
69
72
70
```
73
71
Found rollup entrypoint: /root/gm/cmd/gmd/main.go, adding to rollkit.toml
@@ -77,55 +75,59 @@ Initialized rollkit.toml file in the current directory.
77
75
78
76
## 🛠️ Configuring flags for DA
79
77
80
-
Now we're prepared to initiate our rollup and establish a connection with the Celestia light node. The `rollkit start` command requires three DA configuration flags:
78
+
Now, we're prepared to initiate our rollup and establish a connection with the Celestia light node. The `rollkit start` command requires three DA configuration flags:
81
79
82
80
-`--rollkit.da_start_height`
83
81
-`--rollkit.da_auth_token`
84
82
-`--rollkit.da_namespace`
85
83
84
+
Let's determine which values to provide for each of them.
85
+
86
+
First, let's query the DA layer start height using an RPC endpoint provided by Celestia's documentation.
87
+
86
88
::: tip
87
89
Optionally, you could also set the `--rollkit.da_block_time` flag. This should be set to the finality time of the DA layer, not its actual block time, as Rollkit does not handle reorganization logic. The default value is 15 seconds.
88
90
:::
89
91
90
92
Let's determine what to provide for each of them.
91
93
92
-
First, let's query the DA Layer start height using an RPC endpoint provided by Celestia Labs. For Mocha testnet it would be - [https://rpc-mocha.pops.one/block](https://rpc-mocha.pops.one/block), and for mainnet beta - [https://rpc.lunaroasis.net/block](https://rpc.lunaroasis.net/block)
`00000000000000000000000000000000000000000008e5f679bf7116cb` is a default namespace for Mocha testnet. You can set your own by using a command
128
-
similar to this (or, you could get creative 😎):
130
+
`00000000000000000000000000000000000000000008e5f679bf7116cb` is a default namespace for Mocha testnet. You can set your own by using a command similar to this (or, you could get creative 😎):
129
131
130
132
```bash
131
133
openssl rand -hex 10
@@ -136,9 +138,9 @@ Replace the last 20 characters (10 bytes) in `0000000000000000000000000000000000
136
138
[Learn more about namespaces](https://docs.celestia.org/developers/node-tutorial#namespaces).
137
139
:::
138
140
139
-
## 🔥 Running your rollup connected to a Celestia light node
141
+
## 🔥 Running your rollup connected to Celestia light node
140
142
141
-
Now let's run our rollup node with all DA flags:
143
+
Finally, let's initiate the rollup node with all the flags:
142
144
143
145
```bash
144
146
rollkit start \
@@ -149,12 +151,12 @@ rollkit start \
149
151
--minimum-gas-prices="0.025stake"
150
152
```
151
153
152
-
Now, the rollup is running and posting blocks (aggregated in batches) to Celestia. You can view your rollup by finding your namespace or account on [Mocha testnet](https://docs.celestia.org/nodes/mocha-testnet#explorers) or [mainnet beta](https://docs.celestia.org/nodes/mainnet#explorers) explorers.
154
+
Now, the rollup is running and posting blocks (aggregated in batches) to Celestia. You can view your rollup by using your namespace or account on [Mocha testnet](https://docs.celestia.org/nodes/mocha-testnet#explorers) or [Mainnet Beta](https://docs.celestia.org/nodes/mainnet#explorers) explorers.
153
155
154
156
::: info
155
-
For details on configuring gas prices specifically for the DA network, see our[DA Network Gas Price Guide](/guides/gas-price). This is separate from the `--minimum-gas-prices="0.025stake"` setting, which is used for rollup network operations.
157
+
For details on configuring gas prices, specifically for the Celestia network, see the[DA Network Gas Price Guide](/guides/gas-price). The Celestia gas price is separate from the `--minimum-gas-prices="0.025stake"` setting, which is used for the rollup network operations.
156
158
:::
157
159
158
160
## 🎉 Next steps
159
161
160
-
Congratulations! You've built a local rollup that posts to Celestia's testnets or Mainnet Beta. Well done! Now, go forth and build something great! Good luck!
162
+
Congratulations! You've built a local rollup that posts data to Celestia's DA layer. Well done! Now, go forth and build something great! Good luck!
0 commit comments