-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
50 lines (45 loc) · 1.02 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
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "@nomiclabs/hardhat-etherscan";
import "hardhat-gas-reporter";
import "hardhat-storage-layout";
import * as dotenv from "dotenv";
dotenv.config();
const { POS_RPC, POW_RPC, DEPLOYER_PRIVATE_KEY, ETHERSCAN_API_KEY_GOERLI, ETHERSCAN_API_KEY_POLYGON_MUMBAI } = process.env;
const config: HardhatUserConfig = {
solidity: {
version: "0.8.9",
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
outputSelection: {
"*": {
"*": ["storageLayout"],
},
},
},
},
networks: {
hardhat: {},
pow: {
url: POW_RPC!,
accounts: [DEPLOYER_PRIVATE_KEY!],
},
pos: {
url: POS_RPC,
accounts: [DEPLOYER_PRIVATE_KEY!],
},
},
etherscan: {
apiKey: {
goerli: ETHERSCAN_API_KEY_GOERLI!,
polygonMumbai: ETHERSCAN_API_KEY_POLYGON_MUMBAI!
}
},
gasReporter: {
enabled: true,
},
};
export default config;