-
Notifications
You must be signed in to change notification settings - Fork 2
/
hardhat.config.ts
58 lines (54 loc) · 1.67 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
import { HardhatUserConfig } from "hardhat/config"
import "@matterlabs/hardhat-zksync"
import dotenv from "dotenv"
import "./tasks/createAccount.ts"
import "./tasks/deployAccount.ts"
import "./tasks/deployBatchCaller.ts"
import "./tasks/deployFactory.ts"
import "./tasks/deployMocks.ts"
import "./tasks/deployPaymaster.ts"
import "./tasks/prepareTests.ts"
// Load env file
dotenv.config()
const config: HardhatUserConfig = {
defaultNetwork: "zkSyncLocal",
// $ era_test_node fork mainnet
networks: {
zkSyncLocal: {
url: "http://127.0.0.1:8011",
ethNetwork: "mainnet",
zksync: true,
// constant accounts on era_test_node: https://github.com/matter-labs/era-test-node
accounts: ["0x3d3cbc973389cb26f657686445bcc75662b415b656078503592ac8c1abb8810e"]
},
zkTestnet: {
url: "https://sepolia.era.zksync.dev",
ethNetwork: "sepolia",
zksync: true,
verifyURL: "https://explorer.sepolia.era.zksync.dev/contract_verification",
accounts: [process.env.WALLET_PRIVATE_KEY as any]
},
zkSophonTestnet: {
url: "https://rpc.testnet.sophon.xyz",
ethNetwork: "sepolia",
verifyURL: "https://api-explorer-verify.testnet.sophon.xyz/contract_verification",
zksync: true,
accounts: [process.env.WALLET_PRIVATE_KEY as any]
}
},
zksolc: {
version: "1.5.2",
settings: {
enableEraVMExtensions: true
// find all available options in the official documentation
// https://era.zksync.io/docs/tools/hardhat/hardhat-zksync-solc.html#configuration
},
},
solidity: {
version: "0.8.19",
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY
}
};
export default config