Skip to content

base-buzz/basebuzz-contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

BaseBuzz Logo

BaseBuzz Smart Contracts

Decentralized social network smart contracts powering meme culture on Base blockchain

Website GitHub Verified Audit Status


๐Ÿš€ Overview

BaseBuzz is a decentralized social network built on Base that revolutionizes meme culture through blockchain technology. Our smart contracts enable users to create, mint, trade, and collect meme-based content through innovative hybrid mechanisms.

Key Features

  • ๐ŸŽฏ Hybrid Moments: Trade ERC20 tokens AND/OR mint NFTs for the same content
  • ๐Ÿ”ฅ Dynamic Bonding Curves: Exponential price discovery with 1-5% dynamic fees
  • ๐ŸŽจ Multi-Tier NFT System: Configurable tiers with custom pricing and metadata
  • ๐Ÿ›ก๏ธ Anti-Spam Protection: Daily limits and progressive fees by user level
  • ๐Ÿ’Ž Creator Bonds: 0.01 ETH bonds prevent rug pulls and ensure delivery
  • ๐ŸŽฎ Quest Engine: On-chain engagement mining with BASEBUZZ token rewards

๐Ÿ“‹ Contract Architecture

Core System (V2 Hybrid)

Contract Address Description
HybridMomentFactoryV2 0x2D45...7A02 Main factory for creating hybrid moments
AntiSpamManager 0xbeB3...dC75 Manages daily limits and spam prevention
CreatorBondManager 0xB146...FaDa Handles creator bonds and delivery deadlines
QuestRegistry 0x14D6...4a43 Quest system and BASEBUZZ rewards

Implementation Templates

Contract Address Description
DynamicFeeBondingCurve 0xCE00...aFe6 ERC20 bonding curve implementation
TieredNFTMinter 0x1be3...0C4B Multi-tier NFT minting implementation

Token Contracts

Contract Network Address Description
BASEBUZZ Base Mainnet 0x893432c814b6e5970e5f86f8cbc3f97417a9c810 Main governance and reward token

๐Ÿ—๏ธ Repository Structure

basebuzz-contracts/
โ”œโ”€โ”€ src/                          # Smart contract source code
โ”‚   โ”œโ”€โ”€ HybridMomentFactoryV2.sol    # Main factory contract
โ”‚   โ”œโ”€โ”€ DynamicFeeBondingCurve.sol   # ERC20 bonding curve implementation
โ”‚   โ”œโ”€โ”€ TieredNFTMinter.sol          # Multi-tier NFT minting
โ”‚   โ”œโ”€โ”€ AntiSpamManager.sol          # Spam prevention and user levels
โ”‚   โ”œโ”€โ”€ CreatorBondManager.sol       # Creator bond management
โ”‚   โ”œโ”€โ”€ QuestRegistry.sol            # Quest system and rewards
โ”‚   โ”œโ”€โ”€ BASEBUZZ.sol                 # Main token contract
โ”‚   โ”œโ”€โ”€ interfaces/                  # Contract interfaces
โ”‚   โ””โ”€โ”€ mocks/                       # Testing utilities
โ”œโ”€โ”€ script/                       # Deployment and utility scripts
โ”œโ”€โ”€ test/                         # Comprehensive test suite
โ”œโ”€โ”€ deployments/                  # Deployment artifacts and records
โ””โ”€โ”€ foundry.toml                  # Foundry configuration

๐Ÿ› ๏ธ Development

Prerequisites

Installation

# Clone the repository
git clone https://github.com/base-buzz/basebuzz-contracts.git
cd basebuzz-contracts

# Install dependencies
forge install

# Build contracts
forge build

Testing

# Run all tests
forge test

# Run tests with verbosity
forge test -vvv

# Run specific test file
forge test --match-path test/HybridMomentFactoryV2.t.sol

# Generate gas report
forge test --gas-report

Deployment

# Deploy to Base Sepolia (testnet)
forge script script/DeployHybridV2.s.sol:DeployHybridV2 \
    --rpc-url $BASE_SEPOLIA_RPC \
    --private-key $DEPLOYER_PRIVATE_KEY \
    --broadcast \
    --verify

# Deploy to Base Mainnet (production)
forge script script/DeployHybridV2.s.sol:DeployHybridV2 \
    --rpc-url $BASE_MAINNET_RPC \
    --private-key $DEPLOYER_PRIVATE_KEY \
    --broadcast \
    --verify

๐Ÿ”’ Security

Audit Status

Security Features

  • โœ… Creator Bonds: 0.01 ETH deposits prevent malicious behavior
  • โœ… Daily Limits: Anti-spam protection with progressive fees
  • โœ… Access Controls: Role-based permissions for critical functions
  • โœ… Reentrancy Guards: Protection against reentrancy attacks
  • โœ… Integer Overflow: SafeMath and Solidity 0.8+ built-in protections
  • โœ… Input Validation: Comprehensive parameter validation

Known Limitations

  • Bonding Curve Pricing: Current exponential curves result in high token prices (>0.1 ETH for small amounts)
  • Testnet Only: V2 system currently deployed on Base Sepolia, mainnet deployment pending

๐Ÿ“Š System Specifications

Network Support

  • Primary: Base (Chain ID: 8453)
  • Testnet: Base Sepolia (Chain ID: 84532)

Configuration

  • Platform Fee: 2.5% on all transactions
  • Creator Bond: 0.01 ETH minimum required
  • Quest Reward Pool: 10M BASEBUZZ tokens
  • Anti-Spam Limits: 5-50 mints, 10-100 trades per day (level-based)

Gas Optimization

  • Proxy Patterns: Minimal proxy (EIP-1167) for cost-efficient deployment
  • Batch Operations: Combined transactions for hybrid interactions
  • Optimized Storage: Packed structs and efficient data layouts

๐Ÿ“š Documentation

  • ๐Ÿ“– Technical Documentation: Available on request for developers
  • ๐Ÿ”ง Integration Guide: Contact team@base.buzz for integration support
  • ๐Ÿ“‹ API Reference: See contract interfaces in src/interfaces/
  • ๐Ÿ”’ Security Guide: Contact security@base.buzz for security documentation
  • ๐Ÿ“ˆ Contract Specifications: Available in source code comments

๐ŸŒ Links


๐Ÿค Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

Development Workflow

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Write tests for your changes
  4. Ensure all tests pass (forge test)
  5. Commit your changes (git commit -m 'Add amazing feature')
  6. Push to the branch (git push origin feature/amazing-feature)
  7. Open a Pull Request

๐Ÿ“„ License

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


โš ๏ธ Disclaimer

This software is provided "as is", without warranty of any kind. The contracts are currently unaudited and should be used at your own risk. Always conduct your own research and due diligence before interacting with smart contracts.


Built with โค๏ธ by the BaseBuzz team

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published