backfill_chain
Documentation for eth_defi.tokenised_fund.securitize.backfill.backfill_chain function.
- backfill_chain(chain_id, products, *, dry_run, scan_prices, clean_prices, frequency, vault_db, vault_db_path, price_database_path, cleaned_price_database_path, reader_state_database_path, token_cache)
Upsert one chain’s DSToken leads and rewrite only priced histories.
Product deployments are derived independently for the selected addresses. The shared metadata database receives only their rows, and the historical scanner receives only priced address filters.
- Parameters
chain_id (int) – EVM chain being migrated.
products (list[eth_defi.tokenised_fund.securitize.description.SecuritizeProduct]) – Reviewed Securitize products on that chain.
dry_run (bool) – Whether writes to state and Parquet files are disabled.
scan_prices (bool) – Whether to rebuild supported price histories.
clean_prices (bool) – Whether to rebuild corresponding cleaned histories.
frequency (Literal['1h', '1d']) – Historical sampling interval.
vault_db (eth_defi.vault.vaultdb.VaultDatabase) – Existing shared metadata database.
vault_db_path (pathlib.Path) – Metadata database destination.
price_database_path (pathlib.Path) – Uncleaned price Parquet destination.
cleaned_price_database_path (pathlib.Path) – Cleaned price Parquet destination.
reader_state_database_path (pathlib.Path) – Shared reader-state pickle destination.
token_cache (eth_defi.token.TokenDiskCache) – Shared ERC-20 metadata cache.
- Returns
Tabular migration summary for the chain.
- Return type