hackquest logo

HyperArena

A competitive car soccer game with blockchain tournaments on Mantle. Stake tokens, compete in 1v1 matches, and earn mETH rewards from liquid staking pools. Cross-platform Web3 gaming.

Videos

Tech Stack

Solidity
Unity
Web3
Ethers

Description

HyperArena is a blockchain-powered car soccer game that brings competitive esports to Web3 with stake-to-earn tournaments on Mantle Network.

Links


What We Built

A fully functional multiplayer game where players:

  • Compete in fast-paced 1v1 car soccer matches

  • Stake ERC-20 tokens to enter blockchain-verified tournaments

  • Earn mETH rewards through Mantle's liquid staking integration

  • Play cross-platform on PC, Android, and iOS

Key Innovations

šŸš€ Liquid Staking Integration: Tournament entry fees are automatically staked in Mantle's staking protocol, earning mETH yield during gameplay. Winners receive bonus rewards from accumulated staking returns.

šŸŽ® Decentralized Tournaments: Smart contracts handle everything - player registration, bracket generation, match orchestration, and prize distribution. No central authority needed.

⚔ Zero Server Infrastructure: Matches use Unity Relay for P2P connections. All tournament logic lives on-chain. Fully decentralized gaming experience.

šŸ” Cheat-Resistant: Server-authoritative game state prevents manipulation, with results verified before blockchain recording.

Technology Stack

  • Blockchain: Mantle Network (L2), Solidity 0.8.20, Thirdweb SDK

  • Game Engine: Unity 2022.3 LTS with Netcode for GameObjects

  • Smart Contracts: TournamentFactory.sol, Tournament.sol

  • Infrastructure: Unity Gaming Services (Lobby, Relay, Cloud Save)

  • Platforms: PC, Android, iOS

How It Works

  1. Players create tournaments by deploying smart contracts with entry fee

  2. Other players join by staking tokens - contract auto-starts when full

  3. Entry fees deposited into Mantle staking protocol to earn mETH

  4. Single-elimination bracket automatically generated

  5. Players join match lobbies via Unity Relay (P2P connections)

  6. Car soccer matches played - score goals to win

  7. Winners advance through bracket automatically

  8. Finals winner declared on blockchain, prizes distributed with mETH rewards

Impact

  • For Players: Skill-based competition with real crypto rewards

  • For Mantle: Drives adoption of liquid staking through gaming

  • For Web3: Showcases blockchain gaming beyond simple NFT collections

Progress During Hackathon

Built complete end-to-end tournament system from scratch: āœ… Smart Contracts - Deployed Tournament and TournamentFactory contracts to Mantle - Integrated with Mantle's liquid staking protocol for yield generation - Implemented secure prize distribution with reentrancy protection āœ… Game Development - Built car soccer gameplay with physics-based mechanics - Implemented Unity Netcode for real-time multiplayer - Created mobile controls for cross-platform support āœ… Tournament System - Automatic single-elimination bracket generation - Match lobby creation via Unity Gaming Services - Blockchain sync for player verification and result recording āœ… Integration - Thirdweb wallet authentication - ERC-20 token payment flow with gasless permit integration - Cloud Save for tournament data persistence āœ… Testing - Full tournament flow verified (create → join → play → claim rewards) - Mobile builds tested on Android - All 10 critical tournament issues resolved Result: Production-ready game with fully functional Web3 tournament infrastructure.

Fundraising Status

Bootstrapped project built during the hackathon. Exploring grants and ecosystem support post-hackathon.
Team Leader
NNabil Ansari
Project Link
Sector
GamingDeFiInfra