-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle.js
38 lines (34 loc) · 850 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
37
38
const HDWalletProvider = require('truffle-hdwallet-provider');
const infuraApiKey = '85CnflqLM9kt0PaeGeSv';
const mnemonic = 'endless flash neutral online local culture tackle describe grunt major speak nothing';
const createProvider = (net) => {
if (!process.env.SOLIDITY_COVERAGE) {
return new HDWalletProvider(mnemonic, `https://${net}.infura.io/${infuraApiKey}`);
}
};
module.exports = {
networks: {
ropsten: {
provider: createProvider('ropsten'),
network_id: 3,
gas: 3290337,
},
rinkeby: {
provider: createProvider('rinkeby'),
network_id: 4,
gas: 4700000,
},
ganache: {
host: '127.0.0.1',
port: 8555,
network_id: '*', // Match any network id
},
},
solc: {
version: "0.4.24",
optimizer: {
enabled: true,
runs: 200,
},
},
};