-
Notifications
You must be signed in to change notification settings - Fork 11
/
hardhat.config.ts
102 lines (99 loc) · 2 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
import 'module-alias/register';
import 'hardhat-deploy';
import "@nomicfoundation/hardhat-chai-matchers";
import "@nomiclabs/hardhat-ethers";
import 'hardhat-dependency-compiler';
import { HardhatUserConfig } from 'hardhat/config';
const compilers = {
compilers: [
{
version: "0.5.16",
settings: {
optimizer: {
enabled: true,
runs: 200
},
outputSelection: {
"*": {
"*": ["storageLayout"]
}
}
}
},
{
version: '0.6.6',
settings: {
optimizer: {
enabled: true,
},
outputSelection: {
'*': {
'*': ['storageLayout'],
},
},
},
},
{
version: "0.8.25",
settings: {
optimizer: {
enabled: true,
details: {
yul: !process.env.CI,
},
},
evmVersion: "paris",
outputSelection: {
"*": {
"*": ["storageLayout"],
},
},
},
},
],
}
const config: HardhatUserConfig = {
defaultNetwork: 'hardhat',
solidity: compilers,
networks: {
hardhat: {
chainId: 56,
allowUnlimitedContractSize: true,
mining: {
auto: true,
mempool: {
order: "fifo"
}
}
},
},
paths: {
sources: `${__dirname}/contracts`,
artifacts: `${__dirname}/artifacts`,
},
mocha: {
timeout: 100000000
},
// Hardhat deploy
namedAccounts: {
deployer: 0, // here this will by default take the first account as deployer
supplier1: 1,
supplier2: 2,
supplier3: 3,
borrower1: 4,
borrower2: 5,
borrower3: 6,
liquidator1: 7,
liquidator2: 8,
liquidator3: 9,
acc1: 10,
acc2: 11
},
dependencyCompiler: {
paths: [
"hardhat-deploy/solc_0.8/proxy/OptimizedTransparentUpgradeableProxy.sol",
"hardhat-deploy/solc_0.8/openzeppelin/proxy/transparent/ProxyAdmin.sol",
],
},
};
export default config;