forked from hats-finance/vault-game
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
38 lines (35 loc) · 844 Bytes
/
hardhat.config.js
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
/**
* @type import('hardhat/config').HardhatUserConfig
*/
const { getJsonWalletAddress } = require("ethers/lib/utils");
require("hardhat-watcher");
require("hardhat-gas-reporter");
require("@nomiclabs/hardhat-waffle");
require("dotenv").config();
require("@nomiclabs/hardhat-etherscan");
module.exports = {
solidity: "0.8.12",
networks: {
rinkeby: {
url: `https://rinkeby.infura.io/v3/${process.env.INFURA_KEY}`,
accounts: [process.env.RINKEBY_PK],
},
},
watcher: {
compile: {
tasks: ["compile"],
},
test: {
tasks: ["test"],
files: ["contracts", "test"],
},
},
gasReporter: {
coinmarketcap: process.env.COINMARKETCAP_APIKEY,
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: process.env.ETHERSCAN_KEY,
},
};