Module ethers_core::abi

source ·
Expand description

Extensions to the ethabi API.

Adapted from Gnosis’ ethcontract-rs.

Re-exports§

Modules§

Structs§

Enums§

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.
  • Convert types into Tokens.

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§