Skip to content

feat(contract): Extend instance TTL on admin actions#504

Open
Stanley-Owoh wants to merge 1 commit into
StellarFlow-Network:mainfrom
Stanley-Owoh:storage-rent-granular-422
Open

feat(contract): Extend instance TTL on admin actions#504
Stanley-Owoh wants to merge 1 commit into
StellarFlow-Network:mainfrom
Stanley-Owoh:storage-rent-granular-422

Conversation

@Stanley-Owoh

Copy link
Copy Markdown
  • Add INSTANCE_TTL_EXTEND constant (10,000 ledgers) for TTL extension configuration
  • Implement _extend_instance_ttl() helper method to extend contract instance lifetime
  • Call _extend_instance_ttl() after all admin state modifications to maintain contract availability
  • Apply TTL extension to: initialize, remove_signer, propose_upgrade, finalize_upgrade, cancel_upgrade, set_value, set_heartbeat_interval, record_heartbeat, set_node_profile, set_tier_config, update_asset_metrics, bulk_add_signers, propose_ownership_transfer, and claim_ownership
  • Fix return type handling in propose_ownership_transfer and claim_ownership to properly propagate errors and extend TTL
  • Ensures contract instance remains available across the full lifecycle of admin operations

Closes #422

- Add INSTANCE_TTL_EXTEND constant (10,000 ledgers) for TTL extension configuration
- Implement _extend_instance_ttl() helper method to extend contract instance lifetime
- Call _extend_instance_ttl() after all admin state modifications to maintain contract availability
- Apply TTL extension to: initialize, remove_signer, propose_upgrade, finalize_upgrade, cancel_upgrade, set_value, set_heartbeat_interval, record_heartbeat, set_node_profile, set_tier_config, update_asset_metrics, bulk_add_signers, propose_ownership_transfer, and claim_ownership
- Fix return type handling in propose_ownership_transfer and claim_ownership to properly propagate errors and extend TTL
- Ensures contract instance remains available across the full lifecycle of admin operations
@drips-wave

drips-wave Bot commented Jun 26, 2026

Copy link
Copy Markdown

@Stanley-Owoh 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

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.

🗄️ Storage-Rent | Granular Lifetime Verification Gates for Instance Spaces

2 participants