-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.js
More file actions
44 lines (38 loc) · 1.01 KB
/
Copy pathhardhat.config.js
File metadata and controls
44 lines (38 loc) · 1.01 KB
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
const { report } = require("process");
require("@nomicfoundation/hardhat-toolbox");
require("dotenv").config();
require("./tasks/block-number");
require("hardhat-gas-reporter");
require("solidity-coverage");
require("./tasks/send-eth");
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
solidity: "0.8.28",
networks: {
hardhat: {
chainId: 31337,
},
sepolia: {
url: process.env.RPC_URL,
accounts: [process.env.PRIVATE_KEY],
chainId: Number(process.env.CHAIN_ID),
},
},
localhost: {
url : "http://127.0.0.1:8545/",
chainId: 31337,
//accounts: hardhat本地网络会自动生成账户,不需要手动添加
},
gasReporter:{
enabled: process.env.REPORT_GAS !== undefined,
outputFile: "gas-report.txt",
noColors: true,
currency: "USD",
coinmarketcap: process.env.COINMARKETCAP_API_KEY,
token: "ETH",
offline: true,
}
}