fn testnet_genesis(
	initial_authorities: Vec<(AccountId, AuraId, GrandpaId)>,
	root_key: AccountId,
	endowed_accounts: Vec<AccountId>,
	_enable_println: bool,
) -> GenesisConfig {
	let staking_candidate: Vec<(AccountId, Balance)> = initial_authorities
		.iter()
		.clone()
		.map(|x| (x.0.clone(), 100 * DOLLARS))
		.collect();

	let session_keys_test: Vec<(AccountId, AccountId, SessionKeys)> = initial_authorities
		.iter()
		.map(|x| (x.0.clone(), x.0.clone(), session_keys(x.1.clone(), x.2.clone())))
		.collect::<Vec<_>>();
	info!("{}", session_keys_test[0].0);
	info!("{}", staking_candidate[0].0);
	info!("{}", staking_candidate[1].0);

	GenesisConfig {
		system: SystemConfig {
			// Add Wasm runtime to storage.
			code: wasm_binary_unwrap().to_vec(),
		},
		balances: BalancesConfig {
			// Configure endowed accounts with initial balance of 1 << 60.
			balances: endowed_accounts
				.iter()
				.cloned()
				.map(|k| (k, 600 * KILODOLLARS))
				.collect(),
		},
		aura: AuraConfig {
			//            authorities: initial_authorities.iter().map(|x| (x.1.clone())).collect(),
			authorities: vec![],
		},
		grandpa: GrandpaConfig {
			//            authorities: initial_authorities.iter().map(|x| (x.2.clone(), 1)).collect(),
			authorities: vec![],
		},
		sudo: SudoConfig {
			// Assign network admin rights.
			key: Some(root_key.clone()),
		},
		collator_selection: CollatorSelectionConfig {
			invulnerables: initial_authorities.iter().cloned().map(|(acc, _, _)| acc).collect(),
			candidacy_bond: 16 * CENTS,
			..Default::default()
		},
		council: Default::default(),
		democracy: DemocracyConfig::default(),
		tokens: Default::default(),
		vesting: Default::default(),
		continuum: ContinuumConfig {
			initial_active_session: Default::default(),
			initial_auction_rate: 5,
			initial_max_bound: (-100, 100),
			spot_price: 5 * DOLLARS,
		},
		session: SessionConfig {
			keys: initial_authorities
				.iter()
				.map(|x| (x.0.clone(), x.0.clone(), session_keys(x.1.clone(), x.2.clone())))
				.collect::<Vec<_>>(),
		},
		estate: EstateConfig {
			minting_rate_config: metaverse_land_minting_config(),
		},
		oracle_membership: OracleMembershipConfig {
			members: vec![],
			phantom: Default::default(),
		},
	}
}
/// Configure initial storage state for FRAME modules.
Configure initial storage state for FRAME modules.
Configure initial storage state for FRAME modules .
fn testnet_genesis(
	initial_authorities: Vec<(AccountId, AuraId, GrandpaId)>,
	root_key: AccountId,
	endowed_accounts: Vec<AccountId>,
	_enable_println: bool,
) -> GenesisConfig {
	let staking_candidate: Vec<(AccountId, Balance)> = initial_authorities
		.iter()
		.clone()
		.map(|x| (x.0.clone(), 100 * DOLLARS))
		.collect();
	let session_keys_test: Vec<(AccountId, AccountId, SessionKeys)> = initial_authorities
		.iter()
		.map(|x| (x.0.clone(), x.0.clone(), session_keys(x.1.clone(), x.2.clone())))
		.collect::<Vec<_>>();
	info!("{}", session_keys_test[0].0);
	info!("{}", staking_candidate[0].0);
	info!("{}", staking_candidate[1].0);
	GenesisConfig {
		system: SystemConfig {
			// Add Wasm runtime to storage.
			code: wasm_binary_unwrap().to_vec(),
		},
		balances: BalancesConfig {
			// Configure endowed accounts with initial balance of 1 << 60.
			balances: endowed_accounts
				.iter()
				.cloned()
				.map(|k| (k, 600 * KILODOLLARS))
				.collect(),
		},
		aura: AuraConfig {
			//            authorities: initial_authorities.iter().map(|x| (x.1.clone())).collect(),
			authorities: vec![],
		},
		grandpa: GrandpaConfig {
			//            authorities: initial_authorities.iter().map(|x| (x.2.clone(), 1)).collect(),
			authorities: vec![],
		},
		sudo: SudoConfig {
			// Assign network admin rights.
			key: Some(root_key.clone()),
		},
		collator_selection: CollatorSelectionConfig {
			invulnerables: initial_authorities.iter().cloned().map(|(acc, _, _)| acc).collect(),
			candidacy_bond: 16 * CENTS,
			..Default::default()
		},
		council: Default::default(),
		democracy: DemocracyConfig::default(),
		tokens: Default::default(),
		vesting: Default::default(),
		continuum: ContinuumConfig {
			initial_active_session: Default::default(),
			initial_auction_rate: 5,
			initial_max_bound: (-100, 100),
			spot_price: 5 * DOLLARS,
		},
		session: SessionConfig {
			keys: initial_authorities
				.iter()
				.map(|x| (x.0.clone(), x.0.clone(), session_keys(x.1.clone(), x.2.clone())))
				.collect::<Vec<_>>(),
		},
		estate: EstateConfig {
			minting_rate_config: metaverse_land_minting_config(),
		},
		oracle_membership: OracleMembershipConfig {
			members: vec![],
			phantom: Default::default(),
		},
	}
}
fn testnet_genesis ( initial_authorities : Vec < ( AccountId , AuraId , GrandpaId ) > , root_key : AccountId , endowed_accounts : Vec < AccountId > , _enable_println : bool , ) -> GenesisConfig { let staking_candidate : Vec < ( AccountId , Balance ) > = initial_authorities . iter ( ) . clone ( ) . map ( | x | ( x . 0 . clone ( ) , 100 * DOLLARS ) ) . collect ( ) ; let session_keys_test : Vec < ( AccountId , AccountId , SessionKeys ) > = initial_authorities . iter ( ) . map ( | x | ( x . 0 . clone ( ) , x . 0 . clone ( ) , session_keys ( x . 1 . clone ( ) , x . 2 . clone ( ) ) ) ) . collect :: < Vec < _ > > ( ) ; info ! ( " " session_keys_test [ 0 ] 0 ) ; info ! ( " " staking_candidate [ 0 ] 0 ) ; info ! ( " " staking_candidate [ 1 ] 0 ) ; GenesisConfig { system : SystemConfig { // Add Wasm runtime to storage. code : wasm_binary_unwrap ( ) . to_vec ( ) , } , balances : BalancesConfig { // Configure endowed accounts with initial balance of 1 << 60. balances : endowed_accounts . iter ( ) . cloned ( ) . map ( | k | ( k , 600 * KILODOLLARS ) ) . collect ( ) , } , aura : AuraConfig { //            authorities: initial_authorities.iter().map(|x| (x.1.clone())).collect(), authorities : vec ! [ ] , } , grandpa : GrandpaConfig { //            authorities: initial_authorities.iter().map(|x| (x.2.clone(), 1)).collect(), authorities : vec ! [ ] , } , sudo : SudoConfig { // Assign network admin rights. key : Some ( root_key . clone ( ) ) , } , collator_selection : CollatorSelectionConfig { invulnerables : initial_authorities . iter ( ) . cloned ( ) . map ( | ( acc , _ , _ ) | acc ) . collect ( ) , candidacy_bond : 16 * CENTS , .. Default :: default ( ) } , council : Default :: default ( ) , democracy : DemocracyConfig :: default ( ) , tokens : Default :: default ( ) , vesting : Default :: default ( ) , continuum : ContinuumConfig { initial_active_session : Default :: default ( ) , initial_auction_rate : 5 , initial_max_bound : ( - 100 , 100 ) , spot_price : 5 * DOLLARS , } , session : SessionConfig { keys : initial_authorities . iter ( ) . map ( | x | ( x . 0 . clone ( ) , x . 0 . clone ( ) , session_keys ( x . 1 . clone ( ) , x . 2 . clone ( ) ) ) ) . collect :: < Vec < _ > > ( ) , } , estate : EstateConfig { minting_rate_config : metaverse_land_minting_config ( ) , } , oracle_membership : OracleMembershipConfig { members : vec ! [ ] , phantom : Default :: default ( ) , } , } }
Configure initial storage state for FRAME modules.
Configure initial storage state for FRAME modules .
initial_authorities
Vec<(AccountId, AuraId, GrandpaId)>
root_key
AccountId
endowed_accounts
Vec<AccountId>
_enable_println
bool