pub trait Blockchain: Send + Sync {
fn chain_length<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = CanisterResult<Nat>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
fn get_genesis_block_hash<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = CanisterResult<BlockHash>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
fn get_block_header_by_height<'life0, 'life1, 'async_trait>(
&'life0 self,
height: &'life1 BlockHeight
) -> Pin<Box<dyn Future<Output = CanisterResult<BlockHeaderResponse>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_last_block_header<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = CanisterResult<Option<BlockHeaderWithHeight>>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
fn submit_block_header<'life0, 'life1, 'async_trait>(
&'life0 self,
block_header: &'life1 CandidBlockHeader
) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<()>>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}