The world's first Universal Cross-Chain Prediction Market platform powered by Push Network's revolutionary technology and Push UI Kit. Trade on real-world events with seamless universal wallet integration and cross-chain interactions.
- π Push Universal Wallet - Seamless multi-chain wallet integration with Push UI Kit
- π Universal Authentication - Email, Google, and Web3 wallet login options
- β‘ Push Chain Client - Direct integration with Push Network's universal blockchain
- π― Binary Prediction Markets - Trade on Yes/No outcomes with PC tokens
- π Live Price Feeds - Real-time crypto prices powered by Pyth Network
- π Real-time Activity - Live betting tracking and market updates
- π€ Universal Dashboard - Complete betting history and portfolio management
- π¬ Comments System - Market discussions and community engagement
- π§ Admin Controls - Market creation and resolution tools
- π± Responsive Design - Mobile-first UI with Push Network theme
- Frontend: Next.js 15, TypeScript, Tailwind CSS
- Universal Blockchain: Push Network Donut Testnet
- Wallet Integration: Push UI Kit (@pushchain/ui-kit)
- Universal SDK: @pushchain/core for blockchain interactions
- Price Feeds: Pyth Network (Real-time crypto prices)
- Smart Contracts: Solidity with Push Network integration
- Database: Supabase (PostgreSQL) with universal schema
- State Management: Zustand with Push Wallet Context
- UI Components: Radix UI, Lucide Icons with Push Network theme
- Authentication: Push Universal Wallet (Email, Google, Web3)
- Network: Push Network Donut Testnet (Chain ID: 42101)
- Token: PC (Push Coin)
- RPC: https://evm.rpc-testnet-donut-node1.push.org/
- Explorer: https://donut.push.network
- Contract:
0x0fA9052a598799d8ef7061bd74915E92532E5DE9 - Wallet Integration: Push UI Kit with Universal Wallet
- Service: Real-time price data provider
- API: Hermes API (https://hermes.pyth.network)
- Update Frequency: Every 5 seconds
- Supported Assets: BTC, ETH, SOL, USDC, USDT
- Integration: Automatic price detection for crypto markets
- Node.js 18+ and npm
- Push Universal Wallet (Email, Google, or Web3 wallet)
- PC tokens (Push Network) - Primary currency
- Push UI Kit integration for seamless wallet experience
- Clone the repository
git clone <repository-url>
cd push-predict- Install dependencies
npm install- Environment setup
cp .env.example .env
# Configure your environment variables- Run development server
npm run dev- Open application
http://localhost:3000
# Push Network Configuration
NEXT_PUBLIC_PUSH_RPC_URL=https://evm.rpc-testnet-donut-node1.push.org/
NEXT_PUBLIC_CONTRACT_ADDRESS=0x0fA9052a598799d8ef7061bd74915E92532E5DE9
NEXT_PUBLIC_ADMIN_ADDRESS=<admin_wallet_address>
NEXT_PUBLIC_PUSH_CHAIN_ID=42101
# Push UI Kit Configuration
# No additional configuration needed - Push UI Kit handles wallet connections
# Private Keys (Server-side)
PRIVATE_KEY=<main_account_private_key>
# Supabase Database
NEXT_PUBLIC_SUPABASE_URL=<your_supabase_url>
NEXT_PUBLIC_SUPABASE_ANON_KEY=<your_supabase_anon_key>
SUPABASE_SERVICE_ROLE_KEY=<service_role_key>
# App Configuration
NEXT_PUBLIC_APP_URL=http://localhost:3000
# Pyth Network (Price Feeds)
# No API key required - uses public Hermes API
# Automatic integration for crypto price feedsπ Production URL: https://push-predict.vercel.app
- Install Vercel CLI
npm i -g vercel- Login to Vercel
vercel login- Deploy the project
vercel --prod- Set environment variables in Vercel Dashboard
- Go to your project settings in Vercel
- Add all environment variables from
.env.example - Make sure to set production values
- Redeploy after setting environment variables
vercel --prodRequired environment variables for Vercel deployment:
# Public variables (safe to expose)
NEXT_PUBLIC_CONTRACT_ADDRESS=0x0fA9052a598799d8ef7061bd74915E92532E5DE9
NEXT_PUBLIC_PUSH_RPC_URL=https://evm.rpc-testnet-donut-node1.push.org/
NEXT_PUBLIC_PUSH_CHAIN_ID=42101
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
NEXT_PUBLIC_ADMIN_ADDRESS=your_admin_address
# Private variables (server-side only)
PRIVATE_KEY=your_private_key
SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_key- Connect with Push Universal Wallet - Email, Google, or Web3 wallet options
- Automatic Push Network Setup - Seamless connection to Push Chain
- Browse Prediction Markets - Explore available betting opportunities
- Place Bets with PC Tokens - Direct betting on Push Network
- Track Performance - View complete betting history and portfolio
- Claim Winnings - Collect rewards from successful predictions
- Join Discussions - Comment and engage with the community
- Create Markets - Set up new prediction markets
- Monitor Activity - Track platform usage and statistics
- Resolve Markets - Determine outcomes and distribute winnings
- Manage Platform - Oversee all market operations
- Address:
0x0fA9052a598799d8ef7061bd74915E92532E5DE9 - Network: Push Network Donut Testnet
- Platform Fee: 2.5%
- Min Bet: 0.01 PC
- Max Bet: 10 PC
- β Push UI Kit Integration - Seamless wallet connection
- β Universal Authentication - Multiple login methods
- β Push Chain Client - Direct blockchain interaction
- β PC Token Betting - Native Push Network currency
- β Real-time Updates - Live market data and activity
# Contract Deployment
npx hardhat run scripts/deploy.js --network push_testnet
# Market Management
node scripts/create-eth-market.js # Create ETH prediction market
node scripts/create-btc-market.js # Create BTC prediction market
node scripts/resolve-market.js # Resolve market outcomes
# Push Network Testing
node scripts/test-push-universal.js # Test Push Network features
node scripts/test-real-universal-bet.js # Test betting functionality
# Database Management
node scripts/sync-markets-to-supabase.js # Sync blockchain to database
node scripts/check-bet-activities.js # Check bet activity records
node scripts/check-markets.js # Verify market dataThe application uses Supabase for cross-chain data storage:
- π Universal Markets - Cross-chain market information
- π Cross-Chain Bet Activities - Multi-blockchain betting history
- π₯ Universal Users - Cross-chain user profiles and mapping
- π¬ Universal Comments - Multi-chain market discussions
- π Cross-Chain Analytics - Universal platform statistics
-- Execute supabase-schema.sql in your Supabase SQL Editor
-- Includes cross-chain tables with foreign key relationships
-- Supports multi-blockchain user activities and positionsmarkets- Universal market data with supported_chainsbet_activities- Cross-chain betting records with chain_namespaceuser_positions- Multi-chain user positions with original_addressusers- Universal user profiles with chain mapping
See diagrams.md for detailed system architecture and flow diagrams.
βββ src/
β βββ app/ # Next.js app router pages
β βββ components/ # React components
β βββ hooks/ # Custom React hooks
β βββ lib/ # Utility libraries
β βββ providers/ # Context providers
β βββ types/ # TypeScript definitions
βββ contracts/ # Solidity smart contracts
βββ scripts/ # Deployment and utility scripts
βββ public/ # Static assets
- Market Cards - Display market information
- Bet Dialog - Handle bet placement with validation
- Activity Feed - Show real-time betting activity
- Comments System - Enable market discussions
- Admin Dashboard - Market management tools
- Smart Contract Audited - Comprehensive security review
- Input Validation - Client and server-side validation
- Rate Limiting - API protection against abuse
- Wallet Security - Non-custodial, user-controlled funds
- Region Restrictions - Compliance with local regulations
- 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
This project is licensed under the MIT License - see the LICENSE file for details.
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β Ethereum β β Push Network β β Solana β
β Sepolia β β (Primary) β β Devnet β
β β β β β β
β ETH Payment βββββΆβ PC Betting ββββββ SOL Payment β
β User Signs β β Contract Exec β β User Signs β
β Bridge Auto β β Universal SDK β β Bridge Auto β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β β β
βββββββββββββββββββββββββΌββββββββββββββββββββββββ
β
βββββββββββββββββββ
β Universal β
β Database β
β (Supabase) β
βββββββββββββββββββ
- π© Push Network Team - For revolutionary universal blockchain technology
- β Ethereum Foundation - For robust cross-chain infrastructure
- β Solana Labs - For high-performance blockchain integration
- π RainbowKit - For excellent multi-chain wallet UX
- ποΈ Supabase - For reliable universal database and real-time features
- β‘ Vercel - For seamless deployment and hosting
- π Universal Documentation: Learn Page
- π§ Issues: GitHub Issues
- π¬ Community: Push Network Discord
- π© Push Network: Official Website
π Built with β€οΈ for the Universal Cross-Chain Future
Powered by Push Network's Revolutionary Technology
enliven 2025