-
Notifications
You must be signed in to change notification settings - Fork 14
/
hardhat.config.ts
59 lines (55 loc) · 1.82 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 { HardhatUserConfig } from "hardhat/config";
import "@nomiclabs/hardhat-ethers";
import "@typechain/hardhat";
import "hardhat-dependency-compiler";
import "hardhat-deploy";
import { buildForkConfig, loadTasks } from "./config/hardhat-config";
import { SKIP_LOAD } from "./config/env";
import { TASK_FOLDERS } from "./config/constants";
// Prevent to load tasks before compilation and typechain
if (!SKIP_LOAD) {
loadTasks(TASK_FOLDERS);
}
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: "0.8.10",
},
{
version: "0.6.12",
},
],
},
networks: {
localhost: {
url: "http://localhost:8545/",
accounts: {
mnemonic: "test test test test test test test test test test test junk",
count: 20,
},
saveDeployments: false,
},
hardhat: {
forking: buildForkConfig(),
},
},
dependencyCompiler: {
paths: [
"@aave/protocol-v2/contracts/interfaces/ILendingPool.sol",
"@aave/protocol-v2/contracts/interfaces/ILendingPoolConfigurator.sol",
"@aave/protocol-v2/contracts/interfaces/IPriceOracle.sol",
"@aave/protocol-v2/contracts/misc/AaveOracle.sol",
"@aave/protocol-v2/contracts/interfaces/IPermissionManager.sol",
"@aave/protocol-v2/contracts/misc/AaveProtocolDataProvider.sol",
"@aave/protocol-v2/contracts/mocks/oracle/CLAggregators/MockAggregator.sol",
"@aave/protocol-v2/contracts/misc/UiPoolDataProvider.sol",
"@aave/periphery-v3/contracts/misc/UiPoolDataProviderV3.sol",
"@aave/core-v3/contracts/misc/AaveProtocolDataProvider.sol",
"@aave/core-v3/contracts/interfaces/IAaveOracle.sol",
"@aave/core-v3/contracts/interfaces/IPoolAddressesProvider.sol",
"@aave/core-v3/contracts/interfaces/IACLManager.sol",
],
},
};
export default config;