Trait penumbra_app::app::StateReadExt

source ·
pub trait StateReadExt: StateRead {
    // Provided methods
    fn app_params_updated(&self) -> bool { ... }
    fn get_chain_id<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn check_chain_id<'life0, 'life1, 'async_trait>(
        &'life0 self,
        provided: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn get_revision_number<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn get_app_params<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<AppParameters>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn transactions_by_height<'life0, 'async_trait>(
        &'life0 self,
        block_height: u64
    ) -> Pin<Box<dyn Future<Output = Result<TransactionsByHeightResponse>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}

Provided Methods§

source

fn app_params_updated(&self) -> bool

Returns true if the app parameters have been changed in this block.

source

fn get_chain_id<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

source

fn check_chain_id<'life0, 'life1, 'async_trait>( &'life0 self, provided: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Checks a provided chain_id against the chain state.

Passes through if the provided chain_id is empty or matches, and otherwise errors.

source

fn get_revision_number<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Gets the chain revision number, from the chain ID

source

fn get_app_params<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<AppParameters>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Returns the set of app parameters

source

fn transactions_by_height<'life0, 'async_trait>( &'life0 self, block_height: u64 ) -> Pin<Box<dyn Future<Output = Result<TransactionsByHeightResponse>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Object Safety§

This trait is not object safe.

Implementors§