class Eth::Abi::Event::LogDescription
A decoded event log.
def initialize(event_interface, log)
-
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
def name @name ||= event_interface.fetch("name") end
def signature
def signature @signature ||= Abi::Event.signature(event_interface) end