-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
47 lines (44 loc) · 972 Bytes
/
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
import '@nomiclabs/hardhat-waffle';
import '@nomiclabs/hardhat-ethers';
import '@typechain/hardhat';
import { HardhatUserConfig } from 'hardhat/types';
const OPTIMIZER_COMPILER_SETTINGS = {
version: '0.7.6',
settings: {
optimizer: {
enabled: true,
runs: 2_000,
},
metadata: {
bytecodeHash: 'none',
},
},
}
const config: HardhatUserConfig = {
networks: {
hardhat: {
forking: {
url:
'https://eth-mainnet.alchemyapi.io/v2/DMEoI146uTzBp_VdlGhwCVO-5tt7wdWM',
blockNumber: 12670105 , // https://etherscan.io/tx/0x7ff0bb3bd6fd79130244a35783caa089f79ef6e5219a46203d6534835acf24e6
},
},
rinkeby: {
url: '',
accounts: {
mnemonic: '',
},
},
},
solidity: {
compilers: [OPTIMIZER_COMPILER_SETTINGS],
settings: {
outputSelection: {
'*': {
'*': ['storageLayout'],
},
},
},
},
};
export default config;