pub trait Relayer: Send + Sync {
// Required methods
fn wait_for_at_least_height<'life0, 'life1, 'async_trait>(
&'life0 self,
height: &'life1 DaBlockHeight,
) -> Pin<Box<dyn Future<Output = Result<DaBlockHeight>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_cost_and_transactions_number_for_block<'life0, 'life1, 'async_trait>(
&'life0 self,
height: &'life1 DaBlockHeight,
) -> Pin<Box<dyn Future<Output = Result<RelayerBlockInfo>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Required Methods§
Sourcefn wait_for_at_least_height<'life0, 'life1, 'async_trait>(
&'life0 self,
height: &'life1 DaBlockHeight,
) -> Pin<Box<dyn Future<Output = Result<DaBlockHeight>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn wait_for_at_least_height<'life0, 'life1, 'async_trait>(
&'life0 self,
height: &'life1 DaBlockHeight,
) -> Pin<Box<dyn Future<Output = Result<DaBlockHeight>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Wait for the relayer to reach at least this height and return the latest height.
Sourcefn get_cost_and_transactions_number_for_block<'life0, 'life1, 'async_trait>(
&'life0 self,
height: &'life1 DaBlockHeight,
) -> Pin<Box<dyn Future<Output = Result<RelayerBlockInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_cost_and_transactions_number_for_block<'life0, 'life1, 'async_trait>(
&'life0 self,
height: &'life1 DaBlockHeight,
) -> Pin<Box<dyn Future<Output = Result<RelayerBlockInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get the total Forced Transaction gas cost for the block at the given height.