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_detection()

Create the reviewed FILQ-A detection.

create_lead()

Create the one address-scoped discovery lead.

main()

Run the FILQ-A metadata-only migration.

parse_bool_env(name, *, default)

Read a conventional Boolean environment variable.

upsert_filq_metadata(vault_db, row, end_block)

Upsert FILQ-A while restoring the shared Ethereum discovery cursor.

parse_bool_env(name, *, default)

Read a conventional Boolean environment variable.

Parameters
  • name (str) – Environment-variable name.

  • default (bool) – Value used when the variable is absent.

Returns

Parsed Boolean value.

Return type

bool

create_detection()

Create the reviewed FILQ-A detection.

Returns

Hardcoded non-event-derived FILQ-A detection.

Return type

eth_defi.erc_4626.core.ERC4262VaultDetection

create_lead()

Create the one address-scoped discovery lead.

Returns

FILQ-A potential vault match.

Return type

eth_defi.erc_4626.discovery_base.PotentialVaultMatch

upsert_filq_metadata(vault_db, row, end_block)

Upsert FILQ-A while restoring the shared Ethereum discovery cursor.

Parameters
Returns

None.

Return type

None

main()

Run the FILQ-A metadata-only migration.

Returns

None.

Return type

None