BitChicken

Stack — RW.BC.Indexer

Tecnologias

Camada Tecnologia Versao Notas
Framework de indexacao Ponder 0.16.6 Event-driven; indexacao paralela com reorg handling
Runtime Node.js >= 24 Obrigatorio (ESM nativo, engines no package.json)
Linguagem TypeScript ^5 strict: true, noUncheckedIndexedAccess: true
Cliente EVM viem ^2.52.2 Leitura de contrato via context.client.readContract
Banco de dados PostgreSQL 17.6 (pin Aspire) Schema indexer; tambem usa ponder_sync internamente
Driver Postgres pg ^8.21.0 Usado no script reset-schema.mjs
API integrada Hono (transitiva via ponder) Expoe endpoints SQL client e GraphQL
Empacotador esbuild (transitiva via ponder) Build e watch do codigo dos handlers
Verificacao de tipos tsc ^5 typecheck no CI (sem emissao)

Arquitetura

Padrao: event-sourcing read-model (Model B).

Chain (BSC / Anvil)
        |  eventos via RPC (WebSocket/HTTP)
        v
   Ponder 0.16.6
        |  handlers TypeScript por evento
        v
  Postgres schema "indexer"   <--- RW.BC.Api le via Gridify + SignalR
        |
        v
  API HTTP embutida do Ponder
    /sql/*   (SQL client — uso interno/debug)
    /graphql  (GraphQL — nao usado pela Api .NET)

Deploy