Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit 2e52c2c

Browse files
committed
update gm app
1 parent 76678c5 commit 2e52c2c

8 files changed

Lines changed: 70 additions & 7880 deletions

File tree

.vitepress/config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,6 @@ function sidebarHome() {
296296
text: "How To Guides",
297297
collapsed: true,
298298
items: [
299-
{
300-
text: "Use the Rollkit CLI",
301-
link: "/guides/use-rollkit-cli",
302-
},
303299
{
304300
text: "Use Ignite to create a Rollkit app",
305301
link: "/guides/ignite-rollkit",

guides/overview.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ your life easier when developing with Rollkit.
1414

1515
In this section, you'll find:
1616

17-
* [Use the Rollkit CLI](/guides/use-rollkit-cli)
1817
* [Create genesis for your rollup](/guides/create-genesis)
1918
* [Restart your rollup](/guides/restart-rollup)
2019
* [Reset your chain's state](/guides/reset-state)

package-lock.json

Lines changed: 0 additions & 7751 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"docs:preview": "vitepress preview"
66
},
77
"devDependencies": {
8-
"@keplr-wallet/types": "0.12.212",
98
"i": "^0.3.7",
109
"mermaid": "^11.4.1",
1110
"vitepress": "^1.5.0",

public/install-local-da.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/bash
22

33
echo "Downloading Local-DA source code..."
4-
git clone https://github.com/rollkit/local-da.git
4+
git clone https://github.com/rollkit/rollkit.git
55
cd local-da || { echo "Failed to find the downloaded repository"; exit 1; }
66
git checkout $1
77
echo "Building and installing Local DA..."
8-
make build
8+
make build-da
99
echo "Starting Local DA..."
1010
./build/local-da

tutorials/gm-world.md

Lines changed: 67 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -29,152 +29,110 @@ import constants from '../.vitepress/constants/constants.js'
2929

3030
## 🛠️ Dependencies {#dependencies}
3131

32-
As we move into more advanced use cases, we use [kurtosis](https://docs.kurtosis.com/) to help with managing all the services we need to run. You can [install kurtosis here](https://docs.kurtosis.com/install).
32+
As we move into more advanced use cases, we use [ignite](https://docs.ignite.com/welcome) to help with managing all the services we need to run. You can [install ignite here](https://docs.ignite.com/welcome/install).
3333

3434
Once installed, you can verify the installation by running:
3535

3636
```bash
37-
kurtosis version
37+
ignite version
3838
```
3939

4040
```bash
41-
CLI Version: 0.90.1
42-
43-
To see the engine version (provided it is running): kurtosis engine status
41+
Ignite CLI version: v28.7.0
42+
Ignite CLI build date: 2025-01-15T08:23:41Z
43+
Ignite CLI source hash: 2f83cfe6114cfc58bd6add791143fe43963c1b5c
44+
Ignite CLI config version: v1
45+
Cosmos SDK version: v0.50.11
46+
Your OS: darwin
47+
Your arch: arm64
48+
Your go version: go version go1.24.2 darwin/arm64
49+
Your uname -a: Darwin Markos-MacBook-Pro.local 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:16 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6000 arm64
50+
Your cwd: /Users/markobaricevic/code/CoTend/rollkit1/docs
51+
Is on Gitpod: false
4452
```
4553

46-
## 🚀 Starting your rollup {#start-your-rollup}
47-
48-
Now that we have kurtosis installed, we can launch our GM rollup along with the local DA by running the following command:
54+
## Generate your App {#generate-your-app}
4955

5056
```bash
51-
kurtosis run github.com/rollkit/gm@v0.3.1
57+
ignite s chain gm --address-prefix gm
58+
cd gm
5259
```
5360

54-
You should see an output like this:
61+
Install a specific version of ignire to use rollkit
5562

5663
```bash
57-
INFO[2024-07-02T11:15:43-04:00] Creating a new enclave for Starlark to run inside...
58-
INFO[2024-07-02T11:15:46-04:00] Enclave 'sparse-grotto' created successfully
59-
INFO[2024-07-02T11:15:46-04:00] Executing Starlark package at '/Users/matt/Code/rollkit/gm' as the passed argument '.' looks like a directory
60-
INFO[2024-07-02T11:15:46-04:00] Compressing package 'github.com/rollkit/gm' at '.' for upload
61-
INFO[2024-07-02T11:15:46-04:00] Uploading and executing package 'github.com/rollkit/gm'
62-
63-
Container images used in this run:
64-
> ghcr.io/rollkit/gm:05bd40e - locally cached
65-
> ghcr.io/rollkit/local-da:v0.2.1 - locally cached
66-
67-
Printing a message
68-
Adding Local DA service
69-
70-
Adding service with name 'local-da' and image 'ghcr.io/rollkit/local-da:v0.2.1'
71-
Service 'local-da' added with service UUID '990942dc84ab4b3ab2c8d64002a5bafa'
72-
73-
Printing a message
74-
Adding GM service
75-
76-
Printing a message
77-
NOTE: This can take a few minutes to start up...
78-
79-
Adding service with name 'gm' and image 'ghcr.io/rollkit/gm:05bd40e'
80-
Service 'gm' added with service UUID 'ed0233f8291d4a42bdd0e173393af809'
81-
82-
Starlark code successfully run. No output was returned.
83-
84-
⭐ us on GitHub - https://github.com/kurtosis-tech/kurtosis
85-
INFO[2024-07-02T11:15:50-04:00] ======================================================
86-
INFO[2024-07-02T11:15:50-04:00] || Created enclave: sparse-grotto ||
87-
INFO[2024-07-02T11:15:50-04:00] ======================================================
88-
Name: sparse-grotto
89-
UUID: 49dd471ac3bb
90-
Status: RUNNING
91-
Creation Time: Tue, 02 Jul 2024 11:15:43 EDT
92-
Flags:
93-
94-
========================================= Files Artifacts =========================================
95-
UUID Name
96-
97-
========================================== User Services ==========================================
98-
UUID Name Ports Status
99-
ed0233f8291d gm jsonrpc: 26657/tcp -> http://127.0.0.1:26657 RUNNING
100-
990942dc84ab local-da jsonrpc: 7980/tcp -> http://127.0.0.1:7980 RUNNING
64+
ignite app install -g github.com/ignite/apps/rollkit@9d51c52305be37356a1ecadab8733b77842e1c37
10165
```
10266

103-
Kurtosis has successfully launched the GM rollup and the local DA network. The GM rollup is running on port `26657` and the local DA network is running on port `7980`. You can see the services running in docker as well:
67+
Install your app locally:
10468

10569
```bash
106-
docker ps
70+
make install
10771
```
10872

73+
## 🚀 Starting your rollup {#start-your-rollup}
74+
75+
Now that we have our gm app generated and installed, we can launch our GM rollup along with the local DA by running the following command:
76+
77+
First lets start the local DA network:
78+
10979
```bash
110-
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
111-
af16c1a5e68c ghcr.io/rollkit/gm:05bd40e "/bin/sh -c 'rollkit…" 46 seconds ago Up 45 seconds 0.0.0.0:26657->26657/tcp gm--ed0233f8291d4a42bdd0e173393af809
112-
9db601efd92b ghcr.io/rollkit/local-da:v0.2.1 "local-da -listen-all" 46 seconds ago Up 46 seconds 0.0.0.0:7980->7980/tcp local-da--990942dc84ab4b3ab2c8d64002a5bafa
113-
7fec3d659452 kurtosistech/core:0.90.1 "/bin/sh -c ./api-co…" 50 seconds ago Up 50 seconds 0.0.0.0:59855->7443/tcp kurtosis-api--49dd471ac3bb413d96932d4020c20b21
114-
198f7873bbec fluent/fluent-bit:1.9.7 "/fluent-bit/bin/flu…" 51 seconds ago Up 51 seconds 2020/tcp kurtosis-logs-collector--49dd471ac3bb413d96932d4020c20b21
115-
f921884f4132 kurtosistech/engine:0.90.1 "/bin/sh -c ./kurtos…" 2 hours ago Up 2 hours 0.0.0.0:8081->8081/tcp, 0.0.0.0:9710-9711->9710-9711/tcp, 0.0.0.0:9779->9779/tcp kurtosis-engine--1657ab3f1c3942658a3993a0e3b54327
116-
c5363b77b543 traefik:2.10.6 "/bin/sh -c 'mkdir -…" 2 hours ago Up 2 hours 80/tcp, 0.0.0.0:9730-9731->9730-9731/tcp kurtosis-reverse-proxy--1657ab3f1c3942658a3993a0e3b54327
117-
39eb05e1c693 timberio/vector:0.31.0-debian "/bin/sh -c 'printf …" 2 hours ago Up 2 hours kurtosis-logs-aggregator
80+
curl -sSL https://rollkit.dev/install-local-da.sh | bash -s {{constants.localDALatestTag}}
11881
```
11982

120-
We can see the GM rollup running in container `gm--ed0233f8291d4a42bdd0e173393af809` and the local DA network running in container `local-da--990942dc84ab4b3ab2c8d64002a5bafa`.
121-
122-
Let's hold on to the container name for the GM rollup as we will need it later.
83+
you should see logs like:
12384

12485
```bash
125-
GM=$(docker ps --format '{{.Names}}' | grep gm)
126-
echo $GM
86+
4:58PM INF NewLocalDA: initialized LocalDA module=local-da
87+
4:58PM INF Listening on host=localhost maxBlobSize=1974272 module=da port=7980
88+
4:58PM INF server started listening on=localhost:7980 module=da
12789
```
12890

129-
You can verify the rollup is running by checking the logs:
91+
After which we can start the app:
13092

13193
```bash
132-
docker logs $GM
94+
gmd start --rollkit.node.aggregator
13395
```
13496

97+
You should see an output like this:
98+
13599
```bash
136-
...
137-
12:21PM INF starting node with ABCI CometBFT in-process module=server
138-
12:21PM INF starting node with Rollkit in-process module=server
139-
12:21PM INF service start impl=multiAppConn module=proxy msg="Starting multiAppConn service"
140-
12:21PM INF service start connection=query impl=localClient module=abci-client msg="Starting localClient service"
141-
12:21PM INF service start connection=snapshot impl=localClient module=abci-client msg="Starting localClient service"
142-
12:21PM INF service start connection=mempool impl=localClient module=abci-client msg="Starting localClient service"
143-
12:21PM INF service start connection=consensus impl=localClient module=abci-client msg="Starting localClient service"
144-
12:21PM INF service start impl=EventBus module=events msg="Starting EventBus service"
145-
12:21PM INF service start impl=PubSub module=pubsub msg="Starting PubSub service"
146-
12:21PM INF Using default mempool ttl MempoolTTL=25 module=BlockManager
147-
12:21PM INF service start impl=IndexerService module=txindex msg="Starting IndexerService service"
148-
12:21PM INF service start impl=RPC module=server msg="Starting RPC service"
149-
12:21PM INF service start impl=Node module=server msg="Starting Node service"
150-
12:21PM INF starting P2P client module=server
151-
12:21PM INF serving HTTP listen address=127.0.0.1:26657 module=server
152-
12:21PM INF listening on address=/ip4/127.0.0.1/tcp/26656/p2p/12D3KooWSicdPmMTLf9fJbSSHZc9UVP1CbNqKPpbYVbgxHvbhAUY module=p2p
153-
12:21PM INF listening on address=/ip4/163.172.162.109/tcp/26656/p2p/12D3KooWSicdPmMTLf9fJbSSHZc9UVP1CbNqKPpbYVbgxHvbhAUY module=p2p
154-
12:21PM INF no seed nodes - only listening for connections module=p2p
155-
12:21PM INF working in aggregator mode block time=1000 module=server
156-
12:21PM INF Creating and publishing block height=22 module=BlockManager
157-
12:21PM INF starting gRPC server... address=127.0.0.1:9290 module=grpc-server
158-
12:21PM INF finalized block block_app_hash=235D3710D61F347DBBBDD6FD63AA7687842D1EF9CB475C712856D7DA32F82F09 height=22 module=BlockManager num_txs_res=0 num_val_updates=0
159-
12:21PM INF executed block app_hash=235D3710D61F347DBBBDD6FD63AA7687842D1EF9CB475C712856D7DA32F82F09 height=22 module=BlockManager
160-
12:21PM INF indexed block events height=22 module=txindex
161-
...
100+
5:02PM INF Rollkit node run loop launched in background goroutine module=server
101+
5:02PM INF Attempting to start Rollkit node run loop module=server
102+
5:02PM INF serving HTTP listen address=[::]:26657 module=rollkit
103+
5:02PM INF Started RPC server addr=127.0.0.1:7331 module=rollkit
104+
5:02PM INF starting P2P client module=rollkit
105+
5:02PM INF listening on address=/ip4/10.36.65.125/tcp/7676/p2p/12D3KooWCZ4oCNDkxisUWD9CbB5yEmSmjaTEtLLySk3Sccy4Vb8m module=p2p
106+
5:02PM INF listening on address=/ip4/127.0.0.1/tcp/7676/p2p/12D3KooWCZ4oCNDkxisUWD9CbB5yEmSmjaTEtLLySk3Sccy4Vb8m module=p2p
107+
5:02PM INF no peers - only listening for connections module=p2p
108+
5:02PM INF working in aggregator mode block time=1s module=rollkit
109+
5:02PM INF Reaper started interval=1000 module=Reaper
110+
5:02PM INF Using pending block height=1 module=BlockManager
111+
5:02PM INF Executing block height=1 module=rollkit num_txs=0 timestamp=2025-04-28T11:21:24-04:00
112+
5:02PM INF Block executed successfully appHash=6AE75B65CDFE504876AC392554E16065C7C3699FFC99E6C4AA5FEB13B49CFB2D height=1 module=rollkit
113+
5:02PM ERR failed to start syncer after initializing the store: error getting latest head during Start: header: not found module=rollkit
114+
5:02PM ERR failed to start syncer after initializing the store: error getting latest head during Start: header: not found module=rollkit
115+
5:02PM INF Attempting to start executor (Adapter.Start) module=server
116+
5:02PM INF Executor started successfully module=server
117+
5:02PM INF Waiting for services to complete... module=server
118+
5:02PM INF starting API server... address=tcp://0.0.0.0:1317 module=api-server
119+
5:02PM INF serve module=api-server msg="Starting RPC HTTP server on [::]:1317"
120+
5:02PM INF starting gRPC server... address=localhost:9090 module=grpc-server
121+
5:02PM INF Creating empty block height=2 module=BlockManager
122+
5:02PM INF Executing block height=2 module=rollkit num_txs=0 timestamp=2025-05-13T17:02:14-04:00
123+
5:02PM INF Block executed successfully appHash=CACB5B55477E8813D93A29CF25BA5DB8AD4A51992D96A72CF9A4E83D47F4FAAA height=2 module=rollkit
162124
```
163125

126+
Ignite has successfully launched the GM rollup and the local DA network. The GM rollup is running on port `7331` and the local DA network is running on port `7980`.
127+
164128
Good work so far, we have a Rollup node, DA network node, now we can start submitting transactions.
165129

166130
## 💸 Transactions {#transactions}
167131

168-
Since our rollup 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:
169-
170-
```bash
171-
docker exec -it $GM sh
172-
```
173-
174132
First, list your keys:
175133

176134
```bash
177-
rollkit keys list --keyring-backend test
135+
gmd keys list --keyring-backend test
178136
```
179137

180138
You should see an output like the following
@@ -200,7 +158,7 @@ export KEY2=gm1r2udsh4za7r7sxvzy496qfazvjp04j4zgytve3
200158
Now let's submit a transaction that sends coins from one account to another (don't worry about all the flags, for now, we just want to submit transaction from a high-level perspective):
201159

202160
```bash
203-
rollkit tx bank send $KEY2 $KEY1 42069stake --keyring-backend test --chain-id gm --fees 5000stake
161+
gmd tx bank send $KEY2 $KEY1 42069stake --keyring-backend test --chain-id gm --fees 5000stake
204162
```
205163

206164
You'll be prompted to accept the transaction:
@@ -243,7 +201,7 @@ txhash: 677CAF6C80B85ACEF6F9EC7906FB3CB021322AAC78B015FA07D5112F2F824BFF
243201
Query balances after the transaction:
244202

245203
```bash
246-
rollkit query bank balances $KEY1
204+
gmd query bank balances $KEY1
247205
```
248206

249207
The receiver’s balance should show an increase.
@@ -260,7 +218,7 @@ pagination:
260218
For the sender’s balance:
261219

262220
```bash
263-
rollkit query bank balances $KEY2
221+
gmd query bank balances $KEY2
264222
```
265223

266224
Output:
@@ -274,7 +232,7 @@ pagination:
274232
total: "0"
275233
```
276234

277-
## 📦 GM world UI app
235+
<!-- ## 📦 GM world UI app
278236
279237
Now that you have an idea of how to interact with the rollup with the rollkit CLI, let's look at the user interface (UI) application aspect of connecting a wallet to a rollup.
280238
@@ -292,7 +250,7 @@ Once authorized, your wallet address will be displayed, confirming that your wal
292250
293251
:::tip
294252
If you run into any issues, make sure your Keplr wallet is updated and set to connect to your local environment.
295-
:::
253+
::: -->
296254

297255
## 🎉 Next steps
298256

tutorials/sequencing/single.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Single Sequencer

yarn.lock

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -399,13 +399,6 @@
399399
resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz#3188bcb273a414b0d215fd22a58540b989b9409a"
400400
integrity sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==
401401

402-
"@keplr-wallet/types@0.12.212":
403-
version "0.12.212"
404-
resolved "https://registry.yarnpkg.com/@keplr-wallet/types/-/types-0.12.212.tgz#71a406978f243ce20940d2f9c1f074ce0fc623a1"
405-
integrity sha512-UUw01GspPOnB9vDo1ANKIQ7Ms+usl3wKARft7GIlmiLaIUJhRGAYDoJvTWs7eSEYNCyIIB2TY4D8aY5fecdQ5w==
406-
dependencies:
407-
long "^4.0.0"
408-
409402
"@mermaid-js/mermaid-mindmap@^9.3.0":
410403
version "9.3.0"
411404
resolved "https://registry.npmjs.org/@mermaid-js/mermaid-mindmap/-/mermaid-mindmap-9.3.0.tgz"
@@ -1610,11 +1603,6 @@ lodash-es@4.17.21, lodash-es@^4.17.21:
16101603
resolved "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz"
16111604
integrity sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==
16121605

1613-
long@^4.0.0:
1614-
version "4.0.0"
1615-
resolved "https://registry.npmjs.org/long/-/long-4.0.0.tgz"
1616-
integrity sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==
1617-
16181606
magic-string@^0.30.11:
16191607
version "0.30.11"
16201608
resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.11.tgz#301a6f93b3e8c2cb13ac1a7a673492c0dfd12954"

0 commit comments

Comments
 (0)