mirror of
https://github.com/scroll-tech/scroll.git
synced 2026-01-09 14:08:03 -05:00
A new e2e test tool to setup a local environment for testing coordinator and prover.
It contains data from some blocks in a specified testnet, and helps to generate a series of chunks/batches/bundles from these blocks, filling the DB for the coordinator, so an e2e test (from chunk to bundle) can be run completely local
Prepare: link the staff dir as "conf" from one of the dir with staff set, currently we have following staff sets:
- sepolia: with blocks from scroll sepolia
- cloak-xen: with blocks from xen sepolia, which is a cloak network
Steps:
- run
make allundertests/prover-e2e, it would launch a postgreSql db in local docker container, which is ready to be used by coordinator (include some chunks/batches/bundles waiting to be proven) - setup assets by run
make coordinator_setup - in
coordinator/build/bin/conf, update necessary items inconfig.template.jsonand rename it asconfig.json - build and launch
coordinator_apiservice locally - setup the
config.jsonfor zkvm prover to connect with the locally launched coordinator api - in
zkvm-prover, launchmake test_e2e_run, which would specific prover run locally, connect to the local coordinator api service according to theconfig.json, and prove all tasks being injected to db in step 1.