Trait alloy_sol_types::SolEventInterface
source · pub trait SolEventInterface: Sized {
const NAME: &'static str;
const COUNT: usize;
// Required method
fn decode_log(topics: &[Word], data: &[u8], validate: bool) -> Result<Self>;
// Provided method
fn decode_log_object(log: &Log, validate: bool) -> Result<Self> { ... }
}
Expand description
A collection of SolEvent
s.
Implementer’s Guide
It should not be necessary to implement this trait manually. Instead, use
the sol!
procedural macro to parse Solidity syntax into
types that implement this trait.
Required Associated Constants§
Required Methods§
Provided Methods§
sourcefn decode_log_object(log: &Log, validate: bool) -> Result<Self>
fn decode_log_object(log: &Log, validate: bool) -> Result<Self>
Decode the events from the given log object.