Docs
Build layout & protocol surface
High-level map of the MVP: Next.js frontend, Anchor program on Solana, indexer-backed API, and the routes users and admins touch.
Frontend
- Next.js (App Router), Tailwind, Solana Wallet Adapter
- Zustand for UI; SWR / React Query for data
- Helius RPC for reads and transactions
Key routes
/ — market dashboard /markets/[id] — market detail + trade /portfolio — positions & claims /admin — gated ops /resolution/[id] — resolved market + audit log
On-chain (Anchor)
Core accounts: MarketState, LiquidityPool (USDC vault + LMSR b), UserPosition, ResolutionLog.
create_market · seed_liquidity · buy_shares · sell_shares close_market · resolve_market · invalidate_market claim_payout · refund_position
API (sketch)
- GET /markets
- GET /markets/:id
- GET /portfolio/:wallet
- GET /markets/:id/activity
- POST /admin/markets
- POST /admin/markets/:id/resolve
Helius webhooks feed PostgreSQL views for odds, activity, and portfolio aggregates.
Resolution rules document
Before trading opens, a stable public URL hosts the full rules: sources per market, outcome definitions (including Other Project), tie handling, invalidation, multisig address, expected resolution window, and claim expiry (90 days post-resolution recommended). That URL is linked from every market's rules UI.
Resolution copy (required)
Resolved based on the official Colosseum Frontier winners announcement.