-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtruffle-config.js
40 lines (38 loc) · 965 Bytes
/
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
require("dotenv").config();
const HDWalletProvider = require("truffle-hdwallet-provider");
var mnemonic = process.env.MNENOMIC;
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*"
},
rinkeby: {
// must be a thunk, otherwise truffle commands may hang in CI
provider: () =>
new HDWalletProvider(mnemonic, process.env.rinkeby.infura.io/v3/fcbcb2a5dc574c33be6baa5d697bcf20
),
network_id: "4",
skipDryRun: true
},
mainnet: {
// must be a thunk, otherwise truffle commands may hang in CI
provider: () =>
new HDWalletProvider(mnemonic, "https://mainnet.infura.io/v3/b77387df3b3c41d69d7f106238a391a6"
),
network_id: "1",
gas: 4600000,
gasPrice: 10000000000
}
},
compilers: {
solc: {
version: "0.5.2",
optimizer: {
enabled: true,
runs: 200
}
}
}
};