Skip to content

About

Cartesi Rollups Explorer Web Application

Resources

Code of conduct

Contributing

Security policy

Stars

8 stars

Watchers

4 watching

Forks

Latest commit

 

History

534 Commits

Folders and files

Rollups Explorer

Coverage Status

Rollups Explorer is a web application that facilitates interacting with Cartesi applications. It includes the following features:

  • Connect to supported rollups-node (v2).
  • Send inputs to the listed applications.
  • Send deposits through available Cartesi Portals (e.g. EtherPortal, ERC721Portal, ERC20Portal, ERC1155SinglePortal, ERC1155BatchPortal)
  • List outputs generated by inputs sent to the Application of interest.
  • Execution of outputs (i.e., Vouchers).
  • Follow disputes for Cartesi applications that use PRT consensus.

Note

This README covers Rollups Explorer 2.x, which is currently published as alpha pre-releases. The Docker latest tag and the latest non-prerelease on GitHub Releases are still 1.x.

Run with Docker

You need a compatible Cartesi Rollups Node JSON-RPC endpoint, an Ethereum JSON-RPC endpoint for the same chain, and Docker.

EXPLORER_VERSION="<version>"   # a 2.x Docker tag, without the "v" prefix, for example 2.0.0-alpha.6

docker run --rm --name cartesi-rollups-explorer \
  -p 3000:3000 \
  -e CARTESI_NODE_RPC_URL=http://127.0.0.1:6751/rpc \
  -e NODE_RPC_URL=http://127.0.0.1:6751/anvil \
  "cartesi/rollups-explorer:${EXPLORER_VERSION}"

Open http://localhost:3000/explorer. The example URLs match the local environment started by Cartesi CLI with cartesi run on its default port. Available versions are published on Docker Hub and GitHub Container Registry.

Configuration

The published image serves the application below /explorer and reads the following variables at runtime:

Variable Purpose Published-image default
CARTESI_NODE_RPC_URL Default Rollups Node JSON-RPC endpoint http://127.0.0.1:6751/rpc
NODE_RPC_URL Base-layer Ethereum RPC endpoint used for wallet interactions and contract reads http://127.0.0.1:6751/anvil
DEBUG_ENABLED Enable debugging actions in the interface false
HEALTHZ_UPTIME_ENABLED Include process uptime in the health response true

The health endpoint is /explorer/api/healthz.

Important

The browser contacts these RPC URLs directly, so they must be reachable from the user's browser, not only from the container. Do not place secrets in them, and make sure the endpoints have appropriate access controls and browser-compatible CORS settings.

Apps and Packages

  • apps/explorer: The web application that serves as client to connect to a rollups-node.
  • packages/eslint-config-cartesi: eslint configurations.
  • packages/tsconfig: A few tsconfig.jsons that is used throughout the monorepo.

Dependencies

  • NodeJS 24.19.0
  • pnpm 11.21.0 (package manager)

Enable Corepack to activate the repository's declared pnpm version

corepack enable

Package Management

This repository uses pnpm 11.21.0 with supply-chain protections enabled:

  • Dependency lifecycle/build scripts are blocked unless explicitly approved in allowBuilds in pnpm-workspace.yaml.
  • strictDepBuilds makes installs fail when a dependency requests an unapproved build script.
  • Dependencies must normally be at least seven days old (minimumReleaseAge: 10080, in minutes).
  • trustPolicy: no-downgrade rejects package versions whose publishing trust evidence is weaker than an earlier release.
  • Transitive dependencies cannot use git repositories or direct tarball URLs (blockExoticSubdeps: true).

Use the lockfile exactly as committed:

pnpm install --frozen-lockfile

Build

pnpm build --filter=explorer

Development

Run the following command:

pnpm dev --filter=explorer

To run storybook (optional)

pnpm storybook --filter=explorer

Note

To build all apps/ and packages/ you can remove the --filter=explorer from the commands above.

Unreleased rollups-ts packages

To develop/test the explorer against unreleased rollups-ts changes, build and pack them from a local checkout into vendor/ (defaults to client, react, rpc and codec):

pnpm dev:vendor:rollups-ts ../rollups-ts [package ...]

Point the dependencies at the tarballs in pnpm-workspace.yaml (overrides also cover transitive ones such as @cartesi/rpc), then run pnpm install:

overrides:
 "@cartesi/client": file:vendor/cartesi-client.tgz
 "@cartesi/react": file:vendor/cartesi-react.tgz
 "@cartesi/rpc": file:vendor/cartesi-rpc.tgz

Commit vendor/, pnpm-workspace.yaml and pnpm-lock.yaml in a dedicated commit. The Docker build copies vendor/ into the image, so the PR image builds with the tarballs.

Important

Vendored tarballs must not be merged. Once the rollups-ts packages are published, add a fixup to the vendoring commit that removes vendor/ and the overrides and bumps apps/explorer to the published versions, then autosquash it before merging.

For Docker image build check here

For CartesiScan information check here

For release information check here

Security

Do not open a public issue, pull request, or discussion for a security problem. Report it privately by email to rollups@cartesi.foundation with the affected component and version, the impact and who is affected, and steps to reproduce. The full policy and the published security reviews are on the Audit reports page.

About

Cartesi Rollups Explorer Web Application

Resources

Code of conduct

Contributing

Security policy

Stars

8 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages