-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP: make rollup template * Make genesis config serializable * WIP: adding cli * Implement working template * Add integ tests * lint * lint again * fix feature gating * add missing docs * Switch to mockda * fmt * clippy * Fix demo-rollup test * fix clippy again * cleanup * Add runtime module * Add rollup module * Add genesis config * Read genesis file * Update path * fix lint * fix ci * upgrade cargo hack --------- Co-authored-by: Blazej Kolad <[email protected]>
- Loading branch information
1 parent
88d41d5
commit 61a44bf
Showing
37 changed files
with
996 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
[package] | ||
name = "rollup-template" | ||
version.workspace = true | ||
edition.workspace = true | ||
license.workspace = true | ||
authors.workspace = true | ||
homepage.workspace = true | ||
publish.workspace = true | ||
repository.workspace = true | ||
rust-version.workspace = true | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
#stf dependencies | ||
sov-modules-api = { path = "../../module-system/sov-modules-api" } # needs to re-export anyhow, serde, and borsh. native needs clap, serde_json, and jsonrpsee. Also, tracing | ||
sov-state = { path = "../../module-system/sov-state" } | ||
sov-accounts = { path = "../../module-system/module-implementations/sov-accounts" } | ||
sov-bank = { path = "../../module-system/module-implementations/sov-bank" } | ||
sov-sequencer-registry = { path = "../../module-system/module-implementations/sov-sequencer-registry" } | ||
sov-modules-stf-template = { path = "../../module-system/sov-modules-stf-template/" } | ||
sov-stf-runner = { path = "../../full-node/sov-stf-runner" } | ||
borsh = { workspace = true } | ||
clap = { workspace = true, optional = true } | ||
serde = { workspace = true } | ||
tracing = { workspace = true } | ||
serde_json = { workspace = true, optional = true } | ||
jsonrpsee = { workspace = true, optional = true } | ||
anyhow = { workspace = true } | ||
|
||
sov-db = { path = "../../full-node/db/sov-db", optional = true } | ||
sov-sequencer = { path = "../../full-node/sov-sequencer", optional = true } | ||
sov-rollup-interface = { path = "../../rollup-interface", features = ["mocks"] } | ||
tokio = { workspace = true, optional = true } | ||
|
||
# Change dependencies here to use a different DA layer or ZKVM | ||
sov-risc0-adapter = { path = "../../adapters/risc0" } | ||
|
||
# binary dependencies | ||
tracing-subscriber = { version = "0.3.17", features = ["env-filter"], optional = true } | ||
|
||
[dev-dependencies] | ||
tempfile = { workspace = true } | ||
|
||
[features] | ||
default = ["native"] | ||
native = [ | ||
"sov-modules-api/native", | ||
"sov-accounts/native", | ||
"sov-bank/native", | ||
"sov-sequencer-registry/native", | ||
"sov-risc0-adapter/native", | ||
"sov-stf-runner/native", | ||
"sov-modules-stf-template/native", | ||
"sov-db", | ||
"sov-sequencer", | ||
"tokio", | ||
"clap", | ||
"serde_json", | ||
"jsonrpsee", | ||
"tracing-subscriber", | ||
] | ||
|
||
[[bin]] | ||
name = "node" | ||
path = "src/bin/node.rs" | ||
required-features = ["native"] | ||
|
||
[[bin]] | ||
name = "cli_wallet" | ||
path = "src/bin/cli_wallet.rs" | ||
required-features = ["native"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Rollup Template | ||
|
||
This package is a convenient starting point for building a rollup using the Sovereign SDK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[da] | ||
sender_address = "0101010101010101010101010101010101010101010101010101010101010101" | ||
|
||
[storage] | ||
# The path to the rollup's data directory. Paths that do not begin with `/` are interpreted as relative paths. | ||
path = "demo_data" | ||
|
||
# We define the rollup's genesis to occur at block number `start_height`. The rollup will ignore | ||
# any blocks before this height | ||
[runner] | ||
start_height = 1 | ||
|
||
[runner.rpc_config] | ||
# the host and port to bind the rpc server for | ||
bind_host = "127.0.0.1" | ||
bind_port = 12345 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
//! This binary defines a cli wallet for interacting | ||
//! with the rollup. | ||
fn main() {} |
Oops, something went wrong.