Skip to content

Support comparing multiple storage slots in one run #502

@casks-mutters

Description

@casks-mutters

Description:

Currently, the tool only supports inspecting a single slot (via CLI arguments: contract address + slot + block A + block B).

It would be useful to support passing multiple slots (e.g. a list or a file) so that a user can compare many storage positions in one invocation. For example:

  • Accept a comma-separated list of slot indices (or hex),
  • Or accept a JSON / text file with an array of slots, address, and block pairs.

Benefits:

  • Avoid running the tool repeatedly for every slot.
  • More efficient workflows for snapshot comparisons of many variables.
  • Closer to a “bulk diff / bulk commitment” mode — more practical for real-world contract auditing or state tracking.

Suggested changes:

  • Extend CLI (or add a new subcommand) like --slots 0x0,0x1,0xa,5.
  • Internally loop over slots, produce a Merkle tree (or list of pair-commitments).
  • Output aggregated result (e.g. a JSON array, or a combined commitment root).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions