pub type ChainSpec = GenericChainSpec<Extensions>;
Expand description
Specialized ChainSpec
for the normal parachain runtime.
Aliased Type§
struct ChainSpec { /* private fields */ }
Implementations
Source§impl<E, EHF> ChainSpec<E, EHF>
impl<E, EHF> ChainSpec<E, EHF>
Sourcepub fn boot_nodes(&self) -> &[MultiaddrWithPeerId]
pub fn boot_nodes(&self) -> &[MultiaddrWithPeerId]
A list of bootnode addresses.
Sourcepub fn telemetry_endpoints(&self) -> &Option<TelemetryEndpoints>
pub fn telemetry_endpoints(&self) -> &Option<TelemetryEndpoints>
Telemetry endpoints (if any)
Sourcepub fn protocol_id(&self) -> Option<&str>
pub fn protocol_id(&self) -> Option<&str>
Network protocol id.
Sourcepub fn properties(&self) -> Map<String, Value>
pub fn properties(&self) -> Map<String, Value>
Additional loosely-typed properties of the chain.
Returns an empty JSON object if ‘properties’ not defined in config
Sourcepub fn add_boot_node(&mut self, addr: MultiaddrWithPeerId)
pub fn add_boot_node(&mut self, addr: MultiaddrWithPeerId)
Add a bootnode to the list.
Sourcepub fn extensions(&self) -> &E
pub fn extensions(&self) -> &E
Returns a reference to the defined chain spec extensions.
Sourcepub fn extensions_mut(&mut self) -> &mut E
pub fn extensions_mut(&mut self) -> &mut E
Returns a mutable reference to the defined chain spec extensions.
Sourcepub fn builder(code: &[u8], extensions: E) -> ChainSpecBuilder<E, EHF>
pub fn builder(code: &[u8], extensions: E) -> ChainSpecBuilder<E, EHF>
Provides a ChainSpec
builder.
Source§impl<E, EHF> ChainSpec<E, EHF>where
E: DeserializeOwned,
impl<E, EHF> ChainSpec<E, EHF>where
E: DeserializeOwned,
Trait Implementations
Source§impl<E, EHF> BuildStorage for ChainSpec<E, EHF>where
EHF: HostFunctions,
impl<E, EHF> BuildStorage for ChainSpec<E, EHF>where
EHF: HostFunctions,
Source§impl<E, EHF> ChainSpec for ChainSpec<E, EHF>
impl<E, EHF> ChainSpec for ChainSpec<E, EHF>
Source§fn boot_nodes(&self) -> &[MultiaddrWithPeerId]
fn boot_nodes(&self) -> &[MultiaddrWithPeerId]
A list of bootnode addresses.
Source§fn chain_type(&self) -> ChainType
fn chain_type(&self) -> ChainType
Type of the chain.
Source§fn telemetry_endpoints(&self) -> &Option<TelemetryEndpoints>
fn telemetry_endpoints(&self) -> &Option<TelemetryEndpoints>
Telemetry endpoints (if any)
Source§fn protocol_id(&self) -> Option<&str>
fn protocol_id(&self) -> Option<&str>
Network protocol id.
Source§fn properties(&self) -> Map<String, Value>
fn properties(&self) -> Map<String, Value>
Additional loosely-typed properties of the chain. Read more
Source§fn add_boot_node(&mut self, addr: MultiaddrWithPeerId)
fn add_boot_node(&mut self, addr: MultiaddrWithPeerId)
Add a bootnode to the list.
Source§fn extensions(&self) -> &dyn GetExtension
fn extensions(&self) -> &dyn GetExtension
Returns a reference to the defined chain spec extensions.
Source§fn extensions_mut(&mut self) -> &mut dyn GetExtension
fn extensions_mut(&mut self) -> &mut dyn GetExtension
Returns a mutable reference to the defined chain spec extensions.
Source§fn as_storage_builder(&self) -> &dyn BuildStorage
fn as_storage_builder(&self) -> &dyn BuildStorage
Return StorageBuilder for this spec.
Source§fn cloned_box(&self) -> Box<dyn ChainSpec>
fn cloned_box(&self) -> Box<dyn ChainSpec>
Returns a cloned
Box<dyn ChainSpec>
.Source§fn set_storage(&mut self, storage: Storage)
fn set_storage(&mut self, storage: Storage)
Set the storage that should be used by this chain spec. Read more