-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
39 lines (37 loc) · 1.18 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
const HDWalletProvider = require("@truffle/hdwallet-provider");
require("dotenv").config();
const GAS_LIMIT = 8000000;
module.exports = {
networks: {
ganache: {
host: "127.0.0.1",
network_id: "*",
port: process.env.GANACHE_PORT || 8545,
},
goerli: {
provider: () =>
new HDWalletProvider(
process.env.GOERLI_MNEMONIC,
process.env.GOERLI_PROVIDER_URL
),
network_id: 5, // Goerli's id
gas: GAS_LIMIT,
gasPrice: 11e9, // 10 GWEI
//confirmations: 6, // # of confs to wait between deployments. (default: 0)
timeoutBlocks: 50, // # of blocks before a deployment times out (minimum/default: 50)
skipDryRun: false // Skip dry run before migrations? (default: false for public nets )
}
},
compilers: {
solc: {
version: "0.7.6", // Fetch exact version from solc-bin (default: truffle's version)
optimizer: {
enabled: true,
runs: 200
}
}
},
plugins: [
'truffle-contract-size'
]
};