Trait polkadot_service::IdentifyVariant
source · 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§
sourcefn is_polkadot(&self) -> bool
fn is_polkadot(&self) -> bool
Returns if this is a configuration for the Polkadot
network.
sourcefn is_westend(&self) -> bool
fn is_westend(&self) -> bool
Returns if this is a configuration for the Westend
network.
sourcefn identify_chain(&self) -> Chain
fn identify_chain(&self) -> Chain
Identifies the variant of the chain.