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 |
- Builder codes on every order fill for on-chain attribution
- PolyUSD (pUSD) replaces USDC.e as collateral, backed 1:1 by USDC
- EIP-1271 smart contract wallet signatures
- Per-user pause capability
- Market sponsorship rewards system
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 system
A 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 tokenThen:
pnpm install
pnpm codegen
pnpm devVisit http://localhost:8080 for the GraphQL playground (password: testing).
pnpm test12 tests covering all handlers with real on-chain data (via HyperSync) and simulated events.