---
description: Diagram
---

# DePIN Pipeline

#### 🟩 User Activity & Data Capture

#### 🟦 Oracle Processing & Rights Verification

#### 🟨 Reward Distribution & Infra Incentives

{% @mermaid/diagram content="flowchart TD
    %% Style groups
    classDef activity fill:#c6f6d5,stroke:#2f855a,color:#22543d;
    classDef oracle fill:#bee3f8,stroke:#2b6cb0,color:#1a365d;
    classDef reward fill:#fefcbf,stroke:#d69e2e,color:#744210;

    %% Nodes
    A[User Streams Music<br>on Partner Platform]
    B[BeatSwap SDK Captures<br>Listening Event]
    C[Oracle API Smart Contract<br>Processes Event]
    D[Oracle Registry Smart Contract<br>Links Metadata & Rights]
    E[PoS Smart Contracts<br>Verify Rights & Stake]
    F[Distribute Royalties<br>to Copyright Holders]
    G[Reward Listeners<br>via Streaming Platform]
    H[Report Verified Reward Data<br>to BeatSwap]
    I[Issue Infra Incentives<br>to Streaming Platform]

    %% Flows
    A --> B
    B --> C
    C --> D
    D --> E
    E --> F
    C --> G
    G --> H
    H --> I

    %% Class assignments
    class A,B activity
    class C,D,E oracle
    class F,G,H,I reward" %}
