-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.ts
73 lines (70 loc) · 1.27 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
import '@nomicfoundation/hardhat-chai-matchers';
import '@nomiclabs/hardhat-ethers';
import '@typechain/hardhat';
import 'hardhat-deploy';
import 'hardhat-deploy-ethers';
import 'hardhat-docgen';
import 'hardhat-gas-reporter';
import { HardhatUserConfig } from 'hardhat/types';
import { ETHERSCAN_API_KEY, GOERLI_PRIVATE_KEY, GOERLI_URL, REPORT_GAS } from './env';
const config: HardhatUserConfig = {
solidity: {
version: '0.8.9',
settings: {
outputSelection: {
'*': {
'*': ['storageLayout']
}
}
}
},
networks: {
hardhat: {
chainId: 1337,
initialBaseFeePerGas: 0
},
localhost: {
url: 'http://127.0.0.1:8545',
chainId: 1337,
initialBaseFeePerGas: 0
},
goerli: {
url: GOERLI_URL,
accounts: [GOERLI_PRIVATE_KEY],
}
},
namedAccounts: {
deployer: {
default: 0,
localhost: 0
},
Alice: {
default: 1
},
Bob: {
default: 2
},
Charlie: {
default: 3
},
Darth: {
default: 4
},
Eve: {
default: 5
}
},
docgen: {
path: '.docs',
clear: true
},
gasReporter: {
enabled: REPORT_GAS
},
verify: {
etherscan: {
apiKey: ETHERSCAN_API_KEY
}
}
};
export default config;