-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhardhat.config.ts
42 lines (38 loc) · 1.06 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
import * as dotenv from "dotenv";
import { HardhatUserConfig } from "hardhat/config";
import "@typechain/hardhat";
import "solidity-coverage";
import "@openzeppelin/hardhat-upgrades";
import "@nomiclabs/hardhat-ethers";
import "@nomicfoundation/hardhat-chai-matchers";
import "hardhat-contract-sizer";
dotenv.config();
const config: HardhatUserConfig = {
solidity: {
version: "0.8.18",
settings: {
optimizer: {
enabled: true,
/// Note: A “runs” parameter of “1” will produce short but expensive code.
/// In contrast, a larger “runs” parameter will produce longer but more gas efficient code.
/// The maximum value of the parameter is 2**32-1. So it could change as required.
runs: 0,
},
},
},
networks: {
remoteRelay: {
url: "https://testnet.hashio.io/api",
},
hardhat: {
allowUnlimitedContractSize: true,
},
},
contractSizer: {
alphaSort: true,
disambiguatePaths: false,
runOnCompile: false,
strict: true,
},
};
export default config;