AssetoOffchainRegistryResult
Documentation for eth_defi.tokenised_fund.asseto.offchain_metadata.AssetoOffchainRegistryResult Python class.
- class AssetoOffchainRegistryResult
Bases:
objectOne fresh or stale Asseto registry read.
- Parameters
status – Whether products came from a new API response or a retained cache.
products – Normalised EVM registry products keyed by Asseto’s API.
source_timestamp – UTC timestamp at which the source snapshot was fetched.
diagnostics – Safe operator-facing explanation of a stale or failed read.
Attributes summary
statusproductssource_timestampdiagnosticsReturn whether the result can construct known runtime adapters.
Methods summary
__init__(status, products, source_timestamp)- property is_usable: bool
Return whether the result can construct known runtime adapters.
- __init__(status, products, source_timestamp, diagnostics=None)
- Parameters
status (Literal['fresh', 'stale', 'transient_error']) –
products (tuple[eth_defi.tokenised_fund.asseto.offchain_api.AssetoOffchainProduct, ...]) –
source_timestamp (Optional[datetime.datetime]) –
- Return type
None