Skip to content

CF-LLC/RogueCoinGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

25 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ RogueCoin - Polygon Crash Game

A decentralized crash game built on Polygon blockchain with RogueCoin (RGC) token.

๐ŸŒ Live Demo

Production Site: https://cf-llc.github.io/RogueCoinGame/

๐Ÿช™ Contract Addresses (Polygon Mainnet)

  • RGC Token: 0x0708a9DD95F191711221D5D0BC8B12B2C5b7bC5e
  • Airdrop Contract: 0xd2D45bdf0e4C8393E9BC57bAd363b01Eaeb377f9
  • Crash Game Contract: 0xf8f6F8f1c656DbD0540C26B3Bfa1969B500AdB5c

โœจ Features

๐ŸŽฎ Crash Game

  • Place bets using RGC tokens
  • Watch the multiplier rise in real-time
  • Cash out before the crash to win
  • Provably fair randomness
  • Anti-whale protection

๐Ÿช‚ Token Airdrop

  • Claim 1,000 RGC tokens
  • Small POL fee (0.001)
  • One claim per wallet
  • Funded with 1M RGC

๐Ÿช™ RGC Token Features

  • Total Supply: 1 billion RGC
  • Team Vesting: 24-month linear release
  • Anti-whale limits: 2% max transaction/wallet
  • Burnable & Pausable
  • Trading controls

๐Ÿ”ง Technology Stack

  • Frontend: Next.js 15, React 19, TypeScript
  • Styling: Tailwind CSS, Radix UI
  • Blockchain: Polygon (POL), Ethers.js v6
  • Smart Contracts: Solidity 0.8.20, OpenZeppelin v5
  • Development: Hardhat, GitHub Actions
  • Deployment: GitHub Pages (Static Export)

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 18+
  • MetaMask wallet
  • POL tokens for gas fees

Installation

# Clone the repository
git clone https://github.com/CF-LLC/RogueCoinGame.git
cd RogueCoinGame

# Install dependencies
npm install

# Start development server
npm run dev

Open http://localhost:3000 in your browser.

Build for Production

# Build and export static files
npm run build

# The static files will be in the 'out' directory

๐ŸŽฎ How to Play

  1. Connect Wallet: Connect MetaMask to Polygon Mainnet
  2. Get RGC Tokens: Claim from airdrop or buy on exchanges
  3. Place Bet: Enter bet amount and click "Place Bet"
  4. Watch Multiplier: See the rocket fly and multiplier rise
  5. Cash Out: Click "Cash Out" before the crash to win!

๐Ÿ“ฑ Mobile Support

Fully responsive design works on:

  • Desktop browsers
  • Mobile web browsers
  • MetaMask mobile app

๐Ÿ”’ Security Features

  • Smart Contract Audited: Professional tokenomics
  • ReentrancyGuard: Protection against reentrancy attacks
  • Pausable Contracts: Emergency stop functionality
  • Access Controls: Owner-only administrative functions
  • Rate Limiting: Anti-spam protection

๐ŸŒ Network Information

Polygon Mainnet

Adding Polygon to MetaMask

The app will automatically prompt you to add Polygon network.

๐Ÿ“Š Token Distribution

  • Team (Vested): 200M RGC (20%) - 24 months
  • Liquidity: 300M RGC (30%)
  • Community: 250M RGC (25%)
  • Airdrop: 150M RGC (15%)
  • Game Treasury: 100M RGC (10%)

๐Ÿ› ๏ธ Development

Environment Variables

Create a .env.local file:

# Contract addresses are already configured for mainnet
NEXT_PUBLIC_RGC_TOKEN_ADDRESS=0x0708a9DD95F191711221D5D0BC8B12B2C5b7bC5e
NEXT_PUBLIC_AIRDROP_ADDRESS=0xd2D45bdf0e4C8393E9BC57bAd363b01Eaeb377f9
NEXT_PUBLIC_CRASH_GAME_ADDRESS=0xf8f6F8f1c656DbD0540C26B3Bfa1969B500AdB5c
NEXT_PUBLIC_CHAIN_ID=137

Available Scripts

npm run dev          # Start development server
npm run build        # Build for production
npm run start        # Start production server
npm run lint         # Run ESLint
npm run compile      # Compile smart contracts
npm run test         # Run contract tests
npm run check-config # Check contract configuration
npm run deploy:polygon # Deploy contracts to Polygon mainnet

Smart Contract Development

# Compile contracts
npm run compile

# Run tests
npm run test

```bash
# Deploy to Polygon mainnet
npm run deploy:polygon

## ๐Ÿš€ Deployment

### Automatic Deployment
- **GitHub Actions** automatically deploys to GitHub Pages
- **Trigger:** Push to `main` branch
- **URL:** https://cf-llc.github.io/RogueCoinGame/

### Manual Deployment

```bash
# Build static export
npm run build

# Deploy the 'out' directory to your hosting provider

๐Ÿ”— Links

๐Ÿ“ž Support

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.


โš ๏ธ Disclaimer: This is a game of chance. Only bet what you can afford to lose. Smart contracts are provided as-is.

About

Crypto airdrop and Crash game for RogueCoin

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors