This package is a convenient starting point for building a rollup using the Sovereign SDK:
crates/stf: TheSTFis derived from theRuntimeand is used in therollupandproverscrates.crates/provers: This crate is responsible for creating proofs for theSTF.crates/rollup: This crate runs theSTFand offers additional full-node functionalities.
$ cd crates/rollup/$ make clean-dbThis 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}