-
Notifications
You must be signed in to change notification settings - Fork 1
/
truffle-config.js
50 lines (48 loc) · 1.11 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
const HDWalletProvider = require('@truffle/hdwallet-provider');
require('dotenv').config();
const mnemonic = process.env.MNEMONIC_PHRASE;
const infuraProjectId = process.env.INFURA_PROJECT_ID;
const etherScanApiKey = process.env.ETHERSCAN_API_KEY;
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 7545,
network_id: "*",
gas: 0xfffffffffff,
gasPrice: 0x01,
},
rinkeby: {
provider: () => new HDWalletProvider(mnemonic, `https://rinkeby.infura.io/v3/${infuraProjectId}`),
network_id: 4,
gas: 5500000,
skipDryRun: true
},
},
plugins: [
'truffle-plugin-verify'
],
api_keys: {
etherscan: etherScanApiKey
},
compilers: {
/* solc: {
version: "0.8.0",
settings: {
optimizer: {
enabled: true, // Default: false
runs: 1000 // Default: 200
},
}
}, */
solc: {
version: "0.8.0",
settings: {
optimizer: {
enabled: true, // Default: false
runs: 1000 // Default: 200
},
},
}
}
}