-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
48 lines (45 loc) · 1.14 KB
/
hardhat.config.ts
File metadata and controls
48 lines (45 loc) · 1.14 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
import { HardhatUserConfig } from "hardhat/config";
import "@openzeppelin/hardhat-upgrades";
import "@nomicfoundation/hardhat-toolbox";
const infuraKey: string = process.env.INFURA_API_KEY as string;
const admin1: string = process.env.ADMIN1 ? process.env.ADMIN1 as string: "";
const admin2: string = process.env.ADMIN2 ? process.env.ADMIN2 as string: "";
const etherscanKey: string = process.env.ETHERSCAN_KEY ? process.env.ETHERSCAN_KEY as string: "";
const config: HardhatUserConfig = {
solidity: {
version: "0.8.28",
settings: {
optimizer: {
enabled: true,
runs: 100,
},
// viaIR: true,
},
},
networks: {
sepolia: {
url: `https://sepolia.infura.io/v3/${infuraKey}`,
accounts: [`0x${admin1}`, `0x${admin2}`],
},
mainnet: {
url: `https://mainnet.infura.io/v3/${infuraKey}`,
accounts: [`0x${admin1}`, `0x${admin2}`],
},
hardhat: {
chainId: 31337,
},
},
etherscan: {
apiKey: {
mainnet: etherscanKey,
sepolia: etherscanKey
},
},
gasReporter: {
enabled: true,
},
sourcify: {
enabled: true,
},
};
export default config;