-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhelper-hardhat-config.js
50 lines (47 loc) · 1.61 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
const { ethers } = require("hardhat")
const networkConfig = {
4: {
name: "rinkeby",
ethUsdPriceFeed: "0x8A753747A1Fa494EC906cE90E9f37563A8AF630e",
vrfCoordinatorV2: "0x6168499c0cFfCaCD319c818142124B7A15E857ab", // specific for Rinkeby testnets
entranceFee: ethers.utils.parseEther("0.01"),
gasLane:
"0xd89b2bf150e3b9e13446986e571fb9cab24b13cea0a43ea20a6049a85cc807cc",
subscriptionId: "0",
callbackGasLimit: "500000", // 500 thousands
interval: "30",
},
137: {
name: "polygon",
vrfCoordinatorV2: "0xAE975071Be8F8eE67addBC1A82488F1C24858067",
ethUsdPriceFeed: "0xF9680D99D6C9589e2a93a78A04A279e509205945",
},
31337: {
name: "localhost",
entranceFee: ethers.utils.parseEther("0.01"),
gasLane:
"0xd89b2bf150e3b9e13446986e571fb9cab24b13cea0a43ea20a6049a85cc807cc",
callbackGasLimit: "500000", // 500 thousands
interval: "30",
},
1: {
name: "mainnet",
vrfCoordinatorV2: "0x271682DEB8C4E0901D1a1550aD2e64D568E69909",
ethUsdPriceFeed: "0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419",
entranceFee: ethers.utils.parseEther("0.01"),
gasLane:
"0xd89b2bf150e3b9e13446986e571fb9cab24b13cea0a43ea20a6049a85cc807cc",
subscriptionId: "0",
callbackGasLimit: "500000", // 500 thousands
interval: "30",
},
}
const developmentChains = ["hardhat", "localhost"]
const decimals = 8
const initial_answer = 200000000000
module.exports = {
networkConfig,
initial_answer,
decimals,
developmentChains,
}