Skip to content

feat: add channel pause controls for creator hiatus#66

Merged
elizabetheonoja-art merged 1 commit intoSubStream-Protocol:mainfrom
ScriptedBro:feature/channel-hiatus-pause-streams
Mar 24, 2026
Merged

feat: add channel pause controls for creator hiatus#66
elizabetheonoja-art merged 1 commit intoSubStream-Protocol:mainfrom
ScriptedBro:feature/channel-hiatus-pause-streams

Conversation

@ScriptedBro
Copy link
Copy Markdown
Contributor

Summary

This PR adds creator-controlled channel pause support so creators can temporarily stop all incoming stream charges while on hiatus, preventing fans from being billed during inactive periods.

What Changed

  • Added creator channel pause state storage (ChannelPaused).
  • Added new contract methods:
    • pause_channel
    • unpause_channel
    • is_channel_paused
  • Updated collection logic to stop billing while a creator channel is paused.
  • Ensured pause applies to the creator’s entire channel (all active subscribers).
  • Updated pause/unpause flow so billing resumes from unpause time without charging paused intervals.
  • Preserved existing stream functionality (subscribe, collect, cancel, top_up, migrate_tier, group flows).
  • Added tests for:
    • pause blocks charges and unpause resumes correctly
    • pause applies across multiple subscribers
    • existing core stream behaviors remain valid
  • Updated README key logic with pause/unpause behavior.

Why

Creators need a safe hiatus control so users are not charged when no content/service is being provided.

Validation

  • Ran cargo test
  • Result: 10 passed, 0 failed

Checklist

  • Added creator-level pause/unpause channel controls
  • Ensured paused periods are not charged
  • Applied pause behavior across all incoming streams for a creator
  • Added and updated tests for pause behavior and regressions
  • Updated README documentation

Issue

Closes #19
Closes: #19

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 24, 2026

@ScriptedBro Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@elizabetheonoja-art elizabetheonoja-art merged commit 4956f96 into SubStream-Protocol:main Mar 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

#19 Create Stream_Emergency_Pause (Creator Side)

2 participants