-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
40 lines (38 loc) · 953 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
require("@nomicfoundation/hardhat-toolbox");
require("@nomicfoundation/hardhat-ethers");
require("solidity-coverage");
require("hardhat-gas-reporter");
require("@nomicfoundation/hardhat-verify");
require("hardhat-contract-sizer");
require("dotenv").config();
const {
ALCHEMY_API_URL,
COINMARKETCAP_API_KEY,
ETHERSCAN_API_KEY,
METAMASK_PRIVATE_KEY,
REPORT_GAS,
} = process.env;
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.28",
networks: {
hardhat: {
chainId: 1337 // We set 1337 to make interacting with MetaMask simpler
},
sepolia: {
url: ALCHEMY_API_URL,
accounts: [`0x${METAMASK_PRIVATE_KEY}`]
}
},
gasReporter: {
enabled: REPORT_GAS === "true" ? true : false,
currency: "USD",
coinmarketcap: COINMARKETCAP_API_KEY
},
contractSizer: {
alphaSort: true,
disambiguatePaths: false,
runOnCompile: true,
strict: true
}
};