-
Notifications
You must be signed in to change notification settings - Fork 0
/
helper-hardhat-config.js
40 lines (40 loc) · 1.31 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
const { ethers } = require("hardhat");
const networkConfig = {
11155111: {
name: "sepolia",
vrfCoordinatorV2: "0x8103B0A8A00be2DDC778e6e7eaa21791Cd364625", // The vrfCoordinatorV2Addess on the Sepolia testnet goes here
gasLane:
"0x474e34a077df58807dbe9c96d3c009b23b3c6d0cce433e59bbf5b34f823bc56c",
subscriptionId: "0",
callbackGasLimit: "500000",
mintFee: ethers.utils.parseEther("0.01"),
ethUsdPriceFeedAddress: "0x694AA1769357215DE4FAC081bf1f309aDC325306", //"PricefeedAddressForSepoliaGoesHere"
},
31337: {
name: "hardhat",
gasLane:
"0x474e34a077df58807dbe9c96d3c009b23b3c6d0cce433e59bbf5b34f823bc56c",
callbackGasLimit: "500000",
mintFee: ethers.utils.parseEther("0.1"),
},
1337: {
name: "ganache",
gasLane:
"0x474e34a077df58807dbe9c96d3c009b23b3c6d0cce433e59bbf5b34f823bc56c",
callbackGasLimit: "500000",
mintFee: ethers.utils.parseEther("0.1"),
},
};
const developmentChains = ["localhost", "hardhat", "ganache"];
const FRONT_END_ADDRESSES_FILE = "../Client/src/utils/address.json";
const FRONT_END_ABI_FILE = "../Client/src/utils/abi.json";
const DECIMALS = 8;
const INITIAL_ANSWER = 200000000000;
module.exports = {
networkConfig,
developmentChains,
FRONT_END_ADDRESSES_FILE,
FRONT_END_ABI_FILE,
DECIMALS,
INITIAL_ANSWER,
};