@@ -285,11 +285,11 @@ const INITIAL_DHX_DAO_TREASURY_UNLOCKED_RESERVES_BALANCE: u128 = 30_000_000_000_
285285
286286fn mk_genesis ( endowed_accounts : Vec < AccountId > , root_key : AccountId , parachain_id : ParaId ) -> GenesisConfig {
287287 GenesisConfig {
288- frame_system : datahighway_runtime:: SystemConfig {
288+ system : datahighway_runtime:: SystemConfig {
289289 code : datahighway_runtime:: WASM_BINARY . expect ( "WASM binary was not build, please build it!" ) . to_vec ( ) ,
290290 changes_trie_config : Default :: default ( ) ,
291291 } ,
292- pallet_balances : BalancesConfig {
292+ balances : BalancesConfig {
293293 balances : endowed_accounts
294294 . iter ( )
295295 . cloned ( )
@@ -298,18 +298,20 @@ fn mk_genesis(endowed_accounts: Vec<AccountId>, root_key: AccountId, parachain_i
298298 . map ( |k| ( k. 0 , INITIAL_DHX_DAO_TREASURY_UNLOCKED_RESERVES_BALANCE ) )
299299 . collect ( ) ,
300300 } ,
301- pallet_collective_Instance1 : Default :: default ( ) ,
302- pallet_membership_Instance1 : GeneralCouncilMembershipConfig {
301+ general_council : Default :: default ( ) ,
302+ general_council_membership : GeneralCouncilMembershipConfig {
303303 members : vec ! [ root_key. clone( ) ] ,
304304 phantom : Default :: default ( ) ,
305305 } ,
306306 pallet_treasury : Default :: default ( ) ,
307- pallet_sudo : SudoConfig {
307+ sudo : SudoConfig {
308308 key : root_key. clone ( ) ,
309309 } ,
310310 parachain_info : datahighway_runtime:: ParachainInfoConfig {
311311 parachain_id,
312312 } ,
313+ aura : Default :: default ( ) ,
314+ aura_ext : Default :: default ( ) ,
313315 }
314316}
315317
@@ -320,14 +322,14 @@ fn testnet_genesis(
320322 id : ParaId ,
321323) -> GenesisConfig {
322324 GenesisConfig {
323- frame_system : datahighway_runtime:: SystemConfig {
325+ system : datahighway_runtime:: SystemConfig {
324326 code : datahighway_runtime:: WASM_BINARY . expect ( "WASM binary was not build, please build it!" ) . to_vec ( ) ,
325327 changes_trie_config : Default :: default ( ) ,
326328 } ,
327329 // pallet_indices: IndicesConfig {
328330 // indices: endowed_accounts.iter().enumerate().map(|(index, x)| (index as u32, (*x).clone())).collect(),
329331 // },
330- pallet_balances : BalancesConfig {
332+ balances : BalancesConfig {
331333 balances : endowed_accounts
332334 . iter ( )
333335 . cloned ( )
@@ -353,7 +355,7 @@ fn testnet_genesis(
353355 // slash_reward_fraction: Perbill::from_percent(10),
354356 // ..Default::default()
355357 // },
356- pallet_sudo : SudoConfig {
358+ sudo : SudoConfig {
357359 key : root_key. clone ( ) ,
358360 } ,
359361 // pallet_babe: BabeConfig {
@@ -362,15 +364,17 @@ fn testnet_genesis(
362364 // pallet_grandpa: GrandpaConfig {
363365 // authorities: vec![],
364366 // },
365- pallet_collective_Instance1 : Default :: default ( ) ,
366- pallet_membership_Instance1 : GeneralCouncilMembershipConfig {
367+ general_council : Default :: default ( ) ,
368+ general_council_membership : GeneralCouncilMembershipConfig {
367369 members : vec ! [ root_key. clone( ) ] ,
368370 phantom : Default :: default ( ) ,
369371 } ,
370372 pallet_treasury : Default :: default ( ) ,
371373 parachain_info : datahighway_runtime:: ParachainInfoConfig {
372374 parachain_id : id,
373375 } ,
376+ aura : Default :: default ( ) ,
377+ aura_ext : Default :: default ( ) ,
374378 }
375379}
376380
@@ -381,14 +385,14 @@ fn dev_genesis(
381385 id : ParaId ,
382386) -> datahighway_runtime:: GenesisConfig {
383387 datahighway_runtime:: GenesisConfig {
384- frame_system : datahighway_runtime:: SystemConfig {
388+ system : datahighway_runtime:: SystemConfig {
385389 code : datahighway_runtime:: WASM_BINARY . expect ( "WASM binary was not build, please build it!" ) . to_vec ( ) ,
386390 changes_trie_config : Default :: default ( ) ,
387391 } ,
388392 // pallet_indices: IndicesConfig {
389393 // indices: endowed_accounts.iter().enumerate().map(|(index, x)| (index as u32, (*x).clone())).collect(),
390394 // },
391- pallet_balances : datahighway_runtime:: BalancesConfig {
395+ balances : datahighway_runtime:: BalancesConfig {
392396 balances : endowed_accounts. iter ( ) . cloned ( ) . map ( |x|
393397 // Insert Public key (hex) of the account without the 0x prefix below
394398 if x == UncheckedFrom :: unchecked_from ( hex ! ( "a42b7518d62a942344fec55d414f1654bf3fd325dbfa32a3c30534d5976acb21" ) . into ( ) ) {
@@ -416,7 +420,7 @@ fn dev_genesis(
416420 // slash_reward_fraction: Perbill::from_percent(10),
417421 // ..Default::default()
418422 // },
419- pallet_sudo : datahighway_runtime:: SudoConfig {
423+ sudo : datahighway_runtime:: SudoConfig {
420424 key : root_key. clone ( ) ,
421425 } ,
422426 // pallet_babe: BabeConfig {
@@ -425,14 +429,16 @@ fn dev_genesis(
425429 // pallet_grandpa: GrandpaConfig {
426430 // authorities: vec![],
427431 // },
428- pallet_collective_Instance1 : Default :: default ( ) ,
429- pallet_membership_Instance1 : GeneralCouncilMembershipConfig {
432+ general_council : Default :: default ( ) ,
433+ general_council_membership : GeneralCouncilMembershipConfig {
430434 members : vec ! [ root_key. clone( ) ] ,
431435 phantom : Default :: default ( ) ,
432436 } ,
433437 pallet_treasury : Default :: default ( ) ,
434438 parachain_info : datahighway_runtime:: ParachainInfoConfig {
435439 parachain_id : id,
436440 } ,
441+ aura : Default :: default ( ) ,
442+ aura_ext : Default :: default ( ) ,
437443 }
438444}
0 commit comments