pub trait ExtensionsFactory<Block: BlockT>: Send + Sync {
fn extensions_for(
&self,
block_hash: Block::Hash,
block_number: NumberFor<Block>,
capabilities: Capabilities
) -> Extensions;
}Expand description
Generate the starting set of Extensions.
These Extensions are passed to the environment a runtime is executed in.
Required Methods§
sourcefn extensions_for(
&self,
block_hash: Block::Hash,
block_number: NumberFor<Block>,
capabilities: Capabilities
) -> Extensions
fn extensions_for(
&self,
block_hash: Block::Hash,
block_number: NumberFor<Block>,
capabilities: Capabilities
) -> Extensions
Create Extensions for the given input.
block_hash: The hash of the block in the context that extensions will be used.block_number: The number of the block in the context that extensions will be used.capabilities: The capabilities