Trait mithril_aggregator::services::TickerService
source · pub trait TickerService: Send + Sync {
// Required methods
fn get_current_epoch<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = StdResult<Epoch>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_current_immutable_beacon<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = StdResult<CardanoDbBeacon>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Service trait with consistent business oriented API.
Required Methods§
sourcefn get_current_epoch<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = StdResult<Epoch>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_current_epoch<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = StdResult<Epoch>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return the current Epoch as read from the chain.
sourcefn get_current_immutable_beacon<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = StdResult<CardanoDbBeacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_current_immutable_beacon<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = StdResult<CardanoDbBeacon>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return the current Beacon used for CardanoImmutableFileDigest message type.