Module ethers_core::abi
source · Expand description
Extensions to the ethabi
API.
Adapted from Gnosis’ ethcontract-rs
.
Re-exports§
Modules§
- Function and event param types.
- Solidity struct definition parsing support
- ABI param and parsing for it.
Structs§
- API building calls to contracts ABI.
- Contract ABI and optional bytecode as JSON object
- A parser that turns a “human readable abi” into a
Abi
- Either an input/output or a nested component of an input/output
- Contract constructor specification.
- API building calls to contracts ABI.
- Contract event.
- Event param specification.
- Contract events iterator.
- Contract function specification.
- Contract functions iterator.
- Decoded log.
- Decoded log param.
- Function param.
- Contract ABI as a list of items where each item can be a function, constructor or event
- Ethereum log.
- Raw topic filter.
- Topic filter.
- Tuple params specification
Enums§
- ABI codec related errors
- An error thrown by
encode_packed
. - Ethabi errors
- Represents contract ABI input variants
- Function and event param types.
- Error that can occur during human readable parsing
- Whether a function modifies or reads blockchain state
- Ethereum ABI params.
- Acceptable topic possibilities.
Traits§
- Additional trait for types that can appear in arrays
- Trait for ABI decoding
- Trait for ABI encoding
- A trait for types that can be represented in the Ethereum ABI.
- Output type possible to deserialize from Contract ABI
- Extension trait for
ethabi::AbiError
. - Extension trait for
ethabi::Event
. - Extension trait for
ethabi::Function
. - Contract functions generated by ethabi-derive
- Common filtering functions that are available for any event.
- trait common to things (events) that have an associated
Log
type that can be parsed from aRawLog
- Simplified output type for single value.
- Marker trait for
Tokenizable
types that are can tokenized to and from aToken::Array
andToken:FixedArray
. - Convert types into
Token
s.
Functions§
- Decodes ABI compliant vector of bytes into vector of tokens described by types param. Returns ok, even if some data left to decode
- Decodes ABI compliant vector of bytes into vector of tokens described by types param. Fails, if some data left to decode
- Encodes vector of tokens into ABI compliant vector of bytes.
- Encodes the given tokens into an ABI compliant vector of bytes.
- Returns the full Keccak-256 hash of the signature of the given params
- Returns the minimum number of bytes that
ty
takes up in the ABI. - Parses a “human readable abi” string vector
- Parses a “human readable abi” string
- Returns the first four bytes of the Keccak-256 hash of the signature of the given params
Type Aliases§
- ABI address.
- ABI bytes.
- ABI fixed bytes.
- Commonly used FixedBytes of size 32
- ABI signed integer.
- Ethabi result type
- ABI unsigned integer.
- ABI word.