-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
35 lines (31 loc) · 927 Bytes
/
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
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
// https://github.com/projectsophon/hardhat-circom
import "hardhat-circom";
// circuits
import circuits = require('./circuits.config.json')
// set env var to the root of the project
process.env.BASE_PATH = __dirname;
// tasks
import "./tasks/newcircuit.ts"
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: "0.8.17",
},
{
version: "0.6.11",
}
]
},
circom: {
// (optional) Base path for input files, defaults to `./circuits/`
inputBasePath: "./circuits",
// (required) The final ptau file, relative to inputBasePath, from a Phase 1 ceremony
ptau: "powersOfTau28_hez_final_12.ptau",
// (required) Each object in this array refers to a separate circuit
circuits: JSON.parse(JSON.stringify(circuits))
},
};
export default config;