-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelper-hardhat.config.ts
47 lines (43 loc) · 1.26 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
37
38
39
40
41
42
43
44
45
46
47
import { parseEther } from "ethers/lib/utils"
import { HOUR, MINUTE } from "./utils/constants"
export interface networkConfigItem {
name?: string
subscriptionId?: string
keyHash?: string
keepersUpdateInterval?: number
raffleEntranceFee?: string
callbackGasLimit?: string
vrfCoordinatorV2?: string
randomNumberCount?: number
}
export interface networkConfigInfo {
[key: number]: networkConfigItem
}
export const networkConfig: networkConfigInfo = {
31337: {
name: "localhost",
subscriptionId: "1",
keyHash:
"0xd89b2bf150e3b9e13446986e571fb9cab24b13cea0a43ea20a6049a85cc807cc", // 30 gwei
keepersUpdateInterval: MINUTE / 2,
raffleEntranceFee: parseEther("0.1").toString(),
callbackGasLimit: "1000000",
randomNumberCount: 20,
},
4: {
name: "rinkeby",
subscriptionId: "8527",
keyHash:
"0xd89b2bf150e3b9e13446986e571fb9cab24b13cea0a43ea20a6049a85cc807cc", // 30 gwei
keepersUpdateInterval: HOUR / 2,
raffleEntranceFee: parseEther("0.1").toString(),
callbackGasLimit: "2000000",
vrfCoordinatorV2: "0x6168499c0cFfCaCD319c818142124B7A15E857ab",
randomNumberCount: 20,
},
1: {
name: "mainnet",
keepersUpdateInterval: 30,
},
}
export const developmentChains = ["hardhat", "localhost"]