← Back to Developer Resources

Data Flow Diagrams

YouTube Oracle Data Flow

Overview

The YouTube Oracle is a critical component of the Diamondz Shadow ecosystem, bringing real-world content metrics on-chain to influence token economics. This diagram illustrates how data flows from YouTube to our blockchain.

YouTube Oracle Data Flow Diagram

1. Data Collection

The process begins with the YouTube API, which provides access to channel statistics including view counts, subscriber counts, and engagement metrics. Our external adapter periodically fetches this data using the YouTube Data API v3.

2. Oracle Validation

The data is then validated through a Chainlink oracle network, which ensures the accuracy and integrity of the data before it's submitted on-chain. Multiple oracle nodes verify the data to prevent manipulation.

3. On-Chain Submission

Validated data is submitted to the YouTube Oracle smart contract on the Diamondz Shadow blockchain. This contract stores the latest metrics and triggers updates to dependent contracts.

4. Token Economics Update

The SDM Token contract receives the updated metrics and adjusts token parameters accordingly. This includes influencing the token price, minting rate, and distribution of rewards based on the formula: Base Price + (Views × Views Weight) + (Views/Subscriber × VPS Weight).

Contribution Data Flow

The Proof of Contribution mechanism relies on a complex data flow that tracks, validates, and rewards various forms of contribution to the ecosystem.

Contribution Data Flow Diagram

1. Contribution Submission

Users submit their contributions through various channels: content uploads, community forums, code repositories, governance portals, etc. Each submission includes metadata about the contribution type and description.

2. Initial Scoring

The Contribution Tracker assigns initial points based on the contribution type and applies any applicable multipliers (e.g., early adopter 2x multiplier).

3. Validation Process

Validators review and validate contributions to ensure they meet quality standards and are genuine. This can be done by designated validators or through a decentralized validation mechanism.

4. Reward Distribution

Validated contributions accumulate points for users, which are periodically converted to SDM tokens based on the proportion of total points in the system. The SDM Token contract mints new tokens to reward contributors.

Cross-Platform Integration

Our multi-platform strategy involves integrating data from YouTube, Twitch, and TikTok to create a comprehensive content ecosystem.

Cross-Platform Integration Diagram

Future Integrations

In addition to YouTube, we plan to integrate Twitch and TikTok metrics into our oracle system, creating a comprehensive view of content performance across all platforms. This will allow for more sophisticated token economics that reflect the full scope of content engagement.

For technical inquiries about our data flow:

development@diamondzshadow.com