Skip to content

Commit 78c4cc4

Browse files
committed
chore: various updates while debugging
1 parent fa2ee29 commit 78c4cc4

File tree

3 files changed

+26
-12
lines changed

3 files changed

+26
-12
lines changed

.vitepress/constants/constants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const constants = Object.freeze({
1010
rollkitIgniteAppVersion: "rollkit/v0.2.1",
1111

1212
localDALatestTag: "v0.3.1",
13+
localSequencerLatestTag: "v0.4.0",
1314

1415
igniteVersionTag: "v28.5.3",
1516
});

tutorials/docker-compose.md

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@ Docker Compose version v2.23.0-desktop.1
3636

3737
## 🛠️ Setting up Your Environment {#setting-up-your-environment}
3838

39-
The wordle rollup is a relatively simple rollup in that there are just 2 nodes involved: the rollup and the data availability network (DA) node.
39+
In addition to our rollup, we need to run a DA and Sequencer node.
4040

41-
We will use a local DA node for this tutorial and run it with our rollup.
41+
We will use the [local-da](https://github.com/rollkit/local-da) and [local-sequencer](https://github.com/rollkit/go-sequencing) for this tutorial and run it with our rollup.
4242

43-
To save time, we can use the [local DA Dockerfile found here.](https://github.com/rollkit/local-da/blob/main/Dockerfile)
43+
To save time, we can use their respective Dockerfiles:
44+
* [local-da Dockerfile](https://github.com/rollkit/local-da/blob/main/Dockerfile)
45+
* [local-sequencer Dockerfile](https://github.com/rollkit/go-sequencing/blob/main/Dockerfile)
4446

4547
This will allow us to focus on how we can run the wordle rollup with Docker Compose.
4648

@@ -60,10 +62,10 @@ RUN apt update && \
6062
curl
6163

6264
# Install rollkit
63-
RUN curl -sSL https://rollkit.dev/install.sh | sh -s v0.13.6
65+
RUN curl -sSL https://rollkit.dev/install.sh | sh -s {{constants.rollkitLatestTag}}
6466

6567
# Install ignite
66-
RUN curl https://get.ignite.com/cli@v28.4.0! | bash
68+
RUN curl https://get.ignite.com/cli@{{constants.igniteVersionTag}}! | bash
6769

6870
# Set the working directory
6971
WORKDIR /app
@@ -77,7 +79,7 @@ RUN go mod download
7779
COPY . .
7880

7981
# Build the chain
80-
RUN ignite chain build && ignite rollkit init --local-da
82+
RUN ignite chain build && ignite rollkit
8183

8284
# Initialize the rollkit.toml file
8385
RUN rollkit toml init
@@ -157,16 +159,27 @@ services:
157159
# Ensures the local-da service is up and running before starting the rollup
158160
depends_on:
159161
- local-da
162+
- local-sequencer
160163

161164
# Define the local DA service
162165
local-da:
163166
# Use the published image from rollkit
164-
image: ghcr.io/rollkit/local-da:v0.2.1
167+
image: ghcr.io/rollkit/local-da:{{constants.localDALatestTag}}
165168
# Set the name of the docker container for ease of use
166169
container_name: local-da
167170
# Publish the ports to connect
168171
ports:
169172
- "7980:7980"
173+
174+
# Define the local sequencer service
175+
local-sequencer:
176+
# Use the published image from rollkit
177+
image: ghcr.io/rollkit/local-sequencer:{{constants.localSequencerLatestTag}}
178+
# Set the name of the docker container for ease of use
179+
container_name: local-sequencer
180+
# Publish the ports to connect
181+
ports:
182+
- "50051:50051"
170183
```
171184
172185
We now have all we need to run the wordle rollup and connect to a local DA node.

tutorials/wordle.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ module is defined as the following:
211211
We build the module with the `bank` dependency with the following command:
212212

213213
```bash
214-
ignite scaffold module wordle --dep bank
214+
ignite scaffold module wordle --dep bank -y
215215
```
216216

217217
This will scaffold the Wordle module to our Wordle Chain project.
@@ -241,15 +241,15 @@ With these initial designs, we can start creating our messages!
241241
To create the `SubmitWordle` message, we run the following command:
242242

243243
```bash
244-
ignite scaffold message submit-wordle word
244+
ignite scaffold message submit-wordle word -y
245245
```
246246

247247
This creates the `submit-wordle` message that takes in `word` as a parameter.
248248

249249
We now create the final message, `SubmitGuess`:
250250

251251
```bash
252-
ignite scaffold message submit-guess word
252+
ignite scaffold message submit-guess word -y
253253
```
254254

255255
Here, we are passing a word as a guess with `submit-guess`.
@@ -262,7 +262,7 @@ the messages we created.
262262
### 🏗️ Scaffolding wordle types {#scaffolding-wordle-types}
263263

264264
```bash
265-
ignite scaffold map wordle word submitter --no-message
265+
ignite scaffold map wordle word submitter --no-message -y
266266
```
267267

268268
This type is a map called `Wordle` with two values of
@@ -273,7 +273,7 @@ The second type is the `Guess` type. It allows us to store
273273
the latest guess for each address that submitted a solution.
274274

275275
```bash
276-
ignite scaffold map guess word submitter count --no-message
276+
ignite scaffold map guess word submitter count --no-message -y
277277
```
278278

279279
Here, we are also storing `count` to count how many guesses

0 commit comments

Comments
 (0)