forked from zeta-chain/app-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
46 lines (41 loc) · 1.16 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
import "@nomiclabs/hardhat-etherscan";
import "@nomiclabs/hardhat-waffle";
import "@typechain/hardhat";
import "hardhat-gas-reporter";
import "solidity-coverage";
import "tsconfig-paths/register";
import { getHardhatConfigNetworks, getHardhatConfigScanners } from "@zetachain/addresses-tools/src/networks";
import * as dotenv from "dotenv";
import type { HardhatUserConfig } from "hardhat/types";
dotenv.config();
const PRIVATE_KEYS = process.env.PRIVATE_KEY !== undefined ? [`0x${process.env.PRIVATE_KEY}`] : [];
const config: HardhatUserConfig = {
etherscan: {
...getHardhatConfigScanners(),
},
gasReporter: {
currency: "USD",
enabled: process.env.REPORT_GAS !== undefined,
},
networks: {
...getHardhatConfigNetworks(PRIVATE_KEYS),
},
solidity: {
compilers: [
{ version: "0.5.10" /** For create2 factory */ },
{ version: "0.6.6" /** For uniswap v2 */ },
{ version: "0.8.7" },
],
settings: {
/**
* @see {@link https://smock.readthedocs.io/en/latest/getting-started.html}
*/
outputSelection: {
"*": {
"*": ["storageLayout"],
},
},
},
},
};
export default config;