-
Notifications
You must be signed in to change notification settings - Fork 49
/
hardhat.config.ts
40 lines (37 loc) · 1014 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
36
37
38
39
40
import "dotenv/config";
import "hardhat-gas-reporter";
import "@openzeppelin/hardhat-upgrades";
import "@nomiclabs/hardhat-waffle";
import "@nomiclabs/hardhat-ethers";
import "@typechain/hardhat";
import { HardhatUserConfig } from "hardhat/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: {
version: "0.8.17",
settings: {
optimizer: {
enabled: true,
runs: 10000, // it slightly increases gas for contract deployment but decreases for user interactions
},
},
},
gasReporter: {
enabled: true,
currency: "USD",
},
mocha: {
timeout: 300_000, // 300 seconds
},
networks: {
hardhat: {
blockGasLimit: 30_000_000,
},
goerli: {
url: process.env.GOERLI_URL ?? "https://eth-goerli.public.blastapi.io",
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : undefined,
},
},
};
export default config;