-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelper-hardhat-config.ts
More file actions
62 lines (57 loc) · 2 KB
/
Copy pathhelper-hardhat-config.ts
File metadata and controls
62 lines (57 loc) · 2 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
import { BigNumber } from "ethers";
import { ethers } from "hardhat";
import * as dotenv from "dotenv";
dotenv.config();
const GOERLI_SUBSCRIPTION_ID =
process.env.GOERLI_SUBSCRIPTION_ID || "set-goerli-subscription-id-in-dotenv";
const MUMBAI_SUBSCRIPTION_ID =
process.env.MUMBAI_SUBSCRIPTION_ID || "set-mumbai-subscription-id-in-dotenv";
const networkConfig: ExtraConfig = {
31337: {
name: "hardhat",
vrfCoordinatorV2: "0x2Ca8E0C643bDe4C2E08ab1fA0da3401AdAD7734D",
entranceFee: ethers.utils.parseEther("0.01"),
gasLane: "0x79d3d8832d904592c0bf9818b621522c988bb8b0c05cdc3b15aea1b6e8db0c15",
verifyContract: false,
blockConfirmations: 1,
callbackGasLimit: "500000",
interval: "30",
},
5: {
name: "goerli",
vrfCoordinatorV2: "0x2Ca8E0C643bDe4C2E08ab1fA0da3401AdAD7734D",
entranceFee: ethers.utils.parseEther("0.01"),
gasLane: "0x79d3d8832d904592c0bf9818b621522c988bb8b0c05cdc3b15aea1b6e8db0c15",
subscriptionId: GOERLI_SUBSCRIPTION_ID,
verifyContract: true,
blockConfirmations: 6,
callbackGasLimit: "500000",
interval: "30",
},
80001: {
name: "mumbai",
vrfCoordinatorV2: "0x7a1BaC17Ccc5b313516C5E16fb24f7659aA5ebed",
entranceFee: ethers.utils.parseEther("0.01"),
gasLane: "0x4b09e658ed251bcafeebbc69400383d49f344ace09b9576fe248bb02c003fe9f",
subscriptionId: MUMBAI_SUBSCRIPTION_ID,
verifyContract: true,
blockConfirmations: 6,
callbackGasLimit: "500000",
interval: "30",
},
};
const developmentChains = ["hardhat", "localhost"];
interface ExtraConfig {
[key: number]: {
name: string;
vrfCoordinatorV2: string;
entranceFee: BigNumber;
gasLane: string;
subscriptionId?: string;
verifyContract: boolean;
blockConfirmations: number;
callbackGasLimit: string;
interval: string;
};
}
export { networkConfig, developmentChains };