-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelper-hardhat-config.js
38 lines (37 loc) · 1.28 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
const { ethers } = require("hardhat");
const networkConfig = {
5: {
name: "goerli",
vrfCoordinatorV2: "0x2Ca8E0C643bDe4C2E08ab1fA0da3401AdAD7734D",
entranceFee: ethers.utils.parseEther("0.1"),
gasLane: "0x79d3d8832d904592c0bf9818b621522c988bb8b0c05cdc3b15aea1b6e8db0c15", //150 gwei
subscriptionId: "10717",
callBackGasLimit: "500000",
interval: "30",
},
31337: {
name: "hardhat",
entranceFee: ethers.utils.parseEther("0.1"),
gasLane: "0x79d3d8832d904592c0bf9818b621522c988bb8b0c05cdc3b15aea1b6e8db0c15",
callBackGasLimit: "500000",
interval: "30",
},
11155111: {
name: "sepolia",
entranceFee: ethers.utils.parseEther("0.1"),
gasLane: "0x474e34a077df58807dbe9c96d3c009b23b3c6d0cce433e59bbf5b34f823bc56c", //30gwei
callBackGasLimit: "500000",
interval: "30",
vrfCoordinatorV2: "0xab18414CD93297B0d12ac29E63Ca20f515b3DB46",
subscriptionId: "517",
},
};
const developmentChains = ["hardhat", "localhost"];
const VERIFICATION_BLOCK_CONFIRMATIONS = 6;
const VRF_SUB_FUND_AMOUNT = ethers.utils.parseEther("1");
module.exports = {
networkConfig,
developmentChains,
VERIFICATION_BLOCK_CONFIRMATIONS,
VRF_SUB_FUND_AMOUNT,
};