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: guides/reset-state.md
+42-22Lines changed: 42 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ Some reason you might need to reset the state of your chain are:
14
14
15
15
## Prerequisites
16
16
17
-
In order to complete this guide, you will need to have completed either the [quick start tutorial](/tutorials/quick-start.md) or the [build our chain tutorial](/tutorials/wordle.md).
17
+
In order to complete this guide, you will need to have completed either the [quick start tutorial](/tutorials/quick-start.md) or the [build our chain tutorial](/tutorials/gm-world.md).
18
18
19
19
## Quick Start
20
20
@@ -50,64 +50,84 @@ ${BINARY} unsafe-clean
50
50
51
51
When you launch your chain again with `rollkit start` your `.rollkit` directory will be re-created and you will see your chain starting at block height 1 again.
52
52
53
-
## Wordle
53
+
## gm-world
54
54
55
-
When you ran your wordle chain in the [build your chain tutorial](/tutorials/wordle.md), it created a `.wordle` directory.
55
+
When you ran your gm-world chain in the [build your chain tutorial](/tutorials/gm-world.md), it created a `.gm` directory in your `$HOME` directory.
The directories you need to delete to reset your state are in the `.wordle/data` directory.
117
+
The directories you need to delete to reset your state are in the `./data` directory.
100
118
101
119
```bash
102
-
$HOME/.wordle/data/application.db
103
-
$HOME/.wordle/data/rollkit
104
-
$HOME/.wordle/data/snapshots
120
+
$HOME/.gm/data/application.db
121
+
$HOME/.gm/data/rollkit
122
+
$HOME/.gm/data/snapshots
123
+
$HOME/.gm/data/cache
124
+
105
125
```
106
126
107
127
You can delete them with the following command:
108
128
109
129
```bash
110
-
rollkit tendermint unsafe-reset-all
130
+
gmd tendermint unsafe-reset-all
111
131
```
112
132
113
-
When you launch your chain again with your `rollkit start <flags>` command, these data directories will be re-created and you will see your chain starting at block height 1 again.
133
+
When you launch your chain again with your `gmd start <flags>` command, these data directories will be re-created and you will see your chain starting at block height 1 again.
Copy file name to clipboardExpand all lines: tutorials/da/local-da.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ import constants from '../../.vitepress/constants/constants.js'
9
9
10
10
This tutorial serves as a comprehensive guide for using the [local-da](https://github.com/rollkit/local-da) with your chain.
11
11
12
-
Before proceeding, ensure that you have completed the [quick start](/tutorials/quick-start) or [build a chain](/tutorials/wordle) tutorial, which covers installing the rollkit CLI, building your chain, and running your chain.
12
+
Before proceeding, ensure that you have completed the [quick start](/tutorials/quick-start) or [build a chain](/tutorials/gm-world.md) tutorial, which covers installing the rollkit CLI, building your chain, and running your chain.
13
13
14
14
## Setting Up a Local DA Network
15
15
@@ -35,11 +35,11 @@ Start your rollup node with the following command, ensuring to include the DA ad
Copy file name to clipboardExpand all lines: tutorials/da/overview.md
+1-4Lines changed: 1 addition & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,6 @@ The [DA interface](https://github.com/rollkit/rollkit/blob/main/core/da/da.go#L1
19
19
```go
20
20
// DA defines very generic interface for interaction with Data Availability layers.
21
21
typeDAinterface {
22
-
// MaxBlobSize returns the max blob size
23
-
MaxBlobSize(ctx context.Context) (uint64, error)
24
-
25
22
// Get returns Blob for each given ID, or an error.
26
23
//
27
24
// Error should be returned if ID is not formatted properly, there is no Blob for given ID or any other client-level
@@ -61,7 +58,7 @@ type DA interface {
61
58
62
59
## Mock DA {#mock-da}
63
60
64
-
You might have noticed that we did not define any DA layer during the [quick start](../quick-start.md) or [build a chain](../wordle.md) tutorials. This is because we used a mock DA layer that is built into Rollkit.
61
+
You might have noticed that we did not define any DA layer during the [quick start](../quick-start.md) or [build a chain](/tutorials/gm-world.md) tutorials. This is because we used a mock DA layer that is built into Rollkit.
65
62
66
63
If you revisit the logs from those tutorials, you will see one of the first lines being:
This will allow us to focus on how we can run the wordle chain with Docker Compose.
49
+
This will allow us to focus on how we can run the gm-world chain with Docker Compose.
50
50
51
51
### 🐳 Dockerfile {#dockerfile}
52
52
53
-
First, we need to create a Dockerfile for our wordle chain. Create a new file called `Dockerfile` in the root of the `wordle` directory and add the following code:
53
+
First, we need to create a Dockerfile for our gm-world chain. Create a new file called `Dockerfile` in the root of the `gm` directory and add the following code:
This Dockerfile sets up the environment to build the chain and run the wordle node. It then sets up the runtime environment to run the chain. This allows you as the developer to modify any files, and then simply rebuild the Docker image to run the new chain.
128
+
This Dockerfile sets up the environment to build the chain and run the gm-world node. It then sets up the runtime environment to run the chain. This allows you as the developer to modify any files, and then simply rebuild the Docker image to run the new chain.
129
129
130
130
Build the docker image by running the following command:
131
131
132
132
```bash
133
-
docker build -t wordle.
133
+
docker build -t gm-world.
134
134
```
135
135
136
136
You can then see the built image by running:
@@ -143,23 +143,23 @@ You should see the following output:
143
143
144
144
```bash
145
145
REPOSITORY TAG IMAGE ID CREATED SIZE
146
-
wordle latest 5d3533c1ea1c 8 seconds ago 443MB
146
+
gm-world latest 5d3533c1ea1c 8 seconds ago 443MB
147
147
```
148
148
149
149
### 🐳 Docker Compose file {#docker-compose-file}
150
150
151
151
Next we need to create our `compose.yaml` file for docker compose to use.
152
152
153
-
In the root of the `wordle` directory, create a new file called `compose.yaml` and add the following code:
153
+
In the root of the `gm` directory, create a new file called `compose.yaml` and add the following code:
154
154
155
155
```yml-vue
156
156
services:
157
-
# Define the wordle chain service
158
-
wordle:
157
+
# Define the gm-world chain service
158
+
gm-world:
159
159
# Set the name of the docker container for ease of use
160
-
container_name: wordle
160
+
container_name: gm-world
161
161
# Use the image we just built
162
-
image: wordle
162
+
image: gm-world
163
163
# Used for networking between the two services
164
164
network_mode: host
165
165
# The command config is used for launching the chain once the Docker container is running
@@ -172,7 +172,7 @@ services:
172
172
"--rollkit.sequencer_address",
173
173
"0.0.0.0:50051",
174
174
"--rollkit.sequencer_rollup_id",
175
-
"wordle",
175
+
"gm",
176
176
]
177
177
# Ensures the local-da service is up and running before starting the chain
# Set the name of the docker container for ease of use
199
199
container_name: local-sequencer
200
-
# Start the sequencer with the listen all flag and the rollup id set to wordle
201
-
command: ["-listen-all", "-rollup-id=wordle"]
200
+
# Start the sequencer with the listen all flag and the rollup id set to gm
201
+
command: ["-listen-all", "-rollup-id=gm"]
202
202
# Publish the ports to connect
203
203
ports:
204
204
- "50051:50051"
205
205
```
206
206
207
-
We now have all we need to run the wordle chain and connect to a local DA node.
207
+
We now have all we need to run the gm-world chain and connect to a local DA node.
208
208
209
-
### 🚀 Run Wordle chain {#run-wordle-chain}
209
+
### 🚀 Run gm-world chain {#run-gm-world-chain}
210
210
211
-
Run your wordle chain by running the following command:
211
+
Run your gm-world chain by running the following command:
212
212
213
213
```bash
214
214
docker compose up
215
215
```
216
216
217
217
You'll see logs of your chain being output.
218
218
219
-
Congratulations! You have successfully run the wordle chain with Docker Compose.
219
+
Congratulations! You have successfully run the gm-world chain with Docker Compose.
220
220
221
221
## 🚀 Interacting with the chain {#interacting-with-the-chain}
222
222
223
223
Since we are using docker images, we can interact with the chain by entering the docker container.
224
224
225
-
You can see the docker containers running with the wordle chain and the local DA node by running the following command:
225
+
You can see the docker containers running with the gm-world chain and the local DA node by running the following command:
226
226
227
227
```bash
228
228
docker ps
@@ -232,20 +232,20 @@ You should see output like the following:
232
232
233
233
```bash
234
234
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
235
-
86f9bfa5b6d2 wordle"rollkit start --rol…" 7 minutes ago Up 3 seconds wordle
235
+
86f9bfa5b6d2 gm-world"rollkit start --rol…" 7 minutes ago Up 3 seconds gm-world
236
236
67a2c3058e01 local-sequencer "local-sequencer -li…" 11 minutes ago Up 3 seconds 0.0.0.0:50051->50051/tcp local-sequencer
237
237
dae3359665f8 local-da "local-da -listen-all" 2 hours ago Up 3 seconds 0.0.0.0:7980->7980/tcp local-da
238
238
```
239
239
240
-
We can see the wordle chain running in container `wordle` and the local DA network running in container `local-da`.
240
+
We can see the gm-world chain running in container `gm-world` and the local DA network running in container `local-da`.
241
241
242
242
Since our chain is running in a docker container, we want to enter the docker container to interact with it via the Rollkit CLI. We can do this by running:
243
243
244
244
```bash
245
-
docker exec -it wordle sh
245
+
docker exec -it gm-world sh
246
246
```
247
247
248
-
Now that you are in the docker container, you can interact with the chain using the Rollkit CLI and the example commands you used in the [Wordle tutorial](/tutorials/wordle#interacting-with-the-chain).
248
+
Now that you are in the docker container, you can interact with the chain using the Rollkit CLI and the example commands you used in the [gm-world tutorial](/tutorials/gm-world.md).
249
249
250
250
Once you are done interacting with your chain, you can exit out of your docker container with:
0 commit comments