Indexes the new Polymarket V2 exchange stack on Polygon, built with Envio HyperIndex.
| Contract | Address | What it tracks |
|---|---|---|
| CTFExchange V2 (x3) | 0xe11118..., 0xe2222d...0f59, 0xe2222d...0036 |
OrderFilled (with builder codes + metadata), OrdersMatched, FeeCharged, pause events |
| PolyUSD | 0xc011a7e1...82dfb |
Transfers, balances, Wrapped/Unwrapped (USDC/USDC.e to pUSD) |
| Rewards | 0xdd8db7...e8b |
Market sponsorship, reward distribution |
OrderFill: every V2 trade with maker, taker, side, tokenId, fee, builder codeOrderMatch: matched order pairsFeeEvent: fee collectionPolyUSDTransfer / PolyUSDWrap / PolyUSDAccount: pUSD flow and balancesPolyUSDStats: total supply, wrapped/unwrapped volumesExchangeStats: per-exchange aggregates (volume, fills, fees, builder fills)SponsoredMarket / Sponsorship / RewardDistribution: rewards systemA HyperSync API token is required. Create one at https://envio.dev/app/api-tokens, then:
cp .env.example .env
# edit .env and set ENVIO_API_TOKEN to your token
Then:
pnpm install
pnpm codegen
pnpm dev
Visit http://localhost:8080 for the GraphQL playground (password: testing).
pnpm test
12 tests covering all handlers with real on-chain data (via HyperSync) and simulated events.
$ claude mcp add polymarket-v2-indexer \
-- python -m otcore.mcp_server <graph>