-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
55 lines (51 loc) · 1.23 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "@nomiclabs/hardhat-ethers";
// import "@nomicfoundation/hardhat-verify";
import "hardhat-deploy";
import dotenv from "dotenv";
dotenv.config();
const PRIVATE_KEY = process.env.PK!;
const config: HardhatUserConfig = {
solidity: "0.8.20",
namedAccounts: {
deployer: {
default: 0,
},
},
networks: {
hardhat: {
forking: {
url: "https://eth-sepolia.g.alchemy.com/v2/apiKey",
// blockNumber: 1234567, // Optional: the block number you want to fork from
},
},
sepolia: {
url: "https://eth-sepolia.g.alchemy.com/v2/apiKey",
accounts: [PRIVATE_KEY],
chainId: 11155111,
},
arbitrumSepolia: {
url: "https://arb-sepolia.g.alchemy.com/v2/apiKey",
accounts: [PRIVATE_KEY],
chainId: 421614,
},
},
etherscan: {
apiKey: {
sepolia: "XXX",
arbitrumSepolia: "XXX",
},
customChains: [
{
network: "arbitrumSepolia",
chainId: 421614,
urls: {
apiURL: "https://api-sepolia.arbiscan.io/api",
browserURL: "https://sepolia.arbiscan.io/",
},
},
],
},
};
export default config;