pub struct ParachainConfig { /* private fields */ }
Expand description
A parachain configuration, composed of collators and fine-grained configuration options.
Implementations§
source§impl ParachainConfig
impl ParachainConfig
sourcepub fn registration_strategy(&self) -> Option<&RegistrationStrategy>
pub fn registration_strategy(&self) -> Option<&RegistrationStrategy>
The registration strategy for the parachain.
sourcepub fn onboard_as_parachain(&self) -> bool
pub fn onboard_as_parachain(&self) -> bool
Whether the parachain should be onboarded or stay a parathread
sourcepub fn initial_balance(&self) -> u128
pub fn initial_balance(&self) -> u128
The initial balance of the parachain account.
sourcepub fn default_command(&self) -> Option<&Command>
pub fn default_command(&self) -> Option<&Command>
The default command used for collators.
sourcepub fn default_image(&self) -> Option<&Image>
pub fn default_image(&self) -> Option<&Image>
The default container image used for collators.
sourcepub fn default_resources(&self) -> Option<&Resources>
pub fn default_resources(&self) -> Option<&Resources>
The default resources limits used for collators.
sourcepub fn default_db_snapshot(&self) -> Option<&AssetLocation>
pub fn default_db_snapshot(&self) -> Option<&AssetLocation>
The default database snapshot location that will be used for state.
sourcepub fn default_args(&self) -> Vec<&Arg>
pub fn default_args(&self) -> Vec<&Arg>
The default arguments that will be used to execute the collator command.
sourcepub fn genesis_wasm_path(&self) -> Option<&AssetLocation>
pub fn genesis_wasm_path(&self) -> Option<&AssetLocation>
The location of a pre-existing genesis WASM runtime blob of the parachain.
sourcepub fn genesis_wasm_generator(&self) -> Option<&Command>
pub fn genesis_wasm_generator(&self) -> Option<&Command>
The generator command used to create the genesis WASM runtime blob of the parachain.
sourcepub fn genesis_state_path(&self) -> Option<&AssetLocation>
pub fn genesis_state_path(&self) -> Option<&AssetLocation>
The location of a pre-existing genesis state of the parachain.
sourcepub fn genesis_state_generator(&self) -> Option<&Command>
pub fn genesis_state_generator(&self) -> Option<&Command>
The generator command used to create the genesis state of the parachain.
sourcepub fn genesis_overrides(&self) -> Option<&Value>
pub fn genesis_overrides(&self) -> Option<&Value>
The genesis overrides as a JSON value.
sourcepub fn chain_spec_path(&self) -> Option<&AssetLocation>
pub fn chain_spec_path(&self) -> Option<&AssetLocation>
The location of a pre-existing chain specification for the parachain.
sourcepub fn chain_spec_command(&self) -> Option<&str>
pub fn chain_spec_command(&self) -> Option<&str>
The full template command to genera the chain-spec
sourcepub fn chain_spec_command_is_local(&self) -> bool
pub fn chain_spec_command_is_local(&self) -> bool
Does the chain_spec_command needs to be run locally
sourcepub fn is_cumulus_based(&self) -> bool
pub fn is_cumulus_based(&self) -> bool
Whether the parachain is based on cumulus.
sourcepub fn is_evm_based(&self) -> bool
pub fn is_evm_based(&self) -> bool
Whether the parachain is evm based (e.g frontier).
sourcepub fn bootnodes_addresses(&self) -> Vec<&Multiaddr>
pub fn bootnodes_addresses(&self) -> Vec<&Multiaddr>
The bootnodes addresses the collators will connect to.
sourcepub fn collators(&self) -> Vec<&NodeConfig>
pub fn collators(&self) -> Vec<&NodeConfig>
The collators of the parachain.
Trait Implementations§
source§impl Clone for ParachainConfig
impl Clone for ParachainConfig
source§fn clone(&self) -> ParachainConfig
fn clone(&self) -> ParachainConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ParachainConfig
impl Debug for ParachainConfig
source§impl<'de> Deserialize<'de> for ParachainConfig
impl<'de> Deserialize<'de> for ParachainConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl PartialEq for ParachainConfig
impl PartialEq for ParachainConfig
source§impl Serialize for ParachainConfig
impl Serialize for ParachainConfig
impl StructuralPartialEq for ParachainConfig
Auto Trait Implementations§
impl Freeze for ParachainConfig
impl RefUnwindSafe for ParachainConfig
impl Send for ParachainConfig
impl Sync for ParachainConfig
impl Unpin for ParachainConfig
impl UnwindSafe for ParachainConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more