42 lines
1.4 KiB
JavaScript
42 lines
1.4 KiB
JavaScript
|
module.exports = {
|
||
|
// default applies to all environments
|
||
|
default: {
|
||
|
// Blockchain node to deploy the contracts
|
||
|
deployment: {
|
||
|
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
|
||
|
},
|
||
|
{
|
||
|
privateKeyFile: "path/to/file" // You can put more than one key, separated by , or ;
|
||
|
},
|
||
|
{
|
||
|
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
|
||
|
}
|
||
|
]*/
|
||
|
},
|
||
|
// order of connections the dapp should connect to
|
||
|
dappConnection: [
|
||
|
"$WEB3", // uses pre existing web3 object if available (e.g in Mist)
|
||
|
"ws://localhost:8546",
|
||
|
"http://localhost:8545"
|
||
|
],
|
||
|
gas: "auto",
|
||
|
contracts: {
|
||
|
SimpleStorage: {
|
||
|
fromIndex: 0,
|
||
|
args: [100]
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
};
|