Skip to content

BuidlGuidl/bg-ponder-indexer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

406fafc · Feb 14, 2025

History

26 Commits
Jan 3, 2024
Feb 14, 2025
Jan 6, 2025
Jan 3, 2024
Jan 8, 2024
Jun 11, 2024
Jan 8, 2024
Jan 6, 2025
Jan 6, 2025
Jan 6, 2025
Feb 14, 2025
Feb 14, 2025
Jan 3, 2024

Repository files navigation

BG Indexer (powered by Ponder)

This indexer is fetching all the events happening on BG Cohorts contracts

If you create a new cohort and want to index its events, just make a PR adding the cohort address to ponder.config.ts

Dev Setup

  1. Clone
  2. npm install
  3. Copy .env.example to .env.local and fill the RPCs (mainnet/op). Database can be null locally (but see below for local DB setup).
  4. npm run dev

Open the GraqhQL playground at http://localhost:42069. GraphQL explorer (third icon) is useful to see what queries are available.

Local PostgreSQL Database

You can create a local PostgreSQL database with the provided docker-compose.yml file. Run:

docker-compose up -d