// NewEnvironment creates a new environment
NewEnvironment creates a new environment
// NewEnvironment creates a new environment
func NewEnvironment(name, description, provider, consensus string, multiRegion bool, blockPeriod int, prefundedAccounts map[string]string, chainID uint) Environment {
	accounts := map[string]interface{}{}
	for account, balance := range prefundedAccounts {
		accountBalance := &AccountBalance{}
		accountBalance.Balance = balance
		accounts[account] = accountBalance
	}
	e := Environment{
		Name:              name,
		Description:       description,
		Provider:          provider,
		ConsensusType:     consensus,
		BlockPeriod:       blockPeriod,
		PrefundedAccounts: accounts,
		TestFeatures:      make(map[string]interface{}),
	}
	if chainID > 0 {
		e.ChainID = chainID
	}
	if multiRegion {
		e.TestFeatures["multi_region"] = &multiRegion
	}
	return e
}
func NewEnvironment ( name , description , provider , consensus string , multiRegion bool , blockPeriod int , prefundedAccounts map [ string ] string , chainID uint ) Environment { accounts := map [ string ] interface { } { } for account , balance := range prefundedAccounts { accountBalance := & AccountBalance { } accountBalance . Balance = balance accounts [ account ] = accountBalance } e := Environment { Name : name , Description : description , Provider : provider , ConsensusType : consensus , BlockPeriod : blockPeriod , PrefundedAccounts : accounts , TestFeatures : make ( map [ string ] interface { } ) , } if chainID > 0 { e . ChainID = chainID } if multiRegion { e . TestFeatures [ " " ] = & multiRegion } return e }
NewEnvironment creates a new environment
NewEnvironment creates a new environment