pub trait OracleProxyRuntimeApi<Block, Symbol, ResolveTime>: Core<Block>where
    Block: Block,
    Symbol: Codec,
    ResolveTime: Codec,{
    // Provided methods
    fn quote(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        symbol: Symbol
    ) -> Result<Result<Option<RateInfo>, DispatchError>, ApiError> { ... }
    fn quote_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        symbol: Symbol
    ) -> Result<Result<Option<RateInfo>, DispatchError>, ApiError> { ... }
    fn list_enabled_symbols(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<Result<Vec<(Symbol, ResolveTime), Global>, DispatchError>, ApiError> { ... }
    fn list_enabled_symbols_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<Result<Vec<(Symbol, ResolveTime), Global>, DispatchError>, ApiError> { ... }
}

Provided Methods§

fn quote( &self, __runtime_api_at_param__: &BlockId<Block>, symbol: Symbol ) -> Result<Result<Option<RateInfo>, DispatchError>, ApiError>

fn quote_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, symbol: Symbol ) -> Result<Result<Option<RateInfo>, DispatchError>, ApiError>

fn list_enabled_symbols( &self, __runtime_api_at_param__: &BlockId<Block> ) -> Result<Result<Vec<(Symbol, ResolveTime), Global>, DispatchError>, ApiError>

fn list_enabled_symbols_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext ) -> Result<Result<Vec<(Symbol, ResolveTime), Global>, DispatchError>, ApiError>

Trait Implementations§

§

impl<Block, Symbol, ResolveTime> RuntimeApiInfo for dyn OracleProxyAPI<Block, Symbol, ResolveTime> + 'staticwhere Block: Block,

§

const ID: [u8; 8] = [143u8, 216u8, 159u8, 212u8, 31u8, 174u8, 248u8, 118u8]

The identifier of the runtime api.
§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§