Trait ProtocolParametersRetriever

Source
pub trait ProtocolParametersRetriever: Sync + Send {
    // Required method
    fn get_protocol_parameters<'life0, 'async_trait>(
        &'life0 self,
        epoch: Epoch,
    ) -> Pin<Box<dyn Future<Output = StdResult<Option<ProtocolParameters>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Retrieve the ProtocolParameters for the given epoch.

Required Methods§

Source

fn get_protocol_parameters<'life0, 'async_trait>( &'life0 self, epoch: Epoch, ) -> Pin<Box<dyn Future<Output = StdResult<Option<ProtocolParameters>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the saved ProtocolParameters for the given Epoch if any.

Implementors§