-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
35 lines (33 loc) · 925 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
require("@nomicfoundation/hardhat-toolbox");
require("dotenv").config(); // For loading environment variables
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version: "0.8.27",
settings: {
optimizer: {
enabled: true,
runs: 200, // You can adjust the runs to optimize for size (lower value) or gas efficiency (higher value)
},
},
},
networks: {
apechain: {
url: `https://rpc.apechain.com`, // Taiko Helka RPC URL
accounts: [process.env.PRIVATE_KEY] // Use environment variable for wallet private key
},
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY, // Your Etherscan API key
customChains: [
{
network: "apechain",
chainId: 33139,
urls: {
apiURL: "https://api.apescan.io/api",
browserURL: "https://apescan.io"
}
}
]
}
};