-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
43 lines (38 loc) · 993 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
41
42
43
require("@nomicfoundation/hardhat-toolbox");
require("@nomicfoundation/hardhat-verify");
require("dotenv").config();
require("hardhat-deploy");
require("./tasks")
const SEPOLIA_URL = process.env.SEPOLIA_URL
const PRIVATE_ACCOUNTS_KEY_1 = process.env.PRIVATE_ACCOUNTS_KEY_1
const PRIVATE_ACCOUNTS_KEY_2 = process.env.PRIVATE_ACCOUNTS_KEY_2
const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.27",
defaultNetwork: "hardhat",
networks:{
sepolia: {
url: SEPOLIA_URL, // alchemy, infure,
accounts: [PRIVATE_ACCOUNTS_KEY_1,PRIVATE_ACCOUNTS_KEY_2],
chainId: 11155111
}
},
etherscan: {
apiKey: {
sepolia: ETHERSCAN_API_KEY
}
},
namedAccounts:{
firsetAccount:{
default: 0
},
secondAccount:{
default: 1
}
}
};
/*
https://mainnet.infura.io/v3/00b99ad1cd1448d6b83059081e4f6cdb
00b99ad1cd1448d6b83059081e4f6cdb
*/