-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtypes.ts
38 lines (35 loc) · 896 Bytes
/
types.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
export interface CollectionInfo {
name: string;
slug: string;
imgUrl: string;
holding: string;
floor?: string;
}
export type Filter = "successful" | "transfer" | "";
export type Action = "Minted" | "Bought" | "Sold" | "Sent" | "Received";
export interface SearchCriteria {
address: string;
ens: string;
startDate: string;
endDate: string;
filter: Filter;
page: number;
collectionSlug: string;
}
export interface NFTEvent {
assetName: string;
assetDescription: string;
assetImgUrl: string;
assetUrl: string;
collectionName: string;
collectionImgUrl: string;
collectionUrl: string;
collectionDescription: string;
date: string;
from: string;
to: string;
action: Action;
key: string;
transactionHash: string; // event's from opensea can have the same transaction hash, can't just store this in key (ex. mintpass transaction)
price?: number;
}