-
Notifications
You must be signed in to change notification settings - Fork 1
/
helper-hardhat-config.ts
36 lines (34 loc) · 1.04 KB
/
helper-hardhat-config.ts
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
import { BigNumber } from "ethers";
import { ethers } from "hardhat";
export interface INetworkConfigItem {
name?: string;
subscriptionId?: string;
gasLane?: string;
interval?: string;
entranceFee?: BigNumber;
callbackGasLimit?: string;
vrfCoordinatorV2?: string;
}
export interface INetworkConfigInfo {
[key: number]: INetworkConfigItem;
}
export const networkConfig: INetworkConfigInfo = {
4: {
name: "rinkeby",
vrfCoordinatorV2: "0x6168499c0cFfCaCD319c818142124B7A15E857ab",
entranceFee: ethers.utils.parseEther("0.01"),
gasLane: "0xd89b2bf150e3b9e13446986e571fb9cab24b13cea0a43ea20a6049a85cc807cc",
subscriptionId: "9283", // from https://vrf.chain.link/rinkeby/9283
callbackGasLimit: "500000",
interval: "30",
},
31337: {
name: "hardhat",
entranceFee: ethers.utils.parseEther("0.01"),
gasLane: "0xd89b2bf150e3b9e13446986e571fb9cab24b13cea0a43ea20a6049a85cc807cc",
callbackGasLimit: "500000",
interval: "30",
},
};
export const VERIFICATION_BLOCK_CONFIRMATIONS = 6;
export const developmentChains = ["hardhat", "localhost"];