-
Notifications
You must be signed in to change notification settings - Fork 166
/
Copy pathhardhat.config.cjs
41 lines (37 loc) · 1.02 KB
/
hardhat.config.cjs
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
/* eslint-disable @typescript-eslint/no-var-requires */
require("@nomicfoundation/hardhat-toolbox");
const dotenv = require("dotenv");
const path = require("path");
dotenv.config();
const parentDir = __dirname.includes("build") ? ".." : "";
const TEST_MNEMONIC = "test test test test test test test test test test test junk";
module.exports = {
defaultNetwork: "hardhat",
networks: {
localhost: {
url: process.env.RELAYER_RPC_URL || "",
accounts: {
mnemonic: process.env.MNEMONIC || TEST_MNEMONIC,
path: "m/44'/60'/0'/0",
initialIndex: 0,
count: 20,
},
loggingEnabled: false,
},
hardhat: {
loggingEnabled: false,
},
},
paths: {
sources: path.resolve(
__dirname,
parentDir,
"./node_modules/@maci-protocol/sdk/node_modules/@maci-protocol/contracts/contracts",
),
artifacts: path.resolve(
__dirname,
parentDir,
"./node_modules/@maci-protocol/sdk/node_modules/@maci-protocol/contracts/artifacts",
),
},
};