Skip to content

zoo-labs/zoo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Zoo Universe - Web3 Gaming & NFT Infrastructure

Private production repository for Zoo Labs gaming ecosystem, NFT marketplace, and blockchain infrastructure.

Repository Structure

zoo-labs/zoo/
β”œβ”€β”€ apps/               # Gaming applications
β”‚   β”œβ”€β”€ zoo-app/        # Main Zoo mobile/web app
β”‚   β”œβ”€β”€ marketplace/    # NFT marketplace
β”‚   β”œβ”€β”€ breeding/       # Breeding mechanics app
β”‚   └── battles/        # Battle system app
β”œβ”€β”€ services/           # Microservices
β”‚   β”œβ”€β”€ zoo-node/       # Core blockchain node
β”‚   β”œβ”€β”€ zips/           # Zoo Improvement Proposals Service
β”‚   β”œβ”€β”€ hips/           # Habitat Improvement Proposals Service
β”‚   └── lips/           # Loot Improvement Proposals Service
β”œβ”€β”€ contracts/          # Smart contracts
β”‚   β”œβ”€β”€ nft/            # NFT contracts (ERC-721, ERC-1155)
β”‚   β”œβ”€β”€ tokens/         # Token contracts (ZOO, BAMBOO)
β”‚   β”œβ”€β”€ defi/           # DeFi mechanics (staking, farming)
β”‚   └── governance/     # DAO governance contracts
β”œβ”€β”€ infrastructure/     # Infrastructure as Code
β”‚   β”œβ”€β”€ kubernetes/     # K8s deployments
β”‚   β”œβ”€β”€ ipfs/          # IPFS nodes configuration
β”‚   └── subgraph/      # The Graph protocol indexers
β”œβ”€β”€ game-assets/        # Game assets and metadata
β”‚   β”œβ”€β”€ animals/        # Animal NFT metadata
β”‚   β”œβ”€β”€ habitats/       # Habitat assets
β”‚   └── items/          # In-game items
└── analytics/          # Analytics and monitoring
    β”œβ”€β”€ on-chain/       # On-chain analytics
    └── game-metrics/   # Game performance metrics

Core Components

Zoo App

Main gaming application with:

  • NFT collection and management
  • Breeding mechanics
  • Battle system
  • Marketplace integration
  • Wallet connectivity (MetaMask, WalletConnect)

Zoo Node

Blockchain infrastructure node:

  • Custom EVM-compatible chain
  • High-throughput for gaming transactions
  • Low gas fees for gameplay
  • Bridge to Ethereum mainnet

Improvement Proposal Services

ZIPS (Zoo Improvement Proposals)

  • Core protocol upgrades
  • Governance proposals
  • Economic model changes
  • Technical standards

HIPS (Habitat Improvement Proposals)

  • Habitat mechanics updates
  • Environmental systems
  • Resource generation rules
  • Habitat NFT standards

LIPS (Loot Improvement Proposals)

  • Item system updates
  • Loot box mechanics
  • Rarity algorithms
  • Item NFT standards

Technology Stack

Blockchain

  • Networks: Ethereum, Polygon, Arbitrum, Zoo Chain
  • Standards: ERC-721, ERC-1155, ERC-20
  • Tools: Hardhat, Foundry, OpenZeppelin
  • Indexing: The Graph, Alchemy

Backend

  • Runtime: Node.js 20+
  • Framework: NestJS
  • Database: PostgreSQL, Redis
  • Queue: BullMQ
  • Storage: IPFS, Arweave

Frontend

  • Framework: Next.js 14
  • UI: React 18, TailwindCSS
  • Web3: ethers.js, wagmi, viem
  • State: Zustand, React Query

Gaming

  • Engine: Phaser.js / Unity WebGL
  • Physics: Matter.js
  • Animation: Lottie, Rive
  • Audio: Howler.js

Development Setup

# Clone the repository
git clone [email protected]:zoo-labs/zoo.git
cd zoo

# Install dependencies
pnpm install

# Set up environment
cp .env.example .env
# Configure blockchain RPC endpoints and API keys

# Start local blockchain
pnpm run chain:local

# Deploy contracts
pnpm run contracts:deploy:local

# Start services
pnpm run dev

# Start Zoo Node
cd services/zoo-node
docker compose up -d

Smart Contract Deployment

# Deploy to testnet
pnpm run deploy:goerli

# Deploy to mainnet (requires approval)
pnpm run deploy:mainnet

# Verify contracts
pnpm run verify:etherscan

Zoo Node Operations

# Start validator node
./zoo-node --validator --stake 100000

# Run archive node
./zoo-node --archive --rpc-external

# Bridge assets
./scripts/bridge.sh --from ethereum --to zoo --amount 1000

NFT Collections

Genesis Animals

  • Total Supply: 10,000
  • Traits: 150+ unique traits
  • Breeding: Enabled after 30 days
  • Staking: 100 ZOO/day base rate

Habitats

  • Total Supply: 5,000
  • Types: Jungle, Arctic, Desert, Ocean, Sky
  • Capacity: 5-50 animals per habitat
  • Resources: Generate BAMBOO tokens

Items

  • Dynamic supply based on gameplay
  • Rarity: Common, Rare, Epic, Legendary, Mythic
  • Uses: Consumable, Equipment, Breeding
  • Trading: P2P marketplace enabled

Tokenomics

ZOO Token

  • Supply: 1,000,000,000
  • Distribution:
    • 30% - Play to Earn rewards
    • 20% - Staking rewards
    • 20% - Team & Advisors (4-year vest)
    • 15% - Ecosystem fund
    • 10% - Initial liquidity
    • 5% - Marketing

BAMBOO Token

  • Supply: Unlimited (inflation controlled)
  • Generation: From habitats and staking
  • Uses: Breeding, items, upgrades
  • Burn: 50% of usage burned

API Endpoints

Public API

https://api.zoo.game/v1/
β”œβ”€β”€ /animals           # Animal metadata
β”œβ”€β”€ /habitats         # Habitat information
β”œβ”€β”€ /marketplace      # Marketplace listings
β”œβ”€β”€ /leaderboard      # Game rankings
└── /proposals        # ZIPS/HIPS/LIPS

WebSocket Events

wss://ws.zoo.game/
β”œβ”€β”€ battles          # Real-time battles
β”œβ”€β”€ marketplace      # Live marketplace updates
β”œβ”€β”€ breeding         # Breeding events
└── governance       # Proposal updates

Security

  • Audits: Certik, Trail of Bits
  • Bug Bounty: Up to $100,000
  • Multi-sig: 4/7 for treasury
  • Timelock: 48-hour delay for upgrades

Performance Targets

  • TPS: 10,000+ transactions per second
  • Block Time: 2 seconds
  • Gas Cost: <$0.01 per transaction
  • Uptime: 99.99% SLA

Monitoring

License

Proprietary - Zoo Labs, Inc. All rights reserved.

About

🧬 ZOO is a decentralized protocol to collect, breed, and trade Metaverse-ready AI animals on the blockchain.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 43