/
hardhat.config.ts
43 lines (39 loc) · 1.06 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 * as dotenv from "dotenv";
import "solidity-coverage";
import type { HardhatUserConfig } from "hardhat/types";
import "hardhat-deploy";
import "@nomiclabs/hardhat-ethers";
import "@nomiclabs/hardhat-etherscan";
dotenv.config();
const config: HardhatUserConfig = {
solidity: "0.8.11",
networks: {
// ropsten: {
// url: process.env.ROPSTEN_URL || "",
// accounts:
// process.env.PRIVATE_KEY !== undefined
// ? [process.env.PRIVATE_KEY]
// : [],
// },
rinkeby: {
url: process.env.RINKEBY_URL || "",
accounts:
process.env.PRIVATE_KEY !== undefined
? [process.env.PRIVATE_KEY]
: [],
},
},
namedAccounts: {
deployer: 0,
},
paths: {
sources: "./contracts",
tests: "./tests",
artifacts: "./artifacts",
cache: "./cache",
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
};
export default config;