pub trait StateReadExt: StateRead {
    // Provided methods
    fn get_community_pool_params<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<CommunityPoolParameters>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn community_pool_asset_balance<'life0, 'async_trait>(
        &'life0 self,
        asset_id: Id
    ) -> Pin<Box<dyn Future<Output = Result<Amount>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn community_pool_balance<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<BTreeMap<Id, Amount>>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}
Available on crate feature component only.

Provided Methods§

source

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

Gets the Community Pool parameters from the JMT.

source

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

source

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

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> StateReadExt for T
where T: StateRead + ?Sized,