pub trait PswapDistributionAPI<Block: BlockT, AccountId, Balance>: Core<Block>where
    AccountId: Codec,
    Balance: Codec + MaybeFromStr + MaybeDisplay,{
    // Provided methods
    fn claimable_amount(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        account_id: AccountId
    ) -> Result<BalanceInfo<Balance>, ApiError> { ... }
    fn claimable_amount_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        account_id: AccountId
    ) -> Result<BalanceInfo<Balance>, ApiError> { ... }
}

Provided Methods§

source

fn claimable_amount( &self, __runtime_api_at_param__: &BlockId<Block>, account_id: AccountId ) -> Result<BalanceInfo<Balance>, ApiError>

source

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

Trait Implementations§

source§

impl<Block: BlockT, AccountId, Balance> RuntimeApiInfo for dyn PswapDistributionAPI<Block, AccountId, Balance>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§