-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.ts
59 lines (56 loc) · 1.58 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
import { HardhatUserConfig, task } from 'hardhat/config'
import '@nomicfoundation/hardhat-toolbox'
// import '@nomiclabs/hardhat-etherscan'
// import '@nomiclabs/hardhat-waffle'
// import '@typechain/hardhat'
// import 'hardhat-gas-reporter'
// import 'solidity-coverage'
// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more
const config: HardhatUserConfig = {
solidity: {
version: '0.8.13',
settings: {
viaIR: true,
optimizer: {
enabled: true,
runs: 1000,
},
},
},
networks: {
hardhat: {
forking: {
enabled: true,
url: process.env.OPTIMISM_URL as string,
blockNumber: 23547072,
},
accounts: {
count: 10,
},
},
optimism: {
url: process.env.OPTIMISM_URL as string,
chainId: 10,
accounts: [process.env.MAINNET_PK as string],
},
goerli: {
url: process.env.GOERLI_URL as string,
chainId: 5,
accounts: [process.env.GOERLI_PK as string],
},
},
gasReporter: {
enabled: true,
currency: 'USD',
gasPrice: 60,
},
etherscan: {
apiKey: {
mainnet: process.env.ETHERSCAN_API_KEY as string,
goerli: process.env.ETHERSCAN_API_KEY as string,
optimisticEthereum: process.env.OPTIMISTIC_ETHERSCAN_API_KEY as string,
},
},
}
export default config