Module contracts

Source
Expand description

Commonly used contract types and functions.

Structs§

BytecodeData
Subset of CompactBytecode excluding sourcemaps.
ContractData
Container for commonly used contract data.
ContractsByArtifact
Wrapper type that maps an artifact to a contract ABI and bytecode.
ContractsByArtifactBuilder
Builder for creating a ContractsByArtifact instance, 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 name part, See get_contract_name

Type Aliases§

ContractsByAddress
Wrapper type that maps an address to a contract identifier and contract ABI.