forked from FloatProtocol/float-staking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
80 lines (75 loc) Β· 1.71 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import "dotenv/config";
import { HardhatUserConfig } from "hardhat/types";
import "@nomiclabs/hardhat-waffle";
import "@nomiclabs/hardhat-etherscan";
import "hardhat-deploy-ethers";
import "hardhat-deploy";
import "hardhat-gas-reporter";
import "hardhat-typechain";
import "solidity-coverage";
import "@openzeppelin/hardhat-upgrades";
import { node_url, accounts } from "./utils/network";
const gasPrice = 155e9;
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: "0.7.4",
settings: {
optimizer: {
enabled: true,
runs: 999999,
}
}
},
// Used for Uniswap v2 Periphery
{ version: "0.6.6" },
// Used for (some) OpenZeppelin
{ version: "0.5.5" },
],
},
namedAccounts: {
deployer: 0,
},
networks: {
hardhat: {
accounts: accounts(),
},
coverage: {
// Coverage launches its own ganache-cli client
url: "http://127.0.0.1:8555",
},
localhost: {
url: "http://localhost:8545",
accounts: accounts(),
},
mainnet: {
url: node_url("mainnet"),
accounts: accounts("mainnet"),
gasPrice: gasPrice,
},
rinkeby: {
url: node_url("rinkeby"),
accounts: accounts("rinkeby"),
},
ropsten: {
url: node_url("ropsten"),
accounts: accounts("ropsten"),
gasPrice: gasPrice,
}
},
paths: {
sources: "./contracts",
},
gasReporter: {
currency: "ETH",
gasPrice: gasPrice,
enabled: process.env.REPORT_GAS ? true : false,
coinmarketcap: process.env.COINMARKET_API_KEY,
maxMethodDiff: 10,
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
}
};
export default config;