Trait subxt::events::StaticEvent
source · pub trait StaticEvent: Decode {
const PALLET: &'static str;
const EVENT: &'static str;
fn is_event(pallet: &str, event: &str) -> bool { ... }
}
Expand description
Trait to uniquely identify the events’s identity from the runtime metadata.
Generated API structures that represent an event implement this trait.
The trait is utilized to decode emitted events from a block, via obtaining the
form of the Event
from the metadata.