-
Notifications
You must be signed in to change notification settings - Fork 2
/
hardhat.config.ts
44 lines (40 loc) · 1.3 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
import "@nomiclabs/hardhat-ethers"
import "@nomiclabs/hardhat-waffle"
import "@nomiclabs/hardhat-etherscan";
// import * as dotenv from "dotenv"
import "hardhat-gas-reporter"
import "hardhat-dependency-compiler"
import { HardhatUserConfig } from "hardhat/config"
import "./tasks/deploy"
// dotenv.config()
// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more
const config: HardhatUserConfig = {
solidity: "0.8.4",
dependencyCompiler: {
paths: ["@appliedzkp/semaphore-contracts/base/Verifier.sol"]
},
networks: {
mumbai: {
url: process.env.MUMBAI_URI,
accounts: [process.env.PRIVATE_KEY_HASHCREATOR!, process.env.PRIVATE_KEY_MINTER!],
gasPrice: 20000000000,
gas: 6000000,
},
kovan: {
url: "https://ethereum-kovan-rpc.allthatnode.com/fV1yQSJuIz74RU8lfhew7xJKndczum36",
accounts: [process.env.PRIVATE_KEY_HASHCREATOR!, process.env.PRIVATE_KEY_MINTER!]
}
},
gasReporter: {
enabled: process.env.REPORT_GAS !== undefined,
currency: "USD"
},
etherscan: {
apiKey: {
polygonMumbai: process.env.polygonMumbai,
kovan: "PJK14BKYG3HJ4VQXMNS4J6GSU361V58VNI"
}
}
}
export default config