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
hypersync_client (eth_defi.hypersync.session.ThrottledHypersyncClient) – Configured client for
chain_id.chain_id (int) – EVM source chain.
vault_address (eth_typing.evm.HexAddress) – Official sftUSD proxy on that chain.
start_block (int) – Inclusive source range start.
end_block (int) – Exclusive source range end.
- 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]]