-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
95 lines (90 loc) · 2.97 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
import { HardhatUserConfig } from "hardhat/config";
import "@nomiclabs/hardhat-ethers";
import "@nomicfoundation/hardhat-toolbox";
import "@nomicfoundation/hardhat-chai-matchers";
import "solidity-coverage";
import "hardhat-gas-reporter";
import "hardhat-contract-sizer";
import dotenv from "dotenv";
dotenv.config();
const config: HardhatUserConfig = {
solidity: {
version: "0.8.22",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
networks: {
hardhat: {},
// ethereum: {
// url: `https://mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
// accounts: [process.env.DEPLOYER_PRIVATE_KEY as string],
// },
// goerli: {
// url: `https://goerli.infura.io/v3/${process.env.INFURA_API_KEY}`,
// accounts: [process.env.DEPLOYER_PRIVATE_KEY as string],
// },
// sepolia: {
// url: `https://sepolia.infura.io/v3/${process.env.INFURA_API_KEY}`,
// accounts: [process.env.DEPLOYER_PRIVATE_KEY as string],
// },
// polygon: {
// url: `https://polygon-mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
// accounts: [process.env.DEPLOYER_PRIVATE_KEY as string],
// },
// mumbai: {
// url: `https://polygon-mumbai.infura.io/v3/${process.env.INFURA_API_KEY}`,
// accounts: [process.env.DEPLOYER_PRIVATE_KEY as string],
// },
// arbitrum: {
// url: `https://arbitrum-mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
// accounts: [process.env.DEPLOYER_PRIVATE_KEY as string],
// },
// arbitrumGoerli: {
// url: `https://arbitrum-goerli.infura.io/v3/${process.env.INFURA_API_KEY}`,
// accounts: [process.env.DEPLOYER_PRIVATE_KEY as string],
// },
// bsc: {
// url: `https://bsc-dataseed.bnbchain.org`,
// accounts: [process.env.DEPLOYER_PRIVATE_KEY as string],
// },
// bscTestnet: {
// url: `https://data-seed-prebsc-1-s1.bnbchain.org:8545`,
// accounts: [process.env.DEPLOYER_PRIVATE_KEY as string],
// },
},
etherscan: {
apiKey: {
mainnet: process.env.ETHERSCAN_API_KEY as string,
goerli: process.env.ETHERSCAN_API_KEY as string,
sepolia: process.env.ETHERSCAN_API_KEY as string,
polygon: process.env.POLYGONSCAN_API_KEY as string,
polygonMumbai: process.env.POLYGONSCAN_API_KEY as string,
arbitrumOne: process.env.ARBISCAN_API_KEY as string,
arbitrumGoerli: process.env.ARBISCAN_API_KEY as string,
bsc: process.env.BSCSCAN_API_KEY as string,
bscTestnet: process.env.BSCSCAN_API_KEY as string,
},
},
gasReporter: {
enabled: true,
currency: "USD",
coinmarketcap: process.env.COINMARKETCAP_API_KEY as string,
token: "ETH",
// gasPrice: 30,
gasPriceApi:
"https://api.etherscan.io/api?module=proxy&action=eth_gasPrice",
},
contractSizer: {
alphaSort: false,
runOnCompile: true,
disambiguatePaths: false,
strict: true,
only: [],
except: [],
},
};
export default config;