-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.cjs
34 lines (33 loc) · 1.16 KB
/
hardhat.config.cjs
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
require("@matterlabs/hardhat-zksync-deploy");
require("@matterlabs/hardhat-zksync-verify");
require("@matterlabs/hardhat-zksync-solc");
require("@nomicfoundation/hardhat-toolbox");
require("@nomicfoundation/hardhat-foundry");
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
zksolc: {
version: "1.4.0", // Uses latest available in https://github.com/matter-labs/zksolc-bin/
settings: {},
},
solidity: {
version: "0.8.24",
eraVersion: "1.0.0", //optional. Compile contracts with EraVM compiler
},
defaultNetwork: "zkSyncTestnet",
networks: {
sepolia: {
url: "https://sepolia.infura.io/v3/<API_KEY>", // The Ethereum Web3 RPC URL (optional).
zksync: false, // disables zksolc compiler
},
zkSyncTestnet: {
url: "https://sepolia.era.zksync.dev", // The testnet RPC URL of zkSync Era network.
ethNetwork: "sepolia", // The Ethereum Web3 RPC URL, or the identifier of the network (e.g. `mainnet` or `sepolia`)
zksync: true, // enables zksolc compiler
verifyURL:
"https://explorer.sepolia.era.zksync.dev/contract_verification",
},
},
sourcify: {
enabled: true,
},
};