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§
sourcefn 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 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.
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,
Object Safety§
This trait is not object safe.