-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.js
More file actions
43 lines (40 loc) · 1.27 KB
/
Copy pathhardhat.config.js
File metadata and controls
43 lines (40 loc) · 1.27 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
require("@nomicfoundation/hardhat-toolbox");
require("dotenv").config();
require("./tasks/accounts");
require("./tasks/block-number");
/** @type import('hardhat/config').HardhatUserConfig */
const GOERLI_RPC_URL = process.env.GOERLI_RPC_URL || "rpc__url___not__provided";
const METAMASK_PRIVATE_KEY = process.env.METAMASK_PRIVATE_KEY || "private__key___not__provided";
const COINMARKETCAP_API_KEY = process.env.COINMARKETCAP_API_KEY || "coinmarketcap__api__key___not__provided";
const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY || "etherscan__api__key___not__provided";
module.exports = {
defaultNetwork: "hardhat",
solidity: {
compilers: [{ version: "0.8.17" }, { version: "0.8.8" }],
},
networks: {
goerli: {
url: GOERLI_RPC_URL,
accounts: [METAMASK_PRIVATE_KEY],
chainId: 5,
},
localhost: {
url: "http://127.0.0.1:8545",
chainId: 31337,
},
},
etherscan: {
apiKey: ETHERSCAN_API_KEY,
},
gasReporter: {
enabled: true,
noColors: true,
outputFile: "gas-report.txt",
token: "MATIC",
currency: "USD",
coinmarketcap: COINMARKETCAP_API_KEY,
},
mocha: {
timeout: 1000 * 60 * 5,
},
};