-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
44 lines (43 loc) · 1.03 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
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;
const coinMarketcapApiKey = process.env.COINMARKETCAP_API_KEY;
module.exports = {
networks: {
development: {
host: '127.0.0.1',
port: 8545,
network_id: '*',
},
rinkeby: {
provider: () => new HDWalletProvider(mnemonic, `https://rinkeby.infura.io/v3/${infuraProjectId}`),
network_id: 4,
gas: 5500000,
skipDryRun: true,
},
},
mocha: {
reporter: 'eth-gas-reporter',
reporterOptions: {
currency: 'USD',
coinmarketcap: coinMarketcapApiKey,
gasPriceApi: etherScanApiKey,
},
},
plugins: ['truffle-plugin-verify'],
api_keys: {
etherscan: etherScanApiKey,
},
compilers: {
solc: {
version: '0.8.12',
settings: {
optimizer: {
enabled: true,
},
},
},
},
};