-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
87 lines (83 loc) · 2.43 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
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
import '@typechain/hardhat'
import '@nomiclabs/hardhat-ethers'
import '@nomicfoundation/hardhat-chai-matchers'
import '@nomicfoundation/hardhat-toolbox'
import 'hardhat-dependency-compiler'
import { HardhatUserConfig } from 'hardhat/config'
import dotenv from 'dotenv'
dotenv.config()
const { MAINNET_RPC_URL, MNEMONIC, GOERLI_RPC_URL } = process.env
const config: HardhatUserConfig = {
networks: {
hardhat: {
forking: {
url: MAINNET_RPC_URL || '',
blockNumber: 15850930,
},
},
mainnet: {
chainId: 1,
url: MAINNET_RPC_URL,
accounts: {
mnemonic: MNEMONIC,
},
},
goerli: {
chainId: 5,
url: GOERLI_RPC_URL,
accounts: {
mnemonic: MNEMONIC,
},
},
},
solidity: {
compilers: [
{
version: '0.8.17',
settings: {
optimizer: { enabled: true, runs: 200 },
},
},
{
version: '0.8.9',
settings: {
optimizer: { enabled: true, runs: 200 },
},
},
{
version: '0.6.12',
settings: { optimizer: { enabled: false } },
},
],
},
dependencyCompiler: {
keep: true, // Needed to be true for slither to work
paths: [
'reserve/contracts/plugins/assets/Asset.sol',
'reserve/contracts/plugins/trading/GnosisTrade.sol',
'reserve/contracts/plugins/mocks/ERC20Mock.sol',
'reserve/contracts/plugins/mocks/GnosisMock.sol',
'reserve/contracts/plugins/mocks/EasyAuction.sol',
'reserve/contracts/plugins/mocks/ChainlinkMock.sol',
'reserve/contracts/plugins/mocks/InvalidChainlinkMock.sol',
'reserve/contracts/p1/Main.sol',
'reserve/contracts/p1/mixins/RewardableLib.sol',
'reserve/contracts/p1/mixins/RecollateralizationLib.sol',
'reserve/contracts/p1/AssetRegistry.sol',
'reserve/contracts/p1/BackingManager.sol',
'reserve/contracts/p1/BasketHandler.sol',
'reserve/contracts/p1/Broker.sol',
'reserve/contracts/p1/Deployer.sol',
'reserve/contracts/p1/Distributor.sol',
'reserve/contracts/p1/Furnace.sol',
'reserve/contracts/p1/RevenueTrader.sol',
'reserve/contracts/p1/RToken.sol',
'reserve/contracts/p1/StRSR.sol',
'reserve/contracts/p1/StRSRVotes.sol',
'reserve/contracts/libraries/Permit.sol',
'reserve/contracts/facade/FacadeRead.sol',
'reserve/contracts/facade/FacadeTest.sol',
],
},
}
export default config