-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.ts
46 lines (43 loc) · 1.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
import "@nomiclabs/hardhat-waffle";
import "@nomiclabs/hardhat-ethers";
import "hardhat-deploy";
import "@typechain/hardhat";
import {HardhatUserConfig} from "hardhat/types";
import "solidity-coverage";
import "hardhat-log-remover";
import "hardhat-gas-reporter";
import "hardhat-contract-sizer";
import dotenv from "dotenv";
dotenv.config();
const junk = "test test test test test test test test test test test junk";
const config: HardhatUserConfig = {
defaultNetwork: "hardhat",
networks: {
localhost: {
saveDeployments: true,
},
hardhat: {
saveDeployments: true,
forking: {
url: process.env.NODE_URL || "https://localhost:8545",
blockNumber: process.env.BLOCK_NUMBER ? parseInt(process.env.BLOCK_NUMBER) : undefined,
},
},
mainnet: {
url: process.env.NODE_URL,
chainId: 1,
gas: 6700000,
accounts: {mnemonic: process.env.MNEMONIC || junk},
},
},
paths: {
deployments: "deployments",
},
namedAccounts: {
deployer: process.env.DEPLOYER || 0,
},
solidity: {
version: "0.8.3",
},
};
export default config;