fetch_source_chunk

Documentation for eth_defi.erc_4626.vault_protocol.flying_tulip.historical_context.fetch_source_chunk function.

async fetch_source_chunk(hypersync_client, chain_id, vault_address, start_block, end_block)

Stream one source range and decode settlement and supply events.

The query deliberately requests all sftUSD transfers and filters to zero address endpoints locally. This avoids depending on provider-specific wildcard-topic syntax while retaining an address-scoped source stream.

Parameters
Returns

Chronologically sorted epoch and supply source events.

Return type

tuple[list[eth_defi.erc_4626.vault_protocol.flying_tulip.historical_context.EpochSettlement], list[eth_defi.erc_4626.vault_protocol.flying_tulip.historical_context.SupplyChange]]