forked from 1inch/solidity-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
41 lines (38 loc) · 916 Bytes
/
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
import '@typechain/hardhat';
import '@nomiclabs/hardhat-etherscan';
import '@nomiclabs/hardhat-truffle5';
import 'hardhat-deploy';
import 'hardhat-gas-reporter';
require('solidity-coverage'); // require because no TS typings available
import dotenv from 'dotenv';
import { HardhatUserConfig } from 'hardhat/config';
import networks from './hardhat.networks';
dotenv.config();
const config: HardhatUserConfig = {
etherscan: {
apiKey: process.env.ETHERSCAN_KEY,
},
solidity: {
version: '0.8.10',
settings: {
optimizer: {
enabled: true,
runs: 1000000,
},
},
},
networks,
namedAccounts: {
deployer: {
default: 0,
},
},
gasReporter: {
enabled: true,
currency: 'USD',
},
typechain: {
target: 'truffle-v5',
},
};
export default config;