-
Notifications
You must be signed in to change notification settings - Fork 11
/
hardhat.node.config.ts
86 lines (82 loc) · 2.03 KB
/
hardhat.node.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
import 'hardhat-deploy';
import 'hardhat-deploy-ethers';
import { extendEnvironment } from 'hardhat/config';
import { lazyObject } from 'hardhat/plugins';
import { HardhatRuntimeEnvironment, HardhatUserConfig } from 'hardhat/types';
import { Helpers } from './utils/helpers';
import { rpc } from './utils/network';
extendEnvironment((hre: HardhatRuntimeEnvironment) => {
hre.helpers = lazyObject(() => new Helpers(hre));
});
const config: HardhatUserConfig = {
defaultNetwork: 'hardhat',
namedAccounts: {
deployer: 0,
minter: 0,
},
networks: {
localhost: {
environment: 'development',
url: rpc('localhost'),
saveDeployments: false,
},
hardhat: {
environment: 'development',
chainId: 31337,
gas: 15_000_000,
gasMultiplier: 1,
blockGasLimit: 30_000_000,
hardfork: 'shanghai',
accounts: { count: 1000 },
throwOnTransactionFailures: true,
throwOnCallFailures: true,
loggingEnabled: false,
allowUnlimitedContractSize: false,
saveDeployments: false,
mining: {
auto: true,
interval: [3000, 5000],
},
},
},
solidity: {
compilers: [
{
version: '0.8.16',
settings: {
evmVersion: 'london',
optimizer: {
enabled: true,
runs: 200,
details: {
peephole: true,
inliner: true,
jumpdestRemover: true,
orderLiterals: true,
deduplicate: true,
cse: true,
constantOptimizer: true,
yul: true,
yulDetails: {
stackAllocation: true,
},
},
},
viaIR: process.env.COVERAGE_REPORT ? false : true,
},
},
],
overrides: {
'contracts/v1/MultiSigWallet.sol': {
version: '0.4.15',
},
},
},
paths: {
sources: './contracts',
tests: './test',
cache: './cache',
artifacts: './artifacts',
},
};
export default config;