pub trait OracleProxyApiClient<BlockHash, Symbol, Rate, ResolveTime>: ClientTwhere
    BlockHash: Send + Sync + 'static + Serialize,
    Symbol: Send + Sync + 'static + Serialize + DeserializeOwned,
    Rate: Send + Sync + 'static + DeserializeOwned,
    ResolveTime: Send + Sync + 'static + DeserializeOwned,{
    // Provided methods
    fn quote<'life0, 'async_trait>(
        &'life0 self,
        symbol: Symbol,
        at: Option<BlockHash>
    ) -> Pin<Box<dyn Future<Output = RpcResult<Result<Option<Rate>, DispatchError>>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn list_enabled_symbols<'life0, 'async_trait>(
        &'life0 self,
        at: Option<BlockHash>
    ) -> Pin<Box<dyn Future<Output = RpcResult<Result<Vec<(Symbol, ResolveTime)>, DispatchError>>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Client implementation for the OracleProxyApi RPC API.

Provided Methods§

source

fn quote<'life0, 'async_trait>( &'life0 self, symbol: Symbol, at: Option<BlockHash> ) -> Pin<Box<dyn Future<Output = RpcResult<Result<Option<Rate>, DispatchError>>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

source

fn list_enabled_symbols<'life0, 'async_trait>( &'life0 self, at: Option<BlockHash> ) -> Pin<Box<dyn Future<Output = RpcResult<Result<Vec<(Symbol, ResolveTime)>, DispatchError>>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Implementors§

source§

impl<TypeJsonRpseeInteral, BlockHash, Symbol, Rate, ResolveTime> OracleProxyApiClient<BlockHash, Symbol, Rate, ResolveTime> for TypeJsonRpseeInteralwhere TypeJsonRpseeInteral: ClientT, BlockHash: Send + Sync + 'static + Serialize, Symbol: Send + Sync + 'static + Serialize + DeserializeOwned, Rate: Send + Sync + 'static + DeserializeOwned, ResolveTime: Send + Sync + 'static + DeserializeOwned,