pub trait TidefiApi<Block: BlockT, AccountId>: Core<Block>where
    AccountId: Codec,
{ fn get_account_balance(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        account_id: AccountId,
        asset_id: CurrencyId
    ) -> Result<Result<CurrencyBalance<BalanceInfo>, DispatchError>, ApiError> { ... } fn get_account_balance_with_context(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        context: ExecutionContext,
        account_id: AccountId,
        asset_id: CurrencyId
    ) -> Result<Result<CurrencyBalance<BalanceInfo>, DispatchError>, ApiError> { ... } fn get_account_balances(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        account_id: AccountId
    ) -> Result<Result<Vec<(CurrencyId, CurrencyBalance<BalanceInfo>)>, DispatchError>, ApiError> { ... } fn get_account_balances_with_context(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        context: ExecutionContext,
        account_id: AccountId
    ) -> Result<Result<Vec<(CurrencyId, CurrencyBalance<BalanceInfo>)>, DispatchError>, ApiError> { ... } fn get_account_stakes(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        account_id: AccountId
    ) -> Result<Result<Vec<(CurrencyId, Stake<BalanceInfo, BlockNumber>)>, DispatchError>, ApiError> { ... } fn get_account_stakes_with_context(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        context: ExecutionContext,
        account_id: AccountId
    ) -> Result<Result<Vec<(CurrencyId, Stake<BalanceInfo, BlockNumber>)>, DispatchError>, ApiError> { ... } fn get_assets(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash
    ) -> Result<Result<Vec<(CurrencyId, CurrencyMetadata<Vec<u8>>)>, DispatchError>, ApiError> { ... } fn get_assets_with_context(
        &self,
        __runtime_api_at_param__: <Block as BlockT>::Hash,
        context: ExecutionContext
    ) -> Result<Result<Vec<(CurrencyId, CurrencyMetadata<Vec<u8>>)>, DispatchError>, ApiError> { ... } }

Provided Methods§

Trait Implementations§

The identifier of the runtime api.
The version of the runtime api.

Implementors§