forked from ava-labs/EncryptedERC
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
43 lines (39 loc) · 921 Bytes
/
hardhat.config.ts
File metadata and controls
43 lines (39 loc) · 921 Bytes
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
import type { HardhatUserConfig } from "hardhat/config";
import "@typechain/hardhat";
import "solidity-coverage";
import "hardhat-gas-reporter";
import "@nomicfoundation/hardhat-chai-matchers";
import "@nomicfoundation/hardhat-ethers";
import dotenv from "dotenv";
dotenv.config();
const RPC_URL = process.env.RPC_URL || "https://api.avax.network/ext/bc/C/rpc";
const config: HardhatUserConfig = {
solidity: {
version: "0.8.27",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
networks: {
hardhat: {
forking: {
url: RPC_URL,
blockNumber: 59121339,
enabled: !!process.env.FORKING,
},
},
},
gasReporter: {
enabled: !!process.env.REPORT_GAS,
currency: "USD",
coinmarketcap: process.env.COINMARKETCAP_API_KEY,
excludeContracts: ["contracts/mocks/"],
outputFile: "gas-report.txt",
L1: "avalanche",
showMethodSig: true,
},
};
export default config;