-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
66 lines (61 loc) · 1.73 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
59
60
61
62
63
import "@matterlabs/hardhat-zksync-deploy";
import "@matterlabs/hardhat-zksync-solc";
import "@matterlabs/hardhat-zksync-verify";
import "@nomiclabs/hardhat-ethers";
export default {
zksolc: {
version: 'latest',
compilerSource: 'binary',
settings: {
metadata: {
bytecodeHash: 'none',
},
libraries: {
'contracts/periphery/libraries/NFTDescriptor.sol': {
NFTDescriptor: "0xfd26c2511B0cfc4a486437aA772D1B79008F530F",
},
}
},
},
defaultNetwork: "zkSyncLocal",
solidity: {
version: '0.7.6',
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
},
networks: {
zkSyncTestnet: {
url: "https://sepolia.era.zksync.dev",
ethNetwork: "sepolia",
zksync: true,
allowUnlimitedContractSize: true
},
zkSyncLocal: {
// Using 127.0.0.1 instead of localhost is necessary for CI builds
url: "http://127.0.0.1:8011",
// ethNetwork isn't necessary, but leaving for posterity
ethNetwork: "localhost",
zksync: true,
},
zkSyncMainnet: {
url: "https://mainnet.era.zksync.io",
ethNetwork: "mainnet",
zksync: true,
allowUnlimitedContractSize: true,
verifyURL: 'https://zksync2-mainnet-explorer.zksync.io/contract_verification'
},
hardhat: {
zksync: true,
allowUnlimitedContractSize: true
},
},
};