Skip to content

0xashu/0xcell

Repository files navigation

0xCell 🧬

A cross-chain Game of Life powered by Circle's CCTP. Mine unique cellular patterns through proof-of-work simulation, bringing Ethereum games to Solana users and beyond.

Beyond Payments: Circle's CCTP isn't just a payment protocol - it's a powerful primitive for building any cross-chain application or game.

0xcell.mp4

🎮 What is 0xCell?

  • PoW → Cells: Hash your way to unique patterns
  • Any Chain: Solana users playing on Ethereum? Yes.
  • One Click: Send tx. Watch cells evolve. Done.

How

User (Any Chain) → CCTP Message → PoW Hash → Cell Pattern → Evolution

Run

# Clone the repository
git clone https://github.com/yourusername/0xcell.git
cd 0xcell

# Install dependencies
pnpm install

# Set up environment variables
cp .env.example .env
# Add your Alchemy API key and WalletConnect project ID

# Run development server
pnpm dev

Visit http://localhost:3000 to start playing!

🎯 Game Flow

  1. Mining Phase: Click "Start Mining" to generate a unique hash through proof-of-work
  2. CCTP Transfer: Send 0.1 USDC from Ethereum Sepolia to Base Sepolia
    • Approve USDC spending
    • Burn USDC on source chain
    • Wait for Circle attestation (~15 min)
    • Mint USDC on destination chain
  3. Game Phase: Your hash generates unique patterns for both you and the bot
  4. Evolution: Watch 100 generations of cellular evolution
  5. Victory: Player with most living cells wins!

🔗 Network Configuration

Ethereum Sepolia

  • Chain ID: 11155111
  • USDC Contract: 0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238
  • Token Messenger: 0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5

Base Sepolia

📚 Project Structure

0xcell/
├── app/              # Next.js app directory
│   ├── components/   # React components
│   ├── hooks/        # Custom React hooks
│   └── wagmi.ts      # Wagmi configuration
├── circle/           # CCTP SDK integration
├── contracts/        # Smart contracts
└── public/           # Static assets

Deploy

Deploy with Vercel

Stack

  • Next.js + TypeScript
  • CCTP Hooks
  • Solidity + Rust
  • Conway's Rules

🔗 Links


Permissionless. Cross-chain. Beautiful chaos.

About

A Game of Life by Circle CCTP V2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •