pub trait OracleProxyAPI<Block: BlockT, Symbol, ResolveTime>: Core<Block>where
    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)>, DispatchError>, ApiError> { ... }
    fn list_enabled_symbols_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<Result<Vec<(Symbol, ResolveTime)>, DispatchError>, ApiError> { ... }
}

Provided Methods§

source

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

source

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

source

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

source

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

Trait Implementations§

source§

impl<Block: BlockT, Symbol, ResolveTime> RuntimeApiInfo for dyn OracleProxyAPI<Block, Symbol, ResolveTime>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§