-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
43 lines (39 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
import "@nomicfoundation/hardhat-toolbox";
import "dotenv/config";
import "@nomiclabs/hardhat-etherscan";
import "./tasks/block-number.ts";
import "@typechain/hardhat";
import "@nomiclabs/hardhat-ethers";
import { task, HardhatUserConfig } from "hardhat/config";
/** @type import('hardhat/config').HardhatUserConfig */
const RPC_URL = process.env.RINKEBY_RPC_URL!;
const PRIVATE = process.env.PRIVATE_KEY!;
const API_KEY = process.env.ETHERSCAN_API_KEY!;
const CURR_API = process.env.COINMARKETCAP_API_KEY!;
const config: HardhatUserConfig = {
defaultNetwork: "hardhat",
networks: {
rinkeby: {
chainId: 4,
url: RPC_URL,
accounts: [PRIVATE],
},
localhost: {
chainId: 31337,
url: "http://127.0.0.1:8545/",
// accounts: already taken care of
},
},
etherscan: {
apiKey: API_KEY,
},
gasReporter: {
enabled: true,
currency: "INR",
outputFile: "gas-report.txt",
noColors: true,
coinmarketcap: CURR_API,
},
solidity: "0.8.7",
};
export default config