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 SolEvents.

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§

source

const NAME: &'static str

The name of this type.

source

const COUNT: usize

The number of variants.

Required Methods§

source

fn decode_log(topics: &[Word], data: &[u8], validate: bool) -> Result<Self>

Decode the events from the given log info.

Provided Methods§

source

fn decode_log_object(log: &Log, validate: bool) -> Result<Self>

Decode the events from the given log object.

Implementors§