superchain-ops icon indicating copy to clipboard operation
superchain-ops copied to clipboard

AccountAccessParser - Using a specific optimism monorepo tagged version

Open blmalone opened this issue 1 year ago • 0 comments

This issue was made from a discord conversation here.

I think a nice overload of tryStorageLayoutLookup would be to take a monorepo tag, and look up the snapshots from there instead. To avoid security risks of introducing ffi to make an http request, I would probably install multiple versions of the monorepo as dependencies and give them different aliases via remappings Actually, it's probably even better for tryStorageLayoutLookup to always require you to specify a tag, instead of just using an arbitrary version

Pertains to this code.

One of the TODOs in the code is:

        // TODO: For now this just uses the submodule's version of the monorepo. A future improvement
        // would be to look up the latest release from the registry and fetch the storage layout
        // from the monorepo at that tag.

This captures the improvement that this issue should tackle.

blmalone avatar Mar 14 '25 17:03 blmalone