Skip to content

Prediction Market IndexerHigh-Performance Analytics for Gnosis CTF & Polymarket

Alternative to Subgraph. Built with Ponder & Hono.

Overview

This project provides a robust backend infrastructure for Prediction Market applications, indexing the Gnosis Conditional Tokens Framework (CTF).

Key Features

  • Multi-Chain Support: Configured for Polygon Mainnet.
  • Core Models: Markets, Outcomes, Positions, UserStats.
  • Dockerized: Ready to deploy with docker-compose.

Quick Start

1. Installation

bash
pnpm install

2. Start Database

bash
docker-compose up -d

3. Run Services

bash
# Terminal 1: Indexer
cd apps/indexer && pnpm dev

# Terminal 2: API
cd apps/api && pnpm dev

Visit http://localhost:3000/markets to see the API in action.