-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathhardhat.config.ts
executable file
·82 lines (68 loc) · 1.86 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import "@matterlabs/hardhat-zksync-deploy";
import "@matterlabs/hardhat-zksync-verify";
import "@matterlabs/hardhat-zksync-solc";
import "@nomiclabs/hardhat-waffle";
module.exports = {
// hardhat-zksync-solc
// The compiler configuration for zkSync artifacts.
zksolc: {
version: "latest",
compilerSource: "binary",
settings: {
compilerPath: "./zksolc-linux-amd64-musl-v1.3.5",
},
},
// The compiler configuration for normal artifacts.
solidity: {
version: "0.8.15",
settings: {
optimizer: {
enabled: true,
runs: 999999
}
}
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts"
},
// tests
defaultNetwork: 'hardhat',
networks: {
hardhat: {
chainId: 280,
gasMultiplier: 0,
gasPrice: 0,
initialBaseFeePerGas: 0
},
goerli: {
url: "https://rpc.ankr.com/eth_goerli"
},
mainnet: {
url: "https://eth.llamarpc.com"
},
zkTestnet: {
zksync: true,
// URL of the Ethereum Web3 RPC, or the identifier of the network (e.g. `mainnet` or `goerli`)
ethNetwork: "goerli",
// URL of the zkSync network RPC
url: 'https://zksync2-testnet.zksync.dev',
// Verification endpoint for Goerli
verifyURL: 'https://testnet-explorer.zksync.dev/contract_verification'
},
zkMainnet: {
zksync: true,
// URL of the Ethereum Web3 RPC, or the identifier of the network (e.g. `mainnet` or `goerli`)
ethNetwork: "mainnet",
// URL of the zkSync network RPC
url: 'https://zksync2-mainnet.zksync.io',
// Verification endpoint for Goerli
verifyURL: 'https://explorer.zksync.io/contract_verification'
},
},
mocha: {
timeout: 40000
},
};