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

Provided Methods§

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

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

Trait Implementations§

§

impl<Block, AssetId> RuntimeApiInfo for dyn FarmingApi<Block, AssetId> + 'staticwhere Block: Block, AssetId: Codec,

§

const ID: [u8; 8] = [152u8, 222u8, 174u8, 215u8, 101u8, 42u8, 239u8, 249u8]

The identifier of the runtime api.
§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§