-
Notifications
You must be signed in to change notification settings - Fork 420
/
hardhat.config.ts
59 lines (57 loc) · 1.44 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
52
53
54
55
56
57
58
59
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import { HardhatUserConfig } from 'hardhat/config';
import dotenv from 'dotenv';
import '@nomiclabs/hardhat-waffle';
import '@nomiclabs/hardhat-waffle';
import '@nomiclabs/hardhat-etherscan';
import '@float-capital/solidity-coverage';
import 'hardhat-typechain';
import 'hardhat-abi-exporter';
import '@openzeppelin/hardhat-upgrades';
import 'hardhat-gas-reporter';
import './tasks';
dotenv.config();
const config: HardhatUserConfig = {
solidity: {
version: '0.8.6',
settings: {
optimizer: {
enabled: true,
runs: 10_000,
},
},
},
networks: {
mainnet: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
accounts: [process.env.WALLET_PRIVATE_KEY!].filter(Boolean),
},
rinkeby: {
url: `https://rinkeby.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
accounts: process.env.MNEMONIC
? { mnemonic: process.env.MNEMONIC }
: [process.env.WALLET_PRIVATE_KEY!].filter(Boolean),
},
hardhat: {
initialBaseFeePerGas: 0,
},
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
abiExporter: {
path: './abi',
clear: true,
},
gasReporter: {
enabled: !process.env.CI,
currency: 'USD',
gasPrice: 50,
src: 'contracts',
coinmarketcap: '7643dfc7-a58f-46af-8314-2db32bdd18ba',
},
mocha: {
timeout: 60_000,
},
};
export default config;