-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
59 lines (55 loc) · 1.44 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
49
50
51
52
53
54
55
56
57
58
59
import "@nomicfoundation/hardhat-toolbox";
import 'hardhat-contract-sizer';
import 'hardhat-docgen';
import 'hardhat-gas-reporter';
import 'hardhat-spdx-license-identifier';
import "hardhat-tracer";
import 'hardhat-watcher';
import { HardhatUserConfig, task } from "hardhat/config";
import 'solidity-coverage';
import "tsconfig-paths/register";
import { networkConfig } from "./config";
import { docgen } from "./config/docs";
import { etherscan } from "./config/etherscan";
import { gasReporter } from "./config/gas";
import { spdxLicenseIdentifier } from "./config/license";
import { tracerConfig } from "./config/tracer";
import { getVersion } from "./config/version";
const config: HardhatUserConfig = {
solidity: {
version: '0.8.17',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
typechain: {
outDir: 'typechain-types',
target: 'ethers-v6',
},
contractSizer: {
alphaSort: true,
disambiguatePaths: false,
runOnCompile: true,
strict: true,
only: [], //':ERC20$'
},
paths: {
artifacts: './artifacts',
cache: './cache',
sources: './contracts',
tests: './test',
},
networks:networkConfig,
gasReporter: gasReporter,
tracer:tracerConfig,
spdxLicenseIdentifier: spdxLicenseIdentifier,
docgen: docgen,
etherscan: etherscan
};
task("version", "Prints the latest repo version'", async () => {
console.log(await getVersion());
});
export default config;