-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
47 lines (44 loc) · 1 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
import "@nomicfoundation/hardhat-chai-matchers";
import "@nomiclabs/hardhat-ethers";
import "@nomiclabs/hardhat-etherscan";
import "@typechain/hardhat";
import * as dotenv from "dotenv";
import "hardhat-change-network";
import { HardhatUserConfig } from "hardhat/config";
dotenv.config();
const config: HardhatUserConfig = {
solidity: {
version: "0.8.18",
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
},
},
paths: {
sources: "./contracts",
cache: "./cache",
artifacts: "./artifacts",
},
networks: {
hardhat: {
allowUnlimitedContractSize: true,
blockGasLimit: 30_000_000,
forking: {
url: `${process.env.POLYGON_RPC_URL}`,
enabled: true,
blockNumber: 43491969,
},
},
localhost: {
url: "http://127.0.0.1:8545/",
},
polygon: {
url: `${process.env.POLYGON_RPC_URL}`,
chainId: 137,
accounts: [`0x${process.env.PRIVATE_KEY}`],
},
},
};
export default config;