Expand description
Commonly used contract types and functions.
Structs§
- Bytecode
Data - Subset of CompactBytecode excluding sourcemaps.
- Contract
Data - Container for commonly used contract data.
- Contracts
ByArtifact - Wrapper type that maps an artifact to a contract ABI and bytecode.
- Contracts
ByArtifact Builder - Builder for creating a
ContractsByArtifactinstance, optionally including storage layouts from project compile output.
Functions§
- bytecode_
diff_ score - Very simple fuzzy matching of contract bytecode.
- compact_
to_ contract - Helper function to convert CompactContractBytecode ~> ContractBytecodeSome
- find_
matching_ contract_ artifact - Returns the target artifact given the path and name.
- find_
target_ path - Returns the canonicalized target path for the given identifier.
- get_
contract_ name - Returns contract name for a given contract identifier.
- get_
file_ name - This returns the
file namepart, Seeget_contract_name
Type Aliases§
- Contracts
ByAddress - Wrapper type that maps an address to a contract identifier and contract ABI.