-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
52 lines (50 loc) · 1.09 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
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "dotenv/config";
const config: HardhatUserConfig = {
defaultNetwork: "hardhat",
networks: {
hardhat: {
chainId: 31337,
allowUnlimitedContractSize: true,
},
localhost: {
chainId: 31337,
allowUnlimitedContractSize: false,
},
mumbai: {
url: process.env.MUMBAI_URL,
chainId: 80001,
accounts: [process.env.ACCOUNT_PV as string],
},
sepolia: {
url: process.env.SEPOLIA_URL,
chainId: 11155111,
accounts: [process.env.ACCOUNT_PV as string],
},
},
solidity: {
version: "0.8.19",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
gasReporter: {
enabled: true,
currency: "USD",
noColors: true,
},
etherscan: {
apiKey: {
sepolia: process.env.ETHERSCAN_API as string,
polygonMumbai: process.env.POLYGON_SCAN_API as string,
},
},
mocha: {
timeout: 200000, // 200 seconds max for running tests
},
};
export default config;