forked from zeta-chain/app-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
53 lines (48 loc) · 1.29 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
import "@nomiclabs/hardhat-etherscan";
import "@nomiclabs/hardhat-waffle";
import "@typechain/hardhat";
import "hardhat-gas-reporter";
import "solidity-coverage";
import "tsconfig-paths/register";
import { getHardhatConfigNetworks } from "@zetachain/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 = {
//@ts-ignore
etherscan: {
apiKey: {
// BSC
bscTestnet: process.env.BSCSCAN_API_KEY || "",
// ETH
goerli: process.env.ETHERSCAN_API_KEY || "",
mainnet: process.env.ETHERSCAN_API_KEY || "",
},
},
gasReporter: {
currency: "USD",
enabled: process.env.REPORT_GAS !== undefined,
},
networks: {
...getHardhatConfigNetworks(),
},
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;