forked from RewardsNetwork/Alloy-ICO-Contracts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
truffle.js
36 lines (33 loc) · 962 Bytes
/
truffle.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
require('babel-register');
require('babel-polyfill');
var HDWalletProvider = require('truffle-hdwallet-provider');
const mnemonic = process.env.TEST_MNETONIC || 'mojo jojo mojo jojo mojo jojo mojo jojo mojo jojo mojo jojo';
const ropstenProvider = new HDWalletProvider(mnemonic, 'https://ropsten.infura.io/');
const kovanProvider = new HDWalletProvider(mnemonic, 'https://kovan.infura.io/');
module.exports = {
networks: {
development: {
host: "localhost",
port: 8545,
network_id: "*"
},
mainnet: {
network_id: 1,
from: '',
host: 'localhost',
port: 8545,
gas: 4e6
},
ropsten: {
network_id: 3,
provider: ropstenProvider,
gas: 4.7e6
},
kovan: {
network_id: 42,
provider: kovanProvider,
gas: 4.99e6
}
},
build: {}
};