[−]Trait sc_cli::ChainSpec
Common interface of a chain specification.
Required methods
fn name(&self) -> &str
Spec name.
fn id(&self) -> &str
Spec id.
fn chain_type(&self) -> ChainType
Type of the chain.
fn boot_nodes(&self) -> &[MultiaddrWithPeerId]
A list of bootnode addresses.
fn telemetry_endpoints(&self) -> &Option<TelemetryEndpoints>
Telemetry endpoints (if any)
fn protocol_id(&self) -> Option<&str>
Network protocol id.
fn properties(&self) -> Map<String, Value>
Additional loosly-typed properties of the chain.
Returns an empty JSON object if 'properties' not defined in config
fn extensions(&self) -> &dyn GetExtension
Returns a reference to defined chain spec extensions.
fn add_boot_node(&mut self, addr: MultiaddrWithPeerId)
Add a bootnode to the list.
fn as_json(&self, raw: bool) -> Result<String, String>
Return spec as JSON.
fn as_storage_builder(&self) -> &dyn BuildStorage
Return StorageBuilder for this spec.
fn cloned_box(&self) -> Box<dyn ChainSpec + 'static>
Returns a cloned Box<dyn ChainSpec>
.
fn set_storage(&mut self, storage: Storage)
Set the storage that should be used by this chain spec.
This will be used as storage at genesis.
Trait Implementations
Implementations on Foreign Types
impl<G, E> ChainSpec for ChainSpec<G, E> where
E: GetExtension + Serialize + Clone + Send + 'static,
G: RuntimeGenesis + 'static,
E: GetExtension + Serialize + Clone + Send + 'static,
G: RuntimeGenesis + 'static,