-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
40 lines (35 loc) · 1.08 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
require("@nomicfoundation/hardhat-toolbox");
require('dotenv').config()
// Replace this private key with your Sepolia account private key
// To export your private key from Coinbase Wallet, go to
// Settings > Developer Settings > Show private key
// To export your private key from Metamask, open Metamask and
// go to Account Details > Export Private Key
// Beware: NEVER put real Ether into testing accounts
const PRIVATE_KEY = process.env.PRIVATE_KEY;
const ALCHEMY_SEPOLIA_KEY = process.env.ALCHEMY_SEPOLIA_KEY;
const ALCHEMY_MAINNET_KEY = process.env.ALCHEMY_MAINNET_KEY;
const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY;
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.20",
networks: {
sepolia: {
url: ALCHEMY_SEPOLIA_KEY,
accounts: [PRIVATE_KEY]
},
mainnet: {
url: ALCHEMY_MAINNET_KEY,
accounts: [PRIVATE_KEY]
},
anvil: {
chainId: 31337,
url: "http://127.0.0.1:8545/",
timeout: 100000,
accounts: "remote"
},
},
etherscan: {
apiKey: ETHERSCAN_API_KEY,
},
};