Trait ethers_contract::EthEvent[][src]

pub trait EthEvent: Detokenize + Send + Sync {
    fn name() -> Cow<'static, str>;
fn signature() -> H256;
fn abi_signature() -> Cow<'static, str>;
fn decode_log(log: &RawLog) -> Result<Self, Error>
    where
        Self: Sized
;
fn is_anonymous() -> bool; fn new<M: Middleware>(filter: Filter, provider: &M) -> Event<'_, M, Self>
    where
        Self: Sized
, { ... } }
Expand description

A trait for implementing event bindings

Required methods

The name of the event this type represents

Retrieves the signature for the event this data corresponds to. This signature is the Keccak-256 hash of the ABI signature of this event.

Retrieves the ABI signature for the event this data corresponds to.

Decodes an Ethereum RawLog into an instance of the type.

Returns true if this is an anonymous event

Provided methods

Returns an Event builder for the ethereum event represented by this types ABI signature.

Implementors