pub trait Blockchain: Send + Sync {
    // Required methods
    fn get_current_block_height<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = CanisterResult<Option<BlockHeight>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    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_head_by_height<'life0, 'life1, 'async_trait>(
        &'life0 self,
        height: &'life1 BlockHeight
    ) -> Pin<Box<dyn Future<Output = CanisterResult<BlockHeadResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_last_block_head<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = CanisterResult<Option<BlockHeadWithHeight>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn submit_block_head<'life0, 'life1, 'async_trait>(
        &'life0 self,
        block_head: &'life1 CandidBlockHead
    ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<()>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

source

fn get_current_block_height<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = CanisterResult<Option<BlockHeight>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

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,

source

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,

source

fn get_block_head_by_height<'life0, 'life1, 'async_trait>( &'life0 self, height: &'life1 BlockHeight ) -> Pin<Box<dyn Future<Output = CanisterResult<BlockHeadResponse>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn get_last_block_head<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = CanisterResult<Option<BlockHeadWithHeight>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn submit_block_head<'life0, 'life1, 'async_trait>( &'life0 self, block_head: &'life1 CandidBlockHead ) -> Pin<Box<dyn Future<Output = CanisterResult<ActorResult<()>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§