-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
57 lines (53 loc) · 1.41 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
import * as dotenv from "dotenv";
// import "@nomicfoundation/hardhat-toolbox";
// import "@nomicfoundation/hardhat-foundry";
import "@matterlabs/hardhat-zksync-deploy";
import "@matterlabs/hardhat-zksync-solc";
import "@matterlabs/hardhat-zksync-verify";
dotenv.config();
module.exports ={
defaultNetwork: "zksync",
networks: {
hardhat: {
},
sepolia: {
url: `https://eth-sepolia.g.alchemy.com/v2/wJ4MOyRL_MQ9a3jJiFVpBGrfZf9jmVKL`,
accounts: [`${process.env.PRIVATE_KEY_DEPLOY}`]
},
zksync: {
url: `https://testnet.era.zksync.dev`,
ethNetwork: "sepolia", // or a Goerli RPC endpoint from Infura/Alchemy/Chainstack etc.
zksync: true,
accounts: [`${process.env.PRIVATE_KEY_DEPLOY}`]
}
},
solidity: {
compilers: [
{
version: "0.8.19",
},
{
version: "0.8.20",
settings: {},
},
{
version: "0.8.0",
settings: {},
}
],
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
zksolc: { // need to reference zksolc compiler
compilerSource: 'binary',
version: "latest",
settings: {}
},
paths: {
artifacts: "./artifacts",
}
}