-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
55 lines (52 loc) · 1.41 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
require("@nomicfoundation/hardhat-toolbox");
require("@nomiclabs/hardhat-ethers");
require("hardhat-deploy");
require("solidity-coverage");
require("dotenv").config();
require("hardhat-deploy-ethers");
require("hardhat-gas-reporter");
/** @type import('hardhat/config').HardhatUserConfig */
const TEST_POLYGON_URL =
process.env.TEST_POLYGON_URL || "https:\\eth-POLYGON/example";
const TEST_PRIVATE_KEY = process.env.TEST_PRIVATE_KEY || "key";
const POLYGONSCAN_API_KEY = process.env.POLYGONSCAN_API_KEY || "key";
const COIN_MARKET_CAP_API_KEY = process.env.COIN_MARKET_CAP_API_KEY || "key";
module.exports = {
solidity: "0.8.18",
networks: {
mumbai: {
url: TEST_POLYGON_URL,
accounts: [TEST_PRIVATE_KEY],
chainId: 80001,
blockConfirmations: 6,
},
localhost: {
url: "http://127.0.0.1:8545",
chainId: 31337,
},
},
etherscan: {
apiKey: {
polygonMumbai: POLYGONSCAN_API_KEY,
},
},
gasReporter: {
enabled: true,
outputFile: "gas-reporter.txt",
noColors: true,
currency: "USD",
coinmarketcap: COIN_MARKET_CAP_API_KEY,
token: "MATIC",
},
namedAccounts: {
payer: {
default: 0,
},
arbiter: {
default: 1,
},
beneficiary: {
default: 2,
},
},
};