-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
59 lines (56 loc) · 1.38 KB
/
hardhat.config.ts
File metadata and controls
59 lines (56 loc) · 1.38 KB
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
import '@nomicfoundation/hardhat-ethers';
import 'hardhat-deploy';
import 'hardhat-deploy-ethers';
import '@openzeppelin/hardhat-upgrades';
import '@typechain/hardhat';
import 'hardhat-abi-exporter'
import 'hardhat-contract-sizer'
import 'hardhat-gas-reporter';
import 'solidity-coverage';
import "@nomicfoundation/hardhat-verify";
import "@nomicfoundation/hardhat-toolbox";
import "@nomicfoundation/hardhat-foundry";
const DEFAULT_COMPILER_SETTINGS = {
version: "0.8.20",
settings: {
optimizer: {
enabled: true,
runs: 500,
},
metadata: {
bytecodeHash: "none",
},
},
};
const config = {
solidity: {
compilers: [DEFAULT_COMPILER_SETTINGS],
},
namedAccounts: {
deployer: {
default: 0
}
},
networks: {
sepolia: {
url: process.env.RPC_URL as string,
accounts: [process.env.PRIVATE_KEY as string],
},
mainnet: {
url: process.env.RPC_URL as string,
chainId: 1,
accounts: [process.env.PRIVATE_KEY as string]
},
},
gasReporter: {
enabled: process.env.REPORT_GAS !== undefined,
currency: "USD",
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY as string,
},
abiExporter: {
runOnCompile: true,
},
};
export default config;