tokenised_fund.sygnum.backfill
Documentation for eth_defi.tokenised_fund.sygnum.backfill Python module.
Add the reviewed Sygnum FILQ-A lead without touching unrelated histories.
FILQ currently has no public, verified NAV-history route. This generated migration therefore writes only the one hardcoded metadata lead. It explicitly does not reset reader state or alter raw/cleaned Parquet files: creating price rows without NAV would be misleading, and retaining those files prevents an accidental full-chain rescan.
Run with source .local-test.env && PROTOCOLS=sygnum poetry run python scripts/backfill-tokenised-funds.py.
Set DRY_RUN=true to inspect the address-scoped plan without writing.
VAULT_DB_PATH and END_BLOCK may be overridden for controlled runs.
Functions
Create the reviewed FILQ-A detection. |
|
Create the one address-scoped discovery lead. |
|
|
Run the FILQ-A metadata-only migration. |
|
Read a conventional Boolean environment variable. |
|
Upsert FILQ-A while restoring the shared Ethereum discovery cursor. |
- parse_bool_env(name, *, default)
Read a conventional Boolean environment variable.
- create_detection()
Create the reviewed FILQ-A detection.
- Returns
Hardcoded non-event-derived FILQ-A detection.
- Return type
- create_lead()
Create the one address-scoped discovery lead.
- Returns
FILQ-A potential vault match.
- Return type
- upsert_filq_metadata(vault_db, row, end_block)
Upsert FILQ-A while restoring the shared Ethereum discovery cursor.
- Parameters
vault_db (eth_defi.vault.vaultdb.VaultDatabase) – Existing shared vault database.
row (dict) – Fresh FILQ-A metadata row.
end_block (int) – Block at which metadata was read.
- Returns
None.- Return type
None
- main()
Run the FILQ-A metadata-only migration.
- Returns
None.- Return type
None