-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
49 lines (46 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
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 dotenv from "dotenv";
dotenv.config();
const gasPrice = 55000000000;
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,
gasPrice,
},
ropsten: {
url: process.env.NODE_URL_ROPSTEN,
chainId: 3,
}
},
paths: {
deployments: "deployments",
},
namedAccounts: {
deployer: process.env.DEPLOYER || 0
},
solidity: {
compilers: [{version: "0.8.3", settings: {}}],
},
};
export default config;