Skip to content

Add Ledger Entry Inspector with TTL Display #210

@Timi16

Description

@Timi16

Description

Display all ledger entries (instance, persistent, temporary) accessed during contract execution along with their TTL (time-to-live) values, and warn when entries are near expiration.

Requirements

  • List all ledger entries read or written during execution
  • Display storage type: Instance / Persistent / Temporary
  • Show TTL for each entry
  • Warn when entries are within a configurable threshold of expiration

Suggested Execution

  1. Branch: git checkout -b feature/ledger-inspector
  2. Create src/inspector/ledger.rs
  3. Hook into host ledger entry access tracking
  4. Display entries grouped by type after execution
  5. Add --ttl-warn-threshold flag
  6. Commit: feat: add ledger entry inspector with TTL display

Acceptance Criteria

  • All accessed ledger entries listed
  • Grouped by storage type (Instance/Persistent/Temporary)
  • TTL displayed for each entry
  • Near-expiry warnings shown in yellow
  • Tests for each storage type

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions