write_enzyme_vault_metadata_cache
Documentation for eth_defi.enzyme.offchain_metadata.write_enzyme_vault_metadata_cache function.
- write_enzyme_vault_metadata_cache(metadata, cache_path=PosixPath('/home/runner/.tradingstrategy/cache/enzyme/vault-metadata.json'))
Atomically replace the durable Enzyme metadata cache.
Cache entries with no text are retained. They document a successful app read whose vault has not supplied descriptions, so the Blue adapter can expose no text rather than infer a strategy.
- Parameters
metadata (collections.abc.Mapping[tuple[int, eth_typing.evm.HexAddress], eth_defi.enzyme.offchain_metadata.EnzymeVaultMetadata]) – Complete address-indexed cache contents.
cache_path (pathlib.Path) – JSON cache destination.
- Returns
None after the cache is safely replaced.
- Return type
None