-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.ts
37 lines (34 loc) · 921 Bytes
/
hardhat.config.ts
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
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
require("dotenv").config();
/** @type import('hardhat/config').HardhatUserConfig */
require("dotenv").config();
const { PRIVATE_KEY } = process.env;
const config: HardhatUserConfig = {
solidity: "0.8.27",
networks: {
baseSepolia: {
url: `https://base-sepolia.g.alchemy.com/v2/${process.env.ALCHEMY_API_KEY}`,
accounts: [`0x${PRIVATE_KEY}`],
},
},
etherscan: {
apiKey: {
baseSepolia: process.env.BASESCAN_API_KEY!,
},
customChains: [
{
network: "baseSepolia",
chainId: 84532, // Base Goerli chain ID
urls: {
apiURL: "https://api-sepolia.basescan.org/api",
browserURL: "https://sepolia.basescan.org",
},
},
],
},
sourcify: {
enabled: true, // Enable Sourcify verification
},
};
export default config;