Trait sc_chain_spec::Extension
source · [−]pub trait Extension: Serialize + DeserializeOwned + Clone {
type Forks: IsForks;
fn get<T: 'static>(&self) -> Option<&T>;
fn get_any(&self, t: TypeId) -> &dyn Any;
fn forks<BlockNumber, T>(&self) -> Option<Forks<BlockNumber, T>>
where
BlockNumber: Ord + Clone + 'static,
T: Group + 'static,
<Self::Forks as IsForks>::Extension: Extension,
<<Self::Forks as IsForks>::Extension as Group>::Fork: Extension,
{ ... }
}
Expand description
A collection of ChainSpec
extensions.
This type can be passed around and allows the core modules to request a strongly-typed, but optional configuration.