upsert_ondo_metadata_preserving_discovery_cursor
Documentation for eth_defi.tokenised_fund.ondo.backfill.upsert_ondo_metadata_preserving_discovery_cursor function.
- upsert_ondo_metadata_preserving_discovery_cursor(vault_db, leads, rows)
Upsert reviewed Ondo metadata without changing discovery state.
A targeted migration must preserve both an existing Ethereum discovery cursor and the absence of one. Advancing or initialising that chain-wide cursor could skip unrelated contracts that have not yet been discovered.
- Parameters
vault_db (eth_defi.vault.vaultdb.VaultDatabase) – Existing vault metadata database.
leads (dict[eth_typing.evm.HexAddress, eth_defi.erc_4626.discovery_base.PotentialVaultMatch]) – Reviewed Ondo leads keyed by token address.
rows (dict[eth_defi.vault.base.VaultSpec, eth_defi.vault.vaultdb.VaultRow]) – Fresh Ondo scan rows keyed by
VaultSpec.
- Returns
None.
- Return type
None