-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.ts
61 lines (59 loc) · 1.8 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
60
61
import { HardhatUserConfig } from "hardhat/config";
import "hardhat-docgen";
import "hardhat-dependency-compiler";
import "hardhat-tracer";
import '@typechain/hardhat'
import '@nomiclabs/hardhat-waffle'
const config: HardhatUserConfig = {
docgen: {
path: './docs',
clear: true,
runOnCompile: true,
},
solidity: {
compilers: [
{
version: "0.4.25",
},
{
version: "0.5.16",
},
{
version: "0.6.6",
},
{
version: "0.8.9"
}
],
},
typechain: {
externalArtifacts: [
"./node_modules/@uniswap/v2-core/build/!(Combined-Json)*.json",
"./node_modules/@uniswap/v2-periphery/build/!(Combined-Json|UniswapV1Exchange|UniswapV1Factory)*.json",
"./node_modules/@openzeppelin/contracts/build/contracts/ERC20.json",
"./node_modules/@openzeppelin/contracts/build/contracts/ERC20PresetMinterPauser.json",
],
outDir: "./typechain"
},
networks: {
hardhat: {
throwOnTransactionFailures: true,
throwOnCallFailures: true,
forking: {
url: "https://eth-mainnet.alchemyapi.io/v2/J-PWW6WjXYKbNK4VKde9PKP9Hss8pWBw",
}
}
},
dependencyCompiler: {
paths: [
"@uniswap/v2-core/contracts/UniswapV2Factory.sol",
"@uniswap/v2-core/contracts/UniswapV2Pair.sol",
"@uniswap/v2-periphery/contracts/UniswapV2Router02.sol",
"@openzeppelin/contracts/token/ERC20/ERC20.sol",
"@openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol",
],
path: "./deps",
keep: true
}
};
export default config;