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> { ... }
}
The identifier of the runtime api.
The version of the runtime api.