-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
123 lines (120 loc) · 2.54 KB
/
hardhat.config.ts
File metadata and controls
123 lines (120 loc) · 2.54 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
/** @type import('hardhat/config').HardhatUserConfig */
import { config as dotEnvConfig } from "dotenv";
dotEnvConfig();
import "@openzeppelin/hardhat-upgrades";
import "@nomicfoundation/hardhat-toolbox";
import "@nomiclabs/hardhat-waffle";
import "@nomiclabs/hardhat-ethers";
import "@typechain/hardhat";
import "hardhat-deploy";
import "solidity-coverage";
module.exports = {
defaultNetwork: "hardhat",
networks: {
hardhat: {
chainId: 31337,
gas: 12000000,
blockGasLimit: 0x1fffffffffffff,
allowUnlimitedContractSize: true,
timeout: 1800000,
hardfork: "berlin", // use berlin in test to avoid issues with gas price 0
accounts: {
mnemonic: "test test test test test test test test test test test junk",
accountsBalance: "100000000000000000000000000000000000",
},
},
ethereum: {
url: process.env.ETH_MAINNET_RPC,
accounts: [process.env.ETH_MAINNET_PRIVATE_KEY],
},
eth_mainnetfork: {
url: process.env.FORK_RPC,
accounts: [process.env.FUNDED_PRIVATE_KEY],
},
},
namedAccounts: {
deployer: {
default: 0,
},
},
solidity: {
compilers: [
{
version: "0.5.0",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
{
version: "0.6.0",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
{
version: "0.6.2",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
{
version: "0.6.6",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
{
version: "0.6.8",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
{
version: "0.7.0",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
{
version: "0.8.13",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
}
]
},
paths: {
sources: "./solidity/contracts/",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts",
},
typechain: {
outDir: "./typechain",
target: process.env.TYPECHAIN_TARGET || "ethers-v5",
},
mocha: {
timeout: 100000,
},
}