pub trait CapacityRuntimeApi<Block: BlockT, AccountId, Balance, BlockNumber>: Core<Block>
where AccountId: Codec + MaybeDisplay, Balance: Codec + MaybeDisplay, BlockNumber: Codec + MaybeDisplay,
{ // Provided method fn list_unclaimed_rewards( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, who: AccountId ) -> Result<Vec<UnclaimedRewardInfo<Balance, BlockNumber>>, ApiError> { ... } }
Expand description

Runtime Version for Capacity

  • MUST be incremented if anything changes
  • Also update in js/api-augment
  • See: https://paritytech.github.io/polkadot/doc/polkadot_primitives/runtime_api/index.html Runtime APIs for Capacity

Provided Methods§

source

fn list_unclaimed_rewards( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, who: AccountId ) -> Result<Vec<UnclaimedRewardInfo<Balance, BlockNumber>>, ApiError>

Get the list of unclaimed rewards information for each eligible Reward Era.

Trait Implementations§

source§

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

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§