-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.ts
56 lines (53 loc) · 1.43 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
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import { HardhatUserConfig } from "hardhat/config";
import dotenv from "dotenv";
import "@nomiclabs/hardhat-waffle";
import "@nomiclabs/hardhat-waffle";
import "@nomiclabs/hardhat-etherscan";
import "@nomiclabs/hardhat-ethers";
import "@float-capital/solidity-coverage";
import "hardhat-typechain";
import "hardhat-abi-exporter";
import "@openzeppelin/hardhat-upgrades";
import "hardhat-gas-reporter";
import "./tasks";
dotenv.config();
const config = {
solidity: {
version: "0.8.6",
settings: {
optimizer: {
enabled: true,
runs: 10_000,
},
},
},
networks: {
mainnet: {
url: process.env.MAINNET_NETWORK_URL,
accounts: [process.env.CREATOR_WALLET_PRIVATE_KEY, process.env.DAO_WALLET_PRIVATE_KEY].filter(Boolean),
},
rinkeby: {
url: process.env.RINKEBY_NETWORK_URL,
accounts: [process.env.CREATOR_WALLET_PRIVATE_KEY, process.env.DAO_WALLET_PRIVATE_KEY].filter(Boolean),
},
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
abiExporter: {
path: "./artifacts",
clear: true,
},
gasReporter: {
enabled: !process.env.CI,
currency: "USD",
gasPrice: 200, // change to current gas prices when running tests to get accurate costs
src: "contracts",
coinmarketcap: "7643dfc7-a58f-46af-8314-2db32bdd18ba",
},
mocha: {
timeout: 500_000,
},
};
export default config;