-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhardhat.config.ts
66 lines (60 loc) · 1.69 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
56
57
58
59
60
61
62
63
64
65
66
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "@nomicfoundation/hardhat-verify";
import * as dotenv from "dotenv";
dotenv.config();
const deployer =
process.env.DEPLOYER_PRIVATE_KEY ||
"ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80";
const config: HardhatUserConfig = {
solidity: "0.8.25",
networks: {
sepolia: {
url: `https://sepolia.infura.io/v3/${process.env.INFURA_API_KEY}`,
chainId: 11155111,
accounts: [deployer],
},
lineaSepolia: {
url: `https://linea-sepolia.infura.io/v3/${process.env.INFURA_API_KEY}`,
chainId: 59141,
accounts: [deployer],
},
mainnet: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
chainId: 1,
accounts: [deployer],
},
lineaMainnet: {
url: `https://linea-mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
chainId: 59144,
accounts: [deployer],
},
},
etherscan: {
apiKey: {
lineaSepolia: process.env.LINEASCAN_API_KEY ?? "",
lineaMainnet: process.env.LINEASCAN_API_KEY ?? "",
sepolia: process.env.ETHERSCAN_API_KEY ?? "",
mainnet: process.env.ETHERSCAN_API_KEY ?? "",
},
customChains: [
{
network: "lineaSepolia",
chainId: 59141,
urls: {
apiURL: "https://api-sepolia.lineascan.build/api",
browserURL: "https://sepolia.lineascan.build/",
},
},
{
network: "lineaMainnet",
chainId: 59144,
urls: {
apiURL: "https://api.lineascan.build/api",
browserURL: "https://lineascan.build/",
},
},
],
},
};
export default config;