pub trait FetchEvents {
type Hash: Encode + Decode;
// Required methods
fn fetch_events_from_block<'life0, 'async_trait>(
&'life0 self,
block_hash: Self::Hash,
) -> Pin<Box<dyn Future<Output = Result<Events<Self::Hash>>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn fetch_events_for_extrinsic<'life0, 'async_trait>(
&'life0 self,
block_hash: Self::Hash,
extrinsic_hash: Self::Hash,
) -> Pin<Box<dyn Future<Output = Result<Vec<EventDetails<Self::Hash>>>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Required Associated Types§
Required Methods§
Sourcefn fetch_events_from_block<'life0, 'async_trait>(
&'life0 self,
block_hash: Self::Hash,
) -> Pin<Box<dyn Future<Output = Result<Events<Self::Hash>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_events_from_block<'life0, 'async_trait>(
&'life0 self,
block_hash: Self::Hash,
) -> Pin<Box<dyn Future<Output = Result<Events<Self::Hash>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch all block events from node for the given block hash.
Sourcefn fetch_events_for_extrinsic<'life0, 'async_trait>(
&'life0 self,
block_hash: Self::Hash,
extrinsic_hash: Self::Hash,
) -> Pin<Box<dyn Future<Output = Result<Vec<EventDetails<Self::Hash>>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_events_for_extrinsic<'life0, 'async_trait>(
&'life0 self,
block_hash: Self::Hash,
extrinsic_hash: Self::Hash,
) -> Pin<Box<dyn Future<Output = Result<Vec<EventDetails<Self::Hash>>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch all associated events for a given extrinsic hash and block hash.