-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
53 lines (48 loc) · 1.04 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
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "hardhat-tracer";
import "hardhat-abi-exporter";
import dotenv from "dotenv";
dotenv.config();
import "./scripts/addToken";
import "./scripts/deployMockToken";
import "./scripts/depositToken";
const MNEMONIC_PATH = "m/44'/60'/0'/0";
const MNEMONIC = process.env.MNEMONIC ?? "";
const config: HardhatUserConfig = {
solidity: {
version: "0.8.9",
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
},
},
typechain: {
outDir: "./types",
},
mocha: {
timeout: 100000, //Required for long zk proving times
},
networks: {
sepolia: {
url: "https://rpc.sepolia.org/",
chainId: 11155111,
accounts: {
mnemonic: MNEMONIC,
path: MNEMONIC_PATH,
initialIndex: 1,
},
},
},
abiExporter: {
path: "./abi",
runOnCompile: true,
clear: true,
flat: true,
pretty: false,
only: ["MockERC20", "zkERC20"],
},
};
export default config;