-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
58 lines (57 loc) · 1.5 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
52
53
54
55
56
57
58
require("solidity-coverage");
require("@nomicfoundation/hardhat-toolbox");
require("@nomicfoundation/hardhat-ignition-ethers");
require("@nomicfoundation/hardhat-verify");
require("dotenv").config();
const {
INFURA_LINEA_API_RPC,
INFURA_MUMBAI_API_RPC,
DEPLOYER_ADDRESS_PRIVATE_KEY,
POLYGONSCAN_API_KEY,
LINEASCAN_API_KEY,
} = process.env;
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.23",
networks: {
mumbai: {
url: INFURA_MUMBAI_API_RPC,
accounts: [`0x${DEPLOYER_ADDRESS_PRIVATE_KEY}`],
},
linea_sepolia: {
url: INFURA_LINEA_API_RPC,
accounts: [`0x${DEPLOYER_ADDRESS_PRIVATE_KEY}`],
},
},
etherscan: {
// Your API key for Etherscan/Polygonscan
// Obtain one at https://etherscan.io/ | https://polygonscan.io/
apiKey: {
//ethereum
// mainnet: ETHERSCAN_API_KEY,
// ropsten: ETHERSCAN_API_KEY,
// rinkeby: ETHERSCAN_API_KEY,
// goerli: ETHERSCAN_API_KEY,
// kovan: ETHERSCAN_API_KEY,
//polygon
// polygon: POLYGONSCAN_API_KEY,
polygonMumbai: POLYGONSCAN_API_KEY,
linea_sepolia: LINEASCAN_API_KEY,
},
customChains: [
{
network: "linea_sepolia",
chainId: 59141,
urls: {
apiURL: "https://api-sepolia.lineascan.build/api",
browserURL: "https://sepolia.lineascan.build/address",
},
},
],
},
sourcify: {
// Disabled by default
// Doesn't need an API key
enabled: true,
},
};