fetch_flying_tulip_proxy_deployment_block

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

fetch_flying_tulip_proxy_deployment_block(web3, vault_address, end_block)

Find the first block with runtime code for a reviewed sftUSD proxy.

The binary search is an archive-state operation for one contract, not a historical log or timestamp read. The caller uses it only to establish the complete Hypersync source range; all source events themselves remain on Hypersync.

Parameters
  • web3 (web3.main.Web3) – Archive-capable deployment-chain provider.

  • vault_address (eth_typing.evm.HexAddress) – Reviewed sftUSD proxy.

  • end_block (int) – Exclusive safe head whose preceding block contains proxy code.

Returns

Inclusive deployment block.

Return type

int