pub async fn detect_proxy(
address: &str,
_chain: &str,
bytecode: &str,
source: Option<&ContractSource>,
client: &dyn ChainClient,
_http_client: &Client,
) -> Result<ProxyInfo>Expand description
Detect proxy patterns using all available data sources.
Checks (in order):
- Etherscan source metadata (Proxy/Implementation fields)
- Bytecode analysis (EIP-1167 minimal proxy)
- Storage slot reads (EIP-1967 implementation/admin/beacon)
- Source code patterns (if verified)