-
Notifications
You must be signed in to change notification settings - Fork 2
/
truffle-config.js
40 lines (38 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
const PrivateKeyProvider = require("truffle-privatekey-provider");
const web3 = require("web3");
module.exports = {
networks: {
development: {
host: "localhost",
port: 9545,
network_id: "*" // Match any network id
},
rinkeby: {
provider: () =>
new PrivateKeyProvider(
process.env.INFURA_PRIVATE_KEY,
`https://rinkeby.infura.io/${process.env.INFURA_API_KEY}`
),
network_id: 4,
gas: 4612388 // Gas limit used for deploys
},
mainnet: {
provider: () =>
new PrivateKeyProvider(
process.env.INFURA_PRIVATE_KEY,
`https://mainnet.infura.io/${process.env.INFURA_API_KEY}`
),
network_id: 0,
gas: 4612388, // Gas limit used for deploys,
gasPrice: 9 * 1000000000
}
},
mocha: {
reporter: "eth-gas-reporter",
reporterOptions: {
currency: "USD"
}
}
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
};