-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathtruffle-config.js
43 lines (42 loc) · 1.01 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
const HDWalletProvider = require("truffle-hdwallet-provider")
const config = require('./scratch/extensions/config.js')
const infuraProjectId = config.infuraProjectId
const privateKeys = config.privateKeys
module.exports = {
networks: {
develop: {
host: "127.0.0.1",
port: 9545,
network_id: "*" // Match any network id
},
ganache: {
host: "127.0.0.1",
port: 7545,
network_id: "*" // Match any network id
},
parity: {
host: "127.0.0.1",
port: 8646,
network_id: "*" // Match any network id
},
ropsten: {
provider: () => {
return new HDWalletProvider(privateKeys, `https://ropsten.infura.io/v3/${infuraProjectId}`)
},
network_id: 3,
skipDryRun: true,
},
},
compilers: {
solc: {
evmVersion: 'petersburg',
settings: {
optimizer: {
enabled: true,
runs: 200 // Optimize for how many times you intend to run the code
}
},
version: "0.5.8"
}
}
}