pub trait IrohaMigrationAPI<Block: BlockT>: Core<Block> {
    // Provided methods
    fn needs_migration(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        iroha_address: String
    ) -> Result<bool, ApiError> { ... }
    fn needs_migration_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        iroha_address: String
    ) -> Result<bool, ApiError> { ... }
}

Provided Methods§

source

fn needs_migration( &self, __runtime_api_at_param__: &BlockId<Block>, iroha_address: String ) -> Result<bool, ApiError>

source

fn needs_migration_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, iroha_address: String ) -> Result<bool, ApiError>

Trait Implementations§

source§

impl<Block: BlockT> RuntimeApiInfo for dyn IrohaMigrationAPI<Block>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§