Skip to content

feat: persistent storage migration with per-stream TTL#67

Open
okekefrancis112 wants to merge 7 commits intoStreampay-Org:mainfrom
okekefrancis112:steam
Open

feat: persistent storage migration with per-stream TTL#67
okekefrancis112 wants to merge 7 commits intoStreampay-Org:mainfrom
okekefrancis112:steam

Conversation

@okekefrancis112
Copy link
Contributor

@okekefrancis112 okekefrancis112 commented Mar 24, 2026

Summary

  • Migrates stream data from Soroban instance storage to persistent storage, giving each stream its own independent ledger entry and TTL
  • Adds TTL extension on all mutating operations (create_stream, start_stream, stop_stream, settle_stream) plus contract instance TTL management
  • Adds archive_stream() entry point for payers to remove fully-settled, inactive streams from storage
  • Enforces balance = 0 check before archival to protect recipient entitlements

Closes: #46

@drips-wave
Copy link

drips-wave bot commented Mar 24, 2026

@okekefrancis112 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

@greatest0fallt1me
Copy link
Contributor

resolve the conflicts

@okekefrancis112
Copy link
Contributor Author

conflicts resolved @greatest0fallt1me

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.

Stream factory pattern: design document

2 participants