upsert_ustb_metadata
Documentation for eth_defi.tokenised_fund.superstate.backfill.upsert_ustb_metadata function.
- upsert_ustb_metadata(vault_db, row, end_block)
Upsert only USTB metadata without changing shared discovery cursors.
VaultDatabase.update_leads_and_rows()is the shared merge path, but it also advances the chain-wide discovery cursor. A targeted migration must not make unrelated Ethereum discovery skip blocks, so retain the exact pre-existing cursor value, including the case where no cursor was present, around this single-address upsert.- Parameters
vault_db (eth_defi.vault.vaultdb.VaultDatabase) – Existing shared vault database.
row (dict) – Fresh USTB scanner metadata row.
end_block (int) – Metadata read block supplied to the underlying merge operation.
- Returns
None.
- Return type
None