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