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
Returns

Number of new entries written to the seed file.

Return type

int