pub trait AssetsAPI<Block: BlockT, AccountId, AssetId, Balance, AssetSymbol, AssetName, Precision, ContentSource, Description>: Core<Block>where
    AccountId: Codec,
    AssetId: Codec,
    Balance: Codec + MaybeFromStr + MaybeDisplay,
    AssetSymbol: Codec + MaybeFromStr + MaybeDisplay,
    AssetName: Codec + MaybeFromStr + MaybeDisplay,
    Precision: Codec + MaybeFromStr + MaybeDisplay,
    ContentSource: Codec + MaybeFromStr + MaybeDisplay,
    Description: Codec + MaybeFromStr + MaybeDisplay,{
Show 16 methods // Provided methods fn free_balance( &self, __runtime_api_at_param__: &BlockId<Block>, account_id: AccountId, asset_id: AssetId ) -> Result<Option<BalanceInfo<Balance>>, ApiError> { ... } fn free_balance_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, account_id: AccountId, asset_id: AssetId ) -> Result<Option<BalanceInfo<Balance>>, ApiError> { ... } fn usable_balance( &self, __runtime_api_at_param__: &BlockId<Block>, account_id: AccountId, asset_id: AssetId ) -> Result<Option<BalanceInfo<Balance>>, ApiError> { ... } fn usable_balance_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, account_id: AccountId, asset_id: AssetId ) -> Result<Option<BalanceInfo<Balance>>, ApiError> { ... } fn total_balance( &self, __runtime_api_at_param__: &BlockId<Block>, account_id: AccountId, asset_id: AssetId ) -> Result<Option<BalanceInfo<Balance>>, ApiError> { ... } fn total_balance_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, account_id: AccountId, asset_id: AssetId ) -> Result<Option<BalanceInfo<Balance>>, ApiError> { ... } fn total_supply( &self, __runtime_api_at_param__: &BlockId<Block>, asset_id: AssetId ) -> Result<Option<BalanceInfo<Balance>>, ApiError> { ... } fn total_supply_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, asset_id: AssetId ) -> Result<Option<BalanceInfo<Balance>>, ApiError> { ... } fn list_asset_ids( &self, __runtime_api_at_param__: &BlockId<Block> ) -> Result<Vec<AssetId>, ApiError> { ... } fn list_asset_ids_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<Vec<AssetId>, ApiError> { ... } fn list_asset_infos( &self, __runtime_api_at_param__: &BlockId<Block> ) -> Result<Vec<AssetInfo<AssetId, AssetSymbol, AssetName, Precision, ContentSource, Description>>, ApiError> { ... } fn list_asset_infos_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<Vec<AssetInfo<AssetId, AssetSymbol, AssetName, Precision, ContentSource, Description>>, ApiError> { ... } fn get_asset_info( &self, __runtime_api_at_param__: &BlockId<Block>, asset_id: AssetId ) -> Result<Option<AssetInfo<AssetId, AssetSymbol, AssetName, Precision, ContentSource, Description>>, ApiError> { ... } fn get_asset_info_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, asset_id: AssetId ) -> Result<Option<AssetInfo<AssetId, AssetSymbol, AssetName, Precision, ContentSource, Description>>, ApiError> { ... } fn get_asset_content_src( &self, __runtime_api_at_param__: &BlockId<Block>, asset_id: AssetId ) -> Result<Option<ContentSource>, ApiError> { ... } fn get_asset_content_src_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, asset_id: AssetId ) -> Result<Option<ContentSource>, ApiError> { ... }
}

Provided Methods§

source

fn free_balance( &self, __runtime_api_at_param__: &BlockId<Block>, account_id: AccountId, asset_id: AssetId ) -> Result<Option<BalanceInfo<Balance>>, ApiError>

source

fn free_balance_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, account_id: AccountId, asset_id: AssetId ) -> Result<Option<BalanceInfo<Balance>>, ApiError>

source

fn usable_balance( &self, __runtime_api_at_param__: &BlockId<Block>, account_id: AccountId, asset_id: AssetId ) -> Result<Option<BalanceInfo<Balance>>, ApiError>

source

fn usable_balance_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, account_id: AccountId, asset_id: AssetId ) -> Result<Option<BalanceInfo<Balance>>, ApiError>

source

fn total_balance( &self, __runtime_api_at_param__: &BlockId<Block>, account_id: AccountId, asset_id: AssetId ) -> Result<Option<BalanceInfo<Balance>>, ApiError>

source

fn total_balance_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, account_id: AccountId, asset_id: AssetId ) -> Result<Option<BalanceInfo<Balance>>, ApiError>

source

fn total_supply( &self, __runtime_api_at_param__: &BlockId<Block>, asset_id: AssetId ) -> Result<Option<BalanceInfo<Balance>>, ApiError>

source

fn total_supply_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, asset_id: AssetId ) -> Result<Option<BalanceInfo<Balance>>, ApiError>

source

fn list_asset_ids( &self, __runtime_api_at_param__: &BlockId<Block> ) -> Result<Vec<AssetId>, ApiError>

source

fn list_asset_ids_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<Vec<AssetId>, ApiError>

source

fn list_asset_infos( &self, __runtime_api_at_param__: &BlockId<Block> ) -> Result<Vec<AssetInfo<AssetId, AssetSymbol, AssetName, Precision, ContentSource, Description>>, ApiError>

source

fn list_asset_infos_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<Vec<AssetInfo<AssetId, AssetSymbol, AssetName, Precision, ContentSource, Description>>, ApiError>

source

fn get_asset_info( &self, __runtime_api_at_param__: &BlockId<Block>, asset_id: AssetId ) -> Result<Option<AssetInfo<AssetId, AssetSymbol, AssetName, Precision, ContentSource, Description>>, ApiError>

source

fn get_asset_info_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, asset_id: AssetId ) -> Result<Option<AssetInfo<AssetId, AssetSymbol, AssetName, Precision, ContentSource, Description>>, ApiError>

source

fn get_asset_content_src( &self, __runtime_api_at_param__: &BlockId<Block>, asset_id: AssetId ) -> Result<Option<ContentSource>, ApiError>

source

fn get_asset_content_src_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, asset_id: AssetId ) -> Result<Option<ContentSource>, ApiError>

Trait Implementations§

source§

impl<Block: BlockT, AccountId, AssetId, Balance, AssetSymbol, AssetName, Precision, ContentSource, Description> RuntimeApiInfo for dyn AssetsAPI<Block, AccountId, AssetId, Balance, AssetSymbol, AssetName, Precision, ContentSource, Description>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§