Skip to content

Soroban TTL Extension & Rent Automation #282

@Luluameh

Description

@Luluameh

Background
Soroban storage keys can expire and be archived if their Time-To-Live (TTL) is not bumped regularly. We need to automatically extend the TTL of active sessions and expert profiles during state-modifying operations to prevent data loss.
Goal
Implement helper utilities to automatically bump the TTL of instance and persistent storage keys whenever they are accessed.
Acceptance Criteria

  • Automatically bump instance/persistent storage TTL by at least 100,000 ledgers on start_session, settle_session, and register_expert.
  • Use env.storage().persistent().extend_ttl() and env.storage().instance().extend_ttl().
  • Configurable minimum and maximum TTL thresholds in admin settings.
    Key Files
    contracts/src/storage.rs, contracts/src/lib.rs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions