Skip to content

Commit

Permalink
shim/rollkit: go-da via gRPC
Browse files Browse the repository at this point in the history
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
  • Loading branch information
pepyakin committed Feb 26, 2024
1 parent 34add78 commit eb78206
Show file tree
Hide file tree
Showing 97 changed files with 22,686 additions and 64,974 deletions.
247 changes: 222 additions & 25 deletions Cargo.lock

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ members = [
"ikura/nmt",
"ikura/serde-util",
"ikura/shim",
"ikura/shim/common/rollkit",
"ikura/shim/common/sovereign",
"ikura/subxt-autogen",
"xtask"
Expand Down Expand Up @@ -167,14 +166,18 @@ borsh = { version = "0.10.3" }
bytes = { version = "1", features = ["serde"] }
digest = "0.10.7"

# Rollkit DA adapter
prost = "0.12.3"
tonic = "0.11"
tonic-build = "0.11"

# Local
gondatsu-runtime = { path = "ikura/chain/runtimes/gondatsu" }

ikura-serde-util = { path = "ikura/serde-util" }
ikura-nmt = { path = "ikura/nmt", default-features = false }
ikura-subxt = { path = "ikura/subxt-autogen" }
ikura-shim-common-sovereign = { path = "ikura/shim/common/sovereign", default-features = false }
ikura-shim-common-rollkit = { path = "ikura/shim/common/rollkit" }
ikura-test-runtime = { path = "ikura/chain/runtimes/test" }
ikura-primitives = { path = "ikura/chain/primitives", default-features = false }
pallet-ikura-blobs = { path = "ikura/chain/pallets/blobs", default-features = false }
Expand Down
100 changes: 0 additions & 100 deletions adapters/rollkit/go.mod

This file was deleted.

Loading

0 comments on commit eb78206

Please sign in to comment.