Index GE activity on any EVM chain
Go to file
2024-06-10 16:18:24 +08:00
.github release: v1.0.0-beta 2024-06-10 15:36:26 +08:00
cmd release: v1.0.0-beta 2024-06-10 15:36:26 +08:00
dev feat: metrics port update -> :5002 2024-06-10 15:45:43 +08:00
internal release: v1.0.0-beta 2024-06-10 15:36:26 +08:00
migrations release: v1.0.0-beta 2024-06-10 15:36:26 +08:00
.dockerignore release: v1.0.0-beta 2024-06-10 15:36:26 +08:00
.env.example release: v1.0.0-beta 2024-06-10 15:36:26 +08:00
.gitignore release: v1.0.0-beta 2024-06-10 15:36:26 +08:00
config.toml feat: metrics port update -> :5002 2024-06-10 15:45:43 +08:00
Dockerfile ci: fix Dockerfile 2024-06-10 16:18:24 +08:00
go.mod release: v1.0.0-beta 2024-06-10 15:36:26 +08:00
go.sum release: v1.0.0-beta 2024-06-10 15:36:26 +08:00
LICENSE release: v1.0.0-beta 2024-06-10 15:36:26 +08:00
queries.sql release: v1.0.0-beta 2024-06-10 15:36:26 +08:00
README.md feat: metrics port update -> :5002 2024-06-10 15:45:43 +08:00

celo-indexer

GitHub Tag

A lightweight Postgres chain indexer designed to couple with celo-tracker to index all relevant GE related blockchain data on the Celo blockchain.

Getting Started

Prerequisites

  • Git
  • Docker
  • Postgres server
  • Access to a celo-tracker instance

See docker-compose.yaml for an example on how to run and deploy a single instance.

1. Build the Docker image

We provide pre-built images for linux/amd64. See the packages tab on Github.

If you are on any other platform:

git clone https://github.com/grassrootseconomics/celo-indexer.git
cd celo-indexer
docker buildx build --build-arg BUILD=$(git rev-parse --short HEAD) --tag celo-indexer:$(git rev-parse --short HEAD) --tag celo-indexer:latest .
docker images

2. Run Postgres

For an example, see dev/docker-compose.postgres.yaml.

3. Update config values

See .env.example on how to override default values defined in config.toml using env variables. Alternatively, mount your own config.toml either during build time or Docker runtime.

# Override only specific config values
nano .env.example
mv .env.example .env

Special env variables:

  • DEV=*

Refer to config.toml to understand different config value settings.

4. Run the indexer

cd dev
docker compose up

License

AGPL-3.0.