-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.ts
48 lines (45 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
44
45
46
47
48
import "@nomiclabs/hardhat-waffle";
import "hardhat-deploy";
import "hardhat-gas-reporter";
import "solidity-coverage";
import * as dotenv from "dotenv";
dotenv.config();
const PK = [process.env.PRIVATEKEY || "00000000"];
module.exports = {
networks: {
hardhat: {
},
rinkeby: {
url: "https://rinkeby.infura.io/v3/" + process.env.INFURA_KEY,
accounts: PK,
},
ropsten: {
url: "https://ropsten.infura.io/v3/" + process.env.INFURA_KEY,
accounts: PK,
},
mainnet: {
url: "https://mainnet.infura.io/v3/" + process.env.INFURA_KEY,
accounts: PK,
},
},
namedAccounts: {
owner: 0,
user: 1,
},
etherscan: {
apiKey: "DY4Z86MQ2D9E24C6HB98PTA79EKJ5TQIFX",
},
solidity: {
compilers: [
{
version: "0.8.6",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
};