write_reader_states
Documentation for eth_defi.tokenised_fund.securitize.backfill.write_reader_states function.
- write_reader_states(path, states)
Persist reader state atomically after the scoped history scan.
Atomic replacement ensures that an interrupted process cannot leave a partially serialised reader-state file.
- Parameters
path (pathlib.Path) – Reader-state pickle path.
states (dict[eth_defi.vault.base.VaultSpec, dict]) – Complete state mapping returned by the historical scanner.
- Returns
None.
- Return type
None