Companion pr for new chain type RPC (#988)

* Companion pr for new chain type RPC

* Update `Cargo.lock`
This commit is contained in:
Bastian Köcher
2020-04-08 21:10:58 +02:00
committed by GitHub
parent 75ebe7fb2e
commit fc91d130ec
2 changed files with 147 additions and 125 deletions
+140 -124
View File
File diff suppressed because it is too large Load Diff
+7 -1
View File
@@ -22,7 +22,7 @@ use polkadot_runtime as polkadot;
use kusama_runtime as kusama; use kusama_runtime as kusama;
use polkadot::constants::currency::DOTS; use polkadot::constants::currency::DOTS;
use kusama::constants::currency::DOTS as KSM; use kusama::constants::currency::DOTS as KSM;
use sc_chain_spec::ChainSpecExtension; use sc_chain_spec::{ChainSpecExtension, ChainType};
use sp_runtime::{traits::IdentifyAccount, Perbill}; use sp_runtime::{traits::IdentifyAccount, Perbill};
use serde::{Serialize, Deserialize}; use serde::{Serialize, Deserialize};
use telemetry::TelemetryEndpoints; use telemetry::TelemetryEndpoints;
@@ -335,6 +335,7 @@ pub fn polkadot_staging_testnet_config() -> PolkadotChainSpec {
PolkadotChainSpec::from_genesis( PolkadotChainSpec::from_genesis(
"Polkadot Staging Testnet", "Polkadot Staging Testnet",
"polkadot_staging_testnet", "polkadot_staging_testnet",
ChainType::Live,
polkadot_staging_testnet_config_genesis, polkadot_staging_testnet_config_genesis,
boot_nodes, boot_nodes,
Some(TelemetryEndpoints::new(vec![(POLKADOT_STAGING_TELEMETRY_URL.to_string(), 0)]) Some(TelemetryEndpoints::new(vec![(POLKADOT_STAGING_TELEMETRY_URL.to_string(), 0)])
@@ -351,6 +352,7 @@ pub fn kusama_staging_testnet_config() -> KusamaChainSpec {
KusamaChainSpec::from_genesis( KusamaChainSpec::from_genesis(
"Kusama Staging Testnet", "Kusama Staging Testnet",
"kusama_staging_testnet", "kusama_staging_testnet",
ChainType::Live,
kusama_staging_testnet_config_genesis, kusama_staging_testnet_config_genesis,
boot_nodes, boot_nodes,
Some(TelemetryEndpoints::new(vec![(KUSAMA_STAGING_TELEMETRY_URL.to_string(), 0)]) Some(TelemetryEndpoints::new(vec![(KUSAMA_STAGING_TELEMETRY_URL.to_string(), 0)])
@@ -590,6 +592,7 @@ pub fn polkadot_development_config() -> PolkadotChainSpec {
PolkadotChainSpec::from_genesis( PolkadotChainSpec::from_genesis(
"Development", "Development",
"dev", "dev",
ChainType::Development,
polkadot_development_config_genesis, polkadot_development_config_genesis,
vec![], vec![],
None, None,
@@ -604,6 +607,7 @@ pub fn kusama_development_config() -> KusamaChainSpec {
KusamaChainSpec::from_genesis( KusamaChainSpec::from_genesis(
"Development", "Development",
"kusama_dev", "kusama_dev",
ChainType::Development,
kusama_development_config_genesis, kusama_development_config_genesis,
vec![], vec![],
None, None,
@@ -629,6 +633,7 @@ pub fn polkadot_local_testnet_config() -> PolkadotChainSpec {
PolkadotChainSpec::from_genesis( PolkadotChainSpec::from_genesis(
"Local Testnet", "Local Testnet",
"local_testnet", "local_testnet",
ChainType::Local,
polkadot_local_testnet_genesis, polkadot_local_testnet_genesis,
vec![], vec![],
None, None,
@@ -654,6 +659,7 @@ pub fn kusama_local_testnet_config() -> KusamaChainSpec {
KusamaChainSpec::from_genesis( KusamaChainSpec::from_genesis(
"Kusama Local Testnet", "Kusama Local Testnet",
"kusama_local_testnet", "kusama_local_testnet",
ChainType::Local,
kusama_local_testnet_genesis, kusama_local_testnet_genesis,
vec![], vec![],
None, None,