pub trait StateMigrationApiServer<BlockHash>: Sized + Send + Sync + 'static {
    fn call(&self, at: Option<BlockHash>) -> RpcResult<MigrationStatusResult>;

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

Server trait implementation for the StateMigrationApi RPC API.

Required Methods§

Check current migration state.

This call is performed locally without submitting any transactions. Thus executing this won’t change any state. Nonetheless it is a VERY costy call that should be only exposed to trusted peers.

Provided Methods§

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

Implementors§