seed_default_foundry_rpc_cache
Documentation for eth_defi.testing.rpc_cache.seed_default_foundry_rpc_cache function.
- seed_default_foundry_rpc_cache(cache_dir=None)
Seed the Foundry RPC cache from the repo default and env-supplied dirs.
Applies
DEFAULT_SEED_DIRfirst, then any directory named by$ETH_DEFI_RPC_CACHE_SEED_DIR. Both are optional; a missing directory is silently skipped. Safe to call once per test session per xdist worker.- Parameters
cache_dir (Optional[pathlib.Path]) – Destination cache directory. Defaults to
get_foundry_rpc_cache_dir().- Returns
Total number of files copied across all seed directories.
- Return type