Fair, transparent prediction challenges for creators & communities. Hybrid resolution using Pyth Oracle for numeric events and creator-submitted answers verified by a trusted admin for major events (sports, competitions, etc.) Built on Stacks blockchain with Clarity smart contracts.
- Pyth Oracle: Automatic resolution for numeric events (crypto/price-based predictions).
- Creator-Submitted Answers Verified by Admin: For major events like sports, the creator provides the correct outcome, and the trusted admin only confirms it on-chain. The admin cannot modify or choose outcomes, ensuring full transparency and fairness.
- Users submit predictions on-chain.
- Each event must have at least 3 prediction options.
- On-chain timestamps prevent disputes.
- Admin role is limited to verifying creator-submitted answers, never arbitrarily resolving events.
-
Event Creation (Creator)
- Define
title,prediction options(≥3), start & end block. - Creator submits the correct answer after event ends (or before for scheduled events).
- Optional reward locked (STX) for winners.
- Define
-
User Participation
- Submit a prediction on-chain before the event ends.
- Prediction stored with timestamp for transparency.
-
Event Resolution
-
After event ends:
- Numeric predictions: Resolved automatically via Pyth Oracle.
- Major events: Creator submits the correct outcome. Admin only verifies and confirms it on-chain.
-
Contract calculates points based on correct predictions.
-
-
Leaderboard Update
- Users earn points based on correct predictions.
- Leaderboards update in real-time for each event or season.
-
Rewards & NFT Badges
- Winners automatically receive STX rewards (if enabled).
- Optional NFT badges minted as proof of skill.
Notes:
creator-submitted-answeris the definitive outcome.admin-verifiedconfirms the answer is valid and accepted on-chain.- Admin cannot change the answer, only verify it.
- Admin cannot modify predictions or outcomes.
- Admin only verifies the answer submitted by the creator.
- This ensures that all events remain transparent, fair, and verifiable.
This makes the hybrid model fully transparent:
- Pyth handles numeric data automatically.
- Creator submits the outcome for non-numeric events.
- Admin confirms it.
- Users’ predictions are scored automatically and leaderboard updated.
This is a mono-repo structure:
contracts/: Stacks/Clarity smart contracts (Clarinet project).frontend/: Next.js web application.
- Clarinet (for contracts)
- Node.js & npm (for frontend)
Run these from the root:
npm run frontend:dev: Start Next.js dev server.npm run contracts:check: Check Clarity contracts.
