This package is a convenient starting point for building a rollup using the Sovereign SDK:
crates/stf
: TheSTF
is derived from theRuntime
and is used in therollup
andprovers
crates.crates/provers
: This crate is responsible for creating proofs for theSTF
.crates/rollup
: This crate runs theSTF
and offers additional full-node functionalities.
$ cd crates/rollup/
$ make clean-db
This will compile and start the rollup node:
$ cargo run --bin node
$ make test-create-token
$ make wait-ten-seconds
$ make test-bank-supply-of
$ curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"bank_supplyOf","params":{"token_address":"sov1zdwj8thgev2u3yyrrlekmvtsz4av4tp3m7dm5mx5peejnesga27svq9m72"},"id":1}' http://127.0.0.1:12345
{"jsonrpc":"2.0","result":{"amount":1000},"id":1}
$ cd crates/rollup/
$ make clean
$ make start
This will compile and start the rollup node:
$ cargo run --bin node --no-default-features --features celestia_da
Using CELESTIA=1
will enable the client to be built with Celestia support and submit the test token
$ CELESTIA=1 make test-create-token
$ make test-bank-supply-of
$ curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"bank_supplyOf","params":{"token_address":"sov1zdwj8thgev2u3yyrrlekmvtsz4av4tp3m7dm5mx5peejnesga27svq9m72"},"id":1}' http://127.0.0.1:12345
{"jsonrpc":"2.0","result":{"amount":1000},"id":1}