-
Notifications
You must be signed in to change notification settings - Fork 73
/
index.d.ts
43 lines (39 loc) · 894 Bytes
/
index.d.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
interface IRanking {
name: string;
slug: string;
logo: string;
isVerified: boolean;
floorPrice: { amount: number; currency: string };
}
interface IOfferRturnValue {
offers: IOffer[];
stats: { totalOffers: number };
}
interface IOffer {
floorPrice: { amount: number; currency: string };
tokenId: number;
name: string;
offerUrl: string;
assetContract: string;
}
interface IOptions {
debug: boolean,
logs: boolean,
sort: boolean,
}
declare module "opensea-scraper" {
export function basicInfo(slug: string): Promise<Record<string, any>>;
export function rankings(
type?: string,
chain?: string,
options?: IOptions,
): Promise<IRanking[]>;
export function offers(
slug: string,
options?: IOptions,
): Promise<IOfferRturnValue>;
export function offersByUrl(
url: string,
options?: IOptions,
): Promise<IOfferRturnValue>;
}