forked from enzymefinance/hackathon-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
51 lines (47 loc) · 1.17 KB
/
hardhat.config.ts
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
// Load the configuration from the .env file.
import 'dotenv/config';
// Load the hardhat plugins.
import '@nomiclabs/hardhat-ethers';
import '@nomiclabs/hardhat-etherscan';
import '@nomiclabs/hardhat-solhint';
import '@nomiclabs/hardhat-waffle';
import '@typechain/hardhat';
import 'solidity-coverage';
import type { HardhatUserConfig } from 'hardhat/types';
if (!process.env.ETHEREUM_NODE_MAINNET) {
console.warn('WARNING: Missing "ETHEREUM_NODE_MAINNET" environment parameter. Forking disabled.');
}
const config: HardhatUserConfig = {
defaultNetwork: 'hardhat',
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
mocha: {
timeout: 60000,
},
networks: {
hardhat: {
accounts: {
mnemonic: 'test test test test test test test test test test test junk',
},
forking: {
blockNumber: 13230834,
enabled: !!process.env.ETHEREUM_NODE_MAINNET,
url: process.env.ETHEREUM_NODE_MAINNET ?? '',
},
},
},
solidity: {
settings: {
optimizer: {
details: {
yul: false,
},
enabled: true,
runs: 200,
},
},
version: '0.6.12',
},
};
export default config;