Description
Problem
Soroban storage entries have expiration requirements, but Sorokit does not provide a high-level mechanism for inspecting expiration state, estimating renewal requirements, or identifying storage approaching its expiration threshold.
Solution
Create storage expiration utilities that inspect contract entries, calculate their remaining lifetime, and generate renewal operations when required. Support configurable warning thresholds and optional automatic renewal workflows.
Acceptance Criteria
Note for Contributors
Keep estimation separate from transaction submission. Avoid assuming a fixed network rent value when the required information can be obtained dynamically. Test expiration calculations around boundary conditions.
Description
Problem
Soroban storage entries have expiration requirements, but Sorokit does not provide a high-level mechanism for inspecting expiration state, estimating renewal requirements, or identifying storage approaching its expiration threshold.
Solution
Create storage expiration utilities that inspect contract entries, calculate their remaining lifetime, and generate renewal operations when required. Support configurable warning thresholds and optional automatic renewal workflows.
Acceptance Criteria
calculateStorageRent(contractId)exposes estimated renewal requirementsrenewContractStorage(contractId)builds the required renewal operationsrc/soroban/index.tsandsrc/index.tsNote for Contributors
Keep estimation separate from transaction submission. Avoid assuming a fixed network rent value when the required information can be obtained dynamically. Test expiration calculations around boundary conditions.