pub trait DEXManagerAPIServer<BlockHash, DEXId>: Sized + Send + Sync + 'static {
    // Required method
    fn list_dex_ids(&self, at: Option<BlockHash>) -> Result<Vec<DEXId>>;

    // Provided method
    fn into_rpc(self) -> RpcModule<Self>
       where BlockHash: Send + Sync + 'static + DeserializeOwned,
             DEXId: Send + Sync + 'static + Serialize { ... }
}
Expand description

Server trait implementation for the DEXManagerAPI RPC API.

Required Methods§

source

fn list_dex_ids(&self, at: Option<BlockHash>) -> Result<Vec<DEXId>>

Provided Methods§

source

fn into_rpc(self) -> RpcModule<Self>where BlockHash: Send + Sync + 'static + DeserializeOwned, DEXId: Send + Sync + 'static + Serialize,

Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

Implementors§

source§

impl<C, Block, DEXId> DEXManagerAPIServer<<Block as Block>::Hash, DEXId> for DEXManager<C, Block>where Block: BlockT, C: Send + Sync + 'static + ProvideRuntimeApi<Block> + HeaderBackend<Block>, C::Api: DEXManagerRuntimeAPI<Block, DEXId>, DEXId: Codec,