Skip to content

fix: da tutorials #580

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,6 @@ function sidebarHome() {
text: "How To Guides",
collapsed: true,
items: [
{
text: "Use Ignite to create a Rollkit app",
link: "/guides/ignite-rollkit",
},
{
text: "Run a Full Node",
link: "/guides/full-node",
Expand Down
24 changes: 13 additions & 11 deletions tutorials/da/celestia-da.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ import constants from '../../.vitepress/constants/constants.js'

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.

Before proceeding, ensure that you have completed the [quick start](/tutorials/quick-start) tutorial, which covers installing the rollkit CLI and running a rollup against a local DA network.
Before proceeding, ensure that you have completed the [gm-world](/tutorials/gm-world) tutorial, which covers installing the Testapp CLI and running a rollup against a local DA network.

## 🪶 Running a Celestia light node

Before you can start your rollup node, you need to initiate, sync, and fund a light node on one of Celestia's networks on a compatible version:

Find more information on how to run a light node in the [Celestia documentation](https://celestia.org/run-a-light-node/#start-up-a-node).

::: code-group

```sh-vue [Arabica]
Expand Down Expand Up @@ -44,18 +46,18 @@ After successfully starting a light node, it's time to start posting the batches

## 🏗️ Prerequisites {#prerequisites}

- `rollkit` CLI installed from the [quick start](/tutorials/quick-start) tutorial.
- `gmd` CLI installed from the [gm-world](/tutorials/gm-world) tutorial.

## 🛠️ Configuring flags for DA

Now that we are posting to the Celestia DA instead of the local DA, the `rollkit start` command requires three DA configuration flags:

- `--rollkit.da_start_height`
- `--rollkit.da_auth_token`
- `--rollkit.da_namespace`
- `--rollkit.da.start_height`
- `--rollkit.da.auth_token`
- `--rollkit.da.namespace`

:::tip
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.
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.
:::

Let's determine which values to provide for each of them.
Expand Down Expand Up @@ -130,11 +132,11 @@ DA_ADDRESS=http://localhost:26658
Finally, let's initiate the rollup node with all the flags:

```bash
rollkit start \
--rollkit.aggregator \
--rollkit.da_auth_token $AUTH_TOKEN \
--rollkit.da_namespace $DA_NAMESPACE \
--rollkit.da_start_height $DA_BLOCK_HEIGHT \
gmd start \
--rollkit.node.aggregator \
--rollkit.da.auth_token $AUTH_TOKEN \
--rollkit.da.namespace $DA_NAMESPACE \
--rollkit.da.start_height $DA_BLOCK_HEIGHT \
--rollkit.da.address $DA_ADDRESS
```

Expand Down
3 changes: 1 addition & 2 deletions tutorials/da/local-da.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ Start your rollup node with the following command, ensuring to include the DA ad

```sh [gm-world Chain]
{BINARY} start \
--rollkit.aggregator \
--rollkit.node.aggregator \
--rollkit.da.address http://localhost:7980 \
--rollkit.sequencer_rollup_id gmd
```

:::
Expand Down