merge_into_token_cache_seed
Documentation for eth_defi.testing.token_cache.merge_into_token_cache_seed function.
- merge_into_token_cache_seed(cache, seed_path=PosixPath('/home/runner/work/web3-ethereum-defi/web3-ethereum-defi/eth_defi/testing/token_cache_seed/tokens.sqlite'))
Merge tokens resolved during the session back into the shipped seed.
Used by the rebuild flow so the committed seed is regenerated from a real test run instead of being hand-maintained. Existing seed entries are preserved; only new keys are added.
- Parameters
cache (eth_defi.token.TokenDiskCache) – Session cache to read (as returned by
install_token_cache()).seed_path (pathlib.Path) – Committed SQLite cache to update. Created if missing.
- Returns
Number of new entries written to the seed file.
- Return type