forked from joshstevens19/rentable-protocol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.js
More file actions
32 lines (28 loc) · 736 Bytes
/
hardhat.config.js
File metadata and controls
32 lines (28 loc) · 736 Bytes
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
require('dotenv').config()
const {subtask} = require("hardhat/config");
const {TASK_COMPILE_SOLIDITY_GET_SOURCE_PATHS} = require("hardhat/builtin-tasks/task-names")
subtask(TASK_COMPILE_SOLIDITY_GET_SOURCE_PATHS)
.setAction(async (_, __, runSuper) => {
const paths = await runSuper();
return paths.filter(p => !p.endsWith(".t.sol") && !p.includes('mocks'));
});
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: "0.8.7",
settings: {
optimizer: {
enabled: true,
runs: 1000
}
},
networks: {
hardhat: {
forking: {
url: `https://mainnet.infura.io/v3/${process.env.WEB3_INFURA_PROJECT_ID}`
},
initialBaseFeePerGas: 0
}
}
};