pub trait FarmingApi<Block: BlockT, AssetId: Codec>: Core<Block> {
    // Provided methods
    fn reward_doubling_assets(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<Vec<AssetId>, ApiError> { ... }
    fn reward_doubling_assets_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<Vec<AssetId>, ApiError> { ... }
}

Provided Methods§

source

fn reward_doubling_assets( &self, __runtime_api_at_param__: &BlockId<Block> ) -> Result<Vec<AssetId>, ApiError>

source

fn reward_doubling_assets_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<Vec<AssetId>, ApiError>

Trait Implementations§

source§

impl<Block: BlockT, AssetId: Codec> RuntimeApiInfo for dyn FarmingApi<Block, AssetId>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§