OndoVaultHistoricalReader

Documentation for eth_defi.tokenised_fund.ondo.historical.OndoVaultHistoricalReader Python class.

class OndoVaultHistoricalReader

Bases: eth_defi.vault.base.VaultHistoricalReader

Read ERC-20 supply and issuer-published Ondo NAV/share.

Create a historical reader.

Parameters
  • vault – Ondo tokenised fund adapter.

  • stateful – Whether to retain adaptive reader state.

Attributes summary

address

first_block

Methods summary

__init__(vault, stateful)

Create a historical reader.

construct_multicalls()

Construct total-supply and issuer NAV calls.

process_result(block_number, timestamp, ...)

Convert issuer oracle results to a USD historical vault row.

__init__(vault, stateful)

Create a historical reader.

Parameters
  • vault (OndoVault) – Ondo tokenised fund adapter.

  • stateful (bool) – Whether to retain adaptive reader state.

construct_multicalls()

Construct total-supply and issuer NAV calls.

Return type

collections.abc.Iterable[eth_defi.event_reader.multicall_batcher.EncodedCall]

process_result(block_number, timestamp, call_results)

Convert issuer oracle results to a USD historical vault row.

Parameters
Return type

eth_defi.vault.base.VaultHistoricalRead