-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.js
51 lines (45 loc) · 1.05 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
51
require("@nomiclabs/hardhat-waffle");
require("hardhat-gas-reporter");
require('solidity-coverage');
require('@openzeppelin/test-helpers');
require('dotenv').config();
/**
* @dev Replace keys in .env file to deploy contracts to a remote network
*/
const _ALCHEMY_API_KEY = process.env.ALCHEMY_API_KEY;
const _GOERLI_PRIVATE_KEY = process.env.GOERLI_PRIVATE_KEY;
module.exports = {
solidity: {
version: "0.8.21",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
/**
* @dev uncomment code below to deploy contracts to a remote network
*/
// networks: {
// goerli: {
// url: `https://eth-goerli.alchemyapi.io/v2/${_ALCHEMY_API_KEY}`,
// accounts: [_GOERLI_PRIVATE_KEY].filter(key => key !== undefined)
// }
// },
gasReporter: {
currency: 'USD',
gasPrice: 36,
outputFile: 'gas-report.txt',
noColors: true,
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts"
},
mocha: {
timeout: 100000,
}
};