/
types.ts
46 lines (42 loc) · 910 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
39
40
41
42
43
44
45
46
export type NftState = {
isCapsule: boolean
isListed: boolean
isSecret: boolean
isDelegated: boolean
isSoulbound: boolean
isRented: boolean
isSyncingSecret: boolean
isSyncingCapsule: boolean
isTransmission: boolean
}
export type NftData = {
owner: string
creator: string
offchainData: string
collectionId: number | undefined
royalty: number
state: NftState
}
export type SecretNftData = {
nftId: number
owner: string
creator: string
offchainData: string
secretOffchainData: string
collectionId: number | null
royalty: number
isSoulbound: boolean
}
export type CapsuleNFTData<T extends NftData> = Omit<T, "collectionId" | "state"> & {
nftId: number
capsuleOffchainData: string
collectionId: number | null
isSoulbound: boolean
}
export type CollectionData = {
owner: string
offchainData: string
nfts: number[]
limit: number
isClosed: boolean
}