-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathtruffle.js
51 lines (50 loc) · 1.2 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
/*
const HDWalletProvider = require("truffle-hdwallet-provider");
const privateKey = "<PRIVATE>";
*/
module.exports = {
networks: {
testing: {
host: '127.0.0.1',
port: 10545,
network_id: 420123
},
development: {
host: '127.0.0.1',
port: 9545,
network_id: 420123
},
/*
kovan: {
provider: new HDWalletProvider(privateKey, "https://kovan.infura.io/v3/<API_KEY>"),
network_id: 42,
skipDryRun: true
},
mainnet: {
provider: new HDWalletProvider(privateKey, "https://mainnet.infura.io/v3/<API_KEY>"),
network_id: 1,
gasPrice: 10000000000,
skipDryRun: true
}
*/
},
compilers: {
solc: {
version: "0.5.7",
settings: {
optimizer: {
enabled: true,
runs: 200
},
evmVersion: "petersburg"
}
}
},
mocha: {
reporter: 'eth-gas-reporter',
reporterOptions: {
currency: 'USD',
gasPrice: 10
}
},
};