Skip to main content

Module external_storage

Module external_storage 

Source
Expand description

Storage layouts for contracts that aren’t part of the local project.

foundry_common::external_storage turns a verified source into a storage layout and caches the result; ExternalIdentifier finds that source on a block explorer. This module is the seam between them, and owns the state that has to outlive a single lookup.

Statics§

IDENTIFIERS 🔒
The ExternalIdentifier in use for each chain, shared by every test in the process.

Functions§

identifier 🔒
The identifier for chain, building it on first use.
storage_layouts 🔒
Resolves the storage layouts of contracts outside the local project.

Type Aliases§

Identifiers 🔒
Chain id to the identifier for that chain, or None if one couldn’t be built.