@medialane/ui 0.219.0 → 0.221.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.
Files changed (146) hide show
  1. package/README.md +1 -1
  2. package/dist/components/account/email-code-entry.d.cts +1 -0
  3. package/dist/components/account/email-code-entry.d.ts +1 -0
  4. package/dist/components/creator-page.cjs +1 -1
  5. package/dist/components/creator-page.cjs.map +1 -1
  6. package/dist/components/creator-page.js +1 -1
  7. package/dist/components/creator-page.js.map +1 -1
  8. package/dist/components/external-link-field.cjs +56 -0
  9. package/dist/components/external-link-field.cjs.map +1 -0
  10. package/dist/components/external-link-field.d.cts +9 -0
  11. package/dist/components/external-link-field.d.ts +9 -0
  12. package/dist/components/external-link-field.js +32 -0
  13. package/dist/components/external-link-field.js.map +1 -0
  14. package/dist/components/fast-mint/fast-mint.cjs +8 -8
  15. package/dist/components/fast-mint/fast-mint.cjs.map +1 -1
  16. package/dist/components/fast-mint/fast-mint.js +8 -8
  17. package/dist/components/fast-mint/fast-mint.js.map +1 -1
  18. package/dist/components/license-request-page.cjs +11 -13
  19. package/dist/components/license-request-page.cjs.map +1 -1
  20. package/dist/components/license-request-page.js +11 -13
  21. package/dist/components/license-request-page.js.map +1 -1
  22. package/dist/components/media-wallet/media-wallet-activity.cjs +2 -2
  23. package/dist/components/media-wallet/media-wallet-activity.cjs.map +1 -1
  24. package/dist/components/media-wallet/media-wallet-activity.js +2 -2
  25. package/dist/components/media-wallet/media-wallet-activity.js.map +1 -1
  26. package/dist/components/media-wallet/media-wallet-send.cjs +1 -1
  27. package/dist/components/media-wallet/media-wallet-send.cjs.map +1 -1
  28. package/dist/components/media-wallet/media-wallet-send.js +1 -1
  29. package/dist/components/media-wallet/media-wallet-send.js.map +1 -1
  30. package/dist/components/media-wallet/media-wallet-token-detail.cjs +1 -1
  31. package/dist/components/media-wallet/media-wallet-token-detail.cjs.map +1 -1
  32. package/dist/components/media-wallet/media-wallet-token-detail.js +1 -1
  33. package/dist/components/media-wallet/media-wallet-token-detail.js.map +1 -1
  34. package/dist/components/portfolio-collections.cjs +82 -0
  35. package/dist/components/portfolio-collections.cjs.map +1 -0
  36. package/dist/components/portfolio-collections.d.cts +8 -0
  37. package/dist/components/portfolio-collections.d.ts +8 -0
  38. package/dist/components/portfolio-collections.js +58 -0
  39. package/dist/components/portfolio-collections.js.map +1 -0
  40. package/dist/components/remix-browse-page.cjs +1 -1
  41. package/dist/components/remix-browse-page.cjs.map +1 -1
  42. package/dist/components/remix-browse-page.js +1 -1
  43. package/dist/components/remix-browse-page.js.map +1 -1
  44. package/dist/index.cjs +6 -0
  45. package/dist/index.cjs.map +1 -1
  46. package/dist/index.d.cts +4 -1
  47. package/dist/index.d.ts +4 -1
  48. package/dist/index.js +4 -0
  49. package/dist/index.js.map +1 -1
  50. package/dist/utils/app-wallet.d.cts +5 -5
  51. package/dist/utils/app-wallet.d.ts +5 -5
  52. package/dist/utils/drop/actions.cjs +7 -7
  53. package/dist/utils/drop/actions.cjs.map +1 -1
  54. package/dist/utils/drop/actions.js +7 -7
  55. package/dist/utils/drop/actions.js.map +1 -1
  56. package/dist/utils/ipfs-upload.cjs +3 -3
  57. package/dist/utils/ipfs-upload.cjs.map +1 -1
  58. package/dist/utils/ipfs-upload.js +3 -3
  59. package/dist/utils/ipfs-upload.js.map +1 -1
  60. package/dist/utils/run-intent-calls.cjs +1 -1
  61. package/dist/utils/run-intent-calls.cjs.map +1 -1
  62. package/dist/utils/run-intent-calls.d.cts +1 -3
  63. package/dist/utils/run-intent-calls.d.ts +1 -3
  64. package/dist/utils/run-intent-calls.js +1 -1
  65. package/dist/utils/run-intent-calls.js.map +1 -1
  66. package/dist/utils/sitemap-data.cjs +3 -3
  67. package/dist/utils/sitemap-data.cjs.map +1 -1
  68. package/dist/utils/sitemap-data.js +3 -3
  69. package/dist/utils/sitemap-data.js.map +1 -1
  70. package/dist/utils/use-activities.cjs +2 -2
  71. package/dist/utils/use-activities.cjs.map +1 -1
  72. package/dist/utils/use-activities.js +2 -2
  73. package/dist/utils/use-activities.js.map +1 -1
  74. package/dist/utils/use-coin-price.cjs +1 -1
  75. package/dist/utils/use-coin-price.cjs.map +1 -1
  76. package/dist/utils/use-coin-price.js +1 -1
  77. package/dist/utils/use-coin-price.js.map +1 -1
  78. package/dist/utils/use-collections.cjs +5 -5
  79. package/dist/utils/use-collections.cjs.map +1 -1
  80. package/dist/utils/use-collections.js +5 -5
  81. package/dist/utils/use-collections.js.map +1 -1
  82. package/dist/utils/use-comments.cjs +1 -1
  83. package/dist/utils/use-comments.cjs.map +1 -1
  84. package/dist/utils/use-comments.js +1 -1
  85. package/dist/utils/use-comments.js.map +1 -1
  86. package/dist/utils/use-creators.cjs +1 -1
  87. package/dist/utils/use-creators.cjs.map +1 -1
  88. package/dist/utils/use-creators.js +1 -1
  89. package/dist/utils/use-creators.js.map +1 -1
  90. package/dist/utils/use-drops.cjs +7 -7
  91. package/dist/utils/use-drops.cjs.map +1 -1
  92. package/dist/utils/use-drops.js +7 -7
  93. package/dist/utils/use-drops.js.map +1 -1
  94. package/dist/utils/use-email-code.cjs.map +1 -1
  95. package/dist/utils/use-email-code.d.cts +2 -4
  96. package/dist/utils/use-email-code.d.ts +2 -4
  97. package/dist/utils/use-email-code.js.map +1 -1
  98. package/dist/utils/use-full-token-data.cjs +1 -1
  99. package/dist/utils/use-full-token-data.cjs.map +1 -1
  100. package/dist/utils/use-full-token-data.js +1 -1
  101. package/dist/utils/use-full-token-data.js.map +1 -1
  102. package/dist/utils/use-orders.cjs +8 -8
  103. package/dist/utils/use-orders.cjs.map +1 -1
  104. package/dist/utils/use-orders.d.cts +613 -13
  105. package/dist/utils/use-orders.d.ts +613 -13
  106. package/dist/utils/use-orders.js +8 -8
  107. package/dist/utils/use-orders.js.map +1 -1
  108. package/dist/utils/use-platform-stats.cjs +1 -1
  109. package/dist/utils/use-platform-stats.cjs.map +1 -1
  110. package/dist/utils/use-platform-stats.js +1 -1
  111. package/dist/utils/use-platform-stats.js.map +1 -1
  112. package/dist/utils/use-pop.cjs +2 -2
  113. package/dist/utils/use-pop.cjs.map +1 -1
  114. package/dist/utils/use-pop.js +2 -2
  115. package/dist/utils/use-pop.js.map +1 -1
  116. package/dist/utils/use-profiles.cjs +3 -3
  117. package/dist/utils/use-profiles.cjs.map +1 -1
  118. package/dist/utils/use-profiles.js +3 -3
  119. package/dist/utils/use-profiles.js.map +1 -1
  120. package/dist/utils/use-remix-offers.cjs +1 -1
  121. package/dist/utils/use-remix-offers.cjs.map +1 -1
  122. package/dist/utils/use-remix-offers.js +1 -1
  123. package/dist/utils/use-remix-offers.js.map +1 -1
  124. package/dist/utils/use-rewards.cjs +5 -5
  125. package/dist/utils/use-rewards.cjs.map +1 -1
  126. package/dist/utils/use-rewards.js +5 -5
  127. package/dist/utils/use-rewards.js.map +1 -1
  128. package/dist/utils/use-sponsorship.cjs +6 -6
  129. package/dist/utils/use-sponsorship.cjs.map +1 -1
  130. package/dist/utils/use-sponsorship.js +6 -6
  131. package/dist/utils/use-sponsorship.js.map +1 -1
  132. package/dist/utils/use-tiers.cjs +8 -8
  133. package/dist/utils/use-tiers.cjs.map +1 -1
  134. package/dist/utils/use-tiers.js +8 -8
  135. package/dist/utils/use-tiers.js.map +1 -1
  136. package/dist/utils/use-tokens-by-ip-type.cjs +1 -1
  137. package/dist/utils/use-tokens-by-ip-type.cjs.map +1 -1
  138. package/dist/utils/use-tokens-by-ip-type.js +1 -1
  139. package/dist/utils/use-tokens-by-ip-type.js.map +1 -1
  140. package/dist/utils/use-tokens.cjs +7 -7
  141. package/dist/utils/use-tokens.cjs.map +1 -1
  142. package/dist/utils/use-tokens.d.cts +3 -3
  143. package/dist/utils/use-tokens.d.ts +3 -3
  144. package/dist/utils/use-tokens.js +7 -7
  145. package/dist/utils/use-tokens.js.map +1 -1
  146. package/package.json +3 -3
@@ -1,49 +1,649 @@
1
1
  import * as swr from 'swr';
2
2
  import * as _medialane_sdk from '@medialane/sdk';
3
- import { ApiOrder, ApiResponse, ApiOrdersQuery } from '@medialane/sdk';
3
+ import { ApiResponse, ApiOrdersQuery } from '@medialane/sdk';
4
4
 
5
5
  declare function useOrders(query?: ApiOrdersQuery): {
6
- orders: ApiOrder[];
6
+ orders: {
7
+ status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
8
+ chain: string;
9
+ offerer: string;
10
+ nftContract: string | null;
11
+ price: {
12
+ currency: string | null;
13
+ raw: string | null;
14
+ formatted: string | null;
15
+ decimals: number;
16
+ };
17
+ endTime: string;
18
+ fulfiller: string | null;
19
+ orderHash: string;
20
+ startTime: string;
21
+ txHash: {
22
+ created: string | null;
23
+ fulfilled: string | null;
24
+ cancelled: string | null;
25
+ };
26
+ token: {
27
+ name: string | null;
28
+ description: string | null;
29
+ image: string | null;
30
+ animationUrl: string | null;
31
+ } | null;
32
+ offer: {
33
+ token: string;
34
+ itemType: string;
35
+ identifier: string;
36
+ startAmount: string;
37
+ endAmount: string;
38
+ };
39
+ id: string;
40
+ consideration: {
41
+ recipient: string;
42
+ token: string;
43
+ itemType: string;
44
+ identifier: string;
45
+ startAmount: string;
46
+ endAmount: string;
47
+ };
48
+ nftTokenId: string | null;
49
+ createdBlockNumber: string;
50
+ remainingAmount: string | null;
51
+ createdAt: string;
52
+ updatedAt: string;
53
+ parentOrderHash?: string | null | undefined;
54
+ counterOfferMessage?: string | null | undefined;
55
+ hasActiveCounterOffer?: boolean | undefined;
56
+ }[];
7
57
  meta: _medialane_sdk.ApiMeta | undefined;
8
58
  isLoading: boolean;
9
59
  error: any;
10
- mutate: swr.KeyedMutator<ApiResponse<ApiOrder[]>>;
60
+ mutate: swr.KeyedMutator<ApiResponse<{
61
+ status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
62
+ chain: string;
63
+ offerer: string;
64
+ nftContract: string | null;
65
+ price: {
66
+ currency: string | null;
67
+ raw: string | null;
68
+ formatted: string | null;
69
+ decimals: number;
70
+ };
71
+ endTime: string;
72
+ fulfiller: string | null;
73
+ orderHash: string;
74
+ startTime: string;
75
+ txHash: {
76
+ created: string | null;
77
+ fulfilled: string | null;
78
+ cancelled: string | null;
79
+ };
80
+ token: {
81
+ name: string | null;
82
+ description: string | null;
83
+ image: string | null;
84
+ animationUrl: string | null;
85
+ } | null;
86
+ offer: {
87
+ token: string;
88
+ itemType: string;
89
+ identifier: string;
90
+ startAmount: string;
91
+ endAmount: string;
92
+ };
93
+ id: string;
94
+ consideration: {
95
+ recipient: string;
96
+ token: string;
97
+ itemType: string;
98
+ identifier: string;
99
+ startAmount: string;
100
+ endAmount: string;
101
+ };
102
+ nftTokenId: string | null;
103
+ createdBlockNumber: string;
104
+ remainingAmount: string | null;
105
+ createdAt: string;
106
+ updatedAt: string;
107
+ parentOrderHash?: string | null | undefined;
108
+ counterOfferMessage?: string | null | undefined;
109
+ hasActiveCounterOffer?: boolean | undefined;
110
+ }[]>>;
11
111
  };
12
112
  declare function useOrder(orderHash: string | null): {
13
- order: ApiOrder | null;
113
+ order: {
114
+ status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
115
+ chain: string;
116
+ offerer: string;
117
+ nftContract: string | null;
118
+ price: {
119
+ currency: string | null;
120
+ raw: string | null;
121
+ formatted: string | null;
122
+ decimals: number;
123
+ };
124
+ endTime: string;
125
+ fulfiller: string | null;
126
+ orderHash: string;
127
+ startTime: string;
128
+ txHash: {
129
+ created: string | null;
130
+ fulfilled: string | null;
131
+ cancelled: string | null;
132
+ };
133
+ token: {
134
+ name: string | null;
135
+ description: string | null;
136
+ image: string | null;
137
+ animationUrl: string | null;
138
+ } | null;
139
+ offer: {
140
+ token: string;
141
+ itemType: string;
142
+ identifier: string;
143
+ startAmount: string;
144
+ endAmount: string;
145
+ };
146
+ id: string;
147
+ consideration: {
148
+ recipient: string;
149
+ token: string;
150
+ itemType: string;
151
+ identifier: string;
152
+ startAmount: string;
153
+ endAmount: string;
154
+ };
155
+ nftTokenId: string | null;
156
+ createdBlockNumber: string;
157
+ remainingAmount: string | null;
158
+ createdAt: string;
159
+ updatedAt: string;
160
+ parentOrderHash?: string | null | undefined;
161
+ counterOfferMessage?: string | null | undefined;
162
+ hasActiveCounterOffer?: boolean | undefined;
163
+ } | null;
14
164
  isLoading: boolean;
15
165
  error: any;
16
166
  };
17
167
  declare function useTokenListings(contract: string | null, tokenId: string | null): {
18
- listings: ApiOrder[];
168
+ listings: {
169
+ status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
170
+ chain: string;
171
+ offerer: string;
172
+ nftContract: string | null;
173
+ price: {
174
+ currency: string | null;
175
+ raw: string | null;
176
+ formatted: string | null;
177
+ decimals: number;
178
+ };
179
+ endTime: string;
180
+ fulfiller: string | null;
181
+ orderHash: string;
182
+ startTime: string;
183
+ txHash: {
184
+ created: string | null;
185
+ fulfilled: string | null;
186
+ cancelled: string | null;
187
+ };
188
+ token: {
189
+ name: string | null;
190
+ description: string | null;
191
+ image: string | null;
192
+ animationUrl: string | null;
193
+ } | null;
194
+ offer: {
195
+ token: string;
196
+ itemType: string;
197
+ identifier: string;
198
+ startAmount: string;
199
+ endAmount: string;
200
+ };
201
+ id: string;
202
+ consideration: {
203
+ recipient: string;
204
+ token: string;
205
+ itemType: string;
206
+ identifier: string;
207
+ startAmount: string;
208
+ endAmount: string;
209
+ };
210
+ nftTokenId: string | null;
211
+ createdBlockNumber: string;
212
+ remainingAmount: string | null;
213
+ createdAt: string;
214
+ updatedAt: string;
215
+ parentOrderHash?: string | null | undefined;
216
+ counterOfferMessage?: string | null | undefined;
217
+ hasActiveCounterOffer?: boolean | undefined;
218
+ }[];
19
219
  isLoading: boolean;
20
220
  error: any;
21
- mutate: swr.KeyedMutator<ApiResponse<ApiOrder[]>>;
221
+ mutate: swr.KeyedMutator<ApiResponse<{
222
+ status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
223
+ chain: string;
224
+ offerer: string;
225
+ nftContract: string | null;
226
+ price: {
227
+ currency: string | null;
228
+ raw: string | null;
229
+ formatted: string | null;
230
+ decimals: number;
231
+ };
232
+ endTime: string;
233
+ fulfiller: string | null;
234
+ orderHash: string;
235
+ startTime: string;
236
+ txHash: {
237
+ created: string | null;
238
+ fulfilled: string | null;
239
+ cancelled: string | null;
240
+ };
241
+ token: {
242
+ name: string | null;
243
+ description: string | null;
244
+ image: string | null;
245
+ animationUrl: string | null;
246
+ } | null;
247
+ offer: {
248
+ token: string;
249
+ itemType: string;
250
+ identifier: string;
251
+ startAmount: string;
252
+ endAmount: string;
253
+ };
254
+ id: string;
255
+ consideration: {
256
+ recipient: string;
257
+ token: string;
258
+ itemType: string;
259
+ identifier: string;
260
+ startAmount: string;
261
+ endAmount: string;
262
+ };
263
+ nftTokenId: string | null;
264
+ createdBlockNumber: string;
265
+ remainingAmount: string | null;
266
+ createdAt: string;
267
+ updatedAt: string;
268
+ parentOrderHash?: string | null | undefined;
269
+ counterOfferMessage?: string | null | undefined;
270
+ hasActiveCounterOffer?: boolean | undefined;
271
+ }[]>>;
22
272
  };
23
273
  declare function useUserOrders(address: string | null): {
24
- orders: ApiOrder[];
274
+ orders: {
275
+ status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
276
+ chain: string;
277
+ offerer: string;
278
+ nftContract: string | null;
279
+ price: {
280
+ currency: string | null;
281
+ raw: string | null;
282
+ formatted: string | null;
283
+ decimals: number;
284
+ };
285
+ endTime: string;
286
+ fulfiller: string | null;
287
+ orderHash: string;
288
+ startTime: string;
289
+ txHash: {
290
+ created: string | null;
291
+ fulfilled: string | null;
292
+ cancelled: string | null;
293
+ };
294
+ token: {
295
+ name: string | null;
296
+ description: string | null;
297
+ image: string | null;
298
+ animationUrl: string | null;
299
+ } | null;
300
+ offer: {
301
+ token: string;
302
+ itemType: string;
303
+ identifier: string;
304
+ startAmount: string;
305
+ endAmount: string;
306
+ };
307
+ id: string;
308
+ consideration: {
309
+ recipient: string;
310
+ token: string;
311
+ itemType: string;
312
+ identifier: string;
313
+ startAmount: string;
314
+ endAmount: string;
315
+ };
316
+ nftTokenId: string | null;
317
+ createdBlockNumber: string;
318
+ remainingAmount: string | null;
319
+ createdAt: string;
320
+ updatedAt: string;
321
+ parentOrderHash?: string | null | undefined;
322
+ counterOfferMessage?: string | null | undefined;
323
+ hasActiveCounterOffer?: boolean | undefined;
324
+ }[];
25
325
  isLoading: boolean;
26
326
  error: any;
27
- mutate: swr.KeyedMutator<ApiResponse<ApiOrder[]>>;
327
+ mutate: swr.KeyedMutator<ApiResponse<{
328
+ status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
329
+ chain: string;
330
+ offerer: string;
331
+ nftContract: string | null;
332
+ price: {
333
+ currency: string | null;
334
+ raw: string | null;
335
+ formatted: string | null;
336
+ decimals: number;
337
+ };
338
+ endTime: string;
339
+ fulfiller: string | null;
340
+ orderHash: string;
341
+ startTime: string;
342
+ txHash: {
343
+ created: string | null;
344
+ fulfilled: string | null;
345
+ cancelled: string | null;
346
+ };
347
+ token: {
348
+ name: string | null;
349
+ description: string | null;
350
+ image: string | null;
351
+ animationUrl: string | null;
352
+ } | null;
353
+ offer: {
354
+ token: string;
355
+ itemType: string;
356
+ identifier: string;
357
+ startAmount: string;
358
+ endAmount: string;
359
+ };
360
+ id: string;
361
+ consideration: {
362
+ recipient: string;
363
+ token: string;
364
+ itemType: string;
365
+ identifier: string;
366
+ startAmount: string;
367
+ endAmount: string;
368
+ };
369
+ nftTokenId: string | null;
370
+ createdBlockNumber: string;
371
+ remainingAmount: string | null;
372
+ createdAt: string;
373
+ updatedAt: string;
374
+ parentOrderHash?: string | null | undefined;
375
+ counterOfferMessage?: string | null | undefined;
376
+ hasActiveCounterOffer?: boolean | undefined;
377
+ }[]>>;
28
378
  };
29
379
  declare function useCounterOffers({ originalOrderHash, sellerAddress, }: {
30
380
  originalOrderHash?: string | null;
31
381
  sellerAddress?: string | null;
32
382
  }): {
33
- counterOffers: ApiOrder[];
383
+ counterOffers: {
384
+ status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
385
+ chain: string;
386
+ offerer: string;
387
+ nftContract: string | null;
388
+ price: {
389
+ currency: string | null;
390
+ raw: string | null;
391
+ formatted: string | null;
392
+ decimals: number;
393
+ };
394
+ endTime: string;
395
+ fulfiller: string | null;
396
+ orderHash: string;
397
+ startTime: string;
398
+ txHash: {
399
+ created: string | null;
400
+ fulfilled: string | null;
401
+ cancelled: string | null;
402
+ };
403
+ token: {
404
+ name: string | null;
405
+ description: string | null;
406
+ image: string | null;
407
+ animationUrl: string | null;
408
+ } | null;
409
+ offer: {
410
+ token: string;
411
+ itemType: string;
412
+ identifier: string;
413
+ startAmount: string;
414
+ endAmount: string;
415
+ };
416
+ id: string;
417
+ consideration: {
418
+ recipient: string;
419
+ token: string;
420
+ itemType: string;
421
+ identifier: string;
422
+ startAmount: string;
423
+ endAmount: string;
424
+ };
425
+ nftTokenId: string | null;
426
+ createdBlockNumber: string;
427
+ remainingAmount: string | null;
428
+ createdAt: string;
429
+ updatedAt: string;
430
+ parentOrderHash?: string | null | undefined;
431
+ counterOfferMessage?: string | null | undefined;
432
+ hasActiveCounterOffer?: boolean | undefined;
433
+ }[];
34
434
  total: number;
35
435
  isLoading: boolean;
36
436
  error: any;
37
- mutate: swr.KeyedMutator<ApiResponse<ApiOrder[]>>;
437
+ mutate: swr.KeyedMutator<ApiResponse<{
438
+ status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
439
+ chain: string;
440
+ offerer: string;
441
+ nftContract: string | null;
442
+ price: {
443
+ currency: string | null;
444
+ raw: string | null;
445
+ formatted: string | null;
446
+ decimals: number;
447
+ };
448
+ endTime: string;
449
+ fulfiller: string | null;
450
+ orderHash: string;
451
+ startTime: string;
452
+ txHash: {
453
+ created: string | null;
454
+ fulfilled: string | null;
455
+ cancelled: string | null;
456
+ };
457
+ token: {
458
+ name: string | null;
459
+ description: string | null;
460
+ image: string | null;
461
+ animationUrl: string | null;
462
+ } | null;
463
+ offer: {
464
+ token: string;
465
+ itemType: string;
466
+ identifier: string;
467
+ startAmount: string;
468
+ endAmount: string;
469
+ };
470
+ id: string;
471
+ consideration: {
472
+ recipient: string;
473
+ token: string;
474
+ itemType: string;
475
+ identifier: string;
476
+ startAmount: string;
477
+ endAmount: string;
478
+ };
479
+ nftTokenId: string | null;
480
+ createdBlockNumber: string;
481
+ remainingAmount: string | null;
482
+ createdAt: string;
483
+ updatedAt: string;
484
+ parentOrderHash?: string | null | undefined;
485
+ counterOfferMessage?: string | null | undefined;
486
+ hasActiveCounterOffer?: boolean | undefined;
487
+ }[]>>;
38
488
  };
39
489
  declare function useReceivedOffers(address: string | null): {
40
- orders: ApiOrder[];
490
+ orders: {
491
+ status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
492
+ chain: string;
493
+ offerer: string;
494
+ nftContract: string | null;
495
+ price: {
496
+ currency: string | null;
497
+ raw: string | null;
498
+ formatted: string | null;
499
+ decimals: number;
500
+ };
501
+ endTime: string;
502
+ fulfiller: string | null;
503
+ orderHash: string;
504
+ startTime: string;
505
+ txHash: {
506
+ created: string | null;
507
+ fulfilled: string | null;
508
+ cancelled: string | null;
509
+ };
510
+ token: {
511
+ name: string | null;
512
+ description: string | null;
513
+ image: string | null;
514
+ animationUrl: string | null;
515
+ } | null;
516
+ offer: {
517
+ token: string;
518
+ itemType: string;
519
+ identifier: string;
520
+ startAmount: string;
521
+ endAmount: string;
522
+ };
523
+ id: string;
524
+ consideration: {
525
+ recipient: string;
526
+ token: string;
527
+ itemType: string;
528
+ identifier: string;
529
+ startAmount: string;
530
+ endAmount: string;
531
+ };
532
+ nftTokenId: string | null;
533
+ createdBlockNumber: string;
534
+ remainingAmount: string | null;
535
+ createdAt: string;
536
+ updatedAt: string;
537
+ parentOrderHash?: string | null | undefined;
538
+ counterOfferMessage?: string | null | undefined;
539
+ hasActiveCounterOffer?: boolean | undefined;
540
+ }[];
41
541
  isLoading: boolean;
42
542
  error: any;
43
- mutate: swr.KeyedMutator<ApiResponse<ApiOrder[]>>;
543
+ mutate: swr.KeyedMutator<ApiResponse<{
544
+ status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
545
+ chain: string;
546
+ offerer: string;
547
+ nftContract: string | null;
548
+ price: {
549
+ currency: string | null;
550
+ raw: string | null;
551
+ formatted: string | null;
552
+ decimals: number;
553
+ };
554
+ endTime: string;
555
+ fulfiller: string | null;
556
+ orderHash: string;
557
+ startTime: string;
558
+ txHash: {
559
+ created: string | null;
560
+ fulfilled: string | null;
561
+ cancelled: string | null;
562
+ };
563
+ token: {
564
+ name: string | null;
565
+ description: string | null;
566
+ image: string | null;
567
+ animationUrl: string | null;
568
+ } | null;
569
+ offer: {
570
+ token: string;
571
+ itemType: string;
572
+ identifier: string;
573
+ startAmount: string;
574
+ endAmount: string;
575
+ };
576
+ id: string;
577
+ consideration: {
578
+ recipient: string;
579
+ token: string;
580
+ itemType: string;
581
+ identifier: string;
582
+ startAmount: string;
583
+ endAmount: string;
584
+ };
585
+ nftTokenId: string | null;
586
+ createdBlockNumber: string;
587
+ remainingAmount: string | null;
588
+ createdAt: string;
589
+ updatedAt: string;
590
+ parentOrderHash?: string | null | undefined;
591
+ counterOfferMessage?: string | null | undefined;
592
+ hasActiveCounterOffer?: boolean | undefined;
593
+ }[]>>;
44
594
  };
45
595
  declare function useCollectionFloorListings(contract: string | null, limit?: number): {
46
- listings: ApiOrder[];
596
+ listings: {
597
+ status: "ACTIVE" | "FULFILLED" | "CANCELLED" | "EXPIRED";
598
+ chain: string;
599
+ offerer: string;
600
+ nftContract: string | null;
601
+ price: {
602
+ currency: string | null;
603
+ raw: string | null;
604
+ formatted: string | null;
605
+ decimals: number;
606
+ };
607
+ endTime: string;
608
+ fulfiller: string | null;
609
+ orderHash: string;
610
+ startTime: string;
611
+ txHash: {
612
+ created: string | null;
613
+ fulfilled: string | null;
614
+ cancelled: string | null;
615
+ };
616
+ token: {
617
+ name: string | null;
618
+ description: string | null;
619
+ image: string | null;
620
+ animationUrl: string | null;
621
+ } | null;
622
+ offer: {
623
+ token: string;
624
+ itemType: string;
625
+ identifier: string;
626
+ startAmount: string;
627
+ endAmount: string;
628
+ };
629
+ id: string;
630
+ consideration: {
631
+ recipient: string;
632
+ token: string;
633
+ itemType: string;
634
+ identifier: string;
635
+ startAmount: string;
636
+ endAmount: string;
637
+ };
638
+ nftTokenId: string | null;
639
+ createdBlockNumber: string;
640
+ remainingAmount: string | null;
641
+ createdAt: string;
642
+ updatedAt: string;
643
+ parentOrderHash?: string | null | undefined;
644
+ counterOfferMessage?: string | null | undefined;
645
+ hasActiveCounterOffer?: boolean | undefined;
646
+ }[];
47
647
  isLoading: boolean;
48
648
  error: any;
49
649
  };