-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.js
45 lines (43 loc) · 1014 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
require("@nomicfoundation/hardhat-toolbox");
require("@chainlink/env-enc").config();
// require("./tasks/deploy-fundme");
require("./tasks");
require("hardhat-deploy");
require("@nomicfoundation/hardhat-ethers");
require("hardhat-deploy-ethers");
const SEPOLIA_URL = process.env.SEPOLIA_URL;
const PRIVATE_KEY = process.env.PRIVATE_KEY;
const PRIVATE_KEY_1 = process.env.PRIVATE_KEY_1;
const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY;
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.24",
defaultNetwork: "hardhat",
mocha: {
// mocha测试脚本里面默认值限制40秒,超过40秒就是超时了
timeout: 300000, // 300s
},
networks: {
sepolia: {
url: SEPOLIA_URL,
accounts: [PRIVATE_KEY, PRIVATE_KEY_1],
chainId: 11155111,
},
},
etherscan: {
apiKey: {
sepolia: ETHERSCAN_API_KEY,
},
},
namedAccounts: {
firstAccount: {
default: 0,
},
secondAccount: {
default: 1,
},
},
gasReporter: {
enabled: true,
},
};