-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
58 lines (54 loc) · 1.32 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
import 'solidity-coverage'
import 'hardhat-gas-reporter'
import '@nomiclabs/hardhat-ethers'
import '@nomiclabs/hardhat-etherscan'
require('dotenv').config()
export default {
default: 'mainnet',
networks: {
hardhat: {
},
mainnet: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
accounts: [`0x${process.env.METAMASK_WALLET_SECRET}`],
gasMultiplier: 1.2,
gasPrice: 100000000000
},
ropsten: {
url: `https://ropsten.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
accounts: [`0x${process.env.METAMASK_WALLET_SECRET}`]
},
goerli: {
url: `https://goerli.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
accounts: [`0x${process.env.METAMASK_WALLET_SECRET}`]
},
development: {
url: "http://localhost:7545",
accounts: [process.env.METAMASK_WALLET_SECRET]
}
},
solidity: {
version: '0.8.0',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
paths: {
sources: './contracts',
tests: './test',
cache: './build/cache',
artifacts: './build/artifacts',
},
gasReporter: {
currency: 'USD',
enabled: true,
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: process.env.ETHERSCAN_API_KEY
},
}