domain_service::providers

Trait BlockImportProvider

source
pub trait BlockImportProvider<Block: BlockT, Client>
where Client: ProvideRuntimeApi<Block>,
{ type BI: BlockImport<Block, Error = Error> + Send + Sync + 'static; // Required method fn block_import(&self, client: Arc<Client>) -> Self::BI; }

Required Associated Types§

source

type BI: BlockImport<Block, Error = Error> + Send + Sync + 'static

Required Methods§

source

fn block_import(&self, client: Arc<Client>) -> Self::BI

Implementors§

source§

impl<Block, RuntimeApi> BlockImportProvider<Block, Client<Backend<Block>, LocalCallExecutor<Block, Backend<Block>, WasmExecutor<(HostFunctions, (HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions), HostFunctions, HostFunctions)>>, Block, RuntimeApi>> for DefaultProvider
where Block: BlockT, RuntimeApi: ConstructRuntimeApi<Block, FullClient<Block, RuntimeApi>> + Send + Sync + 'static, RuntimeApi::RuntimeApi: ApiExt<Block> + Core<Block>,

source§

type BI = Arc<Client<Backend<Block>, LocalCallExecutor<Block, Backend<Block>, WasmExecutor<(HostFunctions, (HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions, HostFunctions), HostFunctions, HostFunctions)>>, Block, RuntimeApi>>