Skip to content

Junirezz/SubStream-Protocol-Contracts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SubStream Protocol: Decentralized Creator Economy

Overview

SubStream is a Pay-As-You-Go subscription protocol. Instead of monthly credit card charges, fans stream tokens to creators second-by-second. If the fan dislikes the content, they can cancel instantly and get their remaining balance back.

Key Logic

  • subscribe: User deposits a buffer (e.g., 50 XLM) and sets a rate.
  • collect: Creator triggers the withdrawal of accumulated seconds.
  • cancel: Subscriber stops the stream and refunds unspent tokens.

Network

  • Stellar Testnet

Deployed Contract

  • Network: Stellar Testnet
  • Contract ID: CAOUX2FZ65IDC4F2X7LJJ2SVF23A35CCTZB7KVVN475JCLKTTU4CEY6L

Running Tests

To run the contract tests locally:

cargo test

Building

To build the contract for Wasm:

cargo build --target wasm32-unknown-unknown --release

About

Soroban contracts for creator subscriptions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Rust 98.1%
  • Makefile 1.9%