[Contracts] Add storage bump helper for recipient position lookups to prevent TTL expiration
Overview
Soroban persistent storage entries require active TTL bumps to prevent archival. While active streams have TTL bumps during withdrawal, read-only position metadata entries must also maintain healthy TTLs.
Problem
- Infrequently accessed long-term vesting streams (e.g. 4-year vesting) could have secondary position keys expire.
Proposed Changes
- Add
bump_position_ttl(env: &Env, key: &StorageKey)incontracts/stream_contract/src/storage.rs. - Automatically extend TTL to contract max (e.g. 518,400 ledgers) whenever position data is read.
Acceptance Criteria
- [ ] Querying stream metadata or positions automatically extends TTL.
- [ ] Tested with mock ledger increments in Soroban test environment.
@Yash-Karakoti has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
gm gm i can work on this
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Yash-Karakoti to this issue.
@Oluwasuyi-Oluwatimilehin-Daniel has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
Hello @maintainer, I’d like to work on this issue. I have experience handling similar tasks and can start immediately. And I will deliver at the shortest possible time.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Oluwasuyi-Oluwatimilehin-Daniel to this issue.
Congratulations, @Oluwasuyi-Oluwatimilehin-Daniel! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on September 30, 2026.
🧑💻 @Oluwasuyi-Oluwatimilehin-Daniel: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🌊 Happy Wave 🌊
🎉 This issue has been marked as completed on GrantFox!
@timiturn3r's PR #1596 was approved and merged by @K1NGD4VID.
🏆 @timiturn3r: You earned 40 FoxPoints for this contribution! Your current tier: Builder (2,865 total points). Track your full progress on GrantFox.
👏 Great work, @timiturn3r! Keep contributing to LabsCrypt.
This issue has been marked as completed by a Drips Wave moderator for @timiturn3r as part of the Stellar Wave Program's 9th Wave 🥳
Moderator's reason: [Auto-assessed] PR #1596 was successfully merged by a maintainer (mergedAt: 2026-10-08T06:06:56Z). It implements the requested bump_position_ttl helper function in storage, integrates it into read-only position queries and stream loading mechanisms, adds explicit contract entrypoints, and includes comprehensive unit test coverage verifying TTL extensions.
😎 @timiturn3r: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.
ℹ️ Note: This issue was marked complete via moderation. Points were issued even though the GitHub issue remains open.