hackquest logo

Dbattle

dBattle is a real-time creator streaming platform built on the Flow Blockchain, where fans directly reward their favorite creators with dCoin gifts during live streams.

ビデオ

テックスタック

React
Next
Web3
Ethers

説明

https://dbattle.netlify.app/
https://dbattle.lovable.app/

https://github.com/reelbox123/battle-coin-verse

token contract 0x7bb1b058bf341d24

https://testnet.flowscan.io/tx/f6e1abcf88bd1cd810519a9ab2ff229098eb3b2f5d945915d7deb8cac9a73d65

Introduction Statement

dBattle is a real-time creator streaming platform built on the Flow Blockchain, where fans directly reward their favorite creators with dCoin gifts during live streams. Creators earn passive income in stdCoin, which they can stake to generate even more yield creating a self-sustaining, fan-powered economy for the next generation of live content.

Problem Statement

Traditional live streaming platforms take up to 50% of creator earnings, delay payouts, and offer no real ownership or passive income. Fans give gifts but get nothing in return no stake, no rewards, no loyalty loop. Creators burn out chasing one-time tips with no long-term financial security.

Solution Statement

dBattle flips the model:

  • Fans buy dCoin → send animated gifts in real-time → creators instantly earn stdCoin.

  • Creators stake stdCoin → earn passive income forever.

  • Everything on-chain, transparent, and instant — powered by Flow’s speed and low fees.

A true fan-to-creator flywheel where engagement = ownership = income.
How It Works

  1. Fan joins live stream → connects Flow wallet (Blocto/FCL).

  2. Buys dCoin using FLOW.

  3. Sends animated gifts (NFT-powered) during stream → dCoin burns, stdCoin mints to creator.

  4. Creator claims stdCoin → stakes in dBattle Yield Vault → earns compounding passive income.

  5. Top fans earn loyalty badges (NFTs) → unlock VIP access, early streams, and bonus airdrops.

    Layer

    Technology

    Blockchain

    Flow Blockchain (native smart contracts in Cadence)

    Token Contracts

    dCoin (ERC-20-like) & stdCoin (staking + yield) — deployed natively on Flow

    Frontend Integration

    Ethers.js (via FCL adapter for Flow compatibility)

    Live Streaming

    WebRTC (peer-to-peer, low-latency video)

    Backend & DB

    Supabase (auth, real-time DB, edge functions)

    UI/UX Development

    Loveable (VibeCode) – AI-powered rapid prototyping

    Wallet & Onboarding

    Flow Client Library (FCL), Blocto SDK

    [Fan] → Connect Wallet (FCL)

    [Buy dCoin] → FLOW → dCoin (on-chain swap)

    [Watch Live Stream] ← WebRTC (P2P)

    [Send Gift] → dCoin Burn → stdCoin Mint to Creator

    [Creator Claims stdCoin]

    [Stake stdCoin] → dBattle Yield Vault

    [Earn Passive Income] → Compounded stdCoin

    [Top Fans] → Earn Loyalty NFT → VIP Perks + Airdrops

    Creator-Owned Staking Pools (Powered by Flow Forte)

    Creators launch personalized staking pools — fans deposit stdCoin (or custom creator tokens) to earn yield defined by the creator’s rules.

    How It Works:

    Creator sets up a pool in 1 click (via Forte Actions): → Choose APY, lock period, bonus tiers, or fan-only perks.

    Fans stake → earn passive yield in creator’s token or stdCoin.

    Forte Agents auto-compound, distribute, and enforce rules — on-chain, trustless use Flow Forte to power intelligent, automated, and composable staking for creators.

    Core Use in dBattle:

    • Auto-Compounding Yield: Agents (Forte’s on-chain cron jobs) automatically compound stdCoin rewards — no manual claims, no off-chain bots.

    • One-Click Gift-to-Stake: Actions chain live gifting → stdCoin mint → instant staking in a single, gas-efficient transaction.

    • Set-It-and-Forget-It Passive Income: Creators stake once; Forte Agents handle all future yield harvesting and restaking forever.

      Creator-Owned Staking Pools (Powered by Flow Forte)

      Creators launch personalized staking pools — fans deposit stdCoin (or custom creator tokens) to earn yield defined by the creator’s rules.

      How It Works:

      • Creator sets up a pool in 1 click (via Forte Actions): → Choose APY, lock period, bonus tiers, or fan-only perks.

      • Fans stake → earn passive yield in creator’s token or stdCoin.

      • Forte Agents auto-compound, distribute, and enforce rules — on-chain, trustless.

      Feature

      Forte Role

      Yield Vault

      Auto-compound & scheduled payouts

      Live Stream Gifting

      Real-time Action chains (burn → mint → stake)

      Creator Dashboard

      Agent deployment for personalized yield strategies



      Viewer Milestone Automation:

      When a creator hits 1K viewers during a livestream, Flow Forte automatically allocates a percentage of their stdCoin to a high-yield boost vault.

      // viewer-milestone-trigger.cdc
      import DBattleToken from 0x7bb1b058bf341d24
      
      transaction(creatorAddress: Address, boostPercent: UFix64) {
          prepare(signer: AuthAccount) {
              let vaultRef = signer.borrow<&DBattleToken.Vault>(from: /storage/stdCoinVault)
                  ?? panic("Could not borrow vault reference")
              
              let balance = vaultRef.balance
              let boostAmount = balance * boostPercent
              
              // Transfer to boost vault
              let sentVault <- vaultRef.withdraw(amount: boostAmount)
              
              let boostVaultRef = getAccount(creatorAddress)
                  .getCapability(/public/boostVaultReceiver)
                  .borrow<&{FungibleToken.Receiver}>()
                  ?? panic("Could not borrow boost vault receiver")
              
              boostVaultRef.deposit(from: <-sentVault)
          }
      }
      


      Configure Agent Schedule

    // forte-config.json
    {
      "agents": [
        {
          "name": "auto-compounder",
          "trigger": {
            "type": "schedule",
            "cron": "0 0 * * *"  // Daily at midnight
          },
          "action": {
            "type": "http",
            "url": "https://xtzcumhuyxphesbjxjxn.supabase.co/functions/v1/auto-compound",
            "method": "POST",
            "headers": {
              "Authorization": "Bearer YOUR_SERVICE_KEY"
            }
          }
        },
        {
          "name": "viewer-milestone-trigger",
          "trigger": {
            "type": "event",
            "contract": "dBattle",
            "event": "ViewerMilestone"
          },
          "action": {
            "type": "flow-transaction",
            "script": "transfer_to_boost_vault.cdc",
            "args": ["${event.creator_id}", "${event.amount}"]
          }
        }
      ]
    }
チームリーダー
AAYOMIDE ADEWALE
プロジェクトリンク
業界
SocialFi