-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
57 lines (55 loc) · 1.36 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
require("@nomicfoundation/hardhat-foundry");
require("@openzeppelin/hardhat-upgrades");
require("@nomicfoundation/hardhat-ethers");
require("@nomicfoundation/hardhat-verify");
require("dotenv").config();
module.exports = {
solidity: {
version: "0.8.20",
settings: {
optimizer: {
enabled: true,
runs: 1000000,
},
},
},
networks: {
sepolia: {
chainId: 11155111,
url: String(process.env.POLYGON_MUMBAI_RPC_URL),
accounts: [process.env.DEPLOYER_PRIVATE_KEY || ""],
},
localhost: {
// url: "http://127.0.0.1:8545", // Localhost (default: Hardhat network)
// chainId: 1337, // Standard chain ID for Hardhat's local network
},
arbitrum_nova: {
chainId: 42170,
url: String(process.env.ARBITRUM_NOVA_RPC_URL),
accounts: [process.env.DEPLOYER_PRIVATE_KEY || ""],
},
},
etherscan: {
apiKey: {
sepolia: String(process.env.POLYGONSCAN_API_KEY),
},
apiKey: {
arbitrum_nova: String(process.env.ARBITRUM_NOVA_API_KEY),
},
customChains: [
{
network: "arbitrum_nova",
chainId: 42170,
urls: {
apiURL: "https://api-nova.arbiscan.io/api",
browserURL: "https://nova.arbiscan.io",
},
},
],
},
sourcify: {
// Disabled by default
// Doesn't need an API key
enabled: true,
},
};