-
Notifications
You must be signed in to change notification settings - Fork 2
/
hardhat.config.ts
71 lines (68 loc) · 1.92 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
import "@nomiclabs/hardhat-waffle";
import "@typechain/hardhat";
import "@nomiclabs/hardhat-ethers";
import "hardhat-deploy";
import { config as dotEnvConfig } from "dotenv";
dotEnvConfig();
import "hardhat-gas-reporter";
import "solidity-coverage";
import { HardhatUserConfig } from "hardhat/types";
const config: HardhatUserConfig = {
defaultNetwork: "hardhat",
solidity: {
compilers: [
{
version: "0.8.10",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
paths: {
sources: "contracts",
tests: "./tests",
},
networks: {
hardhat: {
accounts: { mnemonic: process.env.MNEMONIC },
// forking: {
// url: `https://eth-mainnet.alchemyapi.io/v2/${
// process.env.ALCHEMY_API_KEY ?? ""
// }`,
// blockNumber: ETH_FORK_BLOCK_NUMBER,
// },
},
// goerli: {
// url: `https://goerli.infura.io/v3/${INFURA_API_KEY}`,
// accounts: { mnemonic: process.env.MNEMONIC },
// gas: 21000000,
// gasPrice: 80000000000,
// saveDeployments: true,
// },
// mainnet: {
// gas: 8500000,
// gasPrice: 5e9,
// accounts: { mnemonic: MNEMONIC },
// chainId: 1,
// timeout: 500,
// url: `https://mainnet.infura.io/v3/${INFURA_API_KEY}`,
// },
// coverage: {
// url: "http://127.0.0.1:8555", // Coverage launches its own ganache-cli client
// },
},
typechain: {
outDir: "types/typechain",
},
gasReporter: {
enabled: process.env.REPORT_GAS === "true" ? true : false,
},
mocha: {
timeout: 10000000,
},
};
export default config;