-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathhardhat.config.ts
58 lines (56 loc) · 1.37 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
import { HardhatUserConfig } from "hardhat/config";
import 'dotenv/config';
import "@matterlabs/hardhat-zksync";
import "@nomicfoundation/hardhat-network-helpers";
import "@nomicfoundation/hardhat-toolbox";
import "./scripts/deploy.task";
import "./scripts/test.task";
import "./scripts/submit.task";
import "./scripts/setUsername.task";
const config: HardhatUserConfig = {
defaultNetwork: 'zknet',
networks: {
zknet: {
url: "https://rpc.poc-chain.l2aas.com",
chainId: 70683,
accounts: [process.env.ZKNET_DEPLOYER_PRIVATE_KEY],
allowUnlimitedContractSize: true,
ethNetwork: "https://testnet.runechain.com/rpc", // The Ethereum Web3 RPC URL.
zksync: true,
} as any,
},
zksolc: {
version: "latest",
settings: {
},
},
solidity: {
compilers: [
{
version: '0.8.20',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
viaIR: true,
},
},
],
},
paths: {
sources: './contracts',
tests: './tests',
cache: './cache',
artifacts: './artifacts',
},
mocha: {
timeout: 2000000,
color: true,
reporter: 'mocha-multi-reporters',
reporterOptions: {
configFile: './mocha-report.json',
},
},
};
export default config;