@medialane/ui 0.221.0 → 0.222.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/components/account/input-otp.d.cts +2 -2
- package/dist/components/account/input-otp.d.ts +2 -2
- package/dist/components/button.d.cts +2 -2
- package/dist/components/button.d.ts +2 -2
- package/dist/components/remix-browse-page.cjs +1 -4
- package/dist/components/remix-browse-page.cjs.map +1 -1
- package/dist/components/remix-browse-page.js +1 -4
- package/dist/components/remix-browse-page.js.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/utils/use-collections.d.cts +439 -9
- package/dist/utils/use-collections.d.ts +439 -9
- package/dist/utils/use-pop.d.cts +113 -4
- package/dist/utils/use-pop.d.ts +113 -4
- package/dist/utils/use-tiers.d.cts +150 -5
- package/dist/utils/use-tiers.d.ts +150 -5
- package/dist/utils/use-tokens-by-ip-type.d.cts +170 -3
- package/dist/utils/use-tokens-by-ip-type.d.ts +170 -3
- package/dist/utils/use-tokens.d.cts +337 -5
- package/dist/utils/use-tokens.d.ts +337 -5
- package/package.json +3 -3
package/dist/utils/use-pop.d.ts
CHANGED
|
@@ -1,8 +1,45 @@
|
|
|
1
1
|
import * as swr from 'swr';
|
|
2
|
-
import
|
|
2
|
+
import * as zod from 'zod';
|
|
3
|
+
import { ApiMeta, ApiCollection } from '@medialane/sdk';
|
|
3
4
|
|
|
4
5
|
declare function usePopCollections(): {
|
|
5
|
-
collections:
|
|
6
|
+
collections: {
|
|
7
|
+
symbol: string | null;
|
|
8
|
+
chain: string;
|
|
9
|
+
owner: string | null;
|
|
10
|
+
collectionId: string | null;
|
|
11
|
+
name: string | null;
|
|
12
|
+
description: string | null;
|
|
13
|
+
image: string | null;
|
|
14
|
+
service: string | null;
|
|
15
|
+
contractAddress: string;
|
|
16
|
+
id: string;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
|
+
metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
|
|
20
|
+
standard: "ERC721" | "ERC1155";
|
|
21
|
+
attributes: zod.objectOutputType<{
|
|
22
|
+
trait_type: zod.ZodString;
|
|
23
|
+
value: zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>;
|
|
24
|
+
display_type: zod.ZodOptional<zod.ZodString>;
|
|
25
|
+
}, zod.ZodTypeAny, "passthrough">[] | null;
|
|
26
|
+
holderCount: number;
|
|
27
|
+
startBlock: string;
|
|
28
|
+
isFeatured: boolean;
|
|
29
|
+
isHidden: boolean;
|
|
30
|
+
claimedBy: string | null;
|
|
31
|
+
floorPrice: string | null;
|
|
32
|
+
totalVolume: string | null;
|
|
33
|
+
totalSupply: number;
|
|
34
|
+
profile: {
|
|
35
|
+
description: string | null;
|
|
36
|
+
image: string | null;
|
|
37
|
+
displayName: string | null;
|
|
38
|
+
gatedContentTitle: string | null;
|
|
39
|
+
hasGatedContent: boolean;
|
|
40
|
+
slug: string | null;
|
|
41
|
+
} | null;
|
|
42
|
+
}[];
|
|
6
43
|
meta: ApiMeta | undefined;
|
|
7
44
|
isLoading: boolean;
|
|
8
45
|
error: any;
|
|
@@ -12,10 +49,82 @@ declare function usePopCollections(): {
|
|
|
12
49
|
}>;
|
|
13
50
|
};
|
|
14
51
|
declare function useMyPopEvents(owner: string | null): {
|
|
15
|
-
events:
|
|
52
|
+
events: {
|
|
53
|
+
symbol: string | null;
|
|
54
|
+
chain: string;
|
|
55
|
+
owner: string | null;
|
|
56
|
+
collectionId: string | null;
|
|
57
|
+
name: string | null;
|
|
58
|
+
description: string | null;
|
|
59
|
+
image: string | null;
|
|
60
|
+
service: string | null;
|
|
61
|
+
contractAddress: string;
|
|
62
|
+
id: string;
|
|
63
|
+
createdAt: string;
|
|
64
|
+
updatedAt: string;
|
|
65
|
+
metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
|
|
66
|
+
standard: "ERC721" | "ERC1155";
|
|
67
|
+
attributes: zod.objectOutputType<{
|
|
68
|
+
trait_type: zod.ZodString;
|
|
69
|
+
value: zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>;
|
|
70
|
+
display_type: zod.ZodOptional<zod.ZodString>;
|
|
71
|
+
}, zod.ZodTypeAny, "passthrough">[] | null;
|
|
72
|
+
holderCount: number;
|
|
73
|
+
startBlock: string;
|
|
74
|
+
isFeatured: boolean;
|
|
75
|
+
isHidden: boolean;
|
|
76
|
+
claimedBy: string | null;
|
|
77
|
+
floorPrice: string | null;
|
|
78
|
+
totalVolume: string | null;
|
|
79
|
+
totalSupply: number;
|
|
80
|
+
profile: {
|
|
81
|
+
description: string | null;
|
|
82
|
+
image: string | null;
|
|
83
|
+
displayName: string | null;
|
|
84
|
+
gatedContentTitle: string | null;
|
|
85
|
+
hasGatedContent: boolean;
|
|
86
|
+
slug: string | null;
|
|
87
|
+
} | null;
|
|
88
|
+
}[];
|
|
16
89
|
isLoading: boolean;
|
|
17
90
|
error: any;
|
|
18
|
-
mutate: swr.KeyedMutator<
|
|
91
|
+
mutate: swr.KeyedMutator<{
|
|
92
|
+
symbol: string | null;
|
|
93
|
+
chain: string;
|
|
94
|
+
owner: string | null;
|
|
95
|
+
collectionId: string | null;
|
|
96
|
+
name: string | null;
|
|
97
|
+
description: string | null;
|
|
98
|
+
image: string | null;
|
|
99
|
+
service: string | null;
|
|
100
|
+
contractAddress: string;
|
|
101
|
+
id: string;
|
|
102
|
+
createdAt: string;
|
|
103
|
+
updatedAt: string;
|
|
104
|
+
metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
|
|
105
|
+
standard: "ERC721" | "ERC1155";
|
|
106
|
+
attributes: zod.objectOutputType<{
|
|
107
|
+
trait_type: zod.ZodString;
|
|
108
|
+
value: zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>;
|
|
109
|
+
display_type: zod.ZodOptional<zod.ZodString>;
|
|
110
|
+
}, zod.ZodTypeAny, "passthrough">[] | null;
|
|
111
|
+
holderCount: number;
|
|
112
|
+
startBlock: string;
|
|
113
|
+
isFeatured: boolean;
|
|
114
|
+
isHidden: boolean;
|
|
115
|
+
claimedBy: string | null;
|
|
116
|
+
floorPrice: string | null;
|
|
117
|
+
totalVolume: string | null;
|
|
118
|
+
totalSupply: number;
|
|
119
|
+
profile: {
|
|
120
|
+
description: string | null;
|
|
121
|
+
image: string | null;
|
|
122
|
+
displayName: string | null;
|
|
123
|
+
gatedContentTitle: string | null;
|
|
124
|
+
hasGatedContent: boolean;
|
|
125
|
+
slug: string | null;
|
|
126
|
+
} | null;
|
|
127
|
+
}[]>;
|
|
19
128
|
};
|
|
20
129
|
declare function popClaimedKey(collection: string | null, wallet: string | null): string | null;
|
|
21
130
|
/** Whether `wallet` already holds this collection's credential, read from chain. */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as swr from 'swr';
|
|
2
|
-
import
|
|
2
|
+
import * as zod from 'zod';
|
|
3
|
+
import { ApiClient } from '@medialane/sdk';
|
|
3
4
|
|
|
4
5
|
/** An IP Ticket type or IP Club membership tier, with amounts as bigint. */
|
|
5
6
|
interface TierOnchain {
|
|
@@ -17,16 +18,160 @@ declare function predictNextMembershipId(api: ApiClient, contract: string): Prom
|
|
|
17
18
|
/** The id the next ticket type will get. Reads a fresh count, so call it right before creating the ticket. */
|
|
18
19
|
declare function predictNextTicketId(api: ApiClient, contract: string): Promise<number>;
|
|
19
20
|
declare function useMyClubCollections(owner: string | null): {
|
|
20
|
-
collections:
|
|
21
|
+
collections: {
|
|
22
|
+
symbol: string | null;
|
|
23
|
+
chain: string;
|
|
24
|
+
owner: string | null;
|
|
25
|
+
collectionId: string | null;
|
|
26
|
+
name: string | null;
|
|
27
|
+
description: string | null;
|
|
28
|
+
image: string | null;
|
|
29
|
+
service: string | null;
|
|
30
|
+
contractAddress: string;
|
|
31
|
+
id: string;
|
|
32
|
+
createdAt: string;
|
|
33
|
+
updatedAt: string;
|
|
34
|
+
metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
|
|
35
|
+
standard: "ERC721" | "ERC1155";
|
|
36
|
+
attributes: zod.objectOutputType<{
|
|
37
|
+
trait_type: zod.ZodString;
|
|
38
|
+
value: zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>;
|
|
39
|
+
display_type: zod.ZodOptional<zod.ZodString>;
|
|
40
|
+
}, zod.ZodTypeAny, "passthrough">[] | null;
|
|
41
|
+
holderCount: number;
|
|
42
|
+
startBlock: string;
|
|
43
|
+
isFeatured: boolean;
|
|
44
|
+
isHidden: boolean;
|
|
45
|
+
claimedBy: string | null;
|
|
46
|
+
floorPrice: string | null;
|
|
47
|
+
totalVolume: string | null;
|
|
48
|
+
totalSupply: number;
|
|
49
|
+
profile: {
|
|
50
|
+
description: string | null;
|
|
51
|
+
image: string | null;
|
|
52
|
+
displayName: string | null;
|
|
53
|
+
gatedContentTitle: string | null;
|
|
54
|
+
hasGatedContent: boolean;
|
|
55
|
+
slug: string | null;
|
|
56
|
+
} | null;
|
|
57
|
+
}[];
|
|
21
58
|
isLoading: boolean;
|
|
22
59
|
error: any;
|
|
23
|
-
mutate: swr.KeyedMutator<
|
|
60
|
+
mutate: swr.KeyedMutator<{
|
|
61
|
+
symbol: string | null;
|
|
62
|
+
chain: string;
|
|
63
|
+
owner: string | null;
|
|
64
|
+
collectionId: string | null;
|
|
65
|
+
name: string | null;
|
|
66
|
+
description: string | null;
|
|
67
|
+
image: string | null;
|
|
68
|
+
service: string | null;
|
|
69
|
+
contractAddress: string;
|
|
70
|
+
id: string;
|
|
71
|
+
createdAt: string;
|
|
72
|
+
updatedAt: string;
|
|
73
|
+
metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
|
|
74
|
+
standard: "ERC721" | "ERC1155";
|
|
75
|
+
attributes: zod.objectOutputType<{
|
|
76
|
+
trait_type: zod.ZodString;
|
|
77
|
+
value: zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>;
|
|
78
|
+
display_type: zod.ZodOptional<zod.ZodString>;
|
|
79
|
+
}, zod.ZodTypeAny, "passthrough">[] | null;
|
|
80
|
+
holderCount: number;
|
|
81
|
+
startBlock: string;
|
|
82
|
+
isFeatured: boolean;
|
|
83
|
+
isHidden: boolean;
|
|
84
|
+
claimedBy: string | null;
|
|
85
|
+
floorPrice: string | null;
|
|
86
|
+
totalVolume: string | null;
|
|
87
|
+
totalSupply: number;
|
|
88
|
+
profile: {
|
|
89
|
+
description: string | null;
|
|
90
|
+
image: string | null;
|
|
91
|
+
displayName: string | null;
|
|
92
|
+
gatedContentTitle: string | null;
|
|
93
|
+
hasGatedContent: boolean;
|
|
94
|
+
slug: string | null;
|
|
95
|
+
} | null;
|
|
96
|
+
}[]>;
|
|
24
97
|
};
|
|
25
98
|
declare function useMyTicketCollections(owner: string | null): {
|
|
26
|
-
collections:
|
|
99
|
+
collections: {
|
|
100
|
+
symbol: string | null;
|
|
101
|
+
chain: string;
|
|
102
|
+
owner: string | null;
|
|
103
|
+
collectionId: string | null;
|
|
104
|
+
name: string | null;
|
|
105
|
+
description: string | null;
|
|
106
|
+
image: string | null;
|
|
107
|
+
service: string | null;
|
|
108
|
+
contractAddress: string;
|
|
109
|
+
id: string;
|
|
110
|
+
createdAt: string;
|
|
111
|
+
updatedAt: string;
|
|
112
|
+
metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
|
|
113
|
+
standard: "ERC721" | "ERC1155";
|
|
114
|
+
attributes: zod.objectOutputType<{
|
|
115
|
+
trait_type: zod.ZodString;
|
|
116
|
+
value: zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>;
|
|
117
|
+
display_type: zod.ZodOptional<zod.ZodString>;
|
|
118
|
+
}, zod.ZodTypeAny, "passthrough">[] | null;
|
|
119
|
+
holderCount: number;
|
|
120
|
+
startBlock: string;
|
|
121
|
+
isFeatured: boolean;
|
|
122
|
+
isHidden: boolean;
|
|
123
|
+
claimedBy: string | null;
|
|
124
|
+
floorPrice: string | null;
|
|
125
|
+
totalVolume: string | null;
|
|
126
|
+
totalSupply: number;
|
|
127
|
+
profile: {
|
|
128
|
+
description: string | null;
|
|
129
|
+
image: string | null;
|
|
130
|
+
displayName: string | null;
|
|
131
|
+
gatedContentTitle: string | null;
|
|
132
|
+
hasGatedContent: boolean;
|
|
133
|
+
slug: string | null;
|
|
134
|
+
} | null;
|
|
135
|
+
}[];
|
|
27
136
|
isLoading: boolean;
|
|
28
137
|
error: any;
|
|
29
|
-
mutate: swr.KeyedMutator<
|
|
138
|
+
mutate: swr.KeyedMutator<{
|
|
139
|
+
symbol: string | null;
|
|
140
|
+
chain: string;
|
|
141
|
+
owner: string | null;
|
|
142
|
+
collectionId: string | null;
|
|
143
|
+
name: string | null;
|
|
144
|
+
description: string | null;
|
|
145
|
+
image: string | null;
|
|
146
|
+
service: string | null;
|
|
147
|
+
contractAddress: string;
|
|
148
|
+
id: string;
|
|
149
|
+
createdAt: string;
|
|
150
|
+
updatedAt: string;
|
|
151
|
+
metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
|
|
152
|
+
standard: "ERC721" | "ERC1155";
|
|
153
|
+
attributes: zod.objectOutputType<{
|
|
154
|
+
trait_type: zod.ZodString;
|
|
155
|
+
value: zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>;
|
|
156
|
+
display_type: zod.ZodOptional<zod.ZodString>;
|
|
157
|
+
}, zod.ZodTypeAny, "passthrough">[] | null;
|
|
158
|
+
holderCount: number;
|
|
159
|
+
startBlock: string;
|
|
160
|
+
isFeatured: boolean;
|
|
161
|
+
isHidden: boolean;
|
|
162
|
+
claimedBy: string | null;
|
|
163
|
+
floorPrice: string | null;
|
|
164
|
+
totalVolume: string | null;
|
|
165
|
+
totalSupply: number;
|
|
166
|
+
profile: {
|
|
167
|
+
description: string | null;
|
|
168
|
+
image: string | null;
|
|
169
|
+
displayName: string | null;
|
|
170
|
+
gatedContentTitle: string | null;
|
|
171
|
+
hasGatedContent: boolean;
|
|
172
|
+
slug: string | null;
|
|
173
|
+
} | null;
|
|
174
|
+
}[]>;
|
|
30
175
|
};
|
|
31
176
|
declare function useMembershipList(contract: string | null): {
|
|
32
177
|
memberships: TierListItem[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as swr from 'swr';
|
|
2
|
-
import
|
|
2
|
+
import * as zod from 'zod';
|
|
3
|
+
import { ApiClient } from '@medialane/sdk';
|
|
3
4
|
|
|
4
5
|
/** An IP Ticket type or IP Club membership tier, with amounts as bigint. */
|
|
5
6
|
interface TierOnchain {
|
|
@@ -17,16 +18,160 @@ declare function predictNextMembershipId(api: ApiClient, contract: string): Prom
|
|
|
17
18
|
/** The id the next ticket type will get. Reads a fresh count, so call it right before creating the ticket. */
|
|
18
19
|
declare function predictNextTicketId(api: ApiClient, contract: string): Promise<number>;
|
|
19
20
|
declare function useMyClubCollections(owner: string | null): {
|
|
20
|
-
collections:
|
|
21
|
+
collections: {
|
|
22
|
+
symbol: string | null;
|
|
23
|
+
chain: string;
|
|
24
|
+
owner: string | null;
|
|
25
|
+
collectionId: string | null;
|
|
26
|
+
name: string | null;
|
|
27
|
+
description: string | null;
|
|
28
|
+
image: string | null;
|
|
29
|
+
service: string | null;
|
|
30
|
+
contractAddress: string;
|
|
31
|
+
id: string;
|
|
32
|
+
createdAt: string;
|
|
33
|
+
updatedAt: string;
|
|
34
|
+
metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
|
|
35
|
+
standard: "ERC721" | "ERC1155";
|
|
36
|
+
attributes: zod.objectOutputType<{
|
|
37
|
+
trait_type: zod.ZodString;
|
|
38
|
+
value: zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>;
|
|
39
|
+
display_type: zod.ZodOptional<zod.ZodString>;
|
|
40
|
+
}, zod.ZodTypeAny, "passthrough">[] | null;
|
|
41
|
+
holderCount: number;
|
|
42
|
+
startBlock: string;
|
|
43
|
+
isFeatured: boolean;
|
|
44
|
+
isHidden: boolean;
|
|
45
|
+
claimedBy: string | null;
|
|
46
|
+
floorPrice: string | null;
|
|
47
|
+
totalVolume: string | null;
|
|
48
|
+
totalSupply: number;
|
|
49
|
+
profile: {
|
|
50
|
+
description: string | null;
|
|
51
|
+
image: string | null;
|
|
52
|
+
displayName: string | null;
|
|
53
|
+
gatedContentTitle: string | null;
|
|
54
|
+
hasGatedContent: boolean;
|
|
55
|
+
slug: string | null;
|
|
56
|
+
} | null;
|
|
57
|
+
}[];
|
|
21
58
|
isLoading: boolean;
|
|
22
59
|
error: any;
|
|
23
|
-
mutate: swr.KeyedMutator<
|
|
60
|
+
mutate: swr.KeyedMutator<{
|
|
61
|
+
symbol: string | null;
|
|
62
|
+
chain: string;
|
|
63
|
+
owner: string | null;
|
|
64
|
+
collectionId: string | null;
|
|
65
|
+
name: string | null;
|
|
66
|
+
description: string | null;
|
|
67
|
+
image: string | null;
|
|
68
|
+
service: string | null;
|
|
69
|
+
contractAddress: string;
|
|
70
|
+
id: string;
|
|
71
|
+
createdAt: string;
|
|
72
|
+
updatedAt: string;
|
|
73
|
+
metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
|
|
74
|
+
standard: "ERC721" | "ERC1155";
|
|
75
|
+
attributes: zod.objectOutputType<{
|
|
76
|
+
trait_type: zod.ZodString;
|
|
77
|
+
value: zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>;
|
|
78
|
+
display_type: zod.ZodOptional<zod.ZodString>;
|
|
79
|
+
}, zod.ZodTypeAny, "passthrough">[] | null;
|
|
80
|
+
holderCount: number;
|
|
81
|
+
startBlock: string;
|
|
82
|
+
isFeatured: boolean;
|
|
83
|
+
isHidden: boolean;
|
|
84
|
+
claimedBy: string | null;
|
|
85
|
+
floorPrice: string | null;
|
|
86
|
+
totalVolume: string | null;
|
|
87
|
+
totalSupply: number;
|
|
88
|
+
profile: {
|
|
89
|
+
description: string | null;
|
|
90
|
+
image: string | null;
|
|
91
|
+
displayName: string | null;
|
|
92
|
+
gatedContentTitle: string | null;
|
|
93
|
+
hasGatedContent: boolean;
|
|
94
|
+
slug: string | null;
|
|
95
|
+
} | null;
|
|
96
|
+
}[]>;
|
|
24
97
|
};
|
|
25
98
|
declare function useMyTicketCollections(owner: string | null): {
|
|
26
|
-
collections:
|
|
99
|
+
collections: {
|
|
100
|
+
symbol: string | null;
|
|
101
|
+
chain: string;
|
|
102
|
+
owner: string | null;
|
|
103
|
+
collectionId: string | null;
|
|
104
|
+
name: string | null;
|
|
105
|
+
description: string | null;
|
|
106
|
+
image: string | null;
|
|
107
|
+
service: string | null;
|
|
108
|
+
contractAddress: string;
|
|
109
|
+
id: string;
|
|
110
|
+
createdAt: string;
|
|
111
|
+
updatedAt: string;
|
|
112
|
+
metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
|
|
113
|
+
standard: "ERC721" | "ERC1155";
|
|
114
|
+
attributes: zod.objectOutputType<{
|
|
115
|
+
trait_type: zod.ZodString;
|
|
116
|
+
value: zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>;
|
|
117
|
+
display_type: zod.ZodOptional<zod.ZodString>;
|
|
118
|
+
}, zod.ZodTypeAny, "passthrough">[] | null;
|
|
119
|
+
holderCount: number;
|
|
120
|
+
startBlock: string;
|
|
121
|
+
isFeatured: boolean;
|
|
122
|
+
isHidden: boolean;
|
|
123
|
+
claimedBy: string | null;
|
|
124
|
+
floorPrice: string | null;
|
|
125
|
+
totalVolume: string | null;
|
|
126
|
+
totalSupply: number;
|
|
127
|
+
profile: {
|
|
128
|
+
description: string | null;
|
|
129
|
+
image: string | null;
|
|
130
|
+
displayName: string | null;
|
|
131
|
+
gatedContentTitle: string | null;
|
|
132
|
+
hasGatedContent: boolean;
|
|
133
|
+
slug: string | null;
|
|
134
|
+
} | null;
|
|
135
|
+
}[];
|
|
27
136
|
isLoading: boolean;
|
|
28
137
|
error: any;
|
|
29
|
-
mutate: swr.KeyedMutator<
|
|
138
|
+
mutate: swr.KeyedMutator<{
|
|
139
|
+
symbol: string | null;
|
|
140
|
+
chain: string;
|
|
141
|
+
owner: string | null;
|
|
142
|
+
collectionId: string | null;
|
|
143
|
+
name: string | null;
|
|
144
|
+
description: string | null;
|
|
145
|
+
image: string | null;
|
|
146
|
+
service: string | null;
|
|
147
|
+
contractAddress: string;
|
|
148
|
+
id: string;
|
|
149
|
+
createdAt: string;
|
|
150
|
+
updatedAt: string;
|
|
151
|
+
metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
|
|
152
|
+
standard: "ERC721" | "ERC1155";
|
|
153
|
+
attributes: zod.objectOutputType<{
|
|
154
|
+
trait_type: zod.ZodString;
|
|
155
|
+
value: zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>;
|
|
156
|
+
display_type: zod.ZodOptional<zod.ZodString>;
|
|
157
|
+
}, zod.ZodTypeAny, "passthrough">[] | null;
|
|
158
|
+
holderCount: number;
|
|
159
|
+
startBlock: string;
|
|
160
|
+
isFeatured: boolean;
|
|
161
|
+
isHidden: boolean;
|
|
162
|
+
claimedBy: string | null;
|
|
163
|
+
floorPrice: string | null;
|
|
164
|
+
totalVolume: string | null;
|
|
165
|
+
totalSupply: number;
|
|
166
|
+
profile: {
|
|
167
|
+
description: string | null;
|
|
168
|
+
image: string | null;
|
|
169
|
+
displayName: string | null;
|
|
170
|
+
gatedContentTitle: string | null;
|
|
171
|
+
hasGatedContent: boolean;
|
|
172
|
+
slug: string | null;
|
|
173
|
+
} | null;
|
|
174
|
+
}[]>;
|
|
30
175
|
};
|
|
31
176
|
declare function useMembershipList(contract: string | null): {
|
|
32
177
|
memberships: TierListItem[];
|
|
@@ -1,13 +1,180 @@
|
|
|
1
1
|
import * as swr from 'swr';
|
|
2
2
|
import * as _medialane_sdk from '@medialane/sdk';
|
|
3
|
-
import {
|
|
3
|
+
import { ApiResponse } from '@medialane/sdk';
|
|
4
|
+
import * as zod from 'zod';
|
|
4
5
|
|
|
5
6
|
declare function useTokensByIpType(ipTypeSlug: string | null, page?: number, limit?: number): {
|
|
6
|
-
tokens:
|
|
7
|
+
tokens: {
|
|
8
|
+
chain: string;
|
|
9
|
+
tokenId: string;
|
|
10
|
+
owner: string | null;
|
|
11
|
+
tokenUri: string | null;
|
|
12
|
+
contractAddress: string;
|
|
13
|
+
id: string;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string;
|
|
16
|
+
metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
|
|
17
|
+
standard: "ERC721" | "ERC1155" | null;
|
|
18
|
+
metadata: {
|
|
19
|
+
name: string | null;
|
|
20
|
+
description: string | null;
|
|
21
|
+
image: string | null;
|
|
22
|
+
author: string | null;
|
|
23
|
+
animationUrl: string | null;
|
|
24
|
+
attributes: zod.objectOutputType<{
|
|
25
|
+
trait_type: zod.ZodString;
|
|
26
|
+
value: zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>;
|
|
27
|
+
display_type: zod.ZodOptional<zod.ZodString>;
|
|
28
|
+
}, zod.ZodTypeAny, "passthrough">[] | null;
|
|
29
|
+
ipType: string | null;
|
|
30
|
+
licenseType: string | null;
|
|
31
|
+
commercialUse: boolean | null;
|
|
32
|
+
};
|
|
33
|
+
balances: {
|
|
34
|
+
amount: string;
|
|
35
|
+
owner: string;
|
|
36
|
+
}[] | null;
|
|
37
|
+
activeOrders: {
|
|
38
|
+
status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
|
|
39
|
+
chain: string;
|
|
40
|
+
offerer: string;
|
|
41
|
+
nftContract: string | null;
|
|
42
|
+
price: {
|
|
43
|
+
currency: string | null;
|
|
44
|
+
raw: string | null;
|
|
45
|
+
formatted: string | null;
|
|
46
|
+
decimals: number;
|
|
47
|
+
};
|
|
48
|
+
endTime: string;
|
|
49
|
+
fulfiller: string | null;
|
|
50
|
+
orderHash: string;
|
|
51
|
+
startTime: string;
|
|
52
|
+
txHash: {
|
|
53
|
+
created: string | null;
|
|
54
|
+
fulfilled: string | null;
|
|
55
|
+
cancelled: string | null;
|
|
56
|
+
};
|
|
57
|
+
token: {
|
|
58
|
+
name: string | null;
|
|
59
|
+
description: string | null;
|
|
60
|
+
image: string | null;
|
|
61
|
+
animationUrl: string | null;
|
|
62
|
+
} | null;
|
|
63
|
+
offer: {
|
|
64
|
+
token: string;
|
|
65
|
+
itemType: string;
|
|
66
|
+
identifier: string;
|
|
67
|
+
startAmount: string;
|
|
68
|
+
endAmount: string;
|
|
69
|
+
};
|
|
70
|
+
id: string;
|
|
71
|
+
consideration: {
|
|
72
|
+
recipient: string;
|
|
73
|
+
token: string;
|
|
74
|
+
itemType: string;
|
|
75
|
+
identifier: string;
|
|
76
|
+
startAmount: string;
|
|
77
|
+
endAmount: string;
|
|
78
|
+
};
|
|
79
|
+
nftTokenId: string | null;
|
|
80
|
+
createdBlockNumber: string;
|
|
81
|
+
remainingAmount: string | null;
|
|
82
|
+
createdAt: string;
|
|
83
|
+
updatedAt: string;
|
|
84
|
+
parentOrderHash?: string | null | undefined;
|
|
85
|
+
counterOfferMessage?: string | null | undefined;
|
|
86
|
+
hasActiveCounterOffer?: boolean | undefined;
|
|
87
|
+
}[];
|
|
88
|
+
holderCount?: number | undefined;
|
|
89
|
+
supply?: string | undefined;
|
|
90
|
+
}[];
|
|
7
91
|
meta: _medialane_sdk.ApiMeta | undefined;
|
|
8
92
|
isLoading: boolean;
|
|
9
93
|
error: any;
|
|
10
|
-
mutate: swr.KeyedMutator<ApiResponse<
|
|
94
|
+
mutate: swr.KeyedMutator<ApiResponse<{
|
|
95
|
+
chain: string;
|
|
96
|
+
tokenId: string;
|
|
97
|
+
owner: string | null;
|
|
98
|
+
tokenUri: string | null;
|
|
99
|
+
contractAddress: string;
|
|
100
|
+
id: string;
|
|
101
|
+
createdAt: string;
|
|
102
|
+
updatedAt: string;
|
|
103
|
+
metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
|
|
104
|
+
standard: "ERC721" | "ERC1155" | null;
|
|
105
|
+
metadata: {
|
|
106
|
+
name: string | null;
|
|
107
|
+
description: string | null;
|
|
108
|
+
image: string | null;
|
|
109
|
+
author: string | null;
|
|
110
|
+
animationUrl: string | null;
|
|
111
|
+
attributes: zod.objectOutputType<{
|
|
112
|
+
trait_type: zod.ZodString;
|
|
113
|
+
value: zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>;
|
|
114
|
+
display_type: zod.ZodOptional<zod.ZodString>;
|
|
115
|
+
}, zod.ZodTypeAny, "passthrough">[] | null;
|
|
116
|
+
ipType: string | null;
|
|
117
|
+
licenseType: string | null;
|
|
118
|
+
commercialUse: boolean | null;
|
|
119
|
+
};
|
|
120
|
+
balances: {
|
|
121
|
+
amount: string;
|
|
122
|
+
owner: string;
|
|
123
|
+
}[] | null;
|
|
124
|
+
activeOrders: {
|
|
125
|
+
status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
|
|
126
|
+
chain: string;
|
|
127
|
+
offerer: string;
|
|
128
|
+
nftContract: string | null;
|
|
129
|
+
price: {
|
|
130
|
+
currency: string | null;
|
|
131
|
+
raw: string | null;
|
|
132
|
+
formatted: string | null;
|
|
133
|
+
decimals: number;
|
|
134
|
+
};
|
|
135
|
+
endTime: string;
|
|
136
|
+
fulfiller: string | null;
|
|
137
|
+
orderHash: string;
|
|
138
|
+
startTime: string;
|
|
139
|
+
txHash: {
|
|
140
|
+
created: string | null;
|
|
141
|
+
fulfilled: string | null;
|
|
142
|
+
cancelled: string | null;
|
|
143
|
+
};
|
|
144
|
+
token: {
|
|
145
|
+
name: string | null;
|
|
146
|
+
description: string | null;
|
|
147
|
+
image: string | null;
|
|
148
|
+
animationUrl: string | null;
|
|
149
|
+
} | null;
|
|
150
|
+
offer: {
|
|
151
|
+
token: string;
|
|
152
|
+
itemType: string;
|
|
153
|
+
identifier: string;
|
|
154
|
+
startAmount: string;
|
|
155
|
+
endAmount: string;
|
|
156
|
+
};
|
|
157
|
+
id: string;
|
|
158
|
+
consideration: {
|
|
159
|
+
recipient: string;
|
|
160
|
+
token: string;
|
|
161
|
+
itemType: string;
|
|
162
|
+
identifier: string;
|
|
163
|
+
startAmount: string;
|
|
164
|
+
endAmount: string;
|
|
165
|
+
};
|
|
166
|
+
nftTokenId: string | null;
|
|
167
|
+
createdBlockNumber: string;
|
|
168
|
+
remainingAmount: string | null;
|
|
169
|
+
createdAt: string;
|
|
170
|
+
updatedAt: string;
|
|
171
|
+
parentOrderHash?: string | null | undefined;
|
|
172
|
+
counterOfferMessage?: string | null | undefined;
|
|
173
|
+
hasActiveCounterOffer?: boolean | undefined;
|
|
174
|
+
}[];
|
|
175
|
+
holderCount?: number | undefined;
|
|
176
|
+
supply?: string | undefined;
|
|
177
|
+
}[]>>;
|
|
11
178
|
};
|
|
12
179
|
|
|
13
180
|
export { useTokensByIpType };
|