pub trait IrohaMigrationRuntimeAPI<Block>: Core<Block>where
    Block: 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§

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>

Trait Implementations§

§

impl<Block> RuntimeApiInfo for dyn IrohaMigrationAPI<Block> + 'staticwhere Block: Block,

§

const ID: [u8; 8] = [119u8, 20u8, 174u8, 113u8, 151u8, 176u8, 70u8, 116u8]

The identifier of the runtime api.
§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§