pub fn extract_source_files(source: &ContractSource) -> Vec<SourceFile>Expand description
Extract individual source files from Etherscan’s source code response.
Etherscan returns source code in different formats:
- Single file: plain Solidity source
- Multi-file: JSON object wrapped in
{{...}}with “sources” key - Standard JSON input: JSON with “language”, “sources”, “settings”