CentrifugeTrancheHistoricalReader
Documentation for eth_defi.tokenised_fund.centrifuge.historical.CentrifugeTrancheHistoricalReader Python class.
- class CentrifugeTrancheHistoricalReader
Bases:
eth_defi.vault.base.VaultHistoricalReaderRead supply without inventing JTRSY NAV or TVL.
The direct
Tranchetoken exposes ERC-20 supply, but no NAV/share price. The linked Centrifuge pool vault owns valuation and dealing semantics. This reader records available supply and explicitly leaves price and TVL absent.Create a read-only tranche-token history reader.
- Parameters
vault – Direct Centrifuge Tranche token adapter.
stateful – Ignored because no NAV call exists from which adaptive state could safely be updated.
Attributes summary
addressfirst_blockMethods summary
__init__(vault, stateful)Create a read-only tranche-token history reader.
Construct the ERC-20 supply read.
process_result(block_number, timestamp, ...)Convert token supply to an explicitly unpriced history row.
- __init__(vault, stateful)
Create a read-only tranche-token history reader.
- Parameters
vault (CentrifugeTrancheVault) – Direct Centrifuge Tranche token adapter.
stateful (bool) – Ignored because no NAV call exists from which adaptive state could safely be updated.
- construct_multicalls()
Construct the ERC-20 supply read.
- Returns
One
totalSupply()multicall.- Return type
collections.abc.Iterable[eth_defi.event_reader.multicall_batcher.EncodedCall]
- process_result(block_number, timestamp, call_results)
Convert token supply to an explicitly unpriced history row.
- Parameters
block_number (int) – Historical block number.
timestamp (datetime.datetime) – Naive UTC block timestamp.
call_results (list[eth_defi.event_reader.multicall_batcher.EncodedCallResult]) – Results for
construct_multicalls().
- Returns
Supply-only historical record with unavailable price and TVL.
- Return type