@0xsequence/marketplace-sdk 0.5.4 → 0.5.6

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 (65) hide show
  1. package/dist/{builder-types-Jl3Ymws8.d.ts → builder-types-DgncJB3q.d.ts} +1 -1
  2. package/dist/{chunk-TFRAOS7F.js → chunk-3OP3WHPU.js} +1 -1
  3. package/dist/chunk-3OP3WHPU.js.map +1 -0
  4. package/dist/{chunk-TLNRD4BQ.js → chunk-4YR6AIXG.js} +2 -2
  5. package/dist/{chunk-JWNONWD6.js → chunk-AIGFG26L.js} +275 -151
  6. package/dist/chunk-AIGFG26L.js.map +1 -0
  7. package/dist/{chunk-ZGVCOQ4I.js → chunk-E2V2BMF6.js} +79 -31
  8. package/dist/chunk-E2V2BMF6.js.map +1 -0
  9. package/dist/{chunk-WSCUPAGR.js → chunk-LNMMWV77.js} +24 -8
  10. package/dist/chunk-LNMMWV77.js.map +1 -0
  11. package/dist/{chunk-WGGZEQHL.js → chunk-RIGIV5XT.js} +2 -2
  12. package/dist/{create-config-DOUq8Day.d.ts → create-config-CtFGrwXc.d.ts} +1 -1
  13. package/dist/index.d.ts +3 -3
  14. package/dist/index.js +1 -1
  15. package/dist/{marketplace.gen-CCJ-URn2.d.ts → marketplace.gen-BVOc6fUW.d.ts} +4 -0
  16. package/dist/{marketplace.gen-D0ADxbfH.d.ts → marketplace.gen-DLOcW6C4.d.ts} +15 -3
  17. package/dist/react/_internal/api/index.d.ts +3 -2
  18. package/dist/react/_internal/api/index.js +1 -1
  19. package/dist/react/_internal/databeat/index.d.ts +1 -1
  20. package/dist/react/_internal/databeat/index.js +3 -3
  21. package/dist/react/_internal/index.d.ts +5 -5
  22. package/dist/react/_internal/index.js +1 -1
  23. package/dist/react/_internal/wagmi/index.d.ts +3 -3
  24. package/dist/react/hooks/index.d.ts +153 -5
  25. package/dist/react/hooks/index.js +12 -2
  26. package/dist/react/index.d.ts +6 -6
  27. package/dist/react/index.js +15 -5
  28. package/dist/react/ssr/index.js +1 -0
  29. package/dist/react/ssr/index.js.map +1 -1
  30. package/dist/react/ui/components/collectible-card/index.d.ts +3 -3
  31. package/dist/react/ui/components/collectible-card/index.js +5 -5
  32. package/dist/react/ui/index.d.ts +3 -3
  33. package/dist/react/ui/index.js +5 -5
  34. package/dist/react/ui/modals/_internal/components/actionModal/index.d.ts +3 -3
  35. package/dist/react/ui/modals/_internal/components/actionModal/index.js +3 -3
  36. package/dist/{services-Dd2MoBTM.d.ts → services-Cled3TJr.d.ts} +1 -1
  37. package/dist/types/index.d.ts +3 -3
  38. package/dist/types/index.js +1 -1
  39. package/dist/{types-vOfhbBkR.d.ts → types-C4oGsbnK.d.ts} +2 -2
  40. package/dist/utils/index.d.ts +3 -3
  41. package/dist/utils/index.js +1 -1
  42. package/package.json +1 -1
  43. package/src/react/_internal/api/__mocks__/marketplace.msw.ts +13 -12
  44. package/src/react/_internal/api/marketplace.gen.ts +38 -13
  45. package/src/react/_internal/api/query-keys.ts +1 -0
  46. package/src/react/_internal/utils.ts +3 -0
  47. package/src/react/hooks/__tests__/useComparePrices.test.tsx +215 -0
  48. package/src/react/hooks/__tests__/useConvertPriceToUSD.test.tsx +173 -0
  49. package/src/react/hooks/index.ts +2 -0
  50. package/src/react/hooks/useComparePrices.tsx +106 -0
  51. package/src/react/hooks/useConvertPriceToUSD.tsx +102 -0
  52. package/src/react/ui/components/collectible-card/CollectibleCard.tsx +1 -0
  53. package/src/react/ui/components/collectible-card/Footer.tsx +23 -5
  54. package/src/react/ui/modals/BuyModal/hooks/useBuyCollectable.ts +7 -2
  55. package/src/react/ui/modals/_internal/components/floorPriceText/index.tsx +30 -12
  56. package/src/react/ui/modals/_internal/components/priceInput/__tests__/index.test.tsx +51 -4
  57. package/src/react/ui/modals/_internal/components/priceInput/index.tsx +24 -3
  58. package/tsconfig.tsbuildinfo +1 -1
  59. package/dist/chunk-JWNONWD6.js.map +0 -1
  60. package/dist/chunk-TFRAOS7F.js.map +0 -1
  61. package/dist/chunk-WSCUPAGR.js.map +0 -1
  62. package/dist/chunk-ZGVCOQ4I.js.map +0 -1
  63. /package/dist/{chunk-TLNRD4BQ.js.map → chunk-4YR6AIXG.js.map} +0 -0
  64. /package/dist/{chunk-WGGZEQHL.js.map → chunk-RIGIV5XT.js.map} +0 -0
  65. /package/src/react/ui/modals/BuyModal/hooks/__tests__/{useBuyCollectable.test.tsx → useBuyCollectable.test.tsx.bak} +0 -0
@@ -62,7 +62,7 @@ import {
62
62
  getMarketplaceClient,
63
63
  getMetadataClient,
64
64
  getQueryClient
65
- } from "./chunk-WSCUPAGR.js";
65
+ } from "./chunk-LNMMWV77.js";
66
66
  import {
67
67
  BaseError,
68
68
  ChainSwitchError,
@@ -981,6 +981,15 @@ var useCollection = (args) => {
981
981
  return useQuery5(collectionOptions(args, config));
982
982
  };
983
983
 
984
+ // src/react/hooks/useComparePrices.tsx
985
+ import { queryOptions as queryOptions9, useQuery as useQuery9 } from "@tanstack/react-query";
986
+ import { z as z9 } from "zod";
987
+
988
+ // src/react/hooks/useConvertPriceToUSD.tsx
989
+ import { queryOptions as queryOptions8, useQuery as useQuery8 } from "@tanstack/react-query";
990
+ import { formatUnits } from "viem";
991
+ import { z as z8 } from "zod";
992
+
984
993
  // src/react/hooks/useCurrencies.tsx
985
994
  import { queryOptions as queryOptions7, useQuery as useQuery7 } from "@tanstack/react-query";
986
995
  import { zeroAddress as zeroAddress2 } from "viem";
@@ -1091,17 +1100,127 @@ var useCurrencies = (args) => {
1091
1100
  return useQuery7(currenciesOptions(args, config));
1092
1101
  };
1093
1102
 
1094
- // src/react/hooks/useCurrency.tsx
1095
- import { queryOptions as queryOptions8, useQuery as useQuery8 } from "@tanstack/react-query";
1096
- import { z as z8 } from "zod";
1103
+ // src/react/hooks/useConvertPriceToUSD.tsx
1097
1104
  var ChainIdCoerce2 = ChainIdSchema.transform((val) => val.toString());
1098
- var UseCurrencyArgsSchema = z8.object({
1105
+ var UseConvertPriceToUSDArgsSchema = z8.object({
1099
1106
  chainId: ChainIdCoerce2,
1100
1107
  currencyAddress: AddressSchema,
1108
+ amountRaw: z8.string(),
1109
+ query: QueryArgSchema
1110
+ });
1111
+ var convertPriceToUSD = async (args, config) => {
1112
+ const parsedArgs = UseConvertPriceToUSDArgsSchema.parse(args);
1113
+ const queryClient = getQueryClient();
1114
+ const currencies = await queryClient.fetchQuery(
1115
+ currenciesOptions(
1116
+ {
1117
+ chainId: parsedArgs.chainId
1118
+ },
1119
+ config
1120
+ )
1121
+ );
1122
+ const currencyDetails = currencies.find(
1123
+ (c) => c.contractAddress.toLowerCase() === parsedArgs.currencyAddress.toLowerCase()
1124
+ );
1125
+ if (!currencyDetails) {
1126
+ throw new Error("Currency not found");
1127
+ }
1128
+ const amountDecimal = Number(
1129
+ formatUnits(BigInt(parsedArgs.amountRaw), currencyDetails.decimals)
1130
+ );
1131
+ const usdAmount = amountDecimal * currencyDetails.exchangeRate;
1132
+ return {
1133
+ usdAmount,
1134
+ usdAmountFormatted: usdAmount.toFixed(2)
1135
+ };
1136
+ };
1137
+ var convertPriceToUSDOptions = (args, config) => {
1138
+ return queryOptions8({
1139
+ ...args.query,
1140
+ queryKey: [
1141
+ ...currencyKeys.conversion,
1142
+ args.chainId,
1143
+ args.currencyAddress,
1144
+ args.amountRaw
1145
+ ],
1146
+ queryFn: () => convertPriceToUSD(args, config)
1147
+ });
1148
+ };
1149
+ var useConvertPriceToUSD = (args) => {
1150
+ const config = useConfig();
1151
+ return useQuery8(convertPriceToUSDOptions(args, config));
1152
+ };
1153
+
1154
+ // src/react/hooks/useComparePrices.tsx
1155
+ var ChainIdCoerce3 = ChainIdSchema.transform((val) => val.toString());
1156
+ var UseComparePricesArgsSchema = z9.object({
1157
+ chainId: ChainIdCoerce3,
1158
+ // First price details
1159
+ priceAmountRaw: z9.string(),
1160
+ priceCurrencyAddress: AddressSchema,
1161
+ // Second price details (to compare against)
1162
+ compareToPriceAmountRaw: z9.string(),
1163
+ compareToPriceCurrencyAddress: AddressSchema,
1164
+ query: QueryArgSchema
1165
+ });
1166
+ var comparePrices = async (args, config) => {
1167
+ const parsedArgs = UseComparePricesArgsSchema.parse(args);
1168
+ const [priceUSD, compareToPriceUSD] = await Promise.all([
1169
+ convertPriceToUSD(
1170
+ {
1171
+ chainId: parsedArgs.chainId,
1172
+ currencyAddress: parsedArgs.priceCurrencyAddress,
1173
+ amountRaw: parsedArgs.priceAmountRaw,
1174
+ query: {}
1175
+ },
1176
+ config
1177
+ ),
1178
+ convertPriceToUSD(
1179
+ {
1180
+ chainId: parsedArgs.chainId,
1181
+ currencyAddress: parsedArgs.compareToPriceCurrencyAddress,
1182
+ amountRaw: parsedArgs.compareToPriceAmountRaw,
1183
+ query: {}
1184
+ },
1185
+ config
1186
+ )
1187
+ ]);
1188
+ const difference = priceUSD.usdAmount - compareToPriceUSD.usdAmount;
1189
+ if (compareToPriceUSD.usdAmount === 0) {
1190
+ throw new Error("Cannot compare to zero price");
1191
+ }
1192
+ const percentageDifference = difference / compareToPriceUSD.usdAmount * 100;
1193
+ const isAbove = percentageDifference > 0;
1194
+ const isSame = percentageDifference === 0;
1195
+ return {
1196
+ percentageDifference,
1197
+ percentageDifferenceFormatted: Math.abs(percentageDifference).toFixed(2),
1198
+ status: isAbove ? "above" : isSame ? "same" : "below"
1199
+ };
1200
+ };
1201
+ var comparePricesOptions = (args, config) => {
1202
+ return queryOptions9({
1203
+ ...args.query,
1204
+ queryKey: [...currencyKeys.conversion, "compare", args],
1205
+ queryFn: () => comparePrices(args, config)
1206
+ });
1207
+ };
1208
+ var useComparePrices = (args) => {
1209
+ const config = useConfig();
1210
+ return useQuery9(comparePricesOptions(args, config));
1211
+ };
1212
+
1213
+ // src/react/hooks/useCurrency.tsx
1214
+ import { queryOptions as queryOptions10, useQuery as useQuery10 } from "@tanstack/react-query";
1215
+ import { z as z10 } from "zod";
1216
+ var ChainIdCoerce4 = ChainIdSchema.transform((val) => val.toString());
1217
+ var UseCurrencyArgsSchema = z10.object({
1218
+ chainId: ChainIdCoerce4,
1219
+ currencyAddress: AddressSchema,
1101
1220
  query: QueryArgSchema
1102
1221
  });
1103
1222
  var fetchCurrency = async (chainId, currencyAddress, config) => {
1104
- const parsedChainId = ChainIdCoerce2.parse(chainId);
1223
+ const parsedChainId = ChainIdCoerce4.parse(chainId);
1105
1224
  const queryClient = getQueryClient();
1106
1225
  let currencies = queryClient.getQueryData([...currencyKeys.lists, chainId]);
1107
1226
  if (!currencies) {
@@ -1120,7 +1239,7 @@ var fetchCurrency = async (chainId, currencyAddress, config) => {
1120
1239
  return currency;
1121
1240
  };
1122
1241
  var currencyOptions = (args, config) => {
1123
- return queryOptions8({
1242
+ return queryOptions10({
1124
1243
  ...args.query,
1125
1244
  queryKey: [...currencyKeys.details, args.chainId, args.currencyAddress],
1126
1245
  queryFn: () => fetchCurrency(args.chainId, args.currencyAddress, config)
@@ -1128,16 +1247,16 @@ var currencyOptions = (args, config) => {
1128
1247
  };
1129
1248
  var useCurrency = (args) => {
1130
1249
  const config = useConfig();
1131
- return useQuery8(currencyOptions(args, config));
1250
+ return useQuery10(currencyOptions(args, config));
1132
1251
  };
1133
1252
 
1134
1253
  // src/react/hooks/useFilters.tsx
1135
- import { queryOptions as queryOptions9, useQuery as useQuery9 } from "@tanstack/react-query";
1136
- import { z as z9 } from "zod";
1137
- var UseFiltersSchema = z9.object({
1138
- chainId: ChainIdSchema.pipe(z9.coerce.string()),
1254
+ import { queryOptions as queryOptions11, useQuery as useQuery11 } from "@tanstack/react-query";
1255
+ import { z as z11 } from "zod";
1256
+ var UseFiltersSchema = z11.object({
1257
+ chainId: ChainIdSchema.pipe(z11.coerce.string()),
1139
1258
  collectionAddress: AddressSchema,
1140
- showAllFilters: z9.boolean().default(false).optional(),
1259
+ showAllFilters: z11.boolean().default(false).optional(),
1141
1260
  query: QueryArgSchema
1142
1261
  });
1143
1262
  var fetchFilters = async (args, config) => {
@@ -1186,7 +1305,7 @@ var fetchFilters = async (args, config) => {
1186
1305
  return filteredResults;
1187
1306
  };
1188
1307
  var filtersOptions = (args, config) => {
1189
- return queryOptions9({
1308
+ return queryOptions11({
1190
1309
  ...args.query,
1191
1310
  queryKey: [...collectableKeys.filter, args, config],
1192
1311
  queryFn: () => fetchFilters(args, config)
@@ -1194,14 +1313,14 @@ var filtersOptions = (args, config) => {
1194
1313
  };
1195
1314
  var useFilters = (args) => {
1196
1315
  const config = useConfig();
1197
- return useQuery9(filtersOptions(args, config));
1316
+ return useQuery11(filtersOptions(args, config));
1198
1317
  };
1199
1318
 
1200
1319
  // src/react/hooks/useFloorOrder.tsx
1201
- import { queryOptions as queryOptions10, useQuery as useQuery10 } from "@tanstack/react-query";
1202
- import { z as z10 } from "zod";
1203
- var UseFloorOrderSchema = z10.object({
1204
- chainId: ChainIdSchema.pipe(z10.coerce.string()),
1320
+ import { queryOptions as queryOptions12, useQuery as useQuery12 } from "@tanstack/react-query";
1321
+ import { z as z12 } from "zod";
1322
+ var UseFloorOrderSchema = z12.object({
1323
+ chainId: ChainIdSchema.pipe(z12.coerce.string()),
1205
1324
  collectionAddress: AddressSchema,
1206
1325
  query: QueryArgSchema
1207
1326
  });
@@ -1210,24 +1329,24 @@ var fetchFloorOrder = async (args, config) => {
1210
1329
  return marketplaceClient.getFloorOrder({ contractAddress: args.collectionAddress }).then((data) => data.collectible);
1211
1330
  };
1212
1331
  var floorOrderOptions = (args, config) => {
1213
- return queryOptions10({
1332
+ return queryOptions12({
1214
1333
  queryKey: [...collectableKeys.floorOrders, args, config],
1215
1334
  queryFn: () => fetchFloorOrder(args, config)
1216
1335
  });
1217
1336
  };
1218
1337
  var useFloorOrder = (args) => {
1219
1338
  const config = useConfig();
1220
- return useQuery10(floorOrderOptions(args, config));
1339
+ return useQuery12(floorOrderOptions(args, config));
1221
1340
  };
1222
1341
 
1223
1342
  // src/react/hooks/useHighestOffer.tsx
1224
- import { queryOptions as queryOptions11, useQuery as useQuery11 } from "@tanstack/react-query";
1225
- import { z as z11 } from "zod";
1343
+ import { queryOptions as queryOptions13, useQuery as useQuery13 } from "@tanstack/react-query";
1344
+ import { z as z13 } from "zod";
1226
1345
  var UseHighestOfferArgsSchema = getCollectibleHighestOfferArgsSchema.omit({
1227
1346
  contractAddress: true
1228
1347
  }).extend({
1229
1348
  collectionAddress: AddressSchema,
1230
- chainId: ChainIdSchema.pipe(z11.coerce.string()),
1349
+ chainId: ChainIdSchema.pipe(z13.coerce.string()),
1231
1350
  query: QueryArgSchema
1232
1351
  });
1233
1352
  var fetchHighestOffer = async (args, config) => {
@@ -1239,7 +1358,7 @@ var fetchHighestOffer = async (args, config) => {
1239
1358
  });
1240
1359
  };
1241
1360
  var highestOfferOptions = (args, config) => {
1242
- return queryOptions11({
1361
+ return queryOptions13({
1243
1362
  ...args.query,
1244
1363
  queryKey: [...collectableKeys.highestOffers, args, config],
1245
1364
  queryFn: () => fetchHighestOffer(args, config)
@@ -1247,40 +1366,40 @@ var highestOfferOptions = (args, config) => {
1247
1366
  };
1248
1367
  var useHighestOffer = (args) => {
1249
1368
  const config = useConfig();
1250
- return useQuery11(highestOfferOptions(args, config));
1369
+ return useQuery13(highestOfferOptions(args, config));
1251
1370
  };
1252
1371
 
1253
1372
  // src/react/hooks/useListBalances.tsx
1254
1373
  import { SortOrder as SortOrder2 } from "@0xsequence/indexer";
1255
1374
  import { infiniteQueryOptions, useInfiniteQuery } from "@tanstack/react-query";
1256
- import { z as z12 } from "zod";
1257
- var metadataOptionsSchema = z12.object({
1258
- verifiedOnly: z12.boolean().optional(),
1259
- unverifiedOnly: z12.boolean().optional(),
1260
- includeContracts: z12.array(z12.string()).optional()
1261
- });
1262
- var sortOrderSchema2 = z12.nativeEnum(SortOrder2);
1263
- var sortBySchema2 = z12.object({
1264
- column: z12.string(),
1375
+ import { z as z14 } from "zod";
1376
+ var metadataOptionsSchema = z14.object({
1377
+ verifiedOnly: z14.boolean().optional(),
1378
+ unverifiedOnly: z14.boolean().optional(),
1379
+ includeContracts: z14.array(z14.string()).optional()
1380
+ });
1381
+ var sortOrderSchema2 = z14.nativeEnum(SortOrder2);
1382
+ var sortBySchema2 = z14.object({
1383
+ column: z14.string(),
1265
1384
  order: sortOrderSchema2
1266
1385
  });
1267
- var pageSchema2 = z12.object({
1268
- page: z12.number().optional(),
1269
- column: z12.string().optional(),
1270
- before: z12.any().optional(),
1271
- after: z12.any().optional(),
1272
- sort: z12.array(sortBySchema2).optional(),
1273
- pageSize: z12.number().optional(),
1274
- more: z12.boolean().optional()
1275
- });
1276
- var useListBalancesArgsSchema = z12.object({
1277
- chainId: ChainIdSchema.pipe(z12.coerce.number()),
1386
+ var pageSchema2 = z14.object({
1387
+ page: z14.number().optional(),
1388
+ column: z14.string().optional(),
1389
+ before: z14.any().optional(),
1390
+ after: z14.any().optional(),
1391
+ sort: z14.array(sortBySchema2).optional(),
1392
+ pageSize: z14.number().optional(),
1393
+ more: z14.boolean().optional()
1394
+ });
1395
+ var useListBalancesArgsSchema = z14.object({
1396
+ chainId: ChainIdSchema.pipe(z14.coerce.number()),
1278
1397
  accountAddress: AddressSchema.optional(),
1279
1398
  contractAddress: AddressSchema.optional(),
1280
- tokenId: z12.string().optional(),
1281
- includeMetadata: z12.boolean().optional(),
1399
+ tokenId: z14.string().optional(),
1400
+ includeMetadata: z14.boolean().optional(),
1282
1401
  metadataOptions: metadataOptionsSchema.optional(),
1283
- includeCollectionTokens: z12.boolean().optional(),
1402
+ includeCollectionTokens: z14.boolean().optional(),
1284
1403
  page: pageSchema2.optional(),
1285
1404
  query: QueryArgSchema
1286
1405
  });
@@ -1308,7 +1427,7 @@ var useListBalances = (args) => {
1308
1427
  };
1309
1428
 
1310
1429
  // src/react/hooks/useListCollectibleActivities.tsx
1311
- import { queryOptions as queryOptions12, useQuery as useQuery12 } from "@tanstack/react-query";
1430
+ import { queryOptions as queryOptions14, useQuery as useQuery14 } from "@tanstack/react-query";
1312
1431
  var fetchCollectibleActivities = async (args, config) => {
1313
1432
  const marketplaceClient = getMarketplaceClient(args.chainId, config);
1314
1433
  return marketplaceClient.listCollectibleActivities({
@@ -1325,7 +1444,7 @@ var fetchCollectibleActivities = async (args, config) => {
1325
1444
  }));
1326
1445
  };
1327
1446
  var listCollectibleActivitiesOptions = (args, config) => {
1328
- return queryOptions12({
1447
+ return queryOptions14({
1329
1448
  queryKey: [...collectableKeys.collectibleActivities, args, config],
1330
1449
  queryFn: () => fetchCollectibleActivities(args, config),
1331
1450
  enabled: args.query?.enabled ?? true
@@ -1333,17 +1452,17 @@ var listCollectibleActivitiesOptions = (args, config) => {
1333
1452
  };
1334
1453
  var useListCollectibleActivities = (args) => {
1335
1454
  const config = useConfig();
1336
- return useQuery12(listCollectibleActivitiesOptions(args, config));
1455
+ return useQuery14(listCollectibleActivitiesOptions(args, config));
1337
1456
  };
1338
1457
 
1339
1458
  // src/react/hooks/useListCollectibles.tsx
1340
1459
  import { infiniteQueryOptions as infiniteQueryOptions2, useInfiniteQuery as useInfiniteQuery2 } from "@tanstack/react-query";
1341
- import { z as z13 } from "zod";
1460
+ import { z as z15 } from "zod";
1342
1461
  var UseListCollectiblesArgsSchema = listCollectiblesArgsSchema.omit({
1343
1462
  contractAddress: true
1344
1463
  }).extend({
1345
1464
  collectionAddress: AddressSchema,
1346
- chainId: ChainIdSchema.pipe(z13.coerce.string()),
1465
+ chainId: ChainIdSchema.pipe(z15.coerce.string()),
1347
1466
  query: QueryArgSchema
1348
1467
  });
1349
1468
  var fetchCollectibles = async (args, marketplaceClient, page) => {
@@ -1371,17 +1490,17 @@ var useListCollectibles = (args) => {
1371
1490
  };
1372
1491
 
1373
1492
  // src/react/hooks/useListCollectiblesPaginated.tsx
1374
- import { queryOptions as queryOptions13, useQuery as useQuery13 } from "@tanstack/react-query";
1375
- import { z as z14 } from "zod";
1493
+ import { queryOptions as queryOptions15, useQuery as useQuery15 } from "@tanstack/react-query";
1494
+ import { z as z16 } from "zod";
1376
1495
  var UseListCollectiblesPaginatedArgsSchema = listCollectiblesArgsSchema.omit({
1377
1496
  contractAddress: true
1378
1497
  }).extend({
1379
1498
  collectionAddress: AddressSchema,
1380
- chainId: ChainIdSchema.pipe(z14.coerce.string()),
1381
- query: z14.object({
1382
- enabled: z14.boolean().optional(),
1383
- page: z14.number().optional().default(1),
1384
- pageSize: z14.number().optional().default(30)
1499
+ chainId: ChainIdSchema.pipe(z16.coerce.string()),
1500
+ query: z16.object({
1501
+ enabled: z16.boolean().optional(),
1502
+ page: z16.number().optional().default(1),
1503
+ pageSize: z16.number().optional().default(30)
1385
1504
  }).optional().default({})
1386
1505
  });
1387
1506
  var fetchCollectiblesPaginated = async (args, marketplaceClient) => {
@@ -1402,7 +1521,7 @@ var listCollectiblesPaginatedOptions = (args, config) => {
1402
1521
  args.chainId,
1403
1522
  config
1404
1523
  );
1405
- return queryOptions13({
1524
+ return queryOptions15({
1406
1525
  queryKey: [...collectableKeys.lists, "paginated", args],
1407
1526
  queryFn: () => fetchCollectiblesPaginated(args, marketplaceClient),
1408
1527
  enabled: args.query?.enabled ?? true
@@ -1410,11 +1529,11 @@ var listCollectiblesPaginatedOptions = (args, config) => {
1410
1529
  };
1411
1530
  var useListCollectiblesPaginated = (args) => {
1412
1531
  const config = useConfig();
1413
- return useQuery13(listCollectiblesPaginatedOptions(args, config));
1532
+ return useQuery15(listCollectiblesPaginatedOptions(args, config));
1414
1533
  };
1415
1534
 
1416
1535
  // src/react/hooks/useListCollectionActivities.tsx
1417
- import { queryOptions as queryOptions14, useQuery as useQuery14 } from "@tanstack/react-query";
1536
+ import { queryOptions as queryOptions16, useQuery as useQuery16 } from "@tanstack/react-query";
1418
1537
  var fetchListCollectionActivities = async (args, config) => {
1419
1538
  const marketplaceClient = getMarketplaceClient(args.chainId, config);
1420
1539
  return marketplaceClient.listCollectionActivities({
@@ -1430,7 +1549,7 @@ var fetchListCollectionActivities = async (args, config) => {
1430
1549
  }));
1431
1550
  };
1432
1551
  var listCollectionActivitiesOptions = (args, config) => {
1433
- return queryOptions14({
1552
+ return queryOptions16({
1434
1553
  queryKey: [...collectionKeys.collectionActivities, args, config],
1435
1554
  queryFn: () => fetchListCollectionActivities(args, config),
1436
1555
  enabled: args.query?.enabled ?? true
@@ -1438,16 +1557,16 @@ var listCollectionActivitiesOptions = (args, config) => {
1438
1557
  };
1439
1558
  var useListCollectionActivities = (args) => {
1440
1559
  const config = useConfig();
1441
- return useQuery14(listCollectionActivitiesOptions(args, config));
1560
+ return useQuery16(listCollectionActivitiesOptions(args, config));
1442
1561
  };
1443
1562
 
1444
1563
  // src/react/hooks/useListOffersForCollectible.tsx
1445
- import { queryOptions as queryOptions15, useQuery as useQuery15 } from "@tanstack/react-query";
1446
- import { z as z15 } from "zod";
1564
+ import { queryOptions as queryOptions17, useQuery as useQuery17 } from "@tanstack/react-query";
1565
+ import { z as z17 } from "zod";
1447
1566
  var UseListOffersForCollectibleArgsSchema = listOffersForCollectibleArgsSchema.extend({
1448
- chainId: ChainIdSchema.pipe(z15.coerce.string()),
1449
- collectionAddress: z15.string(),
1450
- collectibleId: z15.string()
1567
+ chainId: ChainIdSchema.pipe(z17.coerce.string()),
1568
+ collectionAddress: z17.string(),
1569
+ collectibleId: z17.string()
1451
1570
  }).omit({ contractAddress: true, tokenId: true });
1452
1571
  var fetchListOffersForCollectible = async (config, args) => {
1453
1572
  const arg = {
@@ -1460,26 +1579,26 @@ var fetchListOffersForCollectible = async (config, args) => {
1460
1579
  return marketplaceClient.listCollectibleOffers(arg);
1461
1580
  };
1462
1581
  var listOffersForCollectibleOptions = (args, config) => {
1463
- return queryOptions15({
1582
+ return queryOptions17({
1464
1583
  queryKey: [...collectableKeys.offers, args, config],
1465
1584
  queryFn: () => fetchListOffersForCollectible(config, args)
1466
1585
  });
1467
1586
  };
1468
1587
  var useListOffersForCollectible = (args) => {
1469
1588
  const config = useConfig();
1470
- return useQuery15(listOffersForCollectibleOptions(args, config));
1589
+ return useQuery17(listOffersForCollectibleOptions(args, config));
1471
1590
  };
1472
1591
 
1473
1592
  // src/react/hooks/useCountOffersForCollectible.tsx
1474
- import { queryOptions as queryOptions16, useQuery as useQuery16 } from "@tanstack/react-query";
1475
- import { z as z16 } from "zod";
1593
+ import { queryOptions as queryOptions18, useQuery as useQuery18 } from "@tanstack/react-query";
1594
+ import { z as z18 } from "zod";
1476
1595
  var UseCountOffersForCollectibleArgsSchema = countOffersForCollectibleArgsSchema.omit({
1477
1596
  contractAddress: true,
1478
1597
  tokenId: true
1479
1598
  }).extend({
1480
1599
  collectionAddress: AddressSchema,
1481
- collectibleId: z16.string(),
1482
- chainId: ChainIdSchema.pipe(z16.coerce.string()),
1600
+ collectibleId: z18.string(),
1601
+ chainId: ChainIdSchema.pipe(z18.coerce.string()),
1483
1602
  query: QueryArgSchema
1484
1603
  });
1485
1604
  var fetchCountOffersForCollectible = async (args, config) => {
@@ -1492,7 +1611,7 @@ var fetchCountOffersForCollectible = async (args, config) => {
1492
1611
  });
1493
1612
  };
1494
1613
  var countOffersForCollectibleOptions = (args, config) => {
1495
- return queryOptions16({
1614
+ return queryOptions18({
1496
1615
  ...args.query,
1497
1616
  queryKey: [...collectableKeys.offersCount, args, config],
1498
1617
  queryFn: () => fetchCountOffersForCollectible(args, config)
@@ -1500,16 +1619,16 @@ var countOffersForCollectibleOptions = (args, config) => {
1500
1619
  };
1501
1620
  var useCountOffersForCollectible = (args) => {
1502
1621
  const config = useConfig();
1503
- return useQuery16(countOffersForCollectibleOptions(args, config));
1622
+ return useQuery18(countOffersForCollectibleOptions(args, config));
1504
1623
  };
1505
1624
 
1506
1625
  // src/react/hooks/useListListingsForCollectible.tsx
1507
- import { queryOptions as queryOptions17, useQuery as useQuery17 } from "@tanstack/react-query";
1508
- import { z as z17 } from "zod";
1626
+ import { queryOptions as queryOptions19, useQuery as useQuery19 } from "@tanstack/react-query";
1627
+ import { z as z19 } from "zod";
1509
1628
  var UseListListingsForCollectibleArgsSchema = listListingsForCollectibleArgsSchema.extend({
1510
- chainId: ChainIdSchema.pipe(z17.coerce.string()),
1511
- collectionAddress: z17.string(),
1512
- collectibleId: z17.string()
1629
+ chainId: ChainIdSchema.pipe(z19.coerce.string()),
1630
+ collectionAddress: z19.string(),
1631
+ collectibleId: z19.string()
1513
1632
  }).omit({ contractAddress: true, tokenId: true });
1514
1633
  var fetchListListingsForCollectible = async (config, args) => {
1515
1634
  const arg = {
@@ -1522,26 +1641,26 @@ var fetchListListingsForCollectible = async (config, args) => {
1522
1641
  return marketplaceClient.listCollectibleListings(arg);
1523
1642
  };
1524
1643
  var listListingsForCollectibleOptions = (args, config) => {
1525
- return queryOptions17({
1644
+ return queryOptions19({
1526
1645
  queryKey: [...collectableKeys.listings, args, config],
1527
1646
  queryFn: () => fetchListListingsForCollectible(config, args)
1528
1647
  });
1529
1648
  };
1530
1649
  var useListListingsForCollectible = (args) => {
1531
1650
  const config = useConfig();
1532
- return useQuery17(listListingsForCollectibleOptions(args, config));
1651
+ return useQuery19(listListingsForCollectibleOptions(args, config));
1533
1652
  };
1534
1653
 
1535
1654
  // src/react/hooks/useCountListingsForCollectible.tsx
1536
- import { queryOptions as queryOptions18, useQuery as useQuery18 } from "@tanstack/react-query";
1537
- import { z as z18 } from "zod";
1655
+ import { queryOptions as queryOptions20, useQuery as useQuery20 } from "@tanstack/react-query";
1656
+ import { z as z20 } from "zod";
1538
1657
  var UseCountListingsForCollectibleArgsSchema = countListingsForCollectibleArgsSchema.omit({
1539
1658
  contractAddress: true,
1540
1659
  tokenId: true
1541
1660
  }).extend({
1542
1661
  collectionAddress: AddressSchema,
1543
- collectibleId: z18.string(),
1544
- chainId: ChainIdSchema.pipe(z18.coerce.string()),
1662
+ collectibleId: z20.string(),
1663
+ chainId: ChainIdSchema.pipe(z20.coerce.string()),
1545
1664
  query: QueryArgSchema
1546
1665
  });
1547
1666
  var fetchCountListingsForCollectible = async (args, config) => {
@@ -1554,7 +1673,7 @@ var fetchCountListingsForCollectible = async (args, config) => {
1554
1673
  });
1555
1674
  };
1556
1675
  var countListingsForCollectibleOptions = (args, config) => {
1557
- return queryOptions18({
1676
+ return queryOptions20({
1558
1677
  ...args.query,
1559
1678
  queryKey: [...collectableKeys.listingsCount, args, config],
1560
1679
  queryFn: () => fetchCountListingsForCollectible(args, config)
@@ -1562,17 +1681,17 @@ var countListingsForCollectibleOptions = (args, config) => {
1562
1681
  };
1563
1682
  var useCountListingsForCollectible = (args) => {
1564
1683
  const config = useConfig();
1565
- return useQuery18(countListingsForCollectibleOptions(args, config));
1684
+ return useQuery20(countListingsForCollectibleOptions(args, config));
1566
1685
  };
1567
1686
 
1568
1687
  // src/react/hooks/useLowestListing.tsx
1569
- import { queryOptions as queryOptions19, useQuery as useQuery19 } from "@tanstack/react-query";
1570
- import { z as z19 } from "zod";
1688
+ import { queryOptions as queryOptions21, useQuery as useQuery21 } from "@tanstack/react-query";
1689
+ import { z as z21 } from "zod";
1571
1690
  var UseLowestListingSchema = getCollectibleLowestListingArgsSchema.omit({
1572
1691
  contractAddress: true
1573
1692
  }).extend({
1574
1693
  collectionAddress: AddressSchema,
1575
- chainId: ChainIdSchema.pipe(z19.coerce.string()),
1694
+ chainId: ChainIdSchema.pipe(z21.coerce.string()),
1576
1695
  query: QueryArgSchema
1577
1696
  });
1578
1697
  var fetchLowestListing = async (args, config) => {
@@ -1584,7 +1703,7 @@ var fetchLowestListing = async (args, config) => {
1584
1703
  });
1585
1704
  };
1586
1705
  var lowestListingOptions = (args, config) => {
1587
- return queryOptions19({
1706
+ return queryOptions21({
1588
1707
  ...args.query,
1589
1708
  queryKey: [...collectableKeys.lowestListings, args, config],
1590
1709
  queryFn: () => fetchLowestListing(args, config)
@@ -1592,17 +1711,17 @@ var lowestListingOptions = (args, config) => {
1592
1711
  };
1593
1712
  var useLowestListing = (args) => {
1594
1713
  const config = useConfig();
1595
- return useQuery19(lowestListingOptions(args, config));
1714
+ return useQuery21(lowestListingOptions(args, config));
1596
1715
  };
1597
1716
 
1598
1717
  // src/react/hooks/useRoyaltyPercentage.tsx
1599
- import { queryOptions as queryOptions20, useQuery as useQuery20 } from "@tanstack/react-query";
1718
+ import { queryOptions as queryOptions22, useQuery as useQuery22 } from "@tanstack/react-query";
1600
1719
  import { getContract } from "viem";
1601
- import { z as z20 } from "zod";
1602
- var UseRoyaletyPercentageSchema = z20.object({
1603
- chainId: ChainIdSchema.pipe(z20.coerce.string()),
1720
+ import { z as z22 } from "zod";
1721
+ var UseRoyaletyPercentageSchema = z22.object({
1722
+ chainId: ChainIdSchema.pipe(z22.coerce.string()),
1604
1723
  collectionAddress: AddressSchema,
1605
- collectibleId: z20.string(),
1724
+ collectibleId: z22.string(),
1606
1725
  query: QueryArgSchema
1607
1726
  });
1608
1727
  var fetchRoyaletyPercentage = async (args) => {
@@ -1623,13 +1742,13 @@ var fetchRoyaletyPercentage = async (args) => {
1623
1742
  return 0n;
1624
1743
  }
1625
1744
  };
1626
- var royaletyPercentageOptions = (args) => queryOptions20({
1745
+ var royaletyPercentageOptions = (args) => queryOptions22({
1627
1746
  ...args.query,
1628
1747
  queryKey: [...collectableKeys.royaltyPercentage, args],
1629
1748
  queryFn: () => fetchRoyaletyPercentage(args)
1630
1749
  });
1631
1750
  var useRoyaltyPercentage = (args) => {
1632
- return useQuery20(royaletyPercentageOptions(args));
1751
+ return useQuery22(royaletyPercentageOptions(args));
1633
1752
  };
1634
1753
 
1635
1754
  // src/react/hooks/useGenerateListingTransaction.tsx
@@ -1688,13 +1807,13 @@ var useGenerateOfferTransaction = (params) => {
1688
1807
 
1689
1808
  // src/react/hooks/useGenerateSellTransaction.tsx
1690
1809
  import { useMutation as useMutation3 } from "@tanstack/react-query";
1691
- import { z as z21 } from "zod";
1692
- var UserGeneratSellTransactionArgsSchema = z21.object({
1693
- chainId: ChainIdSchema.pipe(z21.coerce.string()),
1694
- onSuccess: z21.function().args(stepSchema.array().optional()).optional()
1810
+ import { z as z23 } from "zod";
1811
+ var UserGeneratSellTransactionArgsSchema = z23.object({
1812
+ chainId: ChainIdSchema.pipe(z23.coerce.string()),
1813
+ onSuccess: z23.function().args(stepSchema.array().optional()).optional()
1695
1814
  });
1696
1815
  var generateSellTransaction = async (args, config, chainId) => {
1697
- const parsedChainId = ChainIdSchema.pipe(z21.coerce.string()).parse(chainId);
1816
+ const parsedChainId = ChainIdSchema.pipe(z23.coerce.string()).parse(chainId);
1698
1817
  const marketplaceClient = getMarketplaceClient(parsedChainId, config);
1699
1818
  return marketplaceClient.generateSellTransaction(args).then((data) => data.steps);
1700
1819
  };
@@ -1713,13 +1832,13 @@ var useGenerateSellTransaction = (params) => {
1713
1832
 
1714
1833
  // src/react/hooks/useGenerateCancelTransaction.tsx
1715
1834
  import { useMutation as useMutation4 } from "@tanstack/react-query";
1716
- import { z as z22 } from "zod";
1717
- var UserGenerateCancelTransactionArgsSchema = z22.object({
1718
- chainId: ChainIdSchema.pipe(z22.coerce.string()),
1719
- onSuccess: z22.function().args(stepSchema.array().optional()).optional()
1835
+ import { z as z24 } from "zod";
1836
+ var UserGenerateCancelTransactionArgsSchema = z24.object({
1837
+ chainId: ChainIdSchema.pipe(z24.coerce.string()),
1838
+ onSuccess: z24.function().args(stepSchema.array().optional()).optional()
1720
1839
  });
1721
1840
  var generateCancelTransaction = async (args, config, chainId) => {
1722
- const parsedChainId = ChainIdSchema.pipe(z22.coerce.string()).parse(chainId);
1841
+ const parsedChainId = ChainIdSchema.pipe(z24.coerce.string()).parse(chainId);
1723
1842
  const marketplaceClient = getMarketplaceClient(parsedChainId, config);
1724
1843
  return marketplaceClient.generateCancelTransaction(args).then((data) => data.steps);
1725
1844
  };
@@ -1792,16 +1911,16 @@ var useTransferTokens = () => {
1792
1911
  };
1793
1912
 
1794
1913
  // src/react/hooks/useCheckoutOptions.tsx
1795
- import { queryOptions as queryOptions21, useQuery as useQuery21 } from "@tanstack/react-query";
1914
+ import { queryOptions as queryOptions23, useQuery as useQuery23 } from "@tanstack/react-query";
1796
1915
  import { useAccount as useAccount3 } from "wagmi";
1797
- import { z as z23 } from "zod";
1798
- var UseCheckoutOptionsSchema = z23.object({
1799
- chainId: ChainIdSchema.pipe(z23.coerce.string()),
1800
- orders: z23.array(
1801
- z23.object({
1916
+ import { z as z25 } from "zod";
1917
+ var UseCheckoutOptionsSchema = z25.object({
1918
+ chainId: ChainIdSchema.pipe(z25.coerce.string()),
1919
+ orders: z25.array(
1920
+ z25.object({
1802
1921
  collectionAddress: AddressSchema,
1803
- orderId: z23.string(),
1804
- marketplace: z23.nativeEnum(MarketplaceKind)
1922
+ orderId: z25.string(),
1923
+ marketplace: z25.nativeEnum(MarketplaceKind)
1805
1924
  })
1806
1925
  ),
1807
1926
  query: QueryArgSchema
@@ -1820,7 +1939,7 @@ var fetchCheckoutOptions = async (args, config) => {
1820
1939
  });
1821
1940
  };
1822
1941
  var checkoutOptionsOptions = (args, config) => {
1823
- return queryOptions21({
1942
+ return queryOptions23({
1824
1943
  queryKey: ["checkoutOptions", args],
1825
1944
  queryFn: () => fetchCheckoutOptions(args, config)
1826
1945
  });
@@ -1828,16 +1947,16 @@ var checkoutOptionsOptions = (args, config) => {
1828
1947
  var useCheckoutOptions = (args) => {
1829
1948
  const { address } = useAccount3();
1830
1949
  const config = useConfig();
1831
- return useQuery21(
1950
+ return useQuery23(
1832
1951
  // biome-ignore lint/style/noNonNullAssertion: <explanation>
1833
1952
  checkoutOptionsOptions({ walletAddress: address, ...args }, config)
1834
1953
  );
1835
1954
  };
1836
1955
 
1837
1956
  // src/react/hooks/useListCollections.tsx
1838
- import { queryOptions as queryOptions22, useQuery as useQuery22 } from "@tanstack/react-query";
1839
- import { z as z24 } from "zod";
1840
- var UseListCollectionsSchema = z24.object({
1957
+ import { queryOptions as queryOptions24, useQuery as useQuery24 } from "@tanstack/react-query";
1958
+ import { z as z26 } from "zod";
1959
+ var UseListCollectionsSchema = z26.object({
1841
1960
  query: QueryArgSchema.optional().default({})
1842
1961
  });
1843
1962
  var fetchListCollections = async ({ marketplaceConfig }, config) => {
@@ -1863,7 +1982,7 @@ var fetchListCollections = async ({ marketplaceConfig }, config) => {
1863
1982
  return results.flat();
1864
1983
  };
1865
1984
  var listCollectionsOptions = (args, config) => {
1866
- return queryOptions22({
1985
+ return queryOptions24({
1867
1986
  ...args.query,
1868
1987
  queryKey: [...collectionKeys.list],
1869
1988
  queryFn: () => fetchListCollections(args, config)
@@ -1872,7 +1991,7 @@ var listCollectionsOptions = (args, config) => {
1872
1991
  var useListCollections = (args = {}) => {
1873
1992
  const config = useConfig();
1874
1993
  const { data: marketplaceConfig, isLoading: isLoadingConfig } = useMarketplaceConfig();
1875
- return useQuery22({
1994
+ return useQuery24({
1876
1995
  ...listCollectionsOptions(
1877
1996
  // biome-ignore lint/style/noNonNullAssertion: <explanation>
1878
1997
  { marketplaceConfig, query: args.query },
@@ -1883,21 +2002,21 @@ var useListCollections = (args = {}) => {
1883
2002
  };
1884
2003
 
1885
2004
  // src/react/hooks/useGenerateBuyTransaction.tsx
1886
- import { queryOptions as queryOptions23, skipToken as skipToken2, useQuery as useQuery23 } from "@tanstack/react-query";
2005
+ import { queryOptions as queryOptions25, skipToken as skipToken2, useQuery as useQuery25 } from "@tanstack/react-query";
1887
2006
  import { useAccount as useAccount4 } from "wagmi";
1888
- import { z as z25 } from "zod";
1889
- var UseGenerateBuyTransactionArgsSchema = z25.object({
1890
- chainId: ChainIdSchema.pipe(z25.coerce.string()),
2007
+ import { z as z27 } from "zod";
2008
+ var UseGenerateBuyTransactionArgsSchema = z27.object({
2009
+ chainId: ChainIdSchema.pipe(z27.coerce.string()),
1891
2010
  collectionAddress: AddressSchema,
1892
- marketplace: z25.nativeEnum(MarketplaceKind),
1893
- ordersData: z25.array(
1894
- z25.object({
1895
- orderId: z25.string(),
1896
- quantity: z25.string(),
1897
- marketplace: z25.string()
2011
+ marketplace: z27.nativeEnum(MarketplaceKind),
2012
+ ordersData: z27.array(
2013
+ z27.object({
2014
+ orderId: z27.string(),
2015
+ quantity: z27.string(),
2016
+ marketplace: z27.string()
1898
2017
  })
1899
2018
  ),
1900
- walletType: z25.nativeEnum(WalletKind).optional(),
2019
+ walletType: z27.nativeEnum(WalletKind).optional(),
1901
2020
  query: QueryArgSchema
1902
2021
  });
1903
2022
  var fetchGenerateBuyTransaction = async (args, config) => {
@@ -1911,7 +2030,7 @@ var fetchGenerateBuyTransaction = async (args, config) => {
1911
2030
  }).then((data) => data.steps);
1912
2031
  };
1913
2032
  var generateBuyTransactionOptions = (args, config) => {
1914
- return queryOptions23({
2033
+ return queryOptions25({
1915
2034
  queryKey: ["generateBuyTransaction", args],
1916
2035
  queryFn: () => fetchGenerateBuyTransaction(args, config),
1917
2036
  ...args.query
@@ -1920,7 +2039,7 @@ var generateBuyTransactionOptions = (args, config) => {
1920
2039
  var useGenerateBuyTransaction = (args) => {
1921
2040
  const { address } = useAccount4();
1922
2041
  const config = useConfig();
1923
- return useQuery23({
2042
+ return useQuery25({
1924
2043
  queryKey: ["generateBuyTransaction", args],
1925
2044
  queryFn: address ? () => {
1926
2045
  return fetchGenerateBuyTransaction(
@@ -1936,7 +2055,7 @@ import { useState, useEffect } from "react";
1936
2055
 
1937
2056
  // src/react/_internal/wallet/useWallet.ts
1938
2057
  import { useAccount as useAccount5, useChainId, useSwitchChain, useWalletClient } from "wagmi";
1939
- import { useQuery as useQuery24 } from "@tanstack/react-query";
2058
+ import { useQuery as useQuery26 } from "@tanstack/react-query";
1940
2059
 
1941
2060
  // src/react/_internal/wallet/wallet.ts
1942
2061
  import {
@@ -2196,7 +2315,7 @@ var useWallet = () => {
2196
2315
  const { connector, isConnected, isConnecting } = useAccount5();
2197
2316
  const sdkConfig = useConfig();
2198
2317
  const chainId = useChainId();
2199
- const { data, isLoading, isError } = useQuery24({
2318
+ const { data, isLoading, isError } = useQuery26({
2200
2319
  queryKey: ["wallet", chainId, connector?.uid],
2201
2320
  queryFn: () => {
2202
2321
  if (!walletClient || !connector || !isConnected) {
@@ -2591,7 +2710,7 @@ var useCancelOrder = ({
2591
2710
  };
2592
2711
 
2593
2712
  // src/react/hooks/useCollectionDetails.tsx
2594
- import { queryOptions as queryOptions24, useQuery as useQuery25 } from "@tanstack/react-query";
2713
+ import { queryOptions as queryOptions26, useQuery as useQuery27 } from "@tanstack/react-query";
2595
2714
  var fetchCollectionDetails = async (args, marketplaceClient) => {
2596
2715
  const { collection } = await marketplaceClient.getCollectionDetail({
2597
2716
  contractAddress: args.collectionAddress
@@ -2600,18 +2719,18 @@ var fetchCollectionDetails = async (args, marketplaceClient) => {
2600
2719
  };
2601
2720
  var collectionDetailsOptions = (args, config) => {
2602
2721
  const marketplaceClient = getMarketplaceClient(args.chainId, config);
2603
- return queryOptions24({
2722
+ return queryOptions26({
2604
2723
  queryKey: ["collectionDetails", args],
2605
2724
  queryFn: () => fetchCollectionDetails(args, marketplaceClient)
2606
2725
  });
2607
2726
  };
2608
2727
  var useCollectionDetails = (args) => {
2609
2728
  const config = useConfig();
2610
- return useQuery25(collectionDetailsOptions(args, config));
2729
+ return useQuery27(collectionDetailsOptions(args, config));
2611
2730
  };
2612
2731
 
2613
2732
  // src/react/hooks/useCollectionDetailsPolling.tsx
2614
- import { queryOptions as queryOptions25, useQuery as useQuery26 } from "@tanstack/react-query";
2733
+ import { queryOptions as queryOptions27, useQuery as useQuery28 } from "@tanstack/react-query";
2615
2734
  var INITIAL_POLLING_INTERVAL = 2e3;
2616
2735
  var MAX_POLLING_INTERVAL = 3e4;
2617
2736
  var MAX_ATTEMPTS = 30;
@@ -2624,7 +2743,7 @@ var isTerminalState = (status) => {
2624
2743
  ].includes(status);
2625
2744
  };
2626
2745
  var collectionDetailsPollingOptions = (args, config) => {
2627
- return queryOptions25({
2746
+ return queryOptions27({
2628
2747
  ...collectionDetailsOptions(args, config),
2629
2748
  refetchInterval: (query) => {
2630
2749
  const data = query.state.data;
@@ -2647,7 +2766,7 @@ var collectionDetailsPollingOptions = (args, config) => {
2647
2766
  };
2648
2767
  var useCollectionDetailsPolling = (args) => {
2649
2768
  const config = useConfig();
2650
- return useQuery26(collectionDetailsPollingOptions(args, config));
2769
+ return useQuery28(collectionDetailsPollingOptions(args, config));
2651
2770
  };
2652
2771
 
2653
2772
  export {
@@ -2670,6 +2789,11 @@ export {
2670
2789
  useMarketplaceConfig,
2671
2790
  currenciesOptions,
2672
2791
  useCurrencies,
2792
+ convertPriceToUSD,
2793
+ convertPriceToUSDOptions,
2794
+ useConvertPriceToUSD,
2795
+ comparePricesOptions,
2796
+ useComparePrices,
2673
2797
  currencyOptions,
2674
2798
  useCurrency,
2675
2799
  fetchFilters,
@@ -2730,4 +2854,4 @@ export {
2730
2854
  collectionDetailsPollingOptions,
2731
2855
  useCollectionDetailsPolling
2732
2856
  };
2733
- //# sourceMappingURL=chunk-JWNONWD6.js.map
2857
+ //# sourceMappingURL=chunk-AIGFG26L.js.map