-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathhardhat.config.js
49 lines (47 loc) · 1.04 KB
/
hardhat.config.js
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
require("@matterlabs/hardhat-zksync-solc");
require("@matterlabs/hardhat-zksync-verify");
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
zksolc: {
version: "1.4.1",
compilerSource: "binary",
settings: {
optimizer: {
enabled: true,
},
},
},
networks: {
zkSyncSepoliaTestnet: {
url: "https://sepolia.era.zksync.dev",
ethNetwork: "sepolia",
zksync: true,
chainId: 300,
verifyURL:
"https://explorer.sepolia.era.zksync.dev/contract_verification",
},
zkSyncMainnet: {
url: "https://mainnet.era.zksync.io",
ethNetwork: "mainnet",
zksync: true,
chainId: 324,
verifyURL:
"https://zksync2-mainnet-explorer.zksync.io/contract_verification",
},
},
paths: {
artifacts: "./artifacts-zk",
cache: "./cache-zk",
sources: "./contracts",
tests: "./test",
},
solidity: {
version: "0.8.23",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
};