All projects

OracleBets

Decentralized prediction markets auto-resolved by 3 Chainlink CRE workflows on Base Sepolia

Prediction Markets

What it is

OracleBets creates fully decentralized prediction markets that are automatically resolved by Chainlink CRE workflows. Users create markets betting on crypto prices, GitHub stars, DeFi TVL, or any verifiable metric. Three CRE workflows run continuously on the DON: 1) Price Resolver (every 60s) fetches crypto prices via CoinGecko with DON consensus and resolves price markets, 2) Event Resolver (every 5min) checks GitHub and DefiLlama APIs for non-price markets, 3) AI Suggester (every 30min) analyzes trending crypto data to suggest new markets. On-chain, OracleBetsMarket handles market creation and betting, while OracleBetsResolver receives signed CRE reports for trustless resolution. This solves the trust problem in prediction markets - no centralized oracle or manual resolution needed.

How it Works

Full-stack application with 3 CRE workflows (TypeScript + CRE SDK), 2 Solidity smart contracts (Foundry), Express.js backend, and React+Vite frontend with RainbowKit wallet connection. Each CRE workflow uses cron triggers, EVMClient for on-chain reads (pending markets) and writes (resolution reports), and HTTPClient for external API calls (CoinGecko, GitHub, DefiLlama). Workflows use consensusMedianAggregation for DON-wide agreement on data values. Contracts deployed on Base Sepolia. Stack: CRE SDK, TypeScript, Foundry, Solidity, React, Vite, Express, Viem.

Links

Created by

  • Alex Tolmach