Introduction
The Data Latency and Complexity Problem
The Polkamarkets protocol, as a set of smart contracts on the Polygon PoS chain, emits event logs as the system of record. While this ensures state correctness and immutability, it presents significant challenges for real-time analytics:
Data Fragmentation: Critical market state is dispersed across multiple contract calls and emitted events (e.g.,
MarketCreated,PositionMinted,MarketResolved).Computational Intensity: Deriving key metrics (e.g., user PnL, implied probability, market liquidity depth) requires aggregating and computing over large, distributed datasets on-demand, which is computationally prohibitive and slow via direct RPC calls.
Lack of Historical Context: The blockchain state represents the present; analyzing historical trends requires storing and indexing every state change.
Polysight is architected to be a decentralized application's (dApp) primary data service layer, bridging the gap between the raw blockchain state and a consumable, high-performance analytics interface.
Last updated