2017-06-15 20:17:58 +00:00
|
|
|
|
const HDWalletProvider = require('truffle-hdwallet-provider');
|
|
|
|
|
|
|
|
|
|
const mnemonic = process.env.TEST_MNEMONIC || 'status mnemonic status mnemonic status mnemonic status mnemonic status mnemonic status mnemonic';
|
|
|
|
|
const providerDevelopment = new HDWalletProvider(mnemonic, 'http://localhost:8545', 0);
|
|
|
|
|
const providerRopsten = new HDWalletProvider(mnemonic, 'https://ropsten.infura.io/', 1);
|
|
|
|
|
const providerKovan = new HDWalletProvider(mnemonic, 'https://kovan.infura.io', 2);
|
|
|
|
|
|
2017-05-17 07:33:56 +00:00
|
|
|
|
module.exports = {
|
2017-06-15 20:17:58 +00:00
|
|
|
|
networks: {
|
|
|
|
|
development: {
|
|
|
|
|
network_id: 15,
|
|
|
|
|
host: "localhost",
|
|
|
|
|
port: 8545,
|
|
|
|
|
gas: 4000000,
|
|
|
|
|
gasPrice: 4e9,
|
|
|
|
|
},
|
|
|
|
|
development_migrate: {
|
|
|
|
|
network_id: 15,
|
|
|
|
|
provider: providerDevelopment,
|
|
|
|
|
gas: 4000000,
|
|
|
|
|
gasPrice: 4e9,
|
|
|
|
|
from: "0xf93df8c288b9020e76583a6997362e89e0599e99",
|
|
|
|
|
},
|
|
|
|
|
mainnet: {
|
|
|
|
|
network_id: 1,
|
|
|
|
|
host: "localhost",
|
|
|
|
|
port: 8545,
|
|
|
|
|
gas: 4000000,
|
|
|
|
|
gasPrice: 4e9,
|
|
|
|
|
from: "0x1",
|
|
|
|
|
},
|
|
|
|
|
ropsten: {
|
|
|
|
|
network_id: 3,
|
|
|
|
|
provider: providerRopsten,
|
|
|
|
|
gas: 4000000,
|
|
|
|
|
gasPrice: 4e9,
|
|
|
|
|
from: "0x1",
|
|
|
|
|
},
|
|
|
|
|
kovan: {
|
|
|
|
|
network_id: 42,
|
|
|
|
|
provider: providerKovan,
|
|
|
|
|
gas: 4000000,
|
|
|
|
|
gasPrice: 4e9,
|
|
|
|
|
from: "0x1",
|
|
|
|
|
},
|
2017-05-17 07:33:56 +00:00
|
|
|
|
}
|
|
|
|
|
};
|