forked from dabit3/polygon-ethereum-nextjs-marketplace
-
Notifications
You must be signed in to change notification settings - Fork 4
/
hardhat.config.js
44 lines (40 loc) · 902 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
require("@nomiclabs/hardhat-waffle");
require("dotenv").config();
const privateKey = process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : []
module.exports = {
defaultNetwork: "hardhat",
networks: {
iscp: {
url: "https://evm.wasp.sc.iota.org",
chainId: 1074,
accounts: privateKey,
timeout: 60000
},
hardhat: {
chainId: 1337
},
/*
mumbai: {
// Infura
// url: `https://polygon-mumbai.infura.io/v3/${infuraId}`
url: "https://rpc-mumbai.matic.today",
accounts: [privateKey]
},
matic: {
// Infura
// url: `https://polygon-mainnet.infura.io/v3/${infuraId}`,
url: "https://rpc-mainnet.maticvigil.com",
accounts: [privateKey]
}
*/
},
solidity: {
version: "0.8.4",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
};