Skip to content

feature(ttl-extend): add public storage TTL extension - #752

Merged
EDOHWARES merged 1 commit into
SoroLabs:mainfrom
TheWeirdDee:feature/issue-98-ttl-extend
Aug 1, 2026
Merged

feature(ttl-extend): add public storage TTL extension#752
EDOHWARES merged 1 commit into
SoroLabs:mainfrom
TheWeirdDee:feature/issue-98-ttl-extend

Conversation

@TheWeirdDee

Copy link
Copy Markdown
Contributor

Summary

Closes #656.

Adds a public extend_ttl helper to the storage-heavy contract, allowing any caller to pay the network rent required to extend the lifetime of an existing persistent storage entry.

Changes

  • Add extend_ttl(key, threshold, extend_to) public contract method
  • Keep the helper permissionless so third parties can fund TTL extensions
  • Document threshold and extension behavior
  • Add tests confirming:
    • Persistent entry TTL is extended
    • No extension occurs when TTL remains above the threshold
    • Stored data remains accessible after extension

Validation

  • 6 contract tests passed
  • Clippy passed with warnings denied
  • Diff validation passed

Allow any caller to extend the lifetime of a persistent storage entry by paying the associated network rent. Document the public helper and cover extension and threshold behavior with unit tests.

Closes SoroLabs#656
@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

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

@EDOHWARES

Copy link
Copy Markdown
Collaborator

Nice implementation, LGTM!

@EDOHWARES
EDOHWARES merged commit d3f67e9 into SoroLabs:main Aug 1, 2026
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.

[Contract] Add Storage-Heavy Contract Expiration TTL Extension Function

2 participants