Module ethers_core::abi

source ·
Expand description

This module implements extensions to the ethabi API.

Re-exports

pub use ethabi;
pub use struct_def::SolStruct;

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 error specification.
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
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 a RawLog
Simplified output type for single value.
Marker trait for Tokenizable types that are can tokenized to and from a Token::Array and Token:FixedArray.
Tokens conversion trait

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.
Returns the full Keccak-256 hash of the signature of the given params
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 Definitions

ABI address.
ABI bytes.
ABI fixed bytes.
Commonly used FixedBytes of size 32
ABI signed integer.
Ethabi result type
ABI unsigned integer.
ABI word.