-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
36 lines (31 loc) · 915 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
import * as dotenv from "dotenv";
import { HardhatUserConfig } from "hardhat/config";
import "@nomiclabs/hardhat-etherscan";
import "@nomiclabs/hardhat-waffle";
import "@typechain/hardhat";
import "@openzeppelin/hardhat-upgrades";
import "hardhat-deploy";
import "hardhat-gas-reporter";
import "solidity-coverage";
dotenv.config();
const fallbackKey = "0000000000000000000000000000000000000000000000000000000000000000";
const config: HardhatUserConfig = {
solidity: "0.8.0",
networks: {
hardhat: {
chainId: 31337,
gas: 12000000,
blockGasLimit: 0x1fffffffffffff,
allowUnlimitedContractSize: true,
},
testnet: {
url: "https://data-seed-prebsc-1-s1.binance.org:8545/",
accounts: [process.env.TESTNET_PRIVATE_KEY ?? fallbackKey],
},
},
gasReporter: {
enabled: process.env.REPORT_GAS !== undefined,
currency: "USD",
},
};
export default config;