forked from datahack-ru/g-uni-v1-core
-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.ts
119 lines (111 loc) · 3.07 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
import { HardhatUserConfig } from "hardhat/config";
// PLUGINS
import "@nomiclabs/hardhat-ethers";
import "@nomiclabs/hardhat-etherscan";
import "@nomiclabs/hardhat-waffle";
import "@typechain/hardhat";
import "hardhat-deploy";
import "solidity-coverage";
import "./lib/uniswap";
// Process Env Variables
import * as dotenv from "dotenv";
dotenv.config({ path: __dirname + "/.env" });
const config: HardhatUserConfig = {
// hardhat-deploy
namedAccounts: {
deployer: {
default: 0,
},
},
// etherscan: {
// apiKey: process.env.ETHERSCAN_API_KEY,
// },
networks: {
anvil: {
chainId: 31337,
url: "http://localhost:8545",
accounts: [process.env.ANVIL_PRIVATE_KEY ?? ""],
},
arbitrum: {
chainId: 42161,
url: process.env.ARBITRUM_RPC || "https://arbitrum.llamarpc.com",
accounts: [process.env.DEPLOYER_PRIVATE_KEY ?? ""],
},
arbitrumSepolia: {
chainId: 421614,
url:
process.env.ARBITRUM_SEPOLIA_RPC ||
"https://sepolia-rollup.arbitrum.io/rpc",
accounts: [process.env.DEPLOYER_PRIVATE_KEY ?? ""],
},
base: {
chainId: 8453,
url: process.env.BASE_RPC || "https://base.llamarpc.com",
accounts: [process.env.DEPLOYER_PRIVATE_KEY ?? ""],
},
baseSepolia: {
chainId: 84532,
url: process.env.BASE_SEPOLIA_RPC || "https://sepolia.base.org",
accounts: [process.env.DEPLOYER_PRIVATE_KEY ?? ""],
},
blast: {
chainId: 81457,
url: process.env.BLAST_RPC || "https://rpc.blast.io",
accounts: [process.env.DEPLOYER_PRIVATE_KEY ?? ""],
},
blastSepolia: {
chainId: 168587773,
url: process.env.BLAST_SEPOLIA_RPC || "https://sepolia.blast.io",
accounts: [process.env.DEPLOYER_PRIVATE_KEY ?? ""],
},
mainnet: {
chainId: 1,
url: process.env.MAINNET_RPC || "https://eth.llamarpc.com",
accounts: [process.env.DEPLOYER_PRIVATE_KEY ?? ""],
},
mantle: {
chainId: 5000,
url: process.env.MANTLE_RPC || "https://rpc.mantle.xyz",
accounts: [process.env.DEPLOYER_PRIVATE_KEY ?? ""],
},
mantleSepolia: {
chainId: 5003,
url: process.env.MANTLE_SEPOLIA_RPC || "https://rpc.sepolia.mantle.xyz",
accounts: [process.env.DEPLOYER_PRIVATE_KEY ?? ""],
},
mode: {
chainId: 34443,
url: process.env.MODE_RPC || "https://mainnet.mode.network",
accounts: [process.env.DEPLOYER_PRIVATE_KEY ?? ""],
},
modeSepolia: {
chainId: 919,
url: process.env.MODE_SEPOLIA_RPC || "https://sepolia.mode.network",
accounts: [process.env.DEPLOYER_PRIVATE_KEY ?? ""],
},
},
solidity: {
compilers: [
{
version: "0.7.3",
settings: {
optimizer: { enabled: true },
},
},
{
version: "0.8.19",
settings: {
optimizer: { enabled: true, runs: 1 },
},
},
],
},
typechain: {
outDir: "typechain",
target: "ethers-v5",
},
etherscan: {
apiKey: process.env[`${process.env.HARDHAT_NETWORK}_ETHERSCAN_API_KEY`],
},
};
export default config;