-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.js
More file actions
40 lines (37 loc) · 837 Bytes
/
Copy pathhardhat.config.js
File metadata and controls
40 lines (37 loc) · 837 Bytes
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
require('@nomiclabs/hardhat-waffle');
require('hardhat-gas-reporter');
require('dotenv').config();
module.exports = {
solidity: {
version: '0.8.4',
settings: {
optimizer: {
enabled: true,
runs: 500
}
}
},
// https://hardhat.org/metamask-issue.html
// networks: {
// hardhat: {
// chainId: 137,
// allowUnlimitedContractSize: true,
// },
// localhost: { allowUnlimitedContractSize: true },
// },
networks: {
goerli: {
url: process.env.ALCHEMY_API_KEY,
accounts: [process.env.GOERLI_PRIVATE_KEY],
}
},
gasReporter: {
enabled: true,
currency: 'JPY',
showTimeSpent: true,
showMethodSig: true,
// coinmarketcap: 'Key',
gasPriceApi:
'https://api.polygonscan.com/api?module=proxy&action=eth_gasPrice',
},
};