crossr
Build on crossr

Indexer

  • One Bun process indexes every configured chain into Postgres: launches, legs, trades, candles (1 minute), holders, bridge_transfers, hook_fees, relay_events, prices. Schema in apps/indexer/db/schema.sql, migrations run at boot.
  • Configure with DATABASE_URL, CHAIN_IDS, ALCHEMY_API_KEY or RPC_URL_<chainId>, CONFIRMATIONS, POLL_MS, CHUNK. DEPLOYMENTS_JSON overrides addresses without a rebuild. GET /health on PORT.
  • With KEEPER_PRIVATE_KEY set, the keeper watches ReadyToGraduate / AutoGraduationFailed and calls graduate(token) itself. It needs a little gas on every chain.