class Eth::Abi::Event::LogDescription

A decoded event log.

def initialize(event_interface, log)

Parameters:
  • log (Hash) -- transaction receipt log
  • event_interface (Hash) -- event ABI type.
def initialize(event_interface, log)
  @event_interface = event_interface
  inputs = event_interface.fetch("inputs")
  data = log.fetch("data")
  topics = log.fetch("topics", [])
  anonymous = event_interface.fetch("anonymous", false)
  @topic = topics[0] if !anonymous
  @args, @kwargs = Event.decode_log(inputs, data, topics, anonymous)
end

def name

The event name. (e.g. Transfer)
def name
  @name ||= event_interface.fetch("name")
end

def signature

The event signature. (e.g. Transfer(address,address,uint256))
def signature
  @signature ||= Abi::Event.signature(event_interface)
end