-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtruffle-config.js
executable file
·50 lines (47 loc) · 1.39 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
require('dotenv').config();
const HDWalletProvider = require('@truffle/hdwallet-provider'); // @notice - Should use new module.
const mnemonic = process.env.MNEMONIC;
module.exports = {
networks: {
polygon_mumbai: { /// Mumbai testnet of Matic
provider: () => new HDWalletProvider(mnemonic, "https://polygon-mumbai.infura.io/v3/" + process.env.INFURA_KEY),
network_id: 80001,
confirmations: 2,
timeoutBlocks: 200,
skipDryRun: true
},
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: "pragma", /// For compiling multiple solc-versions
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
}
}