IPORVaultHistoricalReader

Documentation for eth_defi.ipor.vault.IPORVaultHistoricalReader Python class.

class IPORVaultHistoricalReader[source]

Read IPOR vault core data + fees

Attributes summary

address

first_block

Methods summary

__init__(vault)

construct_core_erc_4626_multicall()

Polling endpoints defined in ERC-4626 spec.

construct_fee_calls()

construct_multicalls()

Get the onchain calls that are needed to read the share price.

dictify_multicall_results(block_number, ...)

Convert batch of multicalls made for this vault to more digestible dict.

process_core_erc_4626_result(call_by_name)

Decode common ERC-4626 calls.

process_ipor_fee_result(call_by_name)

Decode IPOR specific data.

process_result(block_number, timestamp, ...)

Process the result of mult

construct_multicalls()[source]

Get the onchain calls that are needed to read the share price.

Return type

Iterable[eth_defi.event_reader.multicall_batcher.EncodedCall]

process_ipor_fee_result(call_by_name)[source]

Decode IPOR specific data.

Parameters

call_by_name (dict[str, eth_defi.event_reader.multicall_batcher.EncodedCallResult]) –

Return type

tuple

process_result(block_number, timestamp, call_results)[source]

Process the result of mult

  • Calls are created in construct_multicalls()

  • This method combines result of this calls to a easy to manage historical record VaultHistoricalRead

Parameters
Return type

eth_defi.vault.base.VaultHistoricalRead