View Source Ethers.Event (Ethers v0.4.5)

EVM Event struct and helpers

Summary

Functions

Decodes a log entry with the given Event function selector and returns an Event struct

Types

@type t() :: %Ethers.Event{
  address: Ethers.Types.t_address(),
  block_hash: Ethers.Types.t_hash(),
  block_number: non_neg_integer(),
  data: [term()],
  data_raw: String.t(),
  log_index: non_neg_integer(),
  removed: boolean(),
  topics: [term(), ...],
  topics_raw: [String.t(), ...],
  transaction_hash: Ethers.Types.t_hash(),
  transaction_index: non_neg_integer()
}

Functions

@spec decode(map(), ABI.FunctionSelector.t()) :: t()

Decodes a log entry with the given Event function selector and returns an Event struct