-
Notifications
You must be signed in to change notification settings - Fork 0
/
helper-hardhat-config.js
33 lines (29 loc) · 1.14 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
const { ethers } = require("hardhat")
require("dotenv").config()
const networkConfig = {
4: {
name: "rinkeby",
vrfCoordinatorV2Address: "0x6168499c0cFfCaCD319c818142124B7A15E857ab",
entranceFee: ethers.utils.parseEther("0.01"),
gasLane: "0xd89b2bf150e3b9e13446986e571fb9cab24b13cea0a43ea20a6049a85cc807cc", //30 gwei Key Hash
subscriptionId: process.env.CHAINLINK_SUBSCRIBTION_ID,
callbackGasLimit: "500000", // 500 000
interval: "300", //300 sec
},
31337: {
name: "hardhat",
entranceFee: ethers.utils.parseEther("1"),
gasLane: "0xd89b2bf150e3b9e13446986e571fb9cab24b13cea0a43ea20a6049a85cc807cc", // mocks doesn't care what lane we use
callbackGasLimit: "500000",
interval: "30", //30 sec
},
}
const developmentChains = ["hardhat", "localhost"]
const BASE_FEE = ethers.utils.parseEther("0.25") //0.25 LINK - "premium" section at chainlink docs
const GAS_LINK_PRICE = 1e9 // 1000000000 // link per gas, calculated value based on the gas price on the chain
module.exports = {
networkConfig,
developmentChains,
BASE_FEE,
GAS_LINK_PRICE,
}