-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhardhat.config.js
52 lines (48 loc) · 969 Bytes
/
hardhat.config.js
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
const dotenvConfig = require("dotenv").config;
const path = require("path");
dotenvConfig({ path: path.resolve(__dirname, "./.env") });
require("@nomiclabs/hardhat-waffle");
require("@typechain/hardhat");
const config = {
defaultNetwork: "hardhat",
solidity: {
compilers: [
{
version: "0.8.0",
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
},
},
{
version: "0.6.11",
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
},
},
],
},
networks: {
hardhat: {
chainId: 1337,
},
mumbai: {
url: process.env.MUMBAI_RPC_URL,
accounts: [
process.env.PRIVATE_KEY,
process.env.PRIVATE_KEY2,
process.env.PRIVATE_KEY3,
],
},
},
typechain: {
outDir: "typechain",
target: "ethers-v5",
},
};
module.exports = config;