-
Notifications
You must be signed in to change notification settings - Fork 61
/
truffle.js
52 lines (51 loc) · 1.01 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
require('babel-register');
require('babel-polyfill');
const Infura = require('./infura');
module.exports = {
networks: {
development: {
host: 'localhost',
port: 8545,
network_id: '*', // Match any network id
gas: 100000000, // High
gasPrice: 0 //18000000000
},
mainnet: {
provider: () => {
return new Infura('https://mainnet.infura.io/');
},
network_id: 1
},
ropsten: {
provider: () => {
return new Infura('https://ropsten.infura.io/');
},
network_id: 3
},
rinkeby: {
provider: () => {
return new Infura('https://rinkeby.infura.io/');
},
network_id: 4
},
kovan: {
provider: () => {
return new Infura('https://kovan.infura.io/');
},
network_id: 42
}
},
solc: {
optimizer: {
enabled: true,
runs: 5000000
}
},
mocha: {
timeout: 10000,
reporter: 'eth-gas-reporter',
reporterOptions: {
currency: 'USD'
}
}
};