-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhardhat.config.ts
48 lines (46 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
45
46
47
48
import { HardhatUserConfig } from "hardhat/config"
import "hardhat-gas-reporter"
import "@typechain/hardhat"
import "solidity-coverage"
import "@nomicfoundation/hardhat-network-helpers"
import "@nomicfoundation/hardhat-chai-matchers"
const config: HardhatUserConfig = {
defaultNetwork: "hardhat",
solidity: {
compilers: [
{
version: "0.8.27",
settings: {
evmVersion: "istanbul",
optimizer: {
enabled: true,
runs: 200,
},
viaIR: true,
},
},
],
},
networks: {
hardhat: {
blockGasLimit: 130_000_000,
},
},
gasReporter: {
enabled: true,
showMethodSig: true,
currency: "USD",
token: "BNB",
gasPriceApi:
"https://api.bscscan.com/api?module=proxy&action=eth_gasPrice&apikey=" + process.env.BSCSCAN_API_KEY,
coinmarketcap: process.env.CMC_API_KEY || "",
noColors: true,
reportFormat: "markdown",
outputFile: "gasReport.md",
forceTerminalOutput: true,
L1: "binance",
forceTerminalOutputFormat: "terminal",
showTimeSpent: true,
},
}
export default config