-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtruffle.js
More file actions
34 lines (33 loc) · 919 Bytes
/
truffle.js
File metadata and controls
34 lines (33 loc) · 919 Bytes
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
const HDWalletProvider = require("truffle-hdwallet-provider");
require('dotenv').config();
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*" // Match any network id
},
kovan: {
provider: () => new HDWalletProvider(process.env.MNEMONIC, `https://kovan.infura.io/${process.env.INFURA_KEY}`),
network_id: '42',
gasPrice: 20000000000,
},
rinkeby: {
provider: () => new HDWalletProvider(process.env.MNEMONIC, `https://rinkeby.infura.io/${process.env.INFURA_KEY}`),
network_id: '4',
gasPrice: 2400000000,
},
mainnet: {
provider: () => new HDWalletProvider(process.env.MNEMONIC, `https://mainnet.infura.io/${process.env.INFURA_KEY}`),
network_id: 1,
gas: 700000,
gasPrice: 7000000000,
},
},
solc: {
optimizer: {
enabled: true,
runs: 200
}
}
};