referrerpolicy=no-referrer-when-downgrade

Type Alias minimal_template_node::service::Service

source ·
pub type Service = PartialComponents<TFullClient<OpaqueBlock, RuntimeApi, WasmExecutor<SubstrateHostFunctions>>, TFullBackend<OpaqueBlock>, LongestChain<TFullBackend<OpaqueBlock>, OpaqueBlock>, DefaultImportQueue<OpaqueBlock>, TransactionPoolHandle<OpaqueBlock, TFullClient<OpaqueBlock, RuntimeApi, WasmExecutor<SubstrateHostFunctions>>>, Option<Telemetry>>;
Expand description

Assembly of PartialComponents (enough to run chain ops subcommands)

Aliased Type§

struct Service {
    pub client: Arc<Client<Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, LocalCallExecutor<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, WasmExecutor>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, RuntimeApi>>,
    pub backend: Arc<Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>>,
    pub task_manager: TaskManager,
    pub keystore_container: KeystoreContainer,
    pub select_chain: LongestChain<Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>,
    pub import_queue: BasicQueue<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>,
    pub transaction_pool: Arc<TransactionPoolWrapper<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Client<Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, LocalCallExecutor<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, WasmExecutor>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, RuntimeApi>>>,
    pub other: Option<Telemetry>,
}

Fields§

§client: Arc<Client<Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, LocalCallExecutor<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, WasmExecutor>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, RuntimeApi>>

A shared client instance.

§backend: Arc<Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>>

A shared backend instance.

§task_manager: TaskManager

The chain task manager.

§keystore_container: KeystoreContainer

A keystore container instance.

§select_chain: LongestChain<Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>

A chain selection algorithm instance.

§import_queue: BasicQueue<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>

An import queue.

§transaction_pool: Arc<TransactionPoolWrapper<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Client<Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, LocalCallExecutor<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, WasmExecutor>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, RuntimeApi>>>

A shared transaction pool.

§other: Option<Telemetry>

Everything else that needs to be passed into the main build function.