forked from nounsDAO/nouns-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
73 lines (71 loc) · 1.9 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import { HardhatUserConfig } from 'hardhat/config';
import dotenv from 'dotenv';
import '@nomiclabs/hardhat-waffle';
import '@nomicfoundation/hardhat-verify';
import 'solidity-coverage';
import '@typechain/hardhat';
import 'hardhat-abi-exporter';
import '@openzeppelin/hardhat-upgrades';
import 'hardhat-gas-reporter';
import './tasks';
dotenv.config();
const config: HardhatUserConfig = {
solidity: {
version: '0.8.23',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
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),
},
goerli: {
url: `https://goerli.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
accounts: process.env.MNEMONIC
? { mnemonic: process.env.MNEMONIC }
: [process.env.WALLET_PRIVATE_KEY!].filter(Boolean),
},
sepolia: {
url: `https://sepolia.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,
},
typechain: {
outDir: './typechain',
},
gasReporter: {
enabled: !process.env.CI,
currency: 'USD',
gasPrice: 50,
src: 'contracts',
coinmarketcap: '7643dfc7-a58f-46af-8314-2db32bdd18ba',
},
mocha: {
timeout: 60_000,
},
};
export default config;