-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.ts
104 lines (98 loc) · 2.21 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
103
104
// eslint-disable-next-line import/order
import * as dotenv from 'dotenv'
import '@nomiclabs/hardhat-waffle'
import '@typechain/hardhat'
import '@nomiclabs/hardhat-ethers'
import 'hardhat-gas-reporter'
import 'hardhat-contract-sizer'
import 'hardhat-abi-exporter'
import './task/docs'
dotenv.config()
import { HardhatConfig } from 'hardhat/types'
import { NETWORK } from './utils/constant'
const config: HardhatConfig = {
solidity: {
compilers: [
{
version: '0.8.23',
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
},
},
],
overrides: {},
},
// @ts-ignore
typechain: {
outDir: 'typechain',
target: 'ethers-v5',
alwaysGenerateOverloads: false,
discriminateTypes: false,
tsNocheck: false,
},
defaultNetwork: 'hardhat',
networks: {
[NETWORK.HARDHAT]: {
chainId: 31337,
gasPrice: 250000000000,
gasMultiplier: 1,
hardfork: 'london',
// @ts-ignore
// forking: {
// enabled: true,
// url: 'ARCHIVE_NODE_URL',
// },
mining: {
auto: true,
interval: 0,
mempool: {
order: 'fifo',
},
},
accounts: {
mnemonic: 'loop curious foster tank depart vintage regret net frozen version expire vacant there zebra world',
initialIndex: 0,
count: 10,
path: "m/44'/60'/0'/0",
accountsBalance: '10000000000000000000000000000',
passphrase: '',
},
blockGasLimit: 200000000,
// @ts-ignore
minGasPrice: undefined,
throwOnTransactionFailures: true,
throwOnCallFailures: true,
allowUnlimitedContractSize: true,
initialDate: new Date().toISOString(),
loggingEnabled: false,
// @ts-ignore
chains: undefined,
},
},
abiExporter: [
// @ts-ignore
{
path: './abi',
runOnCompile: false,
clear: true,
flat: true,
only: [],
except: [],
spacing: 2,
pretty: false,
filter: () => true,
},
],
mocha: {
timeout: 40000000,
require: ['hardhat/register'],
},
// @ts-ignore
contractSizer: {
runOnCompile: true,
},
}
export default config