-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathhardhat.config.js
49 lines (47 loc) · 990 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
require("@nomicfoundation/hardhat-toolbox");
require("dotenv").config();
const POLYGON_RPC_URL = `https://polygon-mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`;
const POLYGON_MUMBAI_RPC_URL = `https://polygon-mumbai.infura.io/v3/${process.env.INFURA_API_KEY}`;
const PRIVATE_KEY = process.env.PRIVATE_KEY || "";
module.exports = {
defaultNetwork: "hardhat",
networks: {
hardhat: {
forking: {
url: POLYGON_RPC_URL
},
chainId: 31337,
},
localhost: {
chainId: 31337,
},
mumbai: {
url: POLYGON_MUMBAI_RPC_URL,
accounts: PRIVATE_KEY !== undefined ? [PRIVATE_KEY] : [],
saveDeployments: true,
chainId: 80001,
},
},
namedAccounts: {
deployer: {
default: 0,
1: 0,
},
player: {
default: 1,
},
},
solidity: {
compilers: [
{
version: "0.8.10",
},
{
version: "0.8.18",
},
],
},
mocha: {
timeout: 500000,
},
};