-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.ts
56 lines (51 loc) · 1.35 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 { config as dotenvconfig } from 'dotenv';
dotenvconfig();
import { HardhatUserConfig } from 'hardhat/config';
//const { private_key, infura_key, alchemy_key } = require('./secret.json');
import 'hardhat-abi-exporter';
import 'hardhat-gas-reporter';
import '@typechain/hardhat';
import '@nomiclabs/hardhat-waffle';
import '@nomiclabs/hardhat-etherscan';
import '@tenderly/hardhat-tenderly';
import 'solidity-coverage';
const config: HardhatUserConfig = {
networks: {
localhost: {
forking: {
url: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_KEY}`,
blockNumber: 13089428,
},
url: 'http://localhost:8545',
},
mainnet: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA_KEY}`,
accounts: [process.env.MAINNET_PRIVATE_KEY || ''],
},
rinkeby: {
url: `https://rinkeby.infura.io/v3/${process.env.INFURA_KEY}`,
accounts: {
mnemonic: process.env.RINKEBY_MNEMONIC || '',
},
},
hardhat: {
forking: {
url: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_KEY}`,
blockNumber: 13089428,
},
},
},
solidity: {
version: '0.7.6',
settings: {
optimizer: {
enabled: true,
runs: 10000,
},
},
},
etherscan: {
apiKey: process.env.ETHERSCAN_KEY,
},
};
export default config;