Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Abi ¶
type Abi struct { ABI string `json:"abi"` Compact string `json:"compact"` Inputs []*AbiIO `json:"inputs"` Name string `json:"name"` Outputs []*AbiIO `json:"outputs"` StateMutability string `json:"stateMutability"` Type string `json:"type"` }
Abi is the struct type used to represent a function or event ABI
func AbiList ¶
AbiList returns a list of ABIs found in the provided bytecode, ignoring any unknown ABIs
func LookupAbi ¶
func LookupAbi(pfx MethodPrefix) *Abi
LookupAbi will return the ABI matching the provided prefix, or nil if no such ABI is known
type MethodPrefix ¶
type MethodPrefix [4]byte
func ScanContract ¶
func ScanContract(bytecode []byte) []MethodPrefix
ScanContract will scan the bytecode of a contract and return a list of method hash prefixes
Click to show internal directories.
Click to hide internal directories.