-
Notifications
You must be signed in to change notification settings - Fork 231
/
Copy pathhardhat.config.ts
76 lines (71 loc) · 1.93 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
72
73
74
75
76
import "@nomicfoundation/hardhat-verify";
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
bsc: process.env.BSCSCAN_API_KEY || "",
bscTestnet: process.env.BSCSCAN_API_KEY || "",
// ETH
goerli: process.env.ETHERSCAN_API_KEY || "",
mainnet: process.env.ETHERSCAN_API_KEY || "",
zeta_mainnet: "NO_TOKEN",
zeta_testnet: "NO_TOKEN",
},
//@ts-ignore
customChains: [
{
chainId: 7000,
network: "zeta_mainnet",
urls: {
apiURL: "https://zetachain.blockscout.com/api",
browserURL: "https://zetachain.blockscout.com",
},
},
{
chainId: 7001,
network: "zeta_testnet",
urls: {
apiURL: "https://zetachain-athens-3.blockscout.com/api",
browserURL: "https://zetachain-athens-3.blockscout.com",
},
},
],
},
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" },
{ version: "0.4.18" /** For WETH / WZETA */ },
],
settings: {
/**
* @see {@link https://smock.readthedocs.io/en/latest/getting-started.html}
*/
outputSelection: {
"*": {
"*": ["storageLayout"],
},
},
},
},
};
export default config;