-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.js
50 lines (47 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
44
45
46
47
48
49
50
require("@nomicfoundation/hardhat-toolbox");
require('hardhat-deploy');
require("@nomiclabs/hardhat-ethers")
require("@nomiclabs/hardhat-etherscan");
require("dotenv").config();
module.exports = {
defaultNetwork: "hardhat",
networks:{
localhost:{
chainId: 31337,
blockConfirmation:1
},
hardhat:{
chainId: 31337,
blockConfirmation:1
},
mumbai:{
url: process.env.MUMBAI_RPC_URL,
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
chainId: 80001,
blockConfirmation:1
}
},
solidity:{
compilers:[
{version: "0.8.4"},
{version: "0.8.9"}
]
},
namedAccounts:{
deployer:{
default:0
},
user1:{
default:1
},
user2:{
default:2
}
},
etherscan:{
apiKey: process.env.POLYSCAN_API_KEY
},
mocha:{
timeout: 1000000
}
};