-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
50 lines (47 loc) · 1.11 KB
/
hardhat.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();
require('@nomicfoundation/hardhat-toolbox');
require('hardhat-abi-exporter');
require('@nomiclabs/hardhat-etherscan');
require('solidity-coverage');
require('hardhat-gas-reporter');
require('./tasks');
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version: '0.8.15',
settings: {
optimizer: {
enabled: true,
runs: 10_000,
},
},
},
defaultNetwork: 'hardhat',
networks: {
mainnet: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
accounts: [process.env.WALLET_PRIVATE_KEY],
},
rinkeby: {
url: `https://rinkeby.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
accounts: [process.env.WALLET_PRIVATE_KEY],
},
hardhat: {
initialBaseFeePerGas: 0,
},
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
abiExporter: {
path: './abi',
clear: true,
},
gasReporter: {
enabled: !process.env.CI,
currency: 'USD',
gasPrice: 30,
src: 'contracts',
coinmarketcap: '7643dfc7-a58f-46af-8314-2db32bdd18ba',
},
};