-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
54 lines (50 loc) · 1.36 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
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
// https://github.com/projectsophon/hardhat-circom
import "hardhat-circom";
// environment variables
require("dotenv").config();
// 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 = {
networks: {
mumbai: {
url: process.env.MUMBAI_RPC_URL,
accounts: [`${process.env.PRIVATE_KEY}`],
},
goerli: {
url: process.env.GOERLI_RPC_URL,
accounts: [`${process.env.PRIVATE_KEY}`],
},
sepolia: {
url: process.env.SEPOLIA_RPC_URL,
accounts: [`${process.env.PRIVATE_KEY}`],
},
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
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;