-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
45 lines (40 loc) · 1021 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
38
39
40
41
42
43
44
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "@nomicfoundation/hardhat-verify";
require("dotenv").config();
const PRIVATE_KEY: any = process.env.PRIVATE_KEY;
const SEPOLIA_URL: any = process.env.SEPOLIA_URL;
const config: HardhatUserConfig = {
solidity: "0.8.19",
// defaultNetwork: "sepolia",
networks: {
sepolia: {
url: SEPOLIA_URL,
accounts: [PRIVATE_KEY],
},
base: {
url: "https://base-mainnet.g.alchemy.com/v2/Irv4oep_ylEQ2aq-K9GLbWpXDmhydctp",
accounts: [PRIVATE_KEY]
}
},
etherscan: {
apiKey: {
sepolia: process.env.ETHERSCAN_KEY!,
base: "3QBCHR62MJE2Q6T5HMXXBJEM3Q9JVDCSZ3" //your base scan API key.
},
customChains: [
{
network: "base",
chainId: 8453,
urls: {
apiURL: "https://api.basescan.org/api",
browserURL: "https://basescan.org"
}
}
]
},
sourcify: {
enabled: true,
},
};
export default config;