-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
61 lines (59 loc) · 1.37 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
import { HardhatUserConfig } from "hardhat/config";
import "@nomiclabs/hardhat-etherscan";
import "@nomiclabs/hardhat-waffle";
import "@openzeppelin/hardhat-upgrades";
import "hardhat-deploy";
import "hardhat-typechain";
import "solidity-coverage";
require("dotenv").config();
const config: HardhatUserConfig = {
defaultNetwork: "hardhat",
etherscan: {
apiKey: process.env.KEY,
customChains: [
{
network: "goerli",
chainId: 5,
urls: {
apiURL: "https://api-goerli.etherscan.io/api",
browserURL: "https://goerli.etherscan.io",
},
},
],
},
networks: {
// hardhat: {
// chainId: 1,
// forking: {
// // eslint-disable-next-line
// enabled: true,
// url: `https://mainnet.infura.io/v3/${process.env.INFURAID}`,
// blockNumber: 15941122,
// },
// },
// goerli: {
// url: `https://goerli.infura.io/v3/${process.env.INFURAID}`,
// accounts: [process.env.MMNOMIC as string],
// },
localhost: {
chainId: 31337,
url: "http://127.0.0.1:8545",
timeout: 10000000,
},
},
solidity: {
compilers: [
{
version: "0.8.2",
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
},
},
{ version: "0.8.4" },
],
},
};
export default config;