A modern, full-featured decentralized prediction market built on Core Blockchain where users can make predictions on various future events and earn CORE tokens for accurate predictions.
- π Prediction Markets - Create and participate in prediction markets for crypto, sports, finance, and politics
- π° CORE Token Rewards - Earn CORE tokens for accurate predictions
- π Secure Smart Contracts - Built on Core Blockchain for transparency and security
- π± Responsive Design - Works seamlessly on desktop, tablet, and mobile devices
- π― Intuitive Betting Interface - Easy-to-use betting system with real-time odds
- π Live Market Data - Real-time market updates and price movements
- π Leaderboards - Compete with other users and track your ranking
- π Personal Dashboard - Track your bets, earnings, and performance
- ποΈ Achievement System - Unlock badges and achievements for milestones
- π Advanced Filtering - Search and filter markets by category, volume, and time
- β° Real-time Odds - Dynamic odds that update based on market activity
- π Market Details - Comprehensive market information and resolution criteria
- π Market Categories - Crypto, Sports, Finance, Politics, and more
- π Time-based Markets - Markets with clear resolution dates and criteria
Before running this project, make sure you have the following installed:
- Node.js (v18 or higher)
- npm or yarn package manager
- Git for version control
-
Clone the repository ```bash git clone https://github.com/your-username/CoreOracle.git cd CoreOracle ```
-
Install dependencies ```bash npm install
yarn install ```
-
Run the development server ```bash npm run dev
yarn dev ```
-
Open your browser Navigate to http://localhost:3000 to see the application.
``` CoreOracle/ βββ app/ # Next.js App Router β βββ dashboard/ # User dashboard pages β βββ leaderboard/ # Leaderboard pages β βββ markets/ # Market listing and detail pages β βββ globals.css # Global styles β βββ layout.tsx # Root layout β βββ page.tsx # Home page βββ components/ # Reusable components β βββ ui/ # shadcn/ui components β βββ avatar.tsx β βββ badge.tsx β βββ button.tsx β βββ card.tsx β βββ input.tsx β βββ label.tsx β βββ progress.tsx β βββ select.tsx β βββ separator.tsx β βββ tabs.tsx βββ lib/ # Utility functions β βββ utils.ts # Class name utilities βββ public/ # Static assets βββ README.md # Project documentation βββ next.config.mjs # Next.js configuration βββ package.json # Dependencies and scripts βββ tailwind.config.ts # Tailwind CSS configuration βββ tsconfig.json # TypeScript configuration ```
- Primary: Purple gradient (#8B5CF6 to #EC4899)
- Background: Dark slate (#0F172A, #1E293B)
- Success: Green (#10B981)
- Error: Red (#EF4444)
- Warning: Yellow (#F59E0B)
- Font Family: Inter (system font fallback)
- Headings: Bold weights (600-700)
- Body: Regular weight (400)
- Code: Monospace font family
- Cards: Rounded corners with subtle shadows
- Buttons: Multiple variants (primary, secondary, outline)
- Badges: Rounded pills for categories and status
- Forms: Clean inputs with focus states
- Hero section with platform introduction
- Featured markets showcase
- Platform statistics
- Call-to-action buttons
- Browse all available prediction markets
- Search and filter functionality
- Market categories and sorting options
- Quick betting interface
- Detailed market information
- Interactive betting interface
- Recent activity feed
- Market rules and resolution criteria
- Personal statistics and performance
- Active bets tracking
- Recent activity history
- Achievement system
- Top predictors by accuracy
- Top earners by volume
- Monthly rewards information
- User rankings and badges
- Next.js 14 - React framework with App Router
- TypeScript - Type-safe JavaScript
- Tailwind CSS - Utility-first CSS framework
- shadcn/ui - Modern UI component library
- Radix UI - Accessible component primitives
- Lucide React - Beautiful icon library
- Tailwind CSS - For responsive design and utilities
- CSS Variables - For theme customization
- Dark Mode - Built-in dark theme support
- Smart Contracts - Secure bet placement and resolution
- CORE Token - Native token for betting and rewards
- Wallet Integration - MetaMask and Core wallet support
- Transaction History - On-chain transaction tracking
- `placeBet(marketId, outcome, amount)` - Place a prediction bet
- `resolveMarket(marketId, outcome)` - Resolve market outcome
- `claimRewards(marketId)` - Claim winnings from resolved markets
- `createMarket(details)` - Create new prediction markets
- Browse and search prediction markets
- Place bets on market outcomes
- Track personal performance
- Earn rewards for accurate predictions
- Participate in leaderboards
- Create new prediction markets
- Set market parameters and resolution criteria
- Earn fees from market activity
- Manage market lifecycle
- Resolve market outcomes based on real-world data
- Verify resolution criteria
- Handle dispute resolution
- Maintain platform integrity
- Bitcoin and altcoin price predictions
- DeFi protocol performance
- NFT market trends
- Blockchain adoption metrics
- Football, basketball, soccer matches
- Tournament winners and outcomes
- Player performance metrics
- Season-long predictions
- market movements
- Economic indicators
- Interest rate changes
- Company earnings
- Election outcomes
- Policy decisions
- Approval ratings
- Legislative votes
```bash
npm run build
npm start
We welcome contributions to CoreOracle! Please follow these steps:
- Fork the repository
- Create a feature branch (`git checkout -b feature/amazing-feature`)
- Commit your changes (`git commit -m 'Add amazing feature'`)
- Push to the branch (`git push origin feature/amazing-feature`)
- Open a Pull Request