-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtruffle-config.js
38 lines (34 loc) · 968 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
require('dotenv').config()
const HDWalletProvider = require('@truffle/hdwallet-provider');
const privateKey = process.env.PRIVATE_KEY;
const ropstenInfura = `https://ropsten.infura.io/v3/${process.env.INFURA_ID}`;
const rinkebyInfura = `https://rinkeby.infura.io/v3/${process.env.INFURA_ID}`;
const goerliInfura = `https://goerli.infura.io/v3/${process.env.INFURA_ID}`;
const config = {
networks: {
ropsten: {
provider: () => new HDWalletProvider(privateKey, ropstenInfura),
network_id: 3,
gas: 5500000,
skipDryRun: true
},
rinkeby: {
provider: () => new HDWalletProvider(privateKey, rinkebyInfura),
network_id: 4,
gas: 5500000,
skipDryRun: true
},
goerli: {
provider: () => new HDWalletProvider(privateKey, goerliInfura),
network_id: 5,
gas: 5500000,
skipDryRun: true
}
},
compilers: {
solc: {
version: "0.6.2",
}
}
};
module.exports = config;