pub trait IrohaMigrationAPIServer<BlockHash>: Sized + Send + Sync + 'static {
    // Required method
    fn needs_migration(
        &self,
        iroha_address: String,
        at: Option<BlockHash>
    ) -> Result<bool>;

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

Server trait implementation for the IrohaMigrationAPI RPC API.

Required Methods§

source

fn needs_migration( &self, iroha_address: String, at: Option<BlockHash> ) -> Result<bool>

Provided Methods§

source

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

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

Implementors§

source§

impl<C, Block> IrohaMigrationAPIServer<<Block as Block>::Hash> for IrohaMigrationClient<C, Block>where Block: BlockT, C: Send + Sync + 'static + ProvideRuntimeApi<Block> + HeaderBackend<Block>, C::Api: IrohaMigrationRuntimeAPI<Block>,