Paraape
Run it

Indexer

Ponder index for markets, policies, LP rows, and keeper targets.

apps/indexer indexes factory MarketCreated, vault lifecycle, and PriceObserver.Recorded on chain 46630. The web app and the keeper both read it.

cd apps/indexer
cp .env.example .env
pnpm dev

pnpm dev serves port 42069 and does not need DATABASE_SCHEMA. pnpm start does. Production should set DATABASE_URL to Postgres. Dev uses embedded PGlite.

Variable
PONDER_RPC_URL_46630HTTP RPC. You can reuse ROBINHOOD_TESTNET_RPC_URL
MARKET_FACTORY_ADDRESSFACTORY_ADDRESS from the deploy you want to follow
MARKET_FACTORY_START_BLOCKThe block that created that factory
PRICE_OBSERVER_ADDRESSobserver from the same deploy
KEEPER_EXTRA_POOL_REFSOptional extra pool ids merged into keeper targets

The start block has to be that factory's creation block. An earlier block replays older factories. A later block misses markets. Restart after you change either value.

HTTP

Route
GET /marketsEvery market
GET /markets/token/:addressOne token, with vault, policies, oracle, cells
GET /policies/buyer/:addressPolicies for a wallet
GET /lp/:addressLP shares
GET /activity/wallet/:addressPurchases, deposits, settle, challenge, release
GET /keeper/targetspoolRefs and vaultAddresses
GET /graphqlSchema GraphQL
GET /readyNot ready until backfill finishes

/keeper/targets is each insured pool, plus pools seen in Recorded, plus KEEPER_EXTRA_POOL_REFS.

Vaults are discovered from MarketCreated. This process does not upgrade rows from an old factory. Point it at the new address and start block.

On this page