-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
51 lines (47 loc) · 1.42 KB
/
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
51
require("@nomicfoundation/hardhat-toolbox");
require("dotenv").config();
require("./tasks/block-number");
require("solidity-coverage");
const SEPOLIA_RPC_URL =
process.env.SEPOLIA_RPC_URL || "https://1rpc.io/sepolia";
const METAMASK_PRIVATE_KEY = process.env.METAMASK_PRIVATE_KEY || "0x454...";
const GANACHE_RPC_URL = process.env.GANACHE_RPC_URL || "http://127.0.0.1:7545";
const GANACHE_PRIVATE_KEY = process.env.GANACHE_PRIVATE_KEY || "0x2323323....";
const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY || "key";
const COINMARKETCAP_API_KEY = process.env.COINMARKETCAP_API_KEY || "key";
module.exports = {
defaultNetwork: "hardhat",
networks: {
sepolia: {
url: SEPOLIA_RPC_URL,
accounts: [METAMASK_PRIVATE_KEY],
chainId: 11155111,
},
ganache: {
url: GANACHE_RPC_URL,
account: GANACHE_PRIVATE_KEY,
chainId: 1337,
},
localhost: {
url: "http://127.0.0.1:8545/",
//accounts: Thanks hardhat lmfao!
chainId: 31337,
},
},
solidity: "0.8.8",
etherscan: {
apiKey: ETHERSCAN_API_KEY,
},
sourcify: {
enabled: true,
},
gasReporter: {
enabled: false,
outputFile: "gas-report.txt",
noColors: true,
currency: "USD",
coinmarketcap: COINMARKETCAP_API_KEY,
token: "ETH",
offline: true,
},
};