forked from uniswap-zksync/era-uniswap-v3-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
47 lines (46 loc) · 1.34 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
import 'hardhat-typechain'
import '@nomiclabs/hardhat-ethers'
import '@nomiclabs/hardhat-waffle'
import '@nomiclabs/hardhat-etherscan'
import '@matterlabs/hardhat-zksync-solc'
import '@matterlabs/hardhat-zksync-verify'
export default {
networks: {
zkSyncTestNode: {
url: "http://localhost:8011",
ethNetwork: "http://localhost:8545",
zksync: true,
},
zkSyncTestnet: {
url: 'https://testnet.era.zksync.dev',
ethNetwork: `https://goerli.infura.io/v3/${process.env.INFURA_API_KEY}`,
zksync: true,
verifyURL: 'https://zksync2-testnet-explorer.zksync.dev/contract_verification',
},
zkSyncMainnet: {
url: 'https://mainnet.era.zksync.io',
ethNetwork: `https://mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
zksync: true,
verifyURL: 'https://zksync2-mainnet-explorer.zksync.io/contract_verification',
},
},
defaultNetwork: 'zkSyncTestNode',
solidity: {
version: '0.7.6',
},
zksolc: {
version: '1.3.13',
compilerSource: 'binary',
settings: {
metadata: {
// do not include the metadata hash, since this is machine dependent
// and we want all generated code to be deterministic
// https://docs.soliditylang.org/en/v0.7.6/metadata.html
bytecodeHash: 'none',
},
},
},
mocha: {
timeout: 100000000,
},
}