Trait polkadot_cli::IdentifyVariant
pub trait IdentifyVariant {
// Required methods
fn is_polkadot(&self) -> bool;
fn is_kusama(&self) -> bool;
fn is_westend(&self) -> bool;
fn is_rococo(&self) -> bool;
fn is_versi(&self) -> bool;
fn is_dev(&self) -> bool;
fn identify_chain(&self) -> Chain;
}
Expand description
Can be called for a Configuration
to identify which network the configuration targets.
Required Methods§
fn is_polkadot(&self) -> bool
fn is_polkadot(&self) -> bool
Returns if this is a configuration for the Polkadot
network.
fn is_westend(&self) -> bool
fn is_westend(&self) -> bool
Returns if this is a configuration for the Westend
network.
fn identify_chain(&self) -> Chain
fn identify_chain(&self) -> Chain
Identifies the variant of the chain.