pub trait NominationPoolsApi<Block: BlockT, AccountId, Balance>: Core<Block>where
    AccountId: Codec,
    Balance: Codec,{
    // Provided methods
    fn pending_rewards(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        member: AccountId
    ) -> Result<Balance, ApiError> { ... }
    fn pending_rewards_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        member: AccountId
    ) -> Result<Balance, ApiError> { ... }
}
Expand description

Runtime api for accessing information about nomination pools.

Provided Methods§

source

fn pending_rewards( &self, __runtime_api_at_param__: &BlockId<Block>, member: AccountId ) -> Result<Balance, ApiError>

Returns the pending rewards for the member that the AccountId was given for.

source

fn pending_rewards_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, member: AccountId ) -> Result<Balance, ApiError>

Returns the pending rewards for the member that the AccountId was given for.

Trait Implementations§

source§

impl<Block: BlockT, AccountId, Balance> RuntimeApiInfo for dyn NominationPoolsApi<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§