-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
79 lines (77 loc) · 1.79 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
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "hardhat-deploy";
import '@openzeppelin/hardhat-upgrades';
import "solidity-docgen";
import * as dotenv from "dotenv";
dotenv.config();
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: "0.8.18",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
{
version: "0.6.0",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
{
version: "0.6.12",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
{
version: "0.5.0",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
]
},
namedAccounts: {
deployer: 0
},
gasReporter: {
enabled: process.env.GAS_REPORTER_STATUS === 'true',
currency: process.env.GAS_REPORTER_CURRENCY,
gasPrice: Number(process.env.GAS_REPORTER_GAS_PRICE),
token: process.env.GAS_REPORTER_TOKEN,
outputFile: process.env.GAS_REPORTER_OUTPUT_REPORT,
coinmarketcap: process.env.COINMARKETCAP_API_KEY,
noColors: process.env.GAS_REPORTERS_COLORS === 'true',
showTimeSpent: process.env.GAS_REPORTERS_TIMESPENT === 'true',
},
networks: {
localhost: {
url: "http://127.0.0.1:8545",
chainId: 31337,
},
mumbai: {
url: process.env.MUMBAI_RPC,
chainId: 80001,
accounts: [`0x${process.env.DEPLOYER_PRIVATE_KEY}`,`0x${process.env.ATTACKER_PRIVATE_KEY}`],
},
},
etherscan: {
apiKey: process.env.POLYGONSCAN_API_KEY,
},
};
export default config;