-
Notifications
You must be signed in to change notification settings - Fork 0
/
helper-hardhat-config.js
56 lines (54 loc) · 1.78 KB
/
helper-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
56
const { subscribe } = require("diagnostics_channel");
const { ethers } = require("hardhat");
const networkConfig = {
default: {
name: "hardhat",
keepersUpdateInterval: "30",
},
31337: {
name: "localhost",
blockConfirmations: 1,
gasLane:
"0x474e34a077df58807dbe9c96d3c009b23b3c6d0cce433e59bbf5b34f823bc56c",
entranceFee: ethers.utils.parseEther("0.01"),
ethUsdPriceFeed: "0x694AA1769357215DE4FAC081bf1f309aDC325306",
subscriptionId: "588",
keepersUpdateInterval: "30",
mintFee: "10000000000000000", // 0.01 ETH
callbackGasLimit: "500000", // 500,000 gas
interval: "30",
},
11155111: {
name: "sepolia",
ethUsdPriceFeed: "0x694AA1769357215DE4FAC081bf1f309aDC325306",
vrfCoordinator: "0x90d3888cd5704612ef486731ee626f62dd67da7f",
gasLane:
"0x474e34a077df58807dbe9c96d3c009b23b3c6d0cce433e59bbf5b34f823bc56c",
callbackGasLimit: "500000",
mintFee: "10000000000000000", // 0.01 ETH
subscriptionId: "12145",
interval: "30",
},
};
const DECIMALS = 18;
const INITIAL_PRICE = "200000000000000000000";
const VERIFICATION_BLOCK_CONFIRMATIONS = 6;
const backendContractsFile =
"../nestjs-nft-marketplace-fcc/src/abi/networkMapping.json";
const backendContractsFile2 =
"../nestjs-nft-marketplace-thegraph-fcc/src/abi/networkMapping.json";
const backendAbiLocation = "../nestjs-nft-marketplace-fcc/src/abi/";
const frontendAbiLocation = "../client-nft-marketplace-fcc/src/constants/";
const developmentChains = ["hardhat", "localhost"];
module.exports = {
developmentChains,
DECIMALS,
INITIAL_PRICE,
VERIFICATION_BLOCK_CONFIRMATIONS,
networkConfig,
backendContractsFile,
backendContractsFile2,
backendAbiLocation,
frontendAbiLocation,
frontendContractsFile: frontendAbiLocation + "/networkMapping.json",
};