prepare_price_timestamp_permissions

Documentation for eth_defi.hyperliquid.permission_recovery.prepare_price_timestamp_permissions function.

prepare_price_timestamp_permissions(connection, table, time_column, archives, parquets)

Stage legacy permission snapshots with an explicitly inferred price clock.

Only operator-selected backup sources supply flags. Current target flags are excluded because this repair addresses their known corruption. Archive order resolves matching-key conflicts, with raw Parquet last. A source row with no flags supplies no permission evidence. HLP identity comes from its source metadata; capacity receives no inferred freshness clock.

Parameters
  • connection (_duckdb.DuckDBPyConnection) – Caller-owned connection; only TEMP tables are written.

  • table (str) – Allowlisted scanner price table name.

  • time_column (str) – Source price clock column, date or timestamp.

  • archives (list[tuple[str, str, str, str | None, str | None]]) – Price alias, immutable path, SHA-256, optional metadata and permission aliases.

  • parquets (list[tuple[str, str, str, set[str]]]) – Raw view alias, immutable path, SHA-256 and available columns.

Returns

None; prepares legacy_permission_candidates for dry/apply paths.

Return type

None