@medialane/ui 0.311.0 → 0.313.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/dist/components/account/input-otp.d.cts +2 -2
- package/dist/components/account/input-otp.d.ts +2 -2
- package/dist/components/account-page.cjs +48 -46
- package/dist/components/account-page.cjs.map +1 -1
- package/dist/components/account-page.js +48 -46
- package/dist/components/account-page.js.map +1 -1
- package/dist/components/button.d.cts +2 -2
- package/dist/components/button.d.ts +2 -2
- package/dist/components/launchpad/edition-mint-schema.d.cts +19 -19
- package/dist/components/launchpad/edition-mint-schema.d.ts +19 -19
- package/dist/components/launchpad/pop-create-schema.d.cts +10 -10
- package/dist/components/launchpad/pop-create-schema.d.ts +10 -10
- package/dist/components/media-wallet/media-wallet-send.cjs +2 -5
- package/dist/components/media-wallet/media-wallet-send.cjs.map +1 -1
- package/dist/components/media-wallet/media-wallet-send.js +2 -5
- package/dist/components/media-wallet/media-wallet-send.js.map +1 -1
- package/dist/components/portfolio-header.cjs +4 -1
- package/dist/components/portfolio-header.cjs.map +1 -1
- package/dist/components/portfolio-header.d.cts +4 -1
- package/dist/components/portfolio-header.d.ts +4 -1
- package/dist/components/portfolio-header.js +4 -1
- package/dist/components/portfolio-header.js.map +1 -1
- package/dist/components/token-card.cjs +2 -2
- package/dist/components/token-card.cjs.map +1 -1
- package/dist/components/token-card.js +2 -2
- package/dist/components/token-card.js.map +1 -1
- package/dist/components/transfer-collection-ownership.cjs +1 -1
- package/dist/components/transfer-collection-ownership.cjs.map +1 -1
- package/dist/components/transfer-collection-ownership.js +1 -1
- package/dist/components/transfer-collection-ownership.js.map +1 -1
- package/dist/index.d.cts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/utils/media-wallet/use-erc20-balance.d.cts +1 -1
- package/dist/utils/media-wallet/use-erc20-balance.d.ts +1 -1
- package/dist/utils/send-token.cjs +40 -0
- package/dist/utils/send-token.cjs.map +1 -0
- package/dist/utils/send-token.d.cts +19 -0
- package/dist/utils/send-token.d.ts +19 -0
- package/dist/utils/send-token.js +16 -0
- package/dist/utils/send-token.js.map +1 -0
- package/dist/utils/use-collection-settings.d.cts +19 -19
- package/dist/utils/use-collection-settings.d.ts +19 -19
- package/dist/utils/use-collections.d.cts +212 -205
- package/dist/utils/use-collections.d.ts +212 -205
- package/dist/utils/use-orders.d.cts +299 -299
- package/dist/utils/use-orders.d.ts +299 -299
- package/dist/utils/use-pop.d.cts +57 -55
- package/dist/utils/use-pop.d.ts +57 -55
- package/dist/utils/use-tiers.d.cts +76 -73
- package/dist/utils/use-tiers.d.ts +76 -73
- package/dist/utils/use-tokens-by-ip-type.d.cts +78 -77
- package/dist/utils/use-tokens-by-ip-type.d.ts +78 -77
- package/dist/utils/use-tokens.d.cts +234 -229
- package/dist/utils/use-tokens.d.ts +234 -229
- package/package.json +3 -3
|
@@ -1,124 +1,126 @@
|
|
|
1
1
|
import * as swr from 'swr';
|
|
2
2
|
import * as _medialane_sdk from '@medialane/sdk';
|
|
3
3
|
import { CollectionTokensSort, ApiResponse, ApiCollection } from '@medialane/sdk';
|
|
4
|
-
import * as zod from 'zod';
|
|
5
4
|
|
|
6
5
|
type CollectionSort = "recent" | "supply" | "floor" | "volume" | "name";
|
|
7
6
|
declare function useCollections(page?: number, limit?: number, isFeatured?: boolean, sort?: CollectionSort, hideEmpty?: boolean, service?: string, standard?: string, fallback?: ApiCollection[]): {
|
|
8
7
|
collections: {
|
|
9
|
-
|
|
8
|
+
id: string;
|
|
10
9
|
chain: string;
|
|
11
|
-
|
|
10
|
+
contractAddress: string;
|
|
12
11
|
collectionId: string | null;
|
|
13
12
|
name: string | null;
|
|
13
|
+
symbol: string | null;
|
|
14
14
|
description: string | null;
|
|
15
15
|
image: string | null;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
attributes: {
|
|
17
|
+
[x: string]: unknown;
|
|
18
|
+
trait_type: string;
|
|
19
|
+
value: string | number | boolean;
|
|
20
|
+
display_type?: string | undefined;
|
|
21
|
+
}[] | null;
|
|
22
|
+
owner: string | null;
|
|
23
|
+
startBlock: string;
|
|
21
24
|
metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
|
|
22
25
|
standard: "ERC721" | "ERC1155";
|
|
23
|
-
attributes: zod.objectOutputType<{
|
|
24
|
-
trait_type: zod.ZodString;
|
|
25
|
-
value: zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>;
|
|
26
|
-
display_type: zod.ZodOptional<zod.ZodString>;
|
|
27
|
-
}, zod.ZodTypeAny, "passthrough">[] | null;
|
|
28
|
-
holderCount: number;
|
|
29
|
-
startBlock: string;
|
|
30
26
|
isFeatured: boolean;
|
|
31
27
|
isHidden: boolean;
|
|
28
|
+
service: string | null;
|
|
32
29
|
claimedBy: string | null;
|
|
33
30
|
floorPrice: string | null;
|
|
34
31
|
totalVolume: string | null;
|
|
32
|
+
holderCount: number;
|
|
35
33
|
totalSupply: number;
|
|
34
|
+
createdAt: string;
|
|
35
|
+
updatedAt: string;
|
|
36
36
|
profile: {
|
|
37
|
-
description: string | null;
|
|
38
|
-
image: string | null;
|
|
39
|
-
displayName: string | null;
|
|
40
|
-
gatedContentTitle: string | null;
|
|
41
37
|
hasGatedContent: boolean;
|
|
38
|
+
gatedContentTitle: string | null;
|
|
42
39
|
slug: string | null;
|
|
40
|
+
image: string | null;
|
|
41
|
+
displayName: string | null;
|
|
42
|
+
description: string | null;
|
|
43
43
|
} | null;
|
|
44
44
|
}[];
|
|
45
45
|
meta: _medialane_sdk.ApiMeta | undefined;
|
|
46
46
|
isLoading: boolean;
|
|
47
47
|
error: any;
|
|
48
48
|
mutate: swr.KeyedMutator<ApiResponse<{
|
|
49
|
-
|
|
49
|
+
id: string;
|
|
50
50
|
chain: string;
|
|
51
|
-
|
|
51
|
+
contractAddress: string;
|
|
52
52
|
collectionId: string | null;
|
|
53
53
|
name: string | null;
|
|
54
|
+
symbol: string | null;
|
|
54
55
|
description: string | null;
|
|
55
56
|
image: string | null;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
attributes: {
|
|
58
|
+
[x: string]: unknown;
|
|
59
|
+
trait_type: string;
|
|
60
|
+
value: string | number | boolean;
|
|
61
|
+
display_type?: string | undefined;
|
|
62
|
+
}[] | null;
|
|
63
|
+
owner: string | null;
|
|
64
|
+
startBlock: string;
|
|
61
65
|
metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
|
|
62
66
|
standard: "ERC721" | "ERC1155";
|
|
63
|
-
attributes: zod.objectOutputType<{
|
|
64
|
-
trait_type: zod.ZodString;
|
|
65
|
-
value: zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>;
|
|
66
|
-
display_type: zod.ZodOptional<zod.ZodString>;
|
|
67
|
-
}, zod.ZodTypeAny, "passthrough">[] | null;
|
|
68
|
-
holderCount: number;
|
|
69
|
-
startBlock: string;
|
|
70
67
|
isFeatured: boolean;
|
|
71
68
|
isHidden: boolean;
|
|
69
|
+
service: string | null;
|
|
72
70
|
claimedBy: string | null;
|
|
73
71
|
floorPrice: string | null;
|
|
74
72
|
totalVolume: string | null;
|
|
73
|
+
holderCount: number;
|
|
75
74
|
totalSupply: number;
|
|
75
|
+
createdAt: string;
|
|
76
|
+
updatedAt: string;
|
|
76
77
|
profile: {
|
|
77
|
-
description: string | null;
|
|
78
|
-
image: string | null;
|
|
79
|
-
displayName: string | null;
|
|
80
|
-
gatedContentTitle: string | null;
|
|
81
78
|
hasGatedContent: boolean;
|
|
79
|
+
gatedContentTitle: string | null;
|
|
82
80
|
slug: string | null;
|
|
81
|
+
image: string | null;
|
|
82
|
+
displayName: string | null;
|
|
83
|
+
description: string | null;
|
|
83
84
|
} | null;
|
|
84
85
|
}[]>>;
|
|
85
86
|
};
|
|
86
87
|
declare function useCollection(contract: string | null): {
|
|
87
88
|
collection: {
|
|
88
|
-
|
|
89
|
+
id: string;
|
|
89
90
|
chain: string;
|
|
90
|
-
|
|
91
|
+
contractAddress: string;
|
|
91
92
|
collectionId: string | null;
|
|
92
93
|
name: string | null;
|
|
94
|
+
symbol: string | null;
|
|
93
95
|
description: string | null;
|
|
94
96
|
image: string | null;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
attributes: {
|
|
98
|
+
[x: string]: unknown;
|
|
99
|
+
trait_type: string;
|
|
100
|
+
value: string | number | boolean;
|
|
101
|
+
display_type?: string | undefined;
|
|
102
|
+
}[] | null;
|
|
103
|
+
owner: string | null;
|
|
104
|
+
startBlock: string;
|
|
100
105
|
metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
|
|
101
106
|
standard: "ERC721" | "ERC1155";
|
|
102
|
-
attributes: zod.objectOutputType<{
|
|
103
|
-
trait_type: zod.ZodString;
|
|
104
|
-
value: zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>;
|
|
105
|
-
display_type: zod.ZodOptional<zod.ZodString>;
|
|
106
|
-
}, zod.ZodTypeAny, "passthrough">[] | null;
|
|
107
|
-
holderCount: number;
|
|
108
|
-
startBlock: string;
|
|
109
107
|
isFeatured: boolean;
|
|
110
108
|
isHidden: boolean;
|
|
109
|
+
service: string | null;
|
|
111
110
|
claimedBy: string | null;
|
|
112
111
|
floorPrice: string | null;
|
|
113
112
|
totalVolume: string | null;
|
|
113
|
+
holderCount: number;
|
|
114
114
|
totalSupply: number;
|
|
115
|
+
createdAt: string;
|
|
116
|
+
updatedAt: string;
|
|
115
117
|
profile: {
|
|
116
|
-
description: string | null;
|
|
117
|
-
image: string | null;
|
|
118
|
-
displayName: string | null;
|
|
119
|
-
gatedContentTitle: string | null;
|
|
120
118
|
hasGatedContent: boolean;
|
|
119
|
+
gatedContentTitle: string | null;
|
|
121
120
|
slug: string | null;
|
|
121
|
+
image: string | null;
|
|
122
|
+
displayName: string | null;
|
|
123
|
+
description: string | null;
|
|
122
124
|
} | null;
|
|
123
125
|
} | null;
|
|
124
126
|
isLoading: boolean;
|
|
@@ -126,165 +128,168 @@ declare function useCollection(contract: string | null): {
|
|
|
126
128
|
};
|
|
127
129
|
declare function useCollectionsByOwner(owner: string | null): {
|
|
128
130
|
collections: {
|
|
129
|
-
|
|
131
|
+
id: string;
|
|
130
132
|
chain: string;
|
|
131
|
-
|
|
133
|
+
contractAddress: string;
|
|
132
134
|
collectionId: string | null;
|
|
133
135
|
name: string | null;
|
|
136
|
+
symbol: string | null;
|
|
134
137
|
description: string | null;
|
|
135
138
|
image: string | null;
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
attributes: {
|
|
140
|
+
[x: string]: unknown;
|
|
141
|
+
trait_type: string;
|
|
142
|
+
value: string | number | boolean;
|
|
143
|
+
display_type?: string | undefined;
|
|
144
|
+
}[] | null;
|
|
145
|
+
owner: string | null;
|
|
146
|
+
startBlock: string;
|
|
141
147
|
metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
|
|
142
148
|
standard: "ERC721" | "ERC1155";
|
|
143
|
-
attributes: zod.objectOutputType<{
|
|
144
|
-
trait_type: zod.ZodString;
|
|
145
|
-
value: zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>;
|
|
146
|
-
display_type: zod.ZodOptional<zod.ZodString>;
|
|
147
|
-
}, zod.ZodTypeAny, "passthrough">[] | null;
|
|
148
|
-
holderCount: number;
|
|
149
|
-
startBlock: string;
|
|
150
149
|
isFeatured: boolean;
|
|
151
150
|
isHidden: boolean;
|
|
151
|
+
service: string | null;
|
|
152
152
|
claimedBy: string | null;
|
|
153
153
|
floorPrice: string | null;
|
|
154
154
|
totalVolume: string | null;
|
|
155
|
+
holderCount: number;
|
|
155
156
|
totalSupply: number;
|
|
157
|
+
createdAt: string;
|
|
158
|
+
updatedAt: string;
|
|
156
159
|
profile: {
|
|
157
|
-
description: string | null;
|
|
158
|
-
image: string | null;
|
|
159
|
-
displayName: string | null;
|
|
160
|
-
gatedContentTitle: string | null;
|
|
161
160
|
hasGatedContent: boolean;
|
|
161
|
+
gatedContentTitle: string | null;
|
|
162
162
|
slug: string | null;
|
|
163
|
+
image: string | null;
|
|
164
|
+
displayName: string | null;
|
|
165
|
+
description: string | null;
|
|
163
166
|
} | null;
|
|
164
167
|
}[];
|
|
165
168
|
isLoading: boolean;
|
|
166
169
|
error: any;
|
|
167
170
|
mutate: swr.KeyedMutator<ApiResponse<{
|
|
168
|
-
|
|
171
|
+
id: string;
|
|
169
172
|
chain: string;
|
|
170
|
-
|
|
173
|
+
contractAddress: string;
|
|
171
174
|
collectionId: string | null;
|
|
172
175
|
name: string | null;
|
|
176
|
+
symbol: string | null;
|
|
173
177
|
description: string | null;
|
|
174
178
|
image: string | null;
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
179
|
+
attributes: {
|
|
180
|
+
[x: string]: unknown;
|
|
181
|
+
trait_type: string;
|
|
182
|
+
value: string | number | boolean;
|
|
183
|
+
display_type?: string | undefined;
|
|
184
|
+
}[] | null;
|
|
185
|
+
owner: string | null;
|
|
186
|
+
startBlock: string;
|
|
180
187
|
metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
|
|
181
188
|
standard: "ERC721" | "ERC1155";
|
|
182
|
-
attributes: zod.objectOutputType<{
|
|
183
|
-
trait_type: zod.ZodString;
|
|
184
|
-
value: zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>;
|
|
185
|
-
display_type: zod.ZodOptional<zod.ZodString>;
|
|
186
|
-
}, zod.ZodTypeAny, "passthrough">[] | null;
|
|
187
|
-
holderCount: number;
|
|
188
|
-
startBlock: string;
|
|
189
189
|
isFeatured: boolean;
|
|
190
190
|
isHidden: boolean;
|
|
191
|
+
service: string | null;
|
|
191
192
|
claimedBy: string | null;
|
|
192
193
|
floorPrice: string | null;
|
|
193
194
|
totalVolume: string | null;
|
|
195
|
+
holderCount: number;
|
|
194
196
|
totalSupply: number;
|
|
197
|
+
createdAt: string;
|
|
198
|
+
updatedAt: string;
|
|
195
199
|
profile: {
|
|
196
|
-
description: string | null;
|
|
197
|
-
image: string | null;
|
|
198
|
-
displayName: string | null;
|
|
199
|
-
gatedContentTitle: string | null;
|
|
200
200
|
hasGatedContent: boolean;
|
|
201
|
+
gatedContentTitle: string | null;
|
|
201
202
|
slug: string | null;
|
|
203
|
+
image: string | null;
|
|
204
|
+
displayName: string | null;
|
|
205
|
+
description: string | null;
|
|
202
206
|
} | null;
|
|
203
207
|
}[]>>;
|
|
204
208
|
};
|
|
205
209
|
declare function useCollectionTokens(contract: string | null, page?: number, limit?: number, sort?: CollectionTokensSort): {
|
|
206
210
|
tokens: {
|
|
211
|
+
id: string;
|
|
207
212
|
chain: string;
|
|
213
|
+
contractAddress: string;
|
|
208
214
|
tokenId: string;
|
|
209
215
|
owner: string | null;
|
|
210
216
|
tokenUri: string | null;
|
|
211
|
-
contractAddress: string;
|
|
212
|
-
id: string;
|
|
213
|
-
createdAt: string;
|
|
214
|
-
updatedAt: string;
|
|
215
217
|
metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
|
|
216
218
|
standard: "ERC721" | "ERC1155" | null;
|
|
217
219
|
metadata: {
|
|
218
220
|
name: string | null;
|
|
219
221
|
description: string | null;
|
|
220
222
|
image: string | null;
|
|
221
|
-
author: string | null;
|
|
222
223
|
animationUrl: string | null;
|
|
223
|
-
attributes:
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
224
|
+
attributes: {
|
|
225
|
+
[x: string]: unknown;
|
|
226
|
+
trait_type: string;
|
|
227
|
+
value: string | number | boolean;
|
|
228
|
+
display_type?: string | undefined;
|
|
229
|
+
}[] | null;
|
|
228
230
|
ipType: string | null;
|
|
229
231
|
licenseType: string | null;
|
|
230
232
|
commercialUse: boolean | null;
|
|
233
|
+
author: string | null;
|
|
231
234
|
externalUrl: string | null;
|
|
232
235
|
};
|
|
233
236
|
balances: {
|
|
234
|
-
amount: string;
|
|
235
237
|
owner: string;
|
|
238
|
+
amount: string;
|
|
236
239
|
}[] | null;
|
|
237
240
|
activeOrders: {
|
|
238
|
-
|
|
241
|
+
id: string;
|
|
239
242
|
chain: string;
|
|
240
|
-
offerer: string;
|
|
241
|
-
nftContract: string | null;
|
|
242
|
-
price: {
|
|
243
|
-
currency: string | null;
|
|
244
|
-
raw: string | null;
|
|
245
|
-
formatted: string | null;
|
|
246
|
-
decimals: number;
|
|
247
|
-
};
|
|
248
|
-
endTime: string;
|
|
249
|
-
fulfiller: string | null;
|
|
250
243
|
orderHash: string;
|
|
251
|
-
|
|
252
|
-
txHash: {
|
|
253
|
-
created: string | null;
|
|
254
|
-
fulfilled: string | null;
|
|
255
|
-
cancelled: string | null;
|
|
256
|
-
};
|
|
257
|
-
token: {
|
|
258
|
-
name: string | null;
|
|
259
|
-
description: string | null;
|
|
260
|
-
image: string | null;
|
|
261
|
-
animationUrl: string | null;
|
|
262
|
-
} | null;
|
|
244
|
+
offerer: string;
|
|
263
245
|
offer: {
|
|
264
|
-
token: string;
|
|
265
246
|
itemType: string;
|
|
247
|
+
token: string;
|
|
266
248
|
identifier: string;
|
|
267
249
|
startAmount: string;
|
|
268
250
|
endAmount: string;
|
|
269
251
|
};
|
|
270
|
-
id: string;
|
|
271
252
|
consideration: {
|
|
272
|
-
recipient: string;
|
|
273
|
-
token: string;
|
|
274
253
|
itemType: string;
|
|
254
|
+
token: string;
|
|
275
255
|
identifier: string;
|
|
276
256
|
startAmount: string;
|
|
277
257
|
endAmount: string;
|
|
258
|
+
recipient: string;
|
|
278
259
|
};
|
|
260
|
+
startTime: string;
|
|
261
|
+
endTime: string;
|
|
262
|
+
status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
|
|
263
|
+
fulfiller: string | null;
|
|
264
|
+
nftContract: string | null;
|
|
279
265
|
nftTokenId: string | null;
|
|
266
|
+
price: {
|
|
267
|
+
raw: string | null;
|
|
268
|
+
formatted: string | null;
|
|
269
|
+
currency: string | null;
|
|
270
|
+
decimals: number;
|
|
271
|
+
};
|
|
272
|
+
txHash: {
|
|
273
|
+
created: string | null;
|
|
274
|
+
fulfilled: string | null;
|
|
275
|
+
cancelled: string | null;
|
|
276
|
+
};
|
|
280
277
|
createdBlockNumber: string;
|
|
281
278
|
remainingAmount: string | null;
|
|
282
279
|
createdAt: string;
|
|
283
280
|
updatedAt: string;
|
|
281
|
+
token: {
|
|
282
|
+
name: string | null;
|
|
283
|
+
image: string | null;
|
|
284
|
+
description: string | null;
|
|
285
|
+
animationUrl: string | null;
|
|
286
|
+
} | null;
|
|
284
287
|
parentOrderHash?: string | null | undefined;
|
|
285
288
|
counterOfferMessage?: string | null | undefined;
|
|
286
289
|
hasActiveCounterOffer?: boolean | undefined;
|
|
287
290
|
}[];
|
|
291
|
+
createdAt: string;
|
|
292
|
+
updatedAt: string;
|
|
288
293
|
holderCount?: number | undefined;
|
|
289
294
|
supply?: string | undefined;
|
|
290
295
|
}[];
|
|
@@ -292,174 +297,176 @@ declare function useCollectionTokens(contract: string | null, page?: number, lim
|
|
|
292
297
|
isLoading: boolean;
|
|
293
298
|
error: any;
|
|
294
299
|
mutate: swr.KeyedMutator<ApiResponse<{
|
|
300
|
+
id: string;
|
|
295
301
|
chain: string;
|
|
302
|
+
contractAddress: string;
|
|
296
303
|
tokenId: string;
|
|
297
304
|
owner: string | null;
|
|
298
305
|
tokenUri: string | null;
|
|
299
|
-
contractAddress: string;
|
|
300
|
-
id: string;
|
|
301
|
-
createdAt: string;
|
|
302
|
-
updatedAt: string;
|
|
303
306
|
metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
|
|
304
307
|
standard: "ERC721" | "ERC1155" | null;
|
|
305
308
|
metadata: {
|
|
306
309
|
name: string | null;
|
|
307
310
|
description: string | null;
|
|
308
311
|
image: string | null;
|
|
309
|
-
author: string | null;
|
|
310
312
|
animationUrl: string | null;
|
|
311
|
-
attributes:
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
313
|
+
attributes: {
|
|
314
|
+
[x: string]: unknown;
|
|
315
|
+
trait_type: string;
|
|
316
|
+
value: string | number | boolean;
|
|
317
|
+
display_type?: string | undefined;
|
|
318
|
+
}[] | null;
|
|
316
319
|
ipType: string | null;
|
|
317
320
|
licenseType: string | null;
|
|
318
321
|
commercialUse: boolean | null;
|
|
322
|
+
author: string | null;
|
|
319
323
|
externalUrl: string | null;
|
|
320
324
|
};
|
|
321
325
|
balances: {
|
|
322
|
-
amount: string;
|
|
323
326
|
owner: string;
|
|
327
|
+
amount: string;
|
|
324
328
|
}[] | null;
|
|
325
329
|
activeOrders: {
|
|
326
|
-
|
|
330
|
+
id: string;
|
|
327
331
|
chain: string;
|
|
328
|
-
offerer: string;
|
|
329
|
-
nftContract: string | null;
|
|
330
|
-
price: {
|
|
331
|
-
currency: string | null;
|
|
332
|
-
raw: string | null;
|
|
333
|
-
formatted: string | null;
|
|
334
|
-
decimals: number;
|
|
335
|
-
};
|
|
336
|
-
endTime: string;
|
|
337
|
-
fulfiller: string | null;
|
|
338
332
|
orderHash: string;
|
|
339
|
-
|
|
340
|
-
txHash: {
|
|
341
|
-
created: string | null;
|
|
342
|
-
fulfilled: string | null;
|
|
343
|
-
cancelled: string | null;
|
|
344
|
-
};
|
|
345
|
-
token: {
|
|
346
|
-
name: string | null;
|
|
347
|
-
description: string | null;
|
|
348
|
-
image: string | null;
|
|
349
|
-
animationUrl: string | null;
|
|
350
|
-
} | null;
|
|
333
|
+
offerer: string;
|
|
351
334
|
offer: {
|
|
352
|
-
token: string;
|
|
353
335
|
itemType: string;
|
|
336
|
+
token: string;
|
|
354
337
|
identifier: string;
|
|
355
338
|
startAmount: string;
|
|
356
339
|
endAmount: string;
|
|
357
340
|
};
|
|
358
|
-
id: string;
|
|
359
341
|
consideration: {
|
|
360
|
-
recipient: string;
|
|
361
|
-
token: string;
|
|
362
342
|
itemType: string;
|
|
343
|
+
token: string;
|
|
363
344
|
identifier: string;
|
|
364
345
|
startAmount: string;
|
|
365
346
|
endAmount: string;
|
|
347
|
+
recipient: string;
|
|
366
348
|
};
|
|
349
|
+
startTime: string;
|
|
350
|
+
endTime: string;
|
|
351
|
+
status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
|
|
352
|
+
fulfiller: string | null;
|
|
353
|
+
nftContract: string | null;
|
|
367
354
|
nftTokenId: string | null;
|
|
355
|
+
price: {
|
|
356
|
+
raw: string | null;
|
|
357
|
+
formatted: string | null;
|
|
358
|
+
currency: string | null;
|
|
359
|
+
decimals: number;
|
|
360
|
+
};
|
|
361
|
+
txHash: {
|
|
362
|
+
created: string | null;
|
|
363
|
+
fulfilled: string | null;
|
|
364
|
+
cancelled: string | null;
|
|
365
|
+
};
|
|
368
366
|
createdBlockNumber: string;
|
|
369
367
|
remainingAmount: string | null;
|
|
370
368
|
createdAt: string;
|
|
371
369
|
updatedAt: string;
|
|
370
|
+
token: {
|
|
371
|
+
name: string | null;
|
|
372
|
+
image: string | null;
|
|
373
|
+
description: string | null;
|
|
374
|
+
animationUrl: string | null;
|
|
375
|
+
} | null;
|
|
372
376
|
parentOrderHash?: string | null | undefined;
|
|
373
377
|
counterOfferMessage?: string | null | undefined;
|
|
374
378
|
hasActiveCounterOffer?: boolean | undefined;
|
|
375
379
|
}[];
|
|
380
|
+
createdAt: string;
|
|
381
|
+
updatedAt: string;
|
|
376
382
|
holderCount?: number | undefined;
|
|
377
383
|
supply?: string | undefined;
|
|
378
384
|
}[]>>;
|
|
379
385
|
};
|
|
380
386
|
declare function useNearbyCollectionTokens(contract: string | null, currentTokenId: string | null, count?: number, poolSize?: number): {
|
|
381
387
|
tokens: {
|
|
388
|
+
id: string;
|
|
382
389
|
chain: string;
|
|
390
|
+
contractAddress: string;
|
|
383
391
|
tokenId: string;
|
|
384
392
|
owner: string | null;
|
|
385
393
|
tokenUri: string | null;
|
|
386
|
-
contractAddress: string;
|
|
387
|
-
id: string;
|
|
388
|
-
createdAt: string;
|
|
389
|
-
updatedAt: string;
|
|
390
394
|
metadataStatus: "PENDING" | "FETCHING" | "FETCHED" | "FAILED";
|
|
391
395
|
standard: "ERC721" | "ERC1155" | null;
|
|
392
396
|
metadata: {
|
|
393
397
|
name: string | null;
|
|
394
398
|
description: string | null;
|
|
395
399
|
image: string | null;
|
|
396
|
-
author: string | null;
|
|
397
400
|
animationUrl: string | null;
|
|
398
|
-
attributes:
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
401
|
+
attributes: {
|
|
402
|
+
[x: string]: unknown;
|
|
403
|
+
trait_type: string;
|
|
404
|
+
value: string | number | boolean;
|
|
405
|
+
display_type?: string | undefined;
|
|
406
|
+
}[] | null;
|
|
403
407
|
ipType: string | null;
|
|
404
408
|
licenseType: string | null;
|
|
405
409
|
commercialUse: boolean | null;
|
|
410
|
+
author: string | null;
|
|
406
411
|
externalUrl: string | null;
|
|
407
412
|
};
|
|
408
413
|
balances: {
|
|
409
|
-
amount: string;
|
|
410
414
|
owner: string;
|
|
415
|
+
amount: string;
|
|
411
416
|
}[] | null;
|
|
412
417
|
activeOrders: {
|
|
413
|
-
|
|
418
|
+
id: string;
|
|
414
419
|
chain: string;
|
|
415
|
-
offerer: string;
|
|
416
|
-
nftContract: string | null;
|
|
417
|
-
price: {
|
|
418
|
-
currency: string | null;
|
|
419
|
-
raw: string | null;
|
|
420
|
-
formatted: string | null;
|
|
421
|
-
decimals: number;
|
|
422
|
-
};
|
|
423
|
-
endTime: string;
|
|
424
|
-
fulfiller: string | null;
|
|
425
420
|
orderHash: string;
|
|
426
|
-
|
|
427
|
-
txHash: {
|
|
428
|
-
created: string | null;
|
|
429
|
-
fulfilled: string | null;
|
|
430
|
-
cancelled: string | null;
|
|
431
|
-
};
|
|
432
|
-
token: {
|
|
433
|
-
name: string | null;
|
|
434
|
-
description: string | null;
|
|
435
|
-
image: string | null;
|
|
436
|
-
animationUrl: string | null;
|
|
437
|
-
} | null;
|
|
421
|
+
offerer: string;
|
|
438
422
|
offer: {
|
|
439
|
-
token: string;
|
|
440
423
|
itemType: string;
|
|
424
|
+
token: string;
|
|
441
425
|
identifier: string;
|
|
442
426
|
startAmount: string;
|
|
443
427
|
endAmount: string;
|
|
444
428
|
};
|
|
445
|
-
id: string;
|
|
446
429
|
consideration: {
|
|
447
|
-
recipient: string;
|
|
448
|
-
token: string;
|
|
449
430
|
itemType: string;
|
|
431
|
+
token: string;
|
|
450
432
|
identifier: string;
|
|
451
433
|
startAmount: string;
|
|
452
434
|
endAmount: string;
|
|
435
|
+
recipient: string;
|
|
453
436
|
};
|
|
437
|
+
startTime: string;
|
|
438
|
+
endTime: string;
|
|
439
|
+
status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
|
|
440
|
+
fulfiller: string | null;
|
|
441
|
+
nftContract: string | null;
|
|
454
442
|
nftTokenId: string | null;
|
|
443
|
+
price: {
|
|
444
|
+
raw: string | null;
|
|
445
|
+
formatted: string | null;
|
|
446
|
+
currency: string | null;
|
|
447
|
+
decimals: number;
|
|
448
|
+
};
|
|
449
|
+
txHash: {
|
|
450
|
+
created: string | null;
|
|
451
|
+
fulfilled: string | null;
|
|
452
|
+
cancelled: string | null;
|
|
453
|
+
};
|
|
455
454
|
createdBlockNumber: string;
|
|
456
455
|
remainingAmount: string | null;
|
|
457
456
|
createdAt: string;
|
|
458
457
|
updatedAt: string;
|
|
458
|
+
token: {
|
|
459
|
+
name: string | null;
|
|
460
|
+
image: string | null;
|
|
461
|
+
description: string | null;
|
|
462
|
+
animationUrl: string | null;
|
|
463
|
+
} | null;
|
|
459
464
|
parentOrderHash?: string | null | undefined;
|
|
460
465
|
counterOfferMessage?: string | null | undefined;
|
|
461
466
|
hasActiveCounterOffer?: boolean | undefined;
|
|
462
467
|
}[];
|
|
468
|
+
createdAt: string;
|
|
469
|
+
updatedAt: string;
|
|
463
470
|
holderCount?: number | undefined;
|
|
464
471
|
supply?: string | undefined;
|
|
465
472
|
}[];
|