hackquest logo

Grass.fun

CONNECT. PLAY. REPEAT.

Videos

Description

๐ŸŽฎ Grass.fun โ€“ U2U Gaming Platform

Grass.fun is a blockchain-based gaming platform on U2U Solaris Mainnet, offering multiple casino-style games with provably fair mechanics. Play, win, and earn real U2U tokens!


๐ŸŒŸ Features

๐ŸŽฏ Games

  • Coinflip โ€“ Classic heads or tails

  • Mines โ€“ Risk vs reward minefield game

  • Rugs (Crash) โ€“ High-stakes crash game

  • Paaji On Top โ€“ Grid-based game with progressive rewards

๐Ÿ” Blockchain Integration

  • U2U Solaris Mainnet โ€“ Fast, secure, low-cost

  • Smart Contract Logic โ€“ Transparent and provably fair

  • Automated Resolution โ€“ No manual intervention

  • Real-time Wallet Balance โ€“ Instant updates

๐Ÿ’ฐ Financial Features

  • U2U Token Support โ€“ Native token for all games

  • Multi-currency Display โ€“ U2U, USD, INR

  • Instant Withdrawals โ€“ Secure and fast

๐Ÿ“Š Analytics

  • Personal stats and performance tracking

  • Global leaderboard

  • Game history and charts

๐ŸŽจ UI/UX

  • Fully responsive

  • Dark theme for eye comfort

  • Smooth animations and sound effects


๐Ÿ† Games

๐Ÿช™ Coinflip

  • Predict heads or tails, 1.95x multiplier

๐Ÿ’ฃ Mines

  • Find gems, avoid mines, up to 24x multiplier

๐Ÿš€ Rugs (Crash)

  • Cash out before the crash, dynamic multiplier

๐ŸŽฏ Paaji On Top

  • Navigate the grid to reach the top, progressive rewards


๐Ÿ† Global Leaderboard

Compete globally and climb the rankings!


๐Ÿ“‹ Contract Information

Current Deployment

Contract Features

  • โœ… Provably Fair Gaming - All games use transparent, verifiable mechanics

  • โœ… Multi-Game Support - Mines, Crash, Paaji, Coinflip

  • โœ… User Statistics - Complete gaming history and performance tracking

  • โœ… Instant Withdrawals - Fast and secure U2U token transfers

  • โœ… Real-time Price Conversion - Live U2U to USD/INR rates

๐ŸŽฏ Game Resolution System

Grass.fun uses an automated resolver system that processes game outcomes without user intervention:

How It Works

  1. User plays game โ†’ Game state stored on-chain via smart contract

  2. Automated resolution โ†’ Games are resolved based on provably fair outcomes

  3. Winnings credited โ†’ Users can withdraw U2U tokens from stats page

  4. Real-time updates โ†’ All statistics and balances update instantly

Resolution Features

  • โœ… Provably Fair - All game outcomes are transparent and verifiable

  • โœ… Instant Processing - Games resolve immediately after completion

  • โœ… Secure Withdrawals - U2U tokens transferred directly to user wallets

  • โœ… Complete History - All games and transactions are recorded on-chain

๐Ÿ“Š Smart Contract Methods

User Methods

  • startGame(gameId, gameType) - Start a new game with U2U bet

  • withdraw() - Withdraw winnings to wallet

  • getUserStats(address) - Get user statistics

Game Types

  • "mines" - Minesweeper game

  • "crash" - Crash multiplier game

  • "paaji" - Paaji On Top game

  • "coinflip" - Coin flip game

Contract Events

  • GameStarted(address indexed player, string gameId, string gameType, uint256 betAmount)

  • GameResolved(address indexed player, string gameId, bool didWin, uint256 multiplier)

  • Withdrawal(address indexed player, uint256 amount)

๐ŸŽฏ Roadmap

Cross-Chain

  • NEAR Intents โœ…

  • Multi-chain gaming

  • Universal leaderboard

  • Cross-chain tournaments

Gaming Features

  • Mobile app

  • Tournament mode

  • NFT rewards

  • Social features

  • Additional games

Technical Improvements

  • Layer 2 support

  • Advanced analytics

  • AI-powered recommendations

  • Developer APIs


๐Ÿ™ Acknowledgments

  • U2U Solaris โ€“ EVM-compatible blockchain

  • Next.js Team โ€“ React framework

  • Open Source Community โ€“ Tools and libraries


Built with โค๏ธ by the Grassdotfun Team
Decentralized gaming, reimagined on U2U Solaris


Progress During Hackathon

Built a blockchain-based gaming platform on U2U Solaris Mainnet. Implemented multiple casino-style games: Coinflip, Mines, Crash (Rugs), and Paaji On Top. Integrated provably fair smart contracts with automated game resolution. Enabled real-time U2U token support, price conversions, and instant withdrawals. Developed user analytics: stats tracking, leaderboard, and game history. Designed responsive, dark-themed UI with smooth animations and sound effects.

Tech Stack

React
Next
Web3
Ethers
Solidity
Node
Team Leader
DDebanjan Mondal
Sector
GamingSocialFiDeFi