-
Notifications
You must be signed in to change notification settings - Fork 3
/
truffle-config.js
executable file
·65 lines (62 loc) · 2.1 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
require('dotenv').config();
const HDWalletProvider = require('@truffle/hdwallet-provider'); // @notice - Should use new module.
const mnemonic = process.env.MNEMONIC;
module.exports = {
networks: {
ropsten: {
provider: () => new HDWalletProvider(mnemonic, 'https://ropsten.infura.io/v3/' + process.env.INFURA_KEY),
network_id: '3',
gas: 4465030,
gasPrice: 5000000000, // 5 gwei
skipDryRun: true, // Skip dry run before migrations? (default: false for public nets)
},
kovan: {
provider: () => new HDWalletProvider(mnemonic, 'https://kovan.infura.io/v3/' + process.env.INFURA_KEY),
network_id: '42',
gas: 6465030,
gasPrice: 5000000000, // 5 gwei
skipDryRun: true, // Skip dry run before migrations? (default: false for public nets)
},
rinkeby: {
provider: () => new HDWalletProvider(mnemonic, "https://rinkeby.infura.io/v3/" + process.env.INFURA_KEY),
network_id: 4,
gas: 6000000, // 2 times than before
gasPrice: 5000000000, // 5 gwei,
skipDryRun: true, // Skip dry run before migrations? (default: false for public nets)
//from: process.env.DEPLOYER_ADDRESS
},
goerli: {
provider: () => new HDWalletProvider(mnemonic, "https://goerli.infura.io/v3/" + process.env.INFURA_KEY),
network_id: 5,
gas: 7500000,
gasPrice: 5000000000, // 5 gwei,
skipDryRun: true, // Skip dry run before migrations? (default: false for public nets)
//from: process.env.DEPLOYER_ADDRESS
},
// main ethereum network(mainnet)
live: {
provider: () => new HDWalletProvider(mnemonic, "https://mainnet.infura.io/v3/" + process.env.INFURA_KEY),
network_id: 1,
gas: 5500000,
gasPrice: 2000000000 // 2 gwei
},
local: {
host: '127.0.0.1',
port: 8545,
network_id: '*',
skipDryRun: true,
gasPrice: 5000000000
}
},
compilers: {
solc: {
version: "0.6.12", /// Final version of solidity-v0.6.x
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
}
}