-
Notifications
You must be signed in to change notification settings - Fork 46
/
truffle-config.js
51 lines (50 loc) · 1.26 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
var HDWalletProvider = require("@truffle/hdwallet-provider");
const mnemonic = "";
const walletChildNum = 0;
const networkAddress = "https://mainnet.infura.io/v3/<your-api-key>";
const goerliNetworkAddress = "https://goerli.infura.io/v3/<your-api-key>";
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
networks: {
development: {
host: '127.0.0.1',
port: 8545, // ganache-cli
network_id: '*', // Match any network id
gas: 6700000,
gasPrice: 0x01
},
coverage: {
host: 'localhost',
network_id: '*',
port: 8321,
gas: 10000000000000,
gasPrice: 0x01
},
goerli: {
network_id: 5,
provider: function() {
return new HDWalletProvider(mnemonic, goerliNetworkAddress, walletChildNum)
},
gas: 4700000,
gasPrice: 0x01
},
mainnet: {
network_id: 1,
provider: function () {
return new HDWalletProvider(mnemonic, networkAddress, walletChildNum)
},
},
},
compilers: {
solc: {
version: "v0.4.24+commit.e67f0147" // ex: "0.4.20". (Default: Truffle's installed solc)
}
},
solc: {
optimizer: {
enabled: true,
runs: 200
}
}
};