forked from syncswap/core-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
executable file
·92 lines (81 loc) · 2.31 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
83
84
85
86
87
88
89
90
91
92
import "@matterlabs/hardhat-zksync-deploy";
import "@matterlabs/hardhat-zksync-verify";
import "@matterlabs/hardhat-zksync-solc";
import "@nomiclabs/hardhat-waffle";
import "@nomiclabs/hardhat-solhint";
import "hardhat-gas-reporter";
require('dotenv').config()
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 default artifacts.
solidity: {
version: "0.8.15",
settings: {
optimizer: {
enabled: true,
runs: 200,
details: {
yul: false
}
},
}
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts"
},
defaultNetwork: 'hardhat',
networks: {
hardhat: {
chainId: 280,
gasMultiplier: 0,
initialBaseFeePerGas: 0,
},
goerli: {
url: "https://endpoints.omniatech.io/v1/eth/goerli/public"
},
mainnet: {
url: "https://eth.llamarpc.com"
},
zkSyncTestnet: {
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'
},
zkSyncMainnet: {
zksync: true,
ethNetwork: "mainnet",
url: 'https://zksync2-mainnet.zksync.io',
verifyURL: 'https://zksync2-mainnet-explorer.zksync.io/contract_verification'
},
baseGoerli: {
url: "https://goerli.base.org",
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
scrollTestnet: {
url: "https://alpha-rpc.scroll.io/l2",
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
polygonTestnet: {
url: "https://rpc.public.zkevm-test.net",
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
}
},
mocha: {
timeout: 40000
},
};