load_enzyme_vault_metadata_cache
Documentation for eth_defi.enzyme.offchain_metadata.load_enzyme_vault_metadata_cache function.
- load_enzyme_vault_metadata_cache(cache_path=PosixPath('/home/runner/.tradingstrategy/cache/enzyme/vault-metadata.json'), *, minimum_version=1)
Load durable app-profile metadata without making an HTTP request.
A malformed cache is ignored with a warning. Blue adapters then expose no offchain copy until a successful metadata migration replaces the cache.
- Parameters
cache_path (pathlib.Path) – Versioned JSON cache written by the migration.
minimum_version (int) – Oldest compatible cache schema to accept. The scanner accepts version one to preserve existing descriptions during an upgrade; the migration requires the current version to collect contacts.
- Returns
Address-indexed Enzyme Blue app-profile metadata.
- Return type
dict[tuple[int, eth_typing.evm.HexAddress], eth_defi.enzyme.offchain_metadata.EnzymeVaultMetadata]