-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhardhat.config.ts
58 lines (56 loc) · 1.42 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
import "@nomiclabs/hardhat-waffle"
import "@typechain/hardhat"
import "hardhat-abi-exporter"
import "hardhat-gas-reporter"
import "solidity-coverage"
import "tsconfig-paths/register"
const hardhatConfig = {
networks: {
hardhat: {
allowUnlimitedContractSize: true,
},
localhost: { url: "http://localhost:7545" },
fork: {
url: "http://localhost:7545",
},
// export the NODE_URL environment variable to use remote nodes like Alchemy or Infura. eg
// export NODE_URL=https://eth-mainnet.alchemyapi.io/v2/yourApiKey
env: { url: process.env.NODE_URL || "" },
ropsten: {
url: process.env.NODE_URL || "",
gasPrice: 30000000000,
gasLimit: 8000000,
},
mainnet: {
url: process.env.NODE_URL || "",
},
},
abiExporter: {
path: "./abis",
clear: true,
flat: true,
only: ["MStableYieldSource"],
},
paths: { artifacts: "./build" },
gasReporter: {
currency: "USD",
gasPrice: 30,
},
mocha: {
timeout: 30000,
},
solidity: {
version: "0.8.2",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
typechain: {
outDir: "types/pooltogether",
target: "ethers-v5",
},
}
export default hardhatConfig