pub trait AssetsAPIClient<BlockHash, AccountId, AssetId, Balance, OptionBalanceInfo, OptionAssetInfo, VecAssetInfo, VecAssetId>: ClientTwhere
    BlockHash: Send + Sync + 'static + Serialize,
    AccountId: Send + Sync + 'static + Serialize,
    AssetId: Send + Sync + 'static + Serialize,
    Balance: Send + Sync + 'static,
    OptionBalanceInfo: Send + Sync + 'static + DeserializeOwned,
    OptionAssetInfo: Send + Sync + 'static + DeserializeOwned,
    VecAssetInfo: Send + Sync + 'static + DeserializeOwned,
    VecAssetId: Send + Sync + 'static + DeserializeOwned,{
    // Provided methods
    fn free_balance<'life0, 'async_trait>(
        &'life0 self,
        account_id: AccountId,
        asset_id: AssetId,
        at: Option<BlockHash>
    ) -> Pin<Box<dyn Future<Output = Result<OptionBalanceInfo>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn usable_balance<'life0, 'async_trait>(
        &'life0 self,
        account_id: AccountId,
        asset_id: AssetId,
        at: Option<BlockHash>
    ) -> Pin<Box<dyn Future<Output = Result<OptionBalanceInfo>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn total_balance<'life0, 'async_trait>(
        &'life0 self,
        account_id: AccountId,
        asset_id: AssetId,
        at: Option<BlockHash>
    ) -> Pin<Box<dyn Future<Output = Result<OptionBalanceInfo>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn total_supply<'life0, 'async_trait>(
        &'life0 self,
        asset_id: AssetId,
        at: Option<BlockHash>
    ) -> Pin<Box<dyn Future<Output = Result<OptionBalanceInfo>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn list_asset_ids<'life0, 'async_trait>(
        &'life0 self,
        at: Option<BlockHash>
    ) -> Pin<Box<dyn Future<Output = Result<VecAssetId>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn list_asset_infos<'life0, 'async_trait>(
        &'life0 self,
        at: Option<BlockHash>
    ) -> Pin<Box<dyn Future<Output = Result<VecAssetInfo>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn get_asset_info<'life0, 'async_trait>(
        &'life0 self,
        asset_id: AssetId,
        at: Option<BlockHash>
    ) -> Pin<Box<dyn Future<Output = Result<OptionAssetInfo>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Client implementation for the AssetsAPI RPC API.

Provided Methods§

source

fn free_balance<'life0, 'async_trait>( &'life0 self, account_id: AccountId, asset_id: AssetId, at: Option<BlockHash> ) -> Pin<Box<dyn Future<Output = Result<OptionBalanceInfo>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

source

fn usable_balance<'life0, 'async_trait>( &'life0 self, account_id: AccountId, asset_id: AssetId, at: Option<BlockHash> ) -> Pin<Box<dyn Future<Output = Result<OptionBalanceInfo>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

source

fn total_balance<'life0, 'async_trait>( &'life0 self, account_id: AccountId, asset_id: AssetId, at: Option<BlockHash> ) -> Pin<Box<dyn Future<Output = Result<OptionBalanceInfo>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

source

fn total_supply<'life0, 'async_trait>( &'life0 self, asset_id: AssetId, at: Option<BlockHash> ) -> Pin<Box<dyn Future<Output = Result<OptionBalanceInfo>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

source

fn list_asset_ids<'life0, 'async_trait>( &'life0 self, at: Option<BlockHash> ) -> Pin<Box<dyn Future<Output = Result<VecAssetId>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

source

fn list_asset_infos<'life0, 'async_trait>( &'life0 self, at: Option<BlockHash> ) -> Pin<Box<dyn Future<Output = Result<VecAssetInfo>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

source

fn get_asset_info<'life0, 'async_trait>( &'life0 self, asset_id: AssetId, at: Option<BlockHash> ) -> Pin<Box<dyn Future<Output = Result<OptionAssetInfo>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Implementors§

source§

impl<TypeJsonRpseeInteral, BlockHash, AccountId, AssetId, Balance, OptionBalanceInfo, OptionAssetInfo, VecAssetInfo, VecAssetId> AssetsAPIClient<BlockHash, AccountId, AssetId, Balance, OptionBalanceInfo, OptionAssetInfo, VecAssetInfo, VecAssetId> for TypeJsonRpseeInteralwhere TypeJsonRpseeInteral: ClientT, BlockHash: Send + Sync + 'static + Serialize, AccountId: Send + Sync + 'static + Serialize, AssetId: Send + Sync + 'static + Serialize, Balance: Send + Sync + 'static, OptionBalanceInfo: Send + Sync + 'static + DeserializeOwned, OptionAssetInfo: Send + Sync + 'static + DeserializeOwned, VecAssetInfo: Send + Sync + 'static + DeserializeOwned, VecAssetId: Send + Sync + 'static + DeserializeOwned,