This repo contains the backend code for the Rollup Explorer that's currently maintained by Scroll.
MIT.
If you encounter bugs or have feature ideas, feel free to create an issue or write a PR.
Naturally, you will need the Rust toolchain installed.
Besides that, goose is necessary for external database migrations in database
dictionary of scroll.
BIND_PORT
: Internal binding HTTP port (5001
as default).DB_URL
: The database URL used to connect.OPEN_API_ADDR
: Open API URL displayed on Web UI.MAX_PER_PAGE
: Max value of query parameterper_page
(100 as default)
-
make start
: Start a localPostgres
docker-container, andcargo run --bin rollup_explorer
. Then URLhttp://0.0.0.0:5001
could be accessed in a Web browser. -
make stop
: Stop runningrollup_explorer
processes andPostgres
docker-container. ThePostgres
data should also be cleared via deleting folderdocker-data
. -
make lint
: Format and lint codes. -
make shfmt
: Format Shell scripts.
Run the following:
psql postgres://postgres:scroll2022@localhost:5434/scroll -f db/tests/test.sql
Currently deployed by Scroll's devops and used by https://scroll.io/rollupscan.