mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 11:38:01 +00:00
Add Dev Config for Rococo and Wococo (#2928)
* Add `rococo-dev` chain option * Add `wococo-dev` CLI option * Sort Chain ID match arms
This commit is contained in:
@@ -74,22 +74,24 @@ impl SubstrateCli for Cli {
|
||||
.unwrap_or("polkadot")
|
||||
} else { id };
|
||||
Ok(match id {
|
||||
"polkadot-dev" | "dev" => Box::new(service::chain_spec::polkadot_development_config()?),
|
||||
"polkadot-local" => Box::new(service::chain_spec::polkadot_local_testnet_config()?),
|
||||
"polkadot-staging" => Box::new(service::chain_spec::polkadot_staging_testnet_config()?),
|
||||
"kusama" => Box::new(service::chain_spec::kusama_config()?),
|
||||
"kusama-dev" => Box::new(service::chain_spec::kusama_development_config()?),
|
||||
"kusama-local" => Box::new(service::chain_spec::kusama_local_testnet_config()?),
|
||||
"kusama-staging" => Box::new(service::chain_spec::kusama_staging_testnet_config()?),
|
||||
"polkadot" => Box::new(service::chain_spec::polkadot_config()?),
|
||||
"polkadot-dev" | "dev" => Box::new(service::chain_spec::polkadot_development_config()?),
|
||||
"polkadot-local" => Box::new(service::chain_spec::polkadot_local_testnet_config()?),
|
||||
"polkadot-staging" => Box::new(service::chain_spec::polkadot_staging_testnet_config()?),
|
||||
"rococo" => Box::new(service::chain_spec::rococo_config()?),
|
||||
"rococo-dev" => Box::new(service::chain_spec::rococo_development_config()?),
|
||||
"rococo-local" => Box::new(service::chain_spec::rococo_local_testnet_config()?),
|
||||
"rococo-staging" => Box::new(service::chain_spec::rococo_staging_testnet_config()?),
|
||||
"westend" => Box::new(service::chain_spec::westend_config()?),
|
||||
"kusama" => Box::new(service::chain_spec::kusama_config()?),
|
||||
"westend-dev" => Box::new(service::chain_spec::westend_development_config()?),
|
||||
"westend-local" => Box::new(service::chain_spec::westend_local_testnet_config()?),
|
||||
"westend-staging" => Box::new(service::chain_spec::westend_staging_testnet_config()?),
|
||||
"rococo-staging" => Box::new(service::chain_spec::rococo_staging_testnet_config()?),
|
||||
"rococo-local" => Box::new(service::chain_spec::rococo_local_testnet_config()?),
|
||||
"rococo" => Box::new(service::chain_spec::rococo_config()?),
|
||||
"wococo" => Box::new(service::chain_spec::wococo_config()?),
|
||||
"wococo-dev" => Box::new(service::chain_spec::wococo_development_config()?),
|
||||
path => {
|
||||
let path = std::path::PathBuf::from(path);
|
||||
|
||||
@@ -140,7 +142,7 @@ fn set_default_ss58_version(spec: &Box<dyn service::ChainSpec>) {
|
||||
}
|
||||
|
||||
const DEV_ONLY_ERROR_PATTERN: &'static str =
|
||||
"can only use subcommand with --chain [polkadot-dev, kusama-dev, westend-dev], got ";
|
||||
"can only use subcommand with --chain [polkadot-dev, kusama-dev, westend-dev, rococo-dev, wococo-dev], got ";
|
||||
|
||||
fn ensure_dev(spec: &Box<dyn service::ChainSpec>) -> std::result::Result<(), String> {
|
||||
if spec.is_dev() {
|
||||
|
||||
Reference in New Issue
Block a user