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

Provided Methods§

source

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

source

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

Trait Implementations§

source§

impl<Block: BlockT, EthAddress, Balance> RuntimeApiInfo for dyn RewardsAPI<Block, EthAddress, Balance>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§