2018-05-11 22:51:11 +00:00
|
|
|
module.exports = {
|
2018-06-18 19:59:48 +00:00
|
|
|
// default applies to all environments
|
2018-05-11 22:51:11 +00:00
|
|
|
default: {
|
2018-06-18 19:59:48 +00:00
|
|
|
// Blockchain node to deploy the contracts
|
2018-05-11 22:51:11 +00:00
|
|
|
deployment: {
|
2018-06-18 19:59:48 +00:00
|
|
|
host: "localhost", // Host of the blockchain node
|
|
|
|
port: 8545, // Port of the blockchain node
|
|
|
|
type: "rpc" // Type of connection (ws or rpc),
|
|
|
|
// Accounts to use instead of the default account to populate your wallet
|
|
|
|
/*,accounts: [
|
|
|
|
{
|
|
|
|
privateKey: "your_private_key",
|
|
|
|
balance: "5 ether" // You can set the balance of the account in the dev environment
|
|
|
|
// Balances are in Wei, but you can specify the unit with its name
|
|
|
|
},
|
|
|
|
{
|
2018-08-24 19:50:11 +00:00
|
|
|
privateKeyFile: "path/to/file", // Either a keystore or a list of keys, separated by , or ;
|
|
|
|
password: "passwordForTheKeystore" // Needed to decrypt the keystore file
|
2018-06-18 19:59:48 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
mnemonic: "12 word mnemonic",
|
|
|
|
addressIndex: "0", // Optionnal. The index to start getting the address
|
|
|
|
numAddresses: "1", // Optionnal. The number of addresses to get
|
|
|
|
hdpath: "m/44'/60'/0'/0/" // Optionnal. HD derivation path
|
|
|
|
}
|
|
|
|
]*/
|
2018-05-11 22:51:11 +00:00
|
|
|
},
|
|
|
|
// order of connections the dapp should connect to
|
|
|
|
dappConnection: [
|
|
|
|
"$WEB3", // uses pre existing web3 object if available (e.g in Mist)
|
2018-06-12 16:33:21 +00:00
|
|
|
"ws://localhost:8546",
|
2018-05-11 22:51:11 +00:00
|
|
|
"http://localhost:8545"
|
|
|
|
],
|
|
|
|
gas: "auto",
|
|
|
|
contracts: {
|
|
|
|
SimpleStorage: {
|
|
|
|
fromIndex: 0,
|
2018-06-18 19:59:48 +00:00
|
|
|
args: [100]
|
2018-05-11 22:51:11 +00:00
|
|
|
}
|
|
|
|
}
|
2018-08-21 18:44:58 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
// default environment, merges with the settings in default
|
|
|
|
// assumed to be the intended environment by `embark run`
|
|
|
|
development: {
|
2018-09-07 13:31:34 +00:00
|
|
|
dappConnection: [
|
|
|
|
"ws://localhost:8546",
|
|
|
|
"http://localhost:8545",
|
|
|
|
"$WEB3" // uses pre existing web3 object if available (e.g in Mist)
|
|
|
|
]
|
2018-08-21 18:44:58 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
// merges with the settings in default
|
|
|
|
// used with "embark run privatenet"
|
|
|
|
privatenet: {
|
|
|
|
},
|
|
|
|
|
|
|
|
// merges with the settings in default
|
|
|
|
// used with "embark run testnet"
|
|
|
|
testnet: {
|
|
|
|
},
|
|
|
|
|
|
|
|
// merges with the settings in default
|
|
|
|
// used with "embark run livenet"
|
|
|
|
livenet: {
|
|
|
|
},
|
|
|
|
|
|
|
|
// you can name an environment with specific settings and then specify with
|
|
|
|
// "embark run custom_name" or "embark blockchain custom_name"
|
|
|
|
//custom_name: {
|
|
|
|
//}
|
2018-06-18 19:59:48 +00:00
|
|
|
};
|