@@ -2,16 +2,15 @@ use crate::fixtures::get_allocation;
22use cumulus_primitives_core:: ParaId ;
33use datahighway_parachain_runtime:: {
44 AuraId ,
5- // AuthorityDiscoveryConfig,
65 AuraConfig ,
76 BalancesConfig ,
87 CollatorSelectionConfig ,
98 GenesisConfig ,
109 IndicesConfig ,
1110 SessionConfig ,
12- // SessionKeys,
11+ SessionKeys ,
1312 SudoConfig ,
14- // SystemConfig,
13+ SystemConfig ,
1514 TransactionPaymentConfig ,
1615 TreasuryConfig ,
1716} ;
@@ -20,7 +19,7 @@ use module_primitives::{
2019 DOLLARS ,
2120 EXISTENTIAL_DEPOSIT ,
2221 } ,
23- types:: {
22+ types:: {
2423 AccountId ,
2524 Balance ,
2625 Signature ,
@@ -78,7 +77,7 @@ const KUSAMA_LOCAL_PROTOCOL_ID: &str = "dhx-kusama-local";
7877const KUSAMA_TANGANIKA_PROTOCOL_ID : & str = "dhx-kusama-tanganika" ;
7978
8079/// Specialized `ChainSpec` for the normal parachain runtime.
81- pub type ChainSpec = sc_service:: GenericChainSpec < datahighway_parachain_runtime :: GenesisConfig , Extensions > ;
80+ pub type ChainSpec = sc_service:: GenericChainSpec < GenesisConfig , Extensions > ;
8281
8382// Note this is the URL for the telemetry server
8483const POLKADOT_STAGING_TELEMETRY_URL : & str = "wss://telemetry.polkadot.io/submit/" ;
@@ -129,8 +128,8 @@ where
129128/// Generate the session keys from individual elements.
130129///
131130/// The input must be a tuple of individual keys (a single arg for now since we have just one key).
132- pub fn datahighway_session_keys ( keys : AuraId ) -> datahighway_parachain_runtime :: SessionKeys {
133- datahighway_parachain_runtime :: SessionKeys { aura : keys }
131+ pub fn datahighway_session_keys ( keys : AuraId ) -> SessionKeys {
132+ SessionKeys { aura : keys }
134133}
135134
136135// DHX DAO Unlocked Reserves Balance
@@ -1182,7 +1181,7 @@ fn spreehafen_testnet_genesis(
11821181 let hardspoon_balances = get_balances ( endowed_accounts. clone ( ) ) ;
11831182
11841183 GenesisConfig {
1185- system : datahighway_parachain_runtime :: SystemConfig {
1184+ system : SystemConfig {
11861185 code : datahighway_parachain_runtime:: WASM_BINARY . expect ( "WASM binary was not build, please build it!" ) . to_vec ( ) ,
11871186 } ,
11881187 balances : BalancesConfig {
@@ -1219,8 +1218,7 @@ fn spreehafen_testnet_genesis(
12191218 } )
12201219 . collect ( ) ,
12211220 } ,
1222- // no need to pass anything to aura, in fact it will panic if we do. Session will take care
1223- // of this.
1221+ // it will panic if we pass anything to Aura. Session will take care of this instead.
12241222 aura : Default :: default ( ) ,
12251223 transaction_payment : TransactionPaymentConfig :: default ( ) ,
12261224 aura_ext : Default :: default ( ) ,
@@ -1242,7 +1240,7 @@ fn testnet_genesis(
12421240 let hardspoon_balances = get_balances ( endowed_accounts. clone ( ) ) ;
12431241
12441242 GenesisConfig {
1245- system : datahighway_parachain_runtime :: SystemConfig {
1243+ system : SystemConfig {
12461244 code : datahighway_parachain_runtime:: WASM_BINARY . expect ( "WASM binary was not build, please build it!" ) . to_vec ( ) ,
12471245 } ,
12481246 balances : BalancesConfig {
@@ -1279,8 +1277,7 @@ fn testnet_genesis(
12791277 } )
12801278 . collect ( ) ,
12811279 } ,
1282- // no need to pass anything to aura, in fact it will panic if we do. Session will take care
1283- // of this.
1280+ // it will panic if we pass anything to Aura. Session will take care of this instead.
12841281 aura : Default :: default ( ) ,
12851282 transaction_payment : TransactionPaymentConfig :: default ( ) ,
12861283 aura_ext : Default :: default ( ) ,
@@ -1297,12 +1294,12 @@ fn dev_genesis(
12971294 endowed_accounts : Vec < AccountId > ,
12981295 id : ParaId ,
12991296 _enable_println : bool ,
1300- ) -> datahighway_parachain_runtime :: GenesisConfig {
1297+ ) -> GenesisConfig {
13011298 let num_endowed_accounts = endowed_accounts. len ( ) ;
13021299 let hardspoon_balances = get_balances ( endowed_accounts. clone ( ) ) ;
13031300
1304- datahighway_parachain_runtime :: GenesisConfig {
1305- system : datahighway_parachain_runtime :: SystemConfig {
1301+ GenesisConfig {
1302+ system : SystemConfig {
13061303 code : datahighway_parachain_runtime:: WASM_BINARY . expect ( "WASM binary was not build, please build it!" ) . to_vec ( ) ,
13071304 } ,
13081305 balances : BalancesConfig {
@@ -1339,8 +1336,7 @@ fn dev_genesis(
13391336 } )
13401337 . collect ( ) ,
13411338 } ,
1342- // no need to pass anything to aura, in fact it will panic if we do. Session will take care
1343- // of this.
1339+ // it will panic if we pass anything to Aura. Session will take care of this instead.
13441340 aura : Default :: default ( ) ,
13451341 transaction_payment : TransactionPaymentConfig :: default ( ) ,
13461342 aura_ext : Default :: default ( ) ,
@@ -1361,7 +1357,7 @@ fn baikal_testnet_genesis(
13611357 let num_endowed_accounts = endowed_accounts. len ( ) ;
13621358
13631359 GenesisConfig {
1364- system : datahighway_parachain_runtime :: SystemConfig {
1360+ system : SystemConfig {
13651361 code : datahighway_parachain_runtime:: WASM_BINARY . expect ( "WASM binary was not build, please build it!" ) . to_vec ( ) ,
13661362 } ,
13671363 balances : BalancesConfig {
@@ -1410,8 +1406,7 @@ fn baikal_testnet_genesis(
14101406 } )
14111407 . collect ( ) ,
14121408 } ,
1413- // no need to pass anything to aura, in fact it will panic if we do. Session will take care
1414- // of this.
1409+ // it will panic if we pass anything to Aura. Session will take care of this instead.
14151410 aura : Default :: default ( ) ,
14161411 transaction_payment : TransactionPaymentConfig :: default ( ) ,
14171412 aura_ext : Default :: default ( ) ,
@@ -1433,7 +1428,7 @@ fn tanganika_testnet_genesis(
14331428 let hardspoon_balances = get_balances ( endowed_accounts. clone ( ) ) ;
14341429
14351430 GenesisConfig {
1436- system : datahighway_parachain_runtime :: SystemConfig {
1431+ system : SystemConfig {
14371432 code : datahighway_parachain_runtime:: WASM_BINARY . expect ( "WASM binary was not build, please build it!" ) . to_vec ( ) ,
14381433 } ,
14391434 balances : BalancesConfig {
@@ -1470,8 +1465,7 @@ fn tanganika_testnet_genesis(
14701465 } )
14711466 . collect ( ) ,
14721467 } ,
1473- // no need to pass anything to aura, in fact it will panic if we do. Session will take care
1474- // of this.
1468+ // it will panic if we pass anything to Aura. Session will take care of this instead.
14751469 aura : Default :: default ( ) ,
14761470 transaction_payment : TransactionPaymentConfig :: default ( ) ,
14771471 aura_ext : Default :: default ( ) ,
0 commit comments