CurrentVaultRow

Documentation for eth_defi.vault.top_vaults_json.CurrentVaultRow Python class.

class CurrentVaultRow

Bases: object

Normalised current dataframe row for sticky export processing.

Attributes summary

key

Canonical state key, chain_id-lowercase_address.

record

JSON export row produced by export_lifetime_row().

export_safe

Whether this current row can safely replace last_exported_record.

fresh

Whether the row timestamp is inside the freshness warning window.

Methods summary

__init__(key, record, export_safe, fresh)

key: str

Canonical state key, chain_id-lowercase_address.

record: dict

JSON export row produced by export_lifetime_row().

export_safe: bool

Whether this current row can safely replace last_exported_record.

fresh: bool

Whether the row timestamp is inside the freshness warning window.

__init__(key, record, export_safe, fresh)
Parameters
Return type

None