forked from MetisProtocol/metis-sequencer-contract
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
140 lines (136 loc) · 3.6 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "hardhat-deploy";
import "./ts-src/tasks/l1";
import "./ts-src/tasks/l2";
import "./ts-src/tasks/dev";
import "dotenv/config";
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: "0.8.24",
settings: {
optimizer: {
enabled: true,
runs: 800,
},
evmVersion: "shanghai",
metadata: {
bytecodeHash: "none",
useLiteralContent: true,
},
},
},
],
overrides: {
// Metis is berlin now
"contracts/SequencerSet.sol": {
version: "0.8.20",
settings: {
optimizer: {
enabled: true,
runs: 800,
},
evmVersion: "berlin",
metadata: {
bytecodeHash: "none",
useLiteralContent: true,
},
},
},
},
},
networks: {
hardhat: {
saveDeployments: false,
},
mainnet: {
url: process.env.MAINNET_RPC || "https://eth.llamarpc.com",
accounts: [process.env.MAINNET_DEPLOYER_KEY as string],
tags: ["l1"],
},
devnet: {
url: process.env.DEVNET_RPC,
accounts: [process.env.DEVNET_DEPLOYER_KEY as string],
tags: ["l1"],
verify: {
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
apiUrl: process.env.DEVNET_EXPLORER_API,
},
},
},
sepolia: {
url: process.env.SEPOLIA_RPC || "https://1rpc.io/sepolia",
accounts: [process.env.SEPOLIA_DEPLOYER_KEY as string],
tags: ["l1"],
},
holesky: {
url: process.env.HOLESKY_RPC || "https://1rpc.io/holesky",
accounts: [process.env.HOLESKY_DEPLOYER_KEY as string],
tags: ["l1"],
verify: {
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
apiUrl: "https://api-holesky.etherscan.io",
},
},
},
"metis-andromeda": {
url: process.env.METIS_MAINNET_RPC || "https://andromeda.metis.io",
accounts: [process.env.MAINNET_DEPLOYER_KEY as string],
tags: ["l2"],
verify: {
etherscan: {
apiKey: "placeholder",
apiUrl: "https://andromeda-explorer.metis.io",
},
},
},
"metis-sepolia": {
url: process.env.METIS_SEPOLIA_RPC || "https://sepolia.metisdevops.link",
accounts: [process.env.SEPOLIA_DEPLOYER_KEY as string],
tags: ["l2"],
verify: {
etherscan: {
apiKey: "placeholder",
apiUrl: "https://sepolia-explorer-api.metisdevops.link",
},
},
},
// DON'T USE IT !
// metis holesky is not a public testnet for developers
// it's only for internal testing and the chain state can be deleted and rollbacked at any time
"metis-holesky": {
url: process.env.METIS_HOLESKY_RPC || "https://holesky.metisdevops.link",
accounts: [process.env.HOLESKY_DEPLOYER_KEY as string],
tags: ["l2"],
verify: {
etherscan: {
apiKey: "placeholder",
apiUrl: "https://holesky-explorer-api.metisdevops.link",
},
},
},
"metis-devnet": {
url: process.env.METIS_DEVNET_RPC,
accounts: [process.env.DEVNET_DEPLOYER_KEY as string],
tags: ["l2"],
verify: {
etherscan: {
apiKey: "placeholder",
apiUrl: process.env.METIS_DEVNET_EXPLORER_API,
},
},
},
},
namedAccounts: {
deployer: 0,
},
paths: {
tests: "./ts-src/test",
deploy: "./ts-src/deploy",
},
};
export default config;