Solana on-chain program powering Nozz.tv — enabling tokenized creator ownership, trading logic, and core protocol state management.
Traditional streaming platforms leave creators with minimal earnings from ads and subscriptions, and payouts are often delayed and gated behind platform policy. Nozz.tv solves this by letting every streamer issue their own token, backed by an on-chain bonding curve, so that:
- Streamers earn instantly from trading fees every time their token is bought or sold, instead of waiting on subscription payout cycles.
- Viewers become investors, buying tokens in the creators they support and benefiting as that creator's popularity (and token value) grows.
- Communities gain utility — staking a creator's token unlocks subscriber status, access, and rewards, turning passive viewers into engaged stakeholders.
This repository contains the Anchor program that implements that protocol.
| Module | Description |
|---|---|
constants |
Global protocol constants (fee rates, seeds, curve parameters, etc.) |
error |
Custom Anchor error definitions |
events |
On-chain events emitted for indexing/analytics |
instructions |
All instruction handlers (config, launchpad, staking) |
state |
Account/state struct definitions |
utils |
Shared helper logic (math, validation, etc.) |
Admin-managed global configuration that governs protocol-wide parameters.
initialize_config— Initializes the global platform config (admin only).update_config— Updates the global platform config (admin only).
Each streamer can launch a unique token on a bonding curve, reflecting their popularity and market demand. Trading fees are paid directly to the streamer, giving them instant, transparent earnings instead of relying on opaque platform payouts.
create_token— Creates a new streamer token with an associated bonding curve.buy_token— Buys a streamer token along the bonding curve, with slippage protection viamin_tokens_out.sell_token— Sells a streamer token along the bonding curve, with slippage protection viamin_sol_out.claim_fees— Allows a streamer to claim accumulated fees from trading activity on their token.graduate_to_dex— Permissionlessly migrates a token to a DEX once its bonding curve has been completed, unlocking deeper liquidity.
Viewers can stake a creator's token to unlock subscriber status, access perks, and earn staking rewards — turning token ownership into ongoing engagement and loyalty.
stake— Stakes creator tokens to earn rewards and gain subscriber status.unstake— Unstakes tokens; subscriber status is revoked immediately if the remaining stake falls below the required threshold.claim_stake_rewards— Claims accumulated staking rewards.update_min_stake— Lets a creator update the minimum stake amount required for subscriber status.
programs/nozz-launchpad/
└── src/
├── instructions/
│ ├── admin/ # initialize_config, update_config
│ ├── creator/ # claim_fees, create_token, update_min_stake
│ ├── user/ # buy, sell, graduate, stake, unstake, claim_stake_rewards
│ └── mod.rs
├── state/ # Account state definitions
│ └── mod.rs
├── constants.rs # Global constants and PDA seeds
├── error.rs # Custom error codes
├── events.rs # Emitted on-chain events
├── lib.rs # Program entrypoint
└── utils.rs # Shared helper functions
- Solana — high-throughput, low-fee L1 for on-chain trading and state.
- Anchor — Rust framework for Solana program development.
anchor buildanchor testanchor deployMIT
- Email: porwalarjun95@gmail.com
- Portfolio: https://arjunporwal.vercel.app/