-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
82 lines (73 loc) · 1.6 KB
/
truffle-config.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
require('@babel/polyfill');
const HDWalletProvider = require('@truffle/hdwallet-provider');
function getProvider(keysFile, rpcUrl) {
let keys = {};
try {
keys = require(keysFile);
return new HDWalletProvider(keys.privKey, rpcUrl);
} catch (err) {
console.log(err);
console.log('could not find ' + keysFile);
}
}
module.exports = {
solc: {
optimizer: {
enabled: true,
runs: 200
}
},
compilers: {
solc: {
version: '0.5.15'
}
},
networks: {
local: {
host: 'localhost',
port: 8545,
network_id: '85458545'
},
ganache: {
host: 'localhost',
port: 7545,
network_id: '5777'
},
kovan_infura: {
provider: () =>
new HDWalletProvider(
process.env.MNENOMIC,
'https://kovan.infura.io/v3/46919ce6487b4a8b83d0a870ad59588c'
),
network_id: 42,
gas: 6000000,
gasPrice: 10000000000
},
rinkeby_infura: {
provider: () =>
new HDWalletProvider(
process.env.MNENOMIC,
'https://rinkeby.infura.io/v3/46919ce6487b4a8b83d0a870ad59588c'
),
network_id: 4
},
mainnet_infura: {
provider: () =>
new HDWalletProvider(
process.env.MNENOMIC,
'https://mainnet.infura.io/v3/46919ce6487b4a8b83d0a870ad59588c'
),
network_id: 1,
gas: 0x2fefd5
}
},
mocha: {
useColors: true
// Crashing since version update - no solution yet
// reporter: 'eth-gas-reporter',
// reporterOptions : {
// currency: 'CHF',
// gasPrice: 21
// }
}
};