Skip to content

Commit bc18025

Browse files
committed
shim/rollkit: go-da via gRPC
This changeset migrates the rollkit demo to go-da, the more modern version of the DA interface for Rollkit. One of the most important changes is that rollkit doesn't embed the adapters anymore. Instead, it communicates with the adapter through gRPC protocol. Instead of yet another adapter, this implements gRPC dock directly, which kind of challenges the current architecture. Notable changes: 1. demo/rollkit was regenerated from the tutorial once again. That turned out to be easier than manually porting changes. I ported init-local.sh though. 2. removed adapter/sugondat since it is not longer needed 3. since it looks like we are going away from the docker workflow, I did not port the Dockerfile to the new code. I left the docker-compose.yml though, just removed the gm service. 4. the JSON-RPC was pushed to the sovereign dock. Now `serve` subcommand will launch only the specified dock instead of all of them. Each dock has its own subcommand. `ikura-shim serve rollkit` is now used for running rollkit. 5. now dock subcommands get their own options. E.g. rollkit doc now can accept the default namespace in case requests from rollkit without namespace (they do atm). There are some things that were left for follow ups: 1. #258 1. #259
1 parent 34add78 commit bc18025

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+22686
-64974
lines changed

Cargo.lock

+222-25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+5-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ members = [
1919
"ikura/nmt",
2020
"ikura/serde-util",
2121
"ikura/shim",
22-
"ikura/shim/common/rollkit",
2322
"ikura/shim/common/sovereign",
2423
"ikura/subxt-autogen",
2524
"xtask"
@@ -167,14 +166,18 @@ borsh = { version = "0.10.3" }
167166
bytes = { version = "1", features = ["serde"] }
168167
digest = "0.10.7"
169168

169+
# Rollkit DA adapter
170+
prost = "0.12.3"
171+
tonic = "0.11"
172+
tonic-build = "0.11"
173+
170174
# Local
171175
gondatsu-runtime = { path = "ikura/chain/runtimes/gondatsu" }
172176

173177
ikura-serde-util = { path = "ikura/serde-util" }
174178
ikura-nmt = { path = "ikura/nmt", default-features = false }
175179
ikura-subxt = { path = "ikura/subxt-autogen" }
176180
ikura-shim-common-sovereign = { path = "ikura/shim/common/sovereign", default-features = false }
177-
ikura-shim-common-rollkit = { path = "ikura/shim/common/rollkit" }
178181
ikura-test-runtime = { path = "ikura/chain/runtimes/test" }
179182
ikura-primitives = { path = "ikura/chain/primitives", default-features = false }
180183
pallet-ikura-blobs = { path = "ikura/chain/pallets/blobs", default-features = false }

adapters/rollkit/go.mod

-100
This file was deleted.

0 commit comments

Comments
 (0)