pub trait RewardsRuntimeAPI<Block, EthAddress, Balance>: Core<Block>where
    Block: Block,
    EthAddress: Codec,
    Balance: Codec + MaybeFromStr + MaybeDisplay,{
    // Provided methods
    fn claimables(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        eth_address: EthAddress
    ) -> Result<Vec<BalanceInfo<Balance>, Global>, ApiError> { ... }
    fn claimables_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        eth_address: EthAddress
    ) -> Result<Vec<BalanceInfo<Balance>, Global>, ApiError> { ... }
}

Provided Methods§

fn claimables( &self, __runtime_api_at_param__: &BlockId<Block>, eth_address: EthAddress ) -> Result<Vec<BalanceInfo<Balance>, Global>, ApiError>

fn claimables_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, eth_address: EthAddress ) -> Result<Vec<BalanceInfo<Balance>, Global>, ApiError>

Trait Implementations§

§

impl<Block, EthAddress, Balance> RuntimeApiInfo for dyn RewardsAPI<Block, EthAddress, Balance> + 'staticwhere Block: Block,

§

const ID: [u8; 8] = [92u8, 185u8, 40u8, 244u8, 65u8, 15u8, 65u8, 252u8]

The identifier of the runtime api.
§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§