Skip to content

chrsnikhil/WorldBNB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WorldBNB Logo

WorldBNB

The world's first decentralized property rental platform built on World Chain

World Chain World ID Next.js TypeScript

Overview

WorldBNB is a revolutionary property rental platform that combines the power of World Chain's native wallet, World ID verification, and decentralized storage to create a secure, transparent, and trustless rental experience. Built entirely on World Chain infrastructure, WorldBNB eliminates intermediaries and creates a truly decentralized marketplace for property rentals.

Key Features

World Chain Integration

  • Native Wallet: Seamless integration with World's native wallet system
  • Sponsored Gas Fees: All transactions are gas-free for users
  • World ID Verification: Sybil-resistant authentication using World ID
  • MiniKit Integration: Native World App functionality

Decentralized Property Listings

  • On-Chain Storage: All property data stored permanently on blockchain
  • Decentralized Images: Property images stored using decentralized storage
  • Transparent Listings: Fully verifiable and censorship-resistant
  • Smart Contracts: Automated property management

Automated Escrow System

  • Smart Contract Escrow: Payments held securely until check-in
  • Automated Release: Hosts receive payment after successful check-in
  • Platform Fees: Automatic fee distribution
  • Dispute Resolution: Built-in conflict resolution mechanisms

Stake-Based Dispute Resolution

  • User Staking: Users stake WLD tokens to participate
  • Dispute Mechanisms: On-chain dispute resolution system
  • Stake Slashing: Bad actors lose their stake
  • Compensation: Affected parties receive reimbursements

Transparent Reviews

  • World ID Verified Reviews: Sybil-resistant review system
  • On-Chain Storage: All reviews stored permanently
  • Trust Scores: Reputation system based on verified interactions

Technology Stack

Frontend

  • Next.js 14 - React framework with App Router
  • TypeScript - Type-safe development
  • Tailwind CSS - Utility-first styling
  • Framer Motion - Smooth animations
  • World MiniKit - World App integration

Blockchain

  • World Chain - Native blockchain infrastructure
  • Solidity - Smart contract development
  • Hardhat - Development and deployment
  • Ethers.js - Blockchain interaction

Smart Contracts

  • PropertyHosting.sol - Property listing management
  • PropertyBooking.sol - Booking and payment handling
  • DisputeResolution.sol - Dispute resolution system
  • SimpleStaking.sol - User staking mechanism

Prerequisites

  • Node.js 18.0 or later
  • npm or yarn package manager
  • World App for testing
  • World ID Developer Account

Installation

  1. Clone the repository

    git clone https://github.com/chrsnikhil/WorldBNB.git
    cd WorldBNB
  2. Install dependencies

    npm install
    # or
    yarn install
  3. Set up environment variables

    cp .env.example .env.local

    Fill in the required environment variables:

    # World ID Configuration
    NEXT_PUBLIC_WLD_APP_ID=your_app_id
    APP_ID=your_app_id
    
    # Blockchain Configuration
    NEXT_PUBLIC_PROPERTY_HOSTING_ADDRESS=contract_address
    NEXT_PUBLIC_PROPERTY_BOOKING_ADDRESS=contract_address
    NEXT_PUBLIC_SIMPLE_STAKING_ADDRESS=contract_address
    NEXT_PUBLIC_DISPUTE_RESOLUTION_ADDRESS=contract_address
    
    # RPC URLs
    NEXT_PUBLIC_RPC_URL=your_rpc_url
  4. Deploy smart contracts

    npx hardhat compile
    npx hardhat run scripts/deploy.js --network your_network
  5. Start the development server

    npm run dev
    # or
    yarn dev
  6. Open World App

    • Navigate to http://localhost:3000
    • Open in World App for full functionality

Project Structure

WorldBNB/
├── app/                    # Next.js App Router
│   ├── api/               # API routes
│   │   ├── verify/        # World ID verification
│   │   ├── nonce/         # Authentication nonce
│   │   └── complete-siwe/ # SIWE completion
│   └── page.tsx           # Main application
├── components/            # React components
│   ├── PropertyListingForm.tsx
│   ├── PropertyBookingForm.tsx
│   ├── SimpleImageUpload.tsx
│   ├── SimpleStakingButton.tsx
│   └── ...
├── contracts/             # Smart contracts
│   ├── PropertyHosting.sol
│   ├── PropertyBooking.sol
│   ├── DisputeResolution.sol
│   └── SimpleStaking.sol
├── hooks/                 # Custom React hooks
├── abi/                   # Contract ABIs
├── scripts/               # Deployment scripts
└── public/                # Static assets

Smart Contracts

PropertyHosting.sol

Manages property listings with features:

  • Property creation and management
  • Host verification
  • Property status tracking

PropertyBooking.sol

Handles booking and payment logic:

  • Booking creation and confirmation
  • Escrow payment management
  • Host fund claiming

DisputeResolution.sol

Dispute resolution system:

  • Dispute creation and management
  • Stake slashing mechanisms
  • Compensation distribution

SimpleStaking.sol

User staking mechanism:

  • WLD token staking
  • Stake management
  • Unstaking functionality

Usage

For Guests

  1. Connect Wallet: Use World App to connect your wallet
  2. Browse Properties: Explore available properties
  3. Book Property: Create booking with automated escrow
  4. Check-in: Confirm arrival to release payment
  5. Leave Review: Submit World ID verified reviews

For Hosts

  1. Verify Identity: Complete World ID verification
  2. List Property: Create property listing with images
  3. Manage Bookings: View and manage incoming bookings
  4. Claim Funds: Receive payments after successful check-ins
  5. Handle Disputes: Participate in dispute resolution

Security Features

  • World ID Verification: Sybil-resistant authentication
  • Smart Contract Escrow: Secure payment handling
  • Stake-based Incentives: Economic security through staking
  • Decentralized Storage: Censorship-resistant data storage
  • Transparent Transactions: All operations verifiable on-chain

World Chain Integration

WorldBNB leverages World Chain's unique features:

  • Native Wallet: Seamless user experience through World's wallet
  • Sponsored Gas: Zero-cost transactions for users
  • World ID: Built-in identity verification
  • MiniKit: Native World App functionality

Mobile Experience

Optimized for mobile-first experience:

  • Responsive Design: Works perfectly on all screen sizes
  • Touch-Friendly: Optimized for mobile interactions
  • World App Integration: Native World App experience
  • Offline Capability: Core functionality works offline

Testing

# Run smart contract tests
npx hardhat test

# Run frontend tests
npm run test

# Run linting
npm run lint

Deployment

Smart Contracts

# Deploy to World Chain Mainnet
npx hardhat run scripts/deploy.js --network worldchain-mainnet

# Deploy to World Chain Sepolia
npx hardhat run scripts/deploy.js --network worldchain-sepolia

Frontend

# Build for production
npm run build

# Deploy to Vercel
vercel deploy

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

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

Acknowledgments

  • World Chain for providing the blockchain infrastructure
  • World ID for identity verification
  • World App for the native wallet experience
  • Next.js for the React framework
  • Tailwind CSS for styling

Support

Roadmap

  • Multi-chain Support: Expand to other EVM chains
  • Advanced Dispute Resolution: AI-powered dispute analysis
  • Property Insurance: Decentralized insurance integration
  • DAO Governance: Community-driven platform governance
  • Mobile App: Native mobile applications

Built with ❤️ for the World Ecosystem

WorldBNB - Where trust meets technology

About

Web3 Airbnb built on the World Ecosystem for Human Only Authentication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors