-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
41 lines (39 loc) · 1006 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
require("@nomicfoundation/hardhat-toolbox");
require('@openzeppelin/hardhat-upgrades');
require('dotenv').config();
require("@nomicfoundation/hardhat-verify");
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.27",
networks:{
sepolia:{
url: `${process.env.SEPOLIA_RPC_URL}`,
accounts: [`0x${process.env.PRIVATE_KEY}`]
},
optimism_sepolia:{
url: `${process.env.OP_SEPOLIA_RPC_URL}`,
accounts: [`0x${process.env.PRIVATE_KEY}`]
}
},
etherscan: {
apiKey: {
sepolia: `${process.env.ETHERSCAN_API_KEY}`,
optimism_sepolia: `${process.env.OPSCAN_API_KEY}`,
}
},
customChains: [
{
network: "optimism_sepolia",
chainId: 11155420,
urls: {
apiURL: "https://api-sepolia-optimistic.etherscan.io/api",
browserURL: "https://sepolia-optimism.etherscan.io"
}
}
],
sourcify: {
// Disabled by default
// Doesn't need an API key
enabled: true
}
};