-
Notifications
You must be signed in to change notification settings - Fork 2
/
hardhat.config.ts
42 lines (39 loc) · 1020 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
41
42
import { config as dotenvConfig } from "dotenv";
import { resolve } from "path";
dotenvConfig({ path: resolve(__dirname, "./.env") });
import "@nomiclabs/hardhat-waffle";
import "@typechain/hardhat";
import "@nomiclabs/hardhat-ethers";
import "@nomiclabs/hardhat-waffle";
import "hardhat-gas-reporter";
import "hardhat-contract-sizer";
import "@openzeppelin/hardhat-upgrades";
import { HardhatUserConfig } from "hardhat/types";
import "hardhat-tracer";
const config: HardhatUserConfig = {
solidity: {
version: "0.8.15",
settings: {
optimizer: {
enabled: true,
runs: 1337,
},
},
},
networks: {
mainnet: {
url: process.env[`RPC_URL_MAINNET`],
},
},
typechain: {
target: "ethers-v5",
externalArtifacts: ["node_modules/@manifoldxyz/royalty-registry-solidity/build/contracts/*.json"],
},
gasReporter: {
excludeContracts: ["mocks/", "FoundationTreasury.sol", "ERC721.sol"],
},
mocha: {
timeout: 1200000,
},
};
export default config;