Index GE activity on any EVM chain
Go to file
dependabot[bot] 326809093a
build(deps): bump github.com/kamikazechaser/common from 0.2.0 to 1.0.0
Bumps [github.com/kamikazechaser/common](https://github.com/kamikazechaser/common) from 0.2.0 to 1.0.0.
- [Commits](https://github.com/kamikazechaser/common/compare/v0.2.0...v1.0.0)

---
updated-dependencies:
- dependency-name: github.com/kamikazechaser/common
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-04 18:30:55 +00:00
.github feat (BREAKING): evm compatibility, namespace change to eth-indexer 2024-09-30 10:44:12 +03:00
cmd/service Feat/consolidate functionality (#22) 2024-10-31 10:41:43 +03:00
dev conf: update to latest spec 2024-10-31 10:46:03 +03:00
internal Feat/consolidate functionality (#22) 2024-10-31 10:41:43 +03:00
migrations Feat/consolidate functionality (#22) 2024-10-31 10:41:43 +03:00
pkg/router Feat/consolidate functionality (#22) 2024-10-31 10:41:43 +03: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 conf: update to latest spec 2024-10-31 10:46:03 +03:00
Dockerfile Feat/consolidate functionality (#22) 2024-10-31 10:41:43 +03:00
go.mod build(deps): bump github.com/kamikazechaser/common from 0.2.0 to 1.0.0 2024-11-04 18:30:55 +00:00
go.sum build(deps): bump github.com/kamikazechaser/common from 0.2.0 to 1.0.0 2024-11-04 18:30:55 +00:00
LICENSE release: v1.0.0-beta 2024-06-10 15:36:26 +08:00
Makefile Feat/consolidate functionality (#22) 2024-10-31 10:41:43 +03:00
queries.sql Feat/consolidate functionality (#22) 2024-10-31 10:41:43 +03:00
README.md docs: update README 2024-09-30 10:47:03 +03:00

eth-indexer

GitHub Tag

A lightweight Postgres chain indexer designed to couple with eth-tracker to index all relevant GE related blockchain data on any EVM chain.

Getting Started

Prerequisites

  • Git
  • Docker
  • Postgres server
  • Access to a eth-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/eth-indexer.git
cd eth-indexer
docker buildx build --build-arg BUILD=$(git rev-parse --short HEAD) --tag eth-indexer:$(git rev-parse --short HEAD) --tag eth-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.