GitXplorerGitXplorer
s

rollup-explorer-backend

public
49 stars
12 forks
6 issues

Commits

List of commits on branch develop.
Verified
ad4d9d8e8babb9f613a10a10a526e07f20494bbe

feat: image support arm64 (#165)

ssbaizet-ledger committed 3 months ago
Verified
73353cbe027510d58038be5fca732971faa0ebe3

Update release.yml (#162)

jjohnsonjie committed 8 months ago
Verified
09d62083fcbaf15482d55559a1ece31babf0720a

Update release.yml (#161)

jjohnsonjie committed 8 months ago
Verified
d46e4e20d2d760ec7ada3ba030c37a548e60b89e

Update release.yml (#160)

jjohnsonjie committed 8 months ago
Verified
6c6b3d339ff967eb6cfb01f1e5706ca7b9335084

feat: adjust config (#158)

ggeorgehao committed 8 months ago
Verified
e3db39cfb3fa4171e19d03d4c3b63cf0212539f9

Update release.yml (#159)

jjohnsonjie committed 8 months ago

README

The README file for this repository.

Scroll's Rollup Explorer Backend

Main Test Status Audit Status Rust Nightly

Purpose

This repo contains the backend code for the Rollup Explorer that's currently maintained by Scroll.

License

MIT.

Contributing

If you encounter bugs or have feature ideas, feel free to create an issue or write a PR.

Prerequisites

Naturally, you will need the Rust toolchain installed. Besides that, goose is necessary for external database migrations in database dictionary of scroll.

ENV

  • 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 parameter per_page (100 as default)

Development

  • make start: Start a local Postgres docker-container, and cargo run --bin rollup_explorer. Then URL http://0.0.0.0:5001 could be accessed in a Web browser.

  • make stop: Stop running rollup_explorer processes and Postgres docker-container. The Postgres data should also be cleared via deleting folder docker-data.

  • make lint: Format and lint codes.

  • make shfmt: Format Shell scripts.

Adding Mock Data

Run the following:

psql postgres://postgres:scroll2022@localhost:5434/scroll -f db/tests/test.sql

Deployment

Currently deployed by Scroll's devops and used by https://scroll.io/rollupscan.