-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
56 lines (54 loc) · 1.24 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
import "@nomiclabs/hardhat-waffle";
import "@nomiclabs/hardhat-ethers";
import "@nomiclabs/hardhat-etherscan";
import "@typechain/hardhat";
import "hardhat-gas-reporter";
import "solidity-coverage";
import {
ALCHEMY_API_KEY,
DEPLOYER_PRIVATE_KEY,
ETHERSCAN_API_KEY,
COINMARKETCAP_API_KEY
} from './env.json';
module.exports = {
defaultNetwork: 'hardhat',
solidity: {
version: '0.8.6',
settings: {
optimizer: {
enabled: true,
runs: 2000
}
}
},
typechain: {
outDir: 'ts-types/contracts',
target: 'ethers-v5'
},
gasReporter: {
enabled: true,
currency: 'USD',
gasPrice: 50,
coinmarketcap: COINMARKETCAP_API_KEY
},
networks: {
ropsten: {
url: `https://eth-ropsten.alchemyapi.io/v2/${ALCHEMY_API_KEY}`,
accounts: [`0x${DEPLOYER_PRIVATE_KEY}`],
},
rinkeby: {
url: `https://eth-rinkeby.alchemyapi.io/v2/${ALCHEMY_API_KEY}`,
accounts: [`0x${DEPLOYER_PRIVATE_KEY}`],
},
mainnet: {
url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_API_KEY}`,
accounts: [`0x${DEPLOYER_PRIVATE_KEY}`],
},
hardhat: {
initialBaseFeePerGas: 0 //workaround for solidity-coverage
}
},
etherscan: {
apiKey: ETHERSCAN_API_KEY
}
};