-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle.js
executable file
·51 lines (50 loc) · 1.33 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
var PrivateKeyProvider = require('truffle-privatekey-provider');
module.exports = {
networks: {
development: {
network_id: '*',
host: '127.0.0.1',
port: process.env.PORT || 8545,
from: '0x31Ebd457b999Bf99759602f5Ece5AA5033CB56B3',
gas: 4000000,
gasPrice: 1
},
production: {
provider: () => new PrivateKeyProvider(process.env.PK, 'https://mainnet.infura.io'),
network_id: 1,
gasPrice: 10000000000,
gas: 4000000
},
ropsten: {
provider: () => new PrivateKeyProvider(process.env.PK, 'https://ropsten.infura.io'),
network_id: 3,
gasPrice: 10000000000
},
rinkeby: {
provider: () => new PrivateKeyProvider(process.env.PK, 'https://rinkeby.infura.io'),
network_id: 4,
gasPrice: 10000000000
},
coverage: {
host: 'localhost',
network_id: '*',
port: 6545,
gas: 0xfffffffffff,
gasPrice: 0x01
}
},
compilers: {
solc: {
version: '0.4.24'
}
},
solc: {
optimizer: {
enabled: true,
runs: 200
}
},
mocha: {
enableTimeouts: false
}
};