This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
95 lines (86 loc) · 3.78 KB
/
hardhat.config.js
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
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-etherscan");
require('hardhat-dependency-compiler');
require('dotenv').config();
const fs = require("fs");
// Load tasks
const files = fs.readdirSync('./tasks');
for (let file of files) {
if (!file.endsWith('.js')) continue;
require(`./tasks/${file}`);
}
// Config
let accounts = process.env.PRV_KEY ? { accounts: [process.env.PRV_KEY] } : {};
module.exports = {
networks: {
hardhat: {
hardfork: 'london',
},
mainnet: {
url: process.env.MAINNET_JSON_RPC_URL || "",
...accounts,
},
goerli: {
url: process.env.GOERLI_JSON_RPC_URL || "",
...accounts,
},
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY || "",
},
solidity: {
compilers: [
{
version: "0.8.10",
settings: {
optimizer: {
enabled: true,
runs: 1000000,
},
},
},
],
},
dependencyCompiler: {
paths: [
'euler-contracts/contracts/Euler.sol',
'euler-contracts/contracts/modules/DToken.sol',
'euler-contracts/contracts/modules/EToken.sol',
'euler-contracts/contracts/modules/Exec.sol',
'euler-contracts/contracts/modules/Governance.sol',
'euler-contracts/contracts/modules/Installer.sol',
'euler-contracts/contracts/modules/Liquidation.sol',
'euler-contracts/contracts/modules/Markets.sol',
'euler-contracts/contracts/modules/RiskManager.sol',
'euler-contracts/contracts/modules/Swap.sol',
'euler-contracts/contracts/modules/interest-rate-models/IRMDefault.sol',
'euler-contracts/contracts/modules/interest-rate-models/IRMClassMajor.sol',
'euler-contracts/contracts/modules/interest-rate-models/IRMClassMidCap.sol',
'euler-contracts/contracts/modules/interest-rate-models/IRMClassStable.sol',
'euler-contracts/contracts/modules/interest-rate-models/IRMClassMega.sol',
'euler-contracts/contracts/modules/interest-rate-models/IRMClassLido.sol',
'euler-contracts/contracts/modules/interest-rate-models/test/IRMZero.sol',
'euler-contracts/contracts/modules/interest-rate-models/test/IRMFixed.sol',
'euler-contracts/contracts/modules/interest-rate-models/test/IRMLinear.sol',
'euler-contracts/contracts/adaptors/FlashLoan.sol',
'euler-contracts/contracts/test/FlashLoanAdaptorTest2.sol',
'euler-contracts/contracts/test/FlashLoanAdaptorTest.sol',
'euler-contracts/contracts/test/FlashLoanNativeTest.sol',
'euler-contracts/contracts/test/InvariantChecker.sol',
'euler-contracts/contracts/test/JunkETokenUpgrade.sol',
'euler-contracts/contracts/test/JunkMarketsUpgrade.sol',
'euler-contracts/contracts/test/MockUniswapV3Factory.sol',
'euler-contracts/contracts/test/MockUniswapV3Pool.sol',
'euler-contracts/contracts/test/MockEACAggregatorProxy.sol',
'euler-contracts/contracts/test/MockStETH.sol',
'euler-contracts/contracts/test/SimpleUniswapPeriphery.sol',
'euler-contracts/contracts/test/TestERC20.sol',
'euler-contracts/contracts/test/TestModule.sol',
'euler-contracts/contracts/views/EulerGeneralView.sol',
'euler-contracts/contracts/mining/EulDistributor.sol',
'euler-contracts/contracts/mining/EulStakes.sol',
'euler-contracts/contracts/oracles/chainlinkBasedOracle.sol',
'euler-contracts/contracts/oracles/WSTETHOracle.sol',
],
}
};