feat: Add comprehensive TTL stress tests for long-term storage rent#258
Merged
Folex1275 merged 2 commits intoFolex1275:mainfrom Feb 23, 2026
Merged
Conversation
- Implement TTL extension logic in contract methods (get_stream, withdraw, create_stream) - Add helper function extend_contract_ttl() to ensure contract instance remains accessible - Create comprehensive stress tests covering 4-year vesting periods: * test_four_year_stream_ttl_survival: Tests stream survival over 4 years with withdrawals * test_multiple_streams_ttl_survival: Tests multiple streams created at different times * test_paused_stream_ttl_survival: Tests TTL survival during stream pause periods - Configure test environment with appropriate TTL settings for long-term testing - Verify streams remain 'Live' and withdrawable after 1, 2, and 4 year time jumps - Ensure TTL extension logic prevents data archival for the duration of streams Addresses acceptance criteria: Automated tests confirm TTL extension logic keeps data alive for stream duration Simulation jumps ledger forward by 1, 2, and 4 years Verification asserts stream data remains 'Live' and withdrawable after each jump
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses acceptance criteria:
Automated tests confirm TTL extension logic keeps data alive for stream duration
Simulation jumps ledger forward by 1, 2, and 4 years
Verification asserts stream data remains 'Live' and withdrawable after each jump
closes #47