fn genesis_config(
	wasm_binary: &[u8],
	initial_authorities: Vec<(AuraId, GrandpaId)>,
	root_key: AccountId,
	initial_token_allocation: Vec<(AccountId, Balance)>,
	_enable_println: bool,
) -> GenesisConfig {
	GenesisConfig {
		system: SystemConfig {
			// Add Wasm runtime to storage.
			code: wasm_binary.to_vec(),
		},
		balances: BalancesConfig { balances: initial_token_allocation },
		aura: AuraConfig {
			authorities: initial_authorities.iter().map(|x| (x.0.clone())).collect(),
		},
		grandpa: GrandpaConfig {
			authorities: initial_authorities.iter().map(|x| (x.1.clone(), 1)).collect(),
		},
		sudo: SudoConfig {
			// Assign network admin rights.
			key: root_key,
		},
		teerex: TeerexConfig { allow_sgx_debug_mode: true },
		claims: Default::default(),
		treasury: Default::default(),
		vesting: Default::default(),
	}
}
/// Configure initial storage state for FRAME modules.
///
Configure initial storage state for FRAME modules.
Configure initial storage state for FRAME modules .
fn genesis_config(
	wasm_binary: &[u8],
	initial_authorities: Vec<(AuraId, GrandpaId)>,
	root_key: AccountId,
	initial_token_allocation: Vec<(AccountId, Balance)>,
	_enable_println: bool,
) -> GenesisConfig {
	GenesisConfig {
		system: SystemConfig {
			// Add Wasm runtime to storage.
			code: wasm_binary.to_vec(),
		},
		balances: BalancesConfig { balances: initial_token_allocation },
		aura: AuraConfig {
			authorities: initial_authorities.iter().map(|x| (x.0.clone())).collect(),
		},
		grandpa: GrandpaConfig {
			authorities: initial_authorities.iter().map(|x| (x.1.clone(), 1)).collect(),
		},
		sudo: SudoConfig {
			// Assign network admin rights.
			key: root_key,
		},
		teerex: TeerexConfig { allow_sgx_debug_mode: true },
		claims: Default::default(),
		treasury: Default::default(),
		vesting: Default::default(),
	}
}
fn genesis_config ( wasm_binary : & [ u8 ] , initial_authorities : Vec < ( AuraId , GrandpaId ) > , root_key : AccountId , initial_token_allocation : Vec < ( AccountId , Balance ) > , _enable_println : bool , ) -> GenesisConfig { GenesisConfig { system : SystemConfig { // Add Wasm runtime to storage. code : wasm_binary . to_vec ( ) , } , balances : BalancesConfig { balances : initial_token_allocation } , aura : AuraConfig { authorities : initial_authorities . iter ( ) . map ( | x | ( x . 0 . clone ( ) ) ) . collect ( ) , } , grandpa : GrandpaConfig { authorities : initial_authorities . iter ( ) . map ( | x | ( x . 1 . clone ( ) , 1 ) ) . collect ( ) , } , sudo : SudoConfig { // Assign network admin rights. key : root_key , } , teerex : TeerexConfig { allow_sgx_debug_mode : true } , claims : Default :: default ( ) , treasury : Default :: default ( ) , vesting : Default :: default ( ) , } }
Configure initial storage state for FRAME modules.
Configure initial storage state for FRAME modules .
wasm_binary
&[u8]
initial_authorities
Vec<(AuraId, GrandpaId)>
root_key
AccountId
initial_token_allocation
Vec<(AccountId, Balance)>
_enable_println
bool