@0xsequence/marketplace-sdk 0.5.7 → 0.6.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 (199) hide show
  1. package/dist/chunk-2J7JIOW5.js +2 -0
  2. package/dist/{chunk-3OU7BADC.js → chunk-6MYDUGVO.js} +21 -4
  3. package/dist/chunk-6MYDUGVO.js.map +1 -0
  4. package/dist/chunk-6WMO5YM5.js +94 -0
  5. package/dist/chunk-6WMO5YM5.js.map +1 -0
  6. package/dist/{chunk-YA3DWLDC.js → chunk-A5ICXOCZ.js} +156 -227
  7. package/dist/chunk-A5ICXOCZ.js.map +1 -0
  8. package/dist/{chunk-G2T7HCWE.js → chunk-C42WHQRT.js} +3 -3
  9. package/dist/{chunk-G2T7HCWE.js.map → chunk-C42WHQRT.js.map} +1 -1
  10. package/dist/{chunk-ZBLU3Q22.js → chunk-DLB2EQRX.js} +2 -2
  11. package/dist/{chunk-ZBLU3Q22.js.map → chunk-DLB2EQRX.js.map} +1 -1
  12. package/dist/{chunk-YOKGP2EQ.js → chunk-FG2BBP3P.js} +1 -1
  13. package/dist/{chunk-YOKGP2EQ.js.map → chunk-FG2BBP3P.js.map} +1 -1
  14. package/dist/{chunk-Y56IIYDF.js → chunk-GMWUIMX4.js} +5 -5
  15. package/dist/{chunk-Y56IIYDF.js.map → chunk-GMWUIMX4.js.map} +1 -1
  16. package/dist/{chunk-OMCWTRBR.js → chunk-NKHM2AIS.js} +21 -4
  17. package/dist/chunk-NKHM2AIS.js.map +1 -0
  18. package/dist/{chunk-YYBU45PK.js → chunk-NXORBVUS.js} +2 -2
  19. package/dist/{chunk-L2K4DBH2.js → chunk-UZ3GJXBR.js} +3003 -3124
  20. package/dist/chunk-UZ3GJXBR.js.map +1 -0
  21. package/dist/{chunk-6YHHCGGY.js → chunk-VPJHNXZ2.js} +50 -74
  22. package/dist/chunk-VPJHNXZ2.js.map +1 -0
  23. package/dist/index-BwDj_3at.d.ts +72 -0
  24. package/dist/index.d.ts +4 -4
  25. package/dist/index.js +175 -88
  26. package/dist/react/_internal/databeat/index.js +7 -6
  27. package/dist/react/_internal/index.d.ts +2 -2
  28. package/dist/react/_internal/index.js +1 -1
  29. package/dist/react/hooks/index.d.ts +3 -65
  30. package/dist/react/hooks/index.js +8 -8
  31. package/dist/react/hooks/options/index.d.ts +8 -0
  32. package/dist/react/hooks/options/index.js +17 -0
  33. package/dist/react/hooks/options/index.js.map +1 -0
  34. package/dist/react/index.css +40 -29
  35. package/dist/react/index.css.map +1 -1
  36. package/dist/react/index.d.ts +3 -2
  37. package/dist/react/index.js +17 -13
  38. package/dist/react/ssr/index.js.map +1 -1
  39. package/dist/react/ui/components/collectible-card/index.css +40 -29
  40. package/dist/react/ui/components/collectible-card/index.css.map +1 -1
  41. package/dist/react/ui/components/collectible-card/index.d.ts +3 -2
  42. package/dist/react/ui/components/collectible-card/index.js +12 -11
  43. package/dist/react/ui/components/marketplace-logos/index.d.ts +1 -1
  44. package/dist/react/ui/components/marketplace-logos/index.js +1 -1
  45. package/dist/react/ui/icons/index.js +1 -1
  46. package/dist/react/ui/index.css +40 -29
  47. package/dist/react/ui/index.css.map +1 -1
  48. package/dist/react/ui/index.d.ts +1 -1
  49. package/dist/react/ui/index.js +12 -11
  50. package/dist/react/ui/modals/_internal/components/actionModal/index.css +48 -48
  51. package/dist/react/ui/modals/_internal/components/actionModal/index.css.map +1 -1
  52. package/dist/react/ui/modals/_internal/components/actionModal/index.d.ts +1 -1
  53. package/dist/react/ui/modals/_internal/components/actionModal/index.js +7 -6
  54. package/dist/styles/index.js +2 -2
  55. package/dist/types/index.js +1 -1
  56. package/dist/utils/index.d.ts +9 -7
  57. package/dist/utils/index.js +5 -3
  58. package/package.json +9 -5
  59. package/src/react/__tests__/provider.test.tsx +4 -4
  60. package/src/react/_internal/api/__mocks__/indexer.msw.ts +5 -5
  61. package/src/react/_internal/api/__mocks__/metadata.msw.ts +2 -2
  62. package/src/react/_internal/api/zod-schema.ts +2 -2
  63. package/src/react/_internal/types.ts +2 -2
  64. package/src/react/_internal/wagmi/__tests__/create-config.test.ts +6 -6
  65. package/src/react/_internal/wallet/__tests__/wallet.test.ts +1 -1
  66. package/src/react/_internal/wallet/wallet.ts +6 -2
  67. package/src/react/hooks/__tests__/useAutoSelectFeeOption.test.tsx +8 -12
  68. package/src/react/hooks/__tests__/useBalanceOfCollectible.test.tsx +5 -4
  69. package/src/react/hooks/__tests__/useCancelOrder.test.tsx +13 -6
  70. package/src/react/hooks/__tests__/useCancelTransactionSteps.test.tsx +6 -7
  71. package/src/react/hooks/__tests__/useCollectible.test.tsx +6 -7
  72. package/src/react/hooks/__tests__/useCollection.test.tsx +5 -6
  73. package/src/react/hooks/__tests__/useCollectionBalanceDetails.test.tsx +5 -4
  74. package/src/react/hooks/__tests__/useCollectionDetails.test.tsx +7 -6
  75. package/src/react/hooks/__tests__/useCollectionDetailsPolling.test.tsx +5 -4
  76. package/src/react/hooks/__tests__/useComparePrices.test.tsx +1 -2
  77. package/src/react/hooks/__tests__/useConvertPriceToUSD.test.tsx +2 -3
  78. package/src/react/hooks/__tests__/useCountListingsForCollectible.test.tsx +4 -5
  79. package/src/react/hooks/__tests__/useCountOfCollectables.test.tsx +6 -7
  80. package/src/react/hooks/__tests__/useCountOffersForCollectible.test.tsx +4 -5
  81. package/src/react/hooks/__tests__/useCurrencies.test.tsx +3 -4
  82. package/src/react/hooks/__tests__/useCurrency.test.tsx +4 -6
  83. package/src/react/hooks/__tests__/useCurrencyBalance.test.tsx +12 -7
  84. package/src/react/hooks/__tests__/useFilters.test.tsx +5 -6
  85. package/src/react/hooks/__tests__/useFloorOrder.test.tsx +5 -6
  86. package/src/react/hooks/__tests__/useGenerateBuyTransaction.test.tsx +6 -7
  87. package/src/react/hooks/__tests__/useGenerateCancelTransaction.test.tsx +1 -2
  88. package/src/react/hooks/__tests__/useGenerateListingTransaction.test.tsx +2 -3
  89. package/src/react/hooks/__tests__/useGenerateOfferTransaction.test.tsx +1 -2
  90. package/src/react/hooks/__tests__/useGenerateSellTransaction.test.tsx +1 -2
  91. package/src/react/hooks/__tests__/useHighestOffer.test.tsx +6 -7
  92. package/src/react/hooks/__tests__/useListBalances.test.tsx +1 -1
  93. package/src/react/hooks/__tests__/useListCollectibleActivities.test.tsx +2 -3
  94. package/src/react/hooks/__tests__/useListCollectibles.test.tsx +6 -7
  95. package/src/react/hooks/__tests__/useListCollectiblesPaginated.test.tsx +2 -3
  96. package/src/react/hooks/__tests__/useListCollectionActivities.test.tsx +3 -4
  97. package/src/react/hooks/__tests__/useListCollections.test.tsx +1 -2
  98. package/src/react/hooks/__tests__/useListListingsForCollectible.test.tsx +6 -7
  99. package/src/react/hooks/__tests__/useListOffersForCollectible.test.tsx +6 -7
  100. package/src/react/hooks/__tests__/useLowestListing.test.tsx +6 -7
  101. package/src/react/hooks/__tests__/useMarketplaceConfig.test.tsx +1 -2
  102. package/src/react/hooks/__tests__/useRoyaltyPercentage.test.tsx +1 -1
  103. package/src/react/hooks/options/__tests__/marketplaceConfigOptions.test.tsx +3 -4
  104. package/src/react/hooks/options/collectionOptions.ts +42 -0
  105. package/src/react/hooks/options/index.ts +2 -0
  106. package/src/react/hooks/useCancelOrder.tsx +3 -3
  107. package/src/react/hooks/useCancelTransactionSteps.tsx +11 -11
  108. package/src/react/hooks/useCollection.tsx +6 -37
  109. package/src/react/hooks/useCollectionBalanceDetails.tsx +3 -3
  110. package/src/react/hooks/useCollectionDetailsPolling.tsx +1 -1
  111. package/src/react/hooks/useCurrencies.tsx +1 -1
  112. package/src/react/hooks/useGenerateListingTransaction.tsx +1 -1
  113. package/src/react/hooks/useGenerateOfferTransaction.tsx +1 -1
  114. package/src/react/hooks/useGetReceiptFromHash.tsx +1 -1
  115. package/src/react/hooks/useListCollectibleActivities.tsx +1 -1
  116. package/src/react/hooks/useListCollectionActivities.tsx +1 -1
  117. package/src/react/index.ts +1 -0
  118. package/src/react/provider.tsx +2 -2
  119. package/src/react/ssr/__tests__/create-ssr-client.test.ts +1 -22
  120. package/src/react/ssr/create-ssr-client.ts +1 -1
  121. package/src/react/ui/components/_internals/action-button/ActionButton.tsx +3 -3
  122. package/src/react/ui/components/_internals/action-button/components/ActionButtonBody.tsx +2 -2
  123. package/src/react/ui/components/_internals/action-button/components/NonOwnerActions.tsx +4 -4
  124. package/src/react/ui/components/_internals/action-button/components/OwnerActions.tsx +2 -2
  125. package/src/react/ui/components/_internals/action-button/hooks/useActionButtonLogic.ts +1 -1
  126. package/src/react/ui/components/_internals/custom-select/__tests__/CustomSelect.test.tsx +2 -7
  127. package/src/react/ui/components/collectible-card/CollectibleCard.tsx +9 -2
  128. package/src/react/ui/components/collectible-card/Footer.tsx +1 -1
  129. package/src/react/ui/components/marketplace-logos/marketplace-logos.tsx +1 -1
  130. package/src/react/ui/icons/index.ts +2 -5
  131. package/src/react/ui/{icons/DiamondEye.tsx → images/marketplaces/LooksRare.tsx} +1 -1
  132. package/src/react/ui/modals/BuyModal/__tests__/Modal.test.tsx +10 -11
  133. package/src/react/ui/modals/BuyModal/hooks/__tests__/useBuyCollectable.test.tsx +343 -0
  134. package/src/react/ui/modals/BuyModal/hooks/__tests__/useCheckoutOptions.test.tsx +2 -7
  135. package/src/react/ui/modals/BuyModal/hooks/__tests__/useFees.test.tsx +4 -4
  136. package/src/react/ui/modals/BuyModal/hooks/__tests__/useLoadData.test.tsx +1 -1
  137. package/src/react/ui/modals/BuyModal/hooks/useCheckoutOptions.ts +3 -3
  138. package/src/react/ui/modals/BuyModal/hooks/useLoadData.ts +1 -1
  139. package/src/react/ui/modals/BuyModal/modals/Modal1155.tsx +23 -24
  140. package/src/react/ui/modals/BuyModal/modals/__tests__/CheckoutModal.test.tsx +2 -2
  141. package/src/react/ui/modals/BuyModal/modals/__tests__/Modal1155.test.tsx +209 -242
  142. package/src/react/ui/modals/CreateListingModal/__tests__/Modal.test.tsx +5 -11
  143. package/src/react/ui/modals/CreateListingModal/hooks/useGetTokenApproval.ts +1 -1
  144. package/src/react/ui/modals/CreateListingModal/index.tsx +1 -1
  145. package/src/react/ui/modals/MakeOfferModal/Modal.tsx +1 -1
  146. package/src/react/ui/modals/MakeOfferModal/__tests__/Modal.test.tsx +46 -49
  147. package/src/react/ui/modals/SellModal/__tests__/Modal.test.tsx +9 -28
  148. package/src/react/ui/modals/SellModal/hooks/useGetTokenApproval.tsx +2 -2
  149. package/src/react/ui/modals/SuccessfulPurchaseModal/__tests__/Modal.test.tsx +3 -3
  150. package/src/react/ui/modals/_internal/components/actionModal/ActionModal.tsx +4 -4
  151. package/src/react/ui/modals/_internal/components/actionModal/store.ts +1 -1
  152. package/src/react/ui/modals/_internal/components/alertMessage/index.tsx +2 -3
  153. package/src/react/ui/modals/_internal/components/currencyOptionsSelect/__tests__/index.test.tsx +4 -4
  154. package/src/react/ui/modals/_internal/components/expirationDateSelect/index.tsx +1 -1
  155. package/src/react/ui/modals/_internal/components/priceInput/__tests__/index.test.tsx +1 -8
  156. package/src/react/ui/modals/_internal/components/quantityInput/index.tsx +9 -5
  157. package/src/react/ui/modals/_internal/components/switchChainModal/__tests__/SwitchChainModal.test.tsx +4 -10
  158. package/src/react/ui/modals/_internal/components/switchChainModal/index.tsx +2 -2
  159. package/src/react/ui/modals/_internal/components/switchChainModal/store.ts +1 -1
  160. package/src/react/ui/modals/_internal/components/transaction-footer/index.tsx +9 -3
  161. package/src/react/ui/modals/_internal/components/transaction-footer/transactionFooter.css.ts +11 -0
  162. package/src/react/ui/modals/_internal/components/transactionStatusModal/__tests__/TransactionStatusModal.test.tsx +4 -9
  163. package/src/react/ui/modals/_internal/components/transactionStatusModal/__tests__/utils.test.ts +3 -3
  164. package/src/react/ui/modals/_internal/components/transactionStatusModal/hooks/useTransactionStatus.ts +4 -4
  165. package/src/react/ui/modals/_internal/components/transactionStatusModal/index.tsx +1 -1
  166. package/src/react/ui/modals/modal-provider.tsx +2 -2
  167. package/src/utils/__tests__/address.test.ts +1 -1
  168. package/src/utils/__tests__/getMarketplaceDetails.test.ts +4 -4
  169. package/src/utils/getMarketplaceDetails.ts +7 -7
  170. package/src/utils/index.ts +1 -0
  171. package/src/utils/networkconfigToWagmiChain.ts +17 -0
  172. package/src/utils/price.ts +2 -5
  173. package/test/const.ts +35 -0
  174. package/test/globalSetup.ts +15 -0
  175. package/test/index.ts +1 -0
  176. package/{src/react/_internal/test → test}/mocks/wallet.ts +5 -5
  177. package/test/setup.ts +20 -0
  178. package/test/test-utils.tsx +157 -0
  179. package/tsconfig.json +7 -1
  180. package/tsconfig.tsbuildinfo +1 -1
  181. package/vitest.config.js +5 -3
  182. package/dist/chunk-3OU7BADC.js.map +0 -1
  183. package/dist/chunk-6YHHCGGY.js.map +0 -1
  184. package/dist/chunk-GFADBQPX.js +0 -2
  185. package/dist/chunk-L2K4DBH2.js.map +0 -1
  186. package/dist/chunk-OMCWTRBR.js.map +0 -1
  187. package/dist/chunk-YA3DWLDC.js.map +0 -1
  188. package/src/react/_internal/test/setup.ts +0 -28
  189. package/src/react/_internal/test-utils.tsx +0 -97
  190. package/src/react/ui/icons/ArrowUp.tsx +0 -32
  191. package/src/react/ui/icons/InventoryIcon.tsx +0 -44
  192. package/src/react/ui/icons/MinusIcon.tsx +0 -34
  193. package/src/react/ui/icons/PlusIcon.tsx +0 -32
  194. package/src/react/ui/icons/PositiveCircleIcon.tsx +0 -38
  195. package/src/react/ui/modals/BuyModal/hooks/__tests__/useBuyCollectable.test.tsx.bak +0 -379
  196. package/dist/{chunk-GFADBQPX.js.map → chunk-2J7JIOW5.js.map} +0 -0
  197. package/dist/{chunk-YYBU45PK.js.map → chunk-NXORBVUS.js.map} +0 -0
  198. package/dist/{types-BVD42zE_.d.ts → types-CPl0DH-A.d.ts} +1 -1
  199. /package/src/react/ui/icons/{Bell.tsx → BellIcon.tsx} +0 -0
@@ -2,6 +2,10 @@
2
2
  import {
3
3
  InfoIcon_default
4
4
  } from "./chunk-QTJF5GDQ.js";
5
+ import {
6
+ collectionOptions,
7
+ marketplaceConfigOptions
8
+ } from "./chunk-6WMO5YM5.js";
5
9
  import {
6
10
  SEQUENCE_MARKET_V1_ADDRESS,
7
11
  SEQUENCE_MARKET_V2_ADDRESS
@@ -17,7 +21,7 @@ import {
17
21
  import {
18
22
  compareAddress,
19
23
  getPresentableChainName
20
- } from "./chunk-OMCWTRBR.js";
24
+ } from "./chunk-NKHM2AIS.js";
21
25
  import {
22
26
  ERC1155_ABI
23
27
  } from "./chunk-WFE6OCYF.js";
@@ -31,7 +35,7 @@ import {
31
35
  PROVIDER_ID,
32
36
  QueryArgSchema,
33
37
  getProviderEl
34
- } from "./chunk-YOKGP2EQ.js";
38
+ } from "./chunk-FG2BBP3P.js";
35
39
  import {
36
40
  CollectibleStatus,
37
41
  CollectionStatus,
@@ -52,10 +56,8 @@ import {
52
56
  TransactionSwapProvider,
53
57
  WalletKind,
54
58
  balanceQueries,
55
- builderMarketplaceApi,
56
59
  collectableKeys,
57
60
  collectionKeys,
58
- configKeys,
59
61
  currencyKeys,
60
62
  getIndexerClient,
61
63
  getMarketplaceClient,
@@ -66,9 +68,7 @@ import {
66
68
  BaseError,
67
69
  ChainSwitchError,
68
70
  ChainSwitchUserRejectedError,
69
- MarketplaceConfigFetchError,
70
71
  NoWalletConnectedError,
71
- ProjectNotFoundError,
72
72
  TransactionConfirmationError,
73
73
  TransactionExecutionError,
74
74
  TransactionSignatureError,
@@ -83,8 +83,8 @@ import { useCallback } from "react";
83
83
  import { useAccount } from "wagmi";
84
84
 
85
85
  // src/react/hooks/useCollectionBalanceDetails.tsx
86
- import { z } from "zod";
87
86
  import { queryOptions, useQuery } from "@tanstack/react-query";
87
+ import { z } from "zod";
88
88
 
89
89
  // src/react/hooks/useConfig.tsx
90
90
  import { useContext } from "react";
@@ -953,98 +953,28 @@ var useCollectible = (args) => {
953
953
  };
954
954
 
955
955
  // src/react/hooks/useCollection.tsx
956
- import { queryOptions as queryOptions5, useQuery as useQuery5 } from "@tanstack/react-query";
957
- import { z as z6 } from "zod";
958
- var UseCollectionSchema = z6.object({
959
- chainId: ChainIdSchema.pipe(z6.coerce.string()),
960
- collectionAddress: AddressSchema,
961
- query: QueryArgSchema
962
- });
963
- var fetchCollection = async (args, config) => {
964
- const parsedArgs = UseCollectionSchema.parse(args);
965
- const metadataClient = getMetadataClient(config);
966
- return metadataClient.getContractInfo({
967
- chainID: parsedArgs.chainId,
968
- contractAddress: parsedArgs.collectionAddress
969
- }).then((resp) => resp.contractInfo);
970
- };
971
- var collectionOptions = (args, config) => {
972
- return queryOptions5({
973
- ...args.query,
974
- queryKey: [...collectionKeys.detail, args, config],
975
- queryFn: () => fetchCollection(args, config)
976
- });
977
- };
956
+ import { useQuery as useQuery5 } from "@tanstack/react-query";
978
957
  var useCollection = (args) => {
979
958
  const config = useConfig();
980
959
  return useQuery5(collectionOptions(args, config));
981
960
  };
982
961
 
983
962
  // src/react/hooks/useComparePrices.tsx
984
- import { queryOptions as queryOptions9, useQuery as useQuery9 } from "@tanstack/react-query";
985
- import { z as z9 } from "zod";
963
+ import { queryOptions as queryOptions7, useQuery as useQuery9 } from "@tanstack/react-query";
964
+ import { z as z8 } from "zod";
986
965
 
987
966
  // src/react/hooks/useConvertPriceToUSD.tsx
988
- import { queryOptions as queryOptions8, useQuery as useQuery8 } from "@tanstack/react-query";
967
+ import { queryOptions as queryOptions6, useQuery as useQuery8 } from "@tanstack/react-query";
989
968
  import { formatUnits } from "viem";
990
- import { z as z8 } from "zod";
969
+ import { z as z7 } from "zod";
991
970
 
992
971
  // src/react/hooks/useCurrencies.tsx
993
- import { queryOptions as queryOptions7, useQuery as useQuery7 } from "@tanstack/react-query";
972
+ import { queryOptions as queryOptions5, useQuery as useQuery7 } from "@tanstack/react-query";
994
973
  import { zeroAddress as zeroAddress2 } from "viem";
995
- import { z as z7 } from "zod";
974
+ import { z as z6 } from "zod";
996
975
 
997
976
  // src/react/hooks/useMarketplaceConfig.tsx
998
977
  import { useQuery as useQuery6 } from "@tanstack/react-query";
999
-
1000
- // src/react/hooks/options/marketplaceConfigOptions.ts
1001
- import { queryOptions as queryOptions6 } from "@tanstack/react-query";
1002
- var fetchBuilderConfig = async (projectId, env) => {
1003
- const url = `${builderMarketplaceApi(projectId, env)}`;
1004
- const response = await fetch(`${url}/settings.json`);
1005
- const json = await response.json();
1006
- if (!response.ok) {
1007
- console.error("Failed to fetch marketplace config:", response.status, json);
1008
- switch (json.code) {
1009
- case 3e3:
1010
- throw new ProjectNotFoundError(projectId, url);
1011
- default:
1012
- throw new MarketplaceConfigFetchError(json.msg);
1013
- }
1014
- }
1015
- return json;
1016
- };
1017
- var fetchStyles = async (projectId, env) => {
1018
- const response = await fetch(
1019
- `${builderMarketplaceApi(projectId, env)}/styles.css`
1020
- );
1021
- const styles = await response.text();
1022
- return styles.replaceAll(/['"]/g, "");
1023
- };
1024
- var fetchMarketplaceConfig = async (env, projectId) => {
1025
- const [marketplaceConfig, cssString] = await Promise.all([
1026
- fetchBuilderConfig(projectId, env),
1027
- fetchStyles(projectId, env)
1028
- ]);
1029
- return {
1030
- ...marketplaceConfig,
1031
- cssString,
1032
- manifestUrl: `${builderMarketplaceApi(projectId, env)}/manifest.json`
1033
- };
1034
- };
1035
- var marketplaceConfigOptions = (config) => {
1036
- let env = "production";
1037
- if ("_internal" in config && config._internal !== void 0) {
1038
- env = config._internal.builderEnv ?? env;
1039
- }
1040
- const projectId = config.projectId;
1041
- return queryOptions6({
1042
- queryKey: [...configKeys.marketplace, env, projectId],
1043
- queryFn: () => fetchMarketplaceConfig(env, projectId)
1044
- });
1045
- };
1046
-
1047
- // src/react/hooks/useMarketplaceConfig.tsx
1048
978
  var useMarketplaceConfig = () => {
1049
979
  const config = useConfig();
1050
980
  return useQuery6(marketplaceConfigOptions(config));
@@ -1052,9 +982,9 @@ var useMarketplaceConfig = () => {
1052
982
 
1053
983
  // src/react/hooks/useCurrencies.tsx
1054
984
  var ChainIdCoerce = ChainIdSchema.transform((val) => val.toString());
1055
- var UseCurrenciesArgsSchema = z7.object({
985
+ var UseCurrenciesArgsSchema = z6.object({
1056
986
  chainId: ChainIdCoerce,
1057
- includeNativeCurrency: z7.boolean().optional().default(true),
987
+ includeNativeCurrency: z6.boolean().optional().default(true),
1058
988
  collectionAddress: AddressSchema.optional(),
1059
989
  query: QueryArgSchema
1060
990
  });
@@ -1087,7 +1017,7 @@ var fetchCurrencies = async (args, config) => {
1087
1017
  return currencies;
1088
1018
  };
1089
1019
  var currenciesOptions = (args, config) => {
1090
- return queryOptions7({
1020
+ return queryOptions5({
1091
1021
  ...args.query,
1092
1022
  queryKey: [...currencyKeys.lists, args],
1093
1023
  queryFn: () => fetchCurrencies(args, config),
@@ -1101,10 +1031,10 @@ var useCurrencies = (args) => {
1101
1031
 
1102
1032
  // src/react/hooks/useConvertPriceToUSD.tsx
1103
1033
  var ChainIdCoerce2 = ChainIdSchema.transform((val) => val.toString());
1104
- var UseConvertPriceToUSDArgsSchema = z8.object({
1034
+ var UseConvertPriceToUSDArgsSchema = z7.object({
1105
1035
  chainId: ChainIdCoerce2,
1106
1036
  currencyAddress: AddressSchema,
1107
- amountRaw: z8.string(),
1037
+ amountRaw: z7.string(),
1108
1038
  query: QueryArgSchema
1109
1039
  });
1110
1040
  var convertPriceToUSD = async (args, config) => {
@@ -1134,7 +1064,7 @@ var convertPriceToUSD = async (args, config) => {
1134
1064
  };
1135
1065
  };
1136
1066
  var convertPriceToUSDOptions = (args, config) => {
1137
- return queryOptions8({
1067
+ return queryOptions6({
1138
1068
  ...args.query,
1139
1069
  queryKey: [
1140
1070
  ...currencyKeys.conversion,
@@ -1152,13 +1082,13 @@ var useConvertPriceToUSD = (args) => {
1152
1082
 
1153
1083
  // src/react/hooks/useComparePrices.tsx
1154
1084
  var ChainIdCoerce3 = ChainIdSchema.transform((val) => val.toString());
1155
- var UseComparePricesArgsSchema = z9.object({
1085
+ var UseComparePricesArgsSchema = z8.object({
1156
1086
  chainId: ChainIdCoerce3,
1157
1087
  // First price details
1158
- priceAmountRaw: z9.string(),
1088
+ priceAmountRaw: z8.string(),
1159
1089
  priceCurrencyAddress: AddressSchema,
1160
1090
  // Second price details (to compare against)
1161
- compareToPriceAmountRaw: z9.string(),
1091
+ compareToPriceAmountRaw: z8.string(),
1162
1092
  compareToPriceCurrencyAddress: AddressSchema,
1163
1093
  query: QueryArgSchema
1164
1094
  });
@@ -1198,7 +1128,7 @@ var comparePrices = async (args, config) => {
1198
1128
  };
1199
1129
  };
1200
1130
  var comparePricesOptions = (args, config) => {
1201
- return queryOptions9({
1131
+ return queryOptions7({
1202
1132
  ...args.query,
1203
1133
  queryKey: [...currencyKeys.conversion, "compare", args],
1204
1134
  queryFn: () => comparePrices(args, config)
@@ -1210,10 +1140,10 @@ var useComparePrices = (args) => {
1210
1140
  };
1211
1141
 
1212
1142
  // src/react/hooks/useCurrency.tsx
1213
- import { queryOptions as queryOptions10, useQuery as useQuery10 } from "@tanstack/react-query";
1214
- import { z as z10 } from "zod";
1143
+ import { queryOptions as queryOptions8, useQuery as useQuery10 } from "@tanstack/react-query";
1144
+ import { z as z9 } from "zod";
1215
1145
  var ChainIdCoerce4 = ChainIdSchema.transform((val) => val.toString());
1216
- var UseCurrencyArgsSchema = z10.object({
1146
+ var UseCurrencyArgsSchema = z9.object({
1217
1147
  chainId: ChainIdCoerce4,
1218
1148
  currencyAddress: AddressSchema,
1219
1149
  query: QueryArgSchema
@@ -1238,7 +1168,7 @@ var fetchCurrency = async (chainId, currencyAddress, config) => {
1238
1168
  return currency;
1239
1169
  };
1240
1170
  var currencyOptions = (args, config) => {
1241
- return queryOptions10({
1171
+ return queryOptions8({
1242
1172
  ...args.query,
1243
1173
  queryKey: [...currencyKeys.details, args.chainId, args.currencyAddress],
1244
1174
  queryFn: () => fetchCurrency(args.chainId, args.currencyAddress, config)
@@ -1250,12 +1180,12 @@ var useCurrency = (args) => {
1250
1180
  };
1251
1181
 
1252
1182
  // src/react/hooks/useFilters.tsx
1253
- import { queryOptions as queryOptions11, useQuery as useQuery11 } from "@tanstack/react-query";
1254
- import { z as z11 } from "zod";
1255
- var UseFiltersSchema = z11.object({
1256
- chainId: ChainIdSchema.pipe(z11.coerce.string()),
1183
+ import { queryOptions as queryOptions9, useQuery as useQuery11 } from "@tanstack/react-query";
1184
+ import { z as z10 } from "zod";
1185
+ var UseFiltersSchema = z10.object({
1186
+ chainId: ChainIdSchema.pipe(z10.coerce.string()),
1257
1187
  collectionAddress: AddressSchema,
1258
- showAllFilters: z11.boolean().default(false).optional(),
1188
+ showAllFilters: z10.boolean().default(false).optional(),
1259
1189
  query: QueryArgSchema
1260
1190
  });
1261
1191
  var fetchFilters = async (args, config) => {
@@ -1304,7 +1234,7 @@ var fetchFilters = async (args, config) => {
1304
1234
  return filteredResults;
1305
1235
  };
1306
1236
  var filtersOptions = (args, config) => {
1307
- return queryOptions11({
1237
+ return queryOptions9({
1308
1238
  ...args.query,
1309
1239
  queryKey: [...collectableKeys.filter, args, config],
1310
1240
  queryFn: () => fetchFilters(args, config)
@@ -1316,10 +1246,10 @@ var useFilters = (args) => {
1316
1246
  };
1317
1247
 
1318
1248
  // src/react/hooks/useFloorOrder.tsx
1319
- import { queryOptions as queryOptions12, useQuery as useQuery12 } from "@tanstack/react-query";
1320
- import { z as z12 } from "zod";
1321
- var UseFloorOrderSchema = z12.object({
1322
- chainId: ChainIdSchema.pipe(z12.coerce.string()),
1249
+ import { queryOptions as queryOptions10, useQuery as useQuery12 } from "@tanstack/react-query";
1250
+ import { z as z11 } from "zod";
1251
+ var UseFloorOrderSchema = z11.object({
1252
+ chainId: ChainIdSchema.pipe(z11.coerce.string()),
1323
1253
  collectionAddress: AddressSchema,
1324
1254
  query: QueryArgSchema
1325
1255
  });
@@ -1328,7 +1258,7 @@ var fetchFloorOrder = async (args, config) => {
1328
1258
  return marketplaceClient.getFloorOrder({ contractAddress: args.collectionAddress }).then((data) => data.collectible);
1329
1259
  };
1330
1260
  var floorOrderOptions = (args, config) => {
1331
- return queryOptions12({
1261
+ return queryOptions10({
1332
1262
  queryKey: [...collectableKeys.floorOrders, args, config],
1333
1263
  queryFn: () => fetchFloorOrder(args, config)
1334
1264
  });
@@ -1339,13 +1269,13 @@ var useFloorOrder = (args) => {
1339
1269
  };
1340
1270
 
1341
1271
  // src/react/hooks/useHighestOffer.tsx
1342
- import { queryOptions as queryOptions13, useQuery as useQuery13 } from "@tanstack/react-query";
1343
- import { z as z13 } from "zod";
1272
+ import { queryOptions as queryOptions11, useQuery as useQuery13 } from "@tanstack/react-query";
1273
+ import { z as z12 } from "zod";
1344
1274
  var UseHighestOfferArgsSchema = getCollectibleHighestOfferArgsSchema.omit({
1345
1275
  contractAddress: true
1346
1276
  }).extend({
1347
1277
  collectionAddress: AddressSchema,
1348
- chainId: ChainIdSchema.pipe(z13.coerce.string()),
1278
+ chainId: ChainIdSchema.pipe(z12.coerce.string()),
1349
1279
  query: QueryArgSchema
1350
1280
  });
1351
1281
  var fetchHighestOffer = async (args, config) => {
@@ -1357,7 +1287,7 @@ var fetchHighestOffer = async (args, config) => {
1357
1287
  });
1358
1288
  };
1359
1289
  var highestOfferOptions = (args, config) => {
1360
- return queryOptions13({
1290
+ return queryOptions11({
1361
1291
  ...args.query,
1362
1292
  queryKey: [...collectableKeys.highestOffers, args, config],
1363
1293
  queryFn: () => fetchHighestOffer(args, config)
@@ -1371,34 +1301,34 @@ var useHighestOffer = (args) => {
1371
1301
  // src/react/hooks/useListBalances.tsx
1372
1302
  import { SortOrder as SortOrder2 } from "@0xsequence/indexer";
1373
1303
  import { infiniteQueryOptions, useInfiniteQuery } from "@tanstack/react-query";
1374
- import { z as z14 } from "zod";
1375
- var metadataOptionsSchema = z14.object({
1376
- verifiedOnly: z14.boolean().optional(),
1377
- unverifiedOnly: z14.boolean().optional(),
1378
- includeContracts: z14.array(z14.string()).optional()
1379
- });
1380
- var sortOrderSchema2 = z14.nativeEnum(SortOrder2);
1381
- var sortBySchema2 = z14.object({
1382
- column: z14.string(),
1304
+ import { z as z13 } from "zod";
1305
+ var metadataOptionsSchema = z13.object({
1306
+ verifiedOnly: z13.boolean().optional(),
1307
+ unverifiedOnly: z13.boolean().optional(),
1308
+ includeContracts: z13.array(z13.string()).optional()
1309
+ });
1310
+ var sortOrderSchema2 = z13.nativeEnum(SortOrder2);
1311
+ var sortBySchema2 = z13.object({
1312
+ column: z13.string(),
1383
1313
  order: sortOrderSchema2
1384
1314
  });
1385
- var pageSchema2 = z14.object({
1386
- page: z14.number().optional(),
1387
- column: z14.string().optional(),
1388
- before: z14.any().optional(),
1389
- after: z14.any().optional(),
1390
- sort: z14.array(sortBySchema2).optional(),
1391
- pageSize: z14.number().optional(),
1392
- more: z14.boolean().optional()
1393
- });
1394
- var useListBalancesArgsSchema = z14.object({
1395
- chainId: ChainIdSchema.pipe(z14.coerce.number()),
1315
+ var pageSchema2 = z13.object({
1316
+ page: z13.number().optional(),
1317
+ column: z13.string().optional(),
1318
+ before: z13.any().optional(),
1319
+ after: z13.any().optional(),
1320
+ sort: z13.array(sortBySchema2).optional(),
1321
+ pageSize: z13.number().optional(),
1322
+ more: z13.boolean().optional()
1323
+ });
1324
+ var useListBalancesArgsSchema = z13.object({
1325
+ chainId: ChainIdSchema.pipe(z13.coerce.number()),
1396
1326
  accountAddress: AddressSchema.optional(),
1397
1327
  contractAddress: AddressSchema.optional(),
1398
- tokenId: z14.string().optional(),
1399
- includeMetadata: z14.boolean().optional(),
1328
+ tokenId: z13.string().optional(),
1329
+ includeMetadata: z13.boolean().optional(),
1400
1330
  metadataOptions: metadataOptionsSchema.optional(),
1401
- includeCollectionTokens: z14.boolean().optional(),
1331
+ includeCollectionTokens: z13.boolean().optional(),
1402
1332
  page: pageSchema2.optional(),
1403
1333
  query: QueryArgSchema
1404
1334
  });
@@ -1426,7 +1356,7 @@ var useListBalances = (args) => {
1426
1356
  };
1427
1357
 
1428
1358
  // src/react/hooks/useListCollectibleActivities.tsx
1429
- import { queryOptions as queryOptions14, useQuery as useQuery14 } from "@tanstack/react-query";
1359
+ import { queryOptions as queryOptions12, useQuery as useQuery14 } from "@tanstack/react-query";
1430
1360
  var fetchCollectibleActivities = async (args, config) => {
1431
1361
  const marketplaceClient = getMarketplaceClient(args.chainId, config);
1432
1362
  return marketplaceClient.listCollectibleActivities({
@@ -1443,7 +1373,7 @@ var fetchCollectibleActivities = async (args, config) => {
1443
1373
  }));
1444
1374
  };
1445
1375
  var listCollectibleActivitiesOptions = (args, config) => {
1446
- return queryOptions14({
1376
+ return queryOptions12({
1447
1377
  queryKey: [...collectableKeys.collectibleActivities, args, config],
1448
1378
  queryFn: () => fetchCollectibleActivities(args, config),
1449
1379
  enabled: args.query?.enabled ?? true
@@ -1456,12 +1386,12 @@ var useListCollectibleActivities = (args) => {
1456
1386
 
1457
1387
  // src/react/hooks/useListCollectibles.tsx
1458
1388
  import { infiniteQueryOptions as infiniteQueryOptions2, useInfiniteQuery as useInfiniteQuery2 } from "@tanstack/react-query";
1459
- import { z as z15 } from "zod";
1389
+ import { z as z14 } from "zod";
1460
1390
  var UseListCollectiblesArgsSchema = listCollectiblesArgsSchema.omit({
1461
1391
  contractAddress: true
1462
1392
  }).extend({
1463
1393
  collectionAddress: AddressSchema,
1464
- chainId: ChainIdSchema.pipe(z15.coerce.string()),
1394
+ chainId: ChainIdSchema.pipe(z14.coerce.string()),
1465
1395
  query: QueryArgSchema
1466
1396
  });
1467
1397
  var fetchCollectibles = async (args, marketplaceClient, page) => {
@@ -1489,17 +1419,17 @@ var useListCollectibles = (args) => {
1489
1419
  };
1490
1420
 
1491
1421
  // src/react/hooks/useListCollectiblesPaginated.tsx
1492
- import { queryOptions as queryOptions15, useQuery as useQuery15 } from "@tanstack/react-query";
1493
- import { z as z16 } from "zod";
1422
+ import { queryOptions as queryOptions13, useQuery as useQuery15 } from "@tanstack/react-query";
1423
+ import { z as z15 } from "zod";
1494
1424
  var UseListCollectiblesPaginatedArgsSchema = listCollectiblesArgsSchema.omit({
1495
1425
  contractAddress: true
1496
1426
  }).extend({
1497
1427
  collectionAddress: AddressSchema,
1498
- chainId: ChainIdSchema.pipe(z16.coerce.string()),
1499
- query: z16.object({
1500
- enabled: z16.boolean().optional(),
1501
- page: z16.number().optional().default(1),
1502
- pageSize: z16.number().optional().default(30)
1428
+ chainId: ChainIdSchema.pipe(z15.coerce.string()),
1429
+ query: z15.object({
1430
+ enabled: z15.boolean().optional(),
1431
+ page: z15.number().optional().default(1),
1432
+ pageSize: z15.number().optional().default(30)
1503
1433
  }).optional().default({})
1504
1434
  });
1505
1435
  var fetchCollectiblesPaginated = async (args, marketplaceClient) => {
@@ -1520,7 +1450,7 @@ var listCollectiblesPaginatedOptions = (args, config) => {
1520
1450
  args.chainId,
1521
1451
  config
1522
1452
  );
1523
- return queryOptions15({
1453
+ return queryOptions13({
1524
1454
  queryKey: [...collectableKeys.lists, "paginated", args],
1525
1455
  queryFn: () => fetchCollectiblesPaginated(args, marketplaceClient),
1526
1456
  enabled: args.query?.enabled ?? true
@@ -1532,7 +1462,7 @@ var useListCollectiblesPaginated = (args) => {
1532
1462
  };
1533
1463
 
1534
1464
  // src/react/hooks/useListCollectionActivities.tsx
1535
- import { queryOptions as queryOptions16, useQuery as useQuery16 } from "@tanstack/react-query";
1465
+ import { queryOptions as queryOptions14, useQuery as useQuery16 } from "@tanstack/react-query";
1536
1466
  var fetchListCollectionActivities = async (args, config) => {
1537
1467
  const marketplaceClient = getMarketplaceClient(args.chainId, config);
1538
1468
  return marketplaceClient.listCollectionActivities({
@@ -1548,7 +1478,7 @@ var fetchListCollectionActivities = async (args, config) => {
1548
1478
  }));
1549
1479
  };
1550
1480
  var listCollectionActivitiesOptions = (args, config) => {
1551
- return queryOptions16({
1481
+ return queryOptions14({
1552
1482
  queryKey: [...collectionKeys.collectionActivities, args, config],
1553
1483
  queryFn: () => fetchListCollectionActivities(args, config),
1554
1484
  enabled: args.query?.enabled ?? true
@@ -1560,12 +1490,12 @@ var useListCollectionActivities = (args) => {
1560
1490
  };
1561
1491
 
1562
1492
  // src/react/hooks/useListOffersForCollectible.tsx
1563
- import { queryOptions as queryOptions17, useQuery as useQuery17 } from "@tanstack/react-query";
1564
- import { z as z17 } from "zod";
1493
+ import { queryOptions as queryOptions15, useQuery as useQuery17 } from "@tanstack/react-query";
1494
+ import { z as z16 } from "zod";
1565
1495
  var UseListOffersForCollectibleArgsSchema = listOffersForCollectibleArgsSchema.extend({
1566
- chainId: ChainIdSchema.pipe(z17.coerce.string()),
1567
- collectionAddress: z17.string(),
1568
- collectibleId: z17.string()
1496
+ chainId: ChainIdSchema.pipe(z16.coerce.string()),
1497
+ collectionAddress: z16.string(),
1498
+ collectibleId: z16.string()
1569
1499
  }).omit({ contractAddress: true, tokenId: true });
1570
1500
  var fetchListOffersForCollectible = async (config, args) => {
1571
1501
  const arg = {
@@ -1578,7 +1508,7 @@ var fetchListOffersForCollectible = async (config, args) => {
1578
1508
  return marketplaceClient.listCollectibleOffers(arg);
1579
1509
  };
1580
1510
  var listOffersForCollectibleOptions = (args, config) => {
1581
- return queryOptions17({
1511
+ return queryOptions15({
1582
1512
  queryKey: [...collectableKeys.offers, args, config],
1583
1513
  queryFn: () => fetchListOffersForCollectible(config, args)
1584
1514
  });
@@ -1589,15 +1519,15 @@ var useListOffersForCollectible = (args) => {
1589
1519
  };
1590
1520
 
1591
1521
  // src/react/hooks/useCountOffersForCollectible.tsx
1592
- import { queryOptions as queryOptions18, useQuery as useQuery18 } from "@tanstack/react-query";
1593
- import { z as z18 } from "zod";
1522
+ import { queryOptions as queryOptions16, useQuery as useQuery18 } from "@tanstack/react-query";
1523
+ import { z as z17 } from "zod";
1594
1524
  var UseCountOffersForCollectibleArgsSchema = countOffersForCollectibleArgsSchema.omit({
1595
1525
  contractAddress: true,
1596
1526
  tokenId: true
1597
1527
  }).extend({
1598
1528
  collectionAddress: AddressSchema,
1599
- collectibleId: z18.string(),
1600
- chainId: ChainIdSchema.pipe(z18.coerce.string()),
1529
+ collectibleId: z17.string(),
1530
+ chainId: ChainIdSchema.pipe(z17.coerce.string()),
1601
1531
  query: QueryArgSchema
1602
1532
  });
1603
1533
  var fetchCountOffersForCollectible = async (args, config) => {
@@ -1610,7 +1540,7 @@ var fetchCountOffersForCollectible = async (args, config) => {
1610
1540
  });
1611
1541
  };
1612
1542
  var countOffersForCollectibleOptions = (args, config) => {
1613
- return queryOptions18({
1543
+ return queryOptions16({
1614
1544
  ...args.query,
1615
1545
  queryKey: [...collectableKeys.offersCount, args, config],
1616
1546
  queryFn: () => fetchCountOffersForCollectible(args, config)
@@ -1622,12 +1552,12 @@ var useCountOffersForCollectible = (args) => {
1622
1552
  };
1623
1553
 
1624
1554
  // src/react/hooks/useListListingsForCollectible.tsx
1625
- import { queryOptions as queryOptions19, useQuery as useQuery19 } from "@tanstack/react-query";
1626
- import { z as z19 } from "zod";
1555
+ import { queryOptions as queryOptions17, useQuery as useQuery19 } from "@tanstack/react-query";
1556
+ import { z as z18 } from "zod";
1627
1557
  var UseListListingsForCollectibleArgsSchema = listListingsForCollectibleArgsSchema.extend({
1628
- chainId: ChainIdSchema.pipe(z19.coerce.string()),
1629
- collectionAddress: z19.string(),
1630
- collectibleId: z19.string()
1558
+ chainId: ChainIdSchema.pipe(z18.coerce.string()),
1559
+ collectionAddress: z18.string(),
1560
+ collectibleId: z18.string()
1631
1561
  }).omit({ contractAddress: true, tokenId: true });
1632
1562
  var fetchListListingsForCollectible = async (config, args) => {
1633
1563
  const arg = {
@@ -1640,7 +1570,7 @@ var fetchListListingsForCollectible = async (config, args) => {
1640
1570
  return marketplaceClient.listCollectibleListings(arg);
1641
1571
  };
1642
1572
  var listListingsForCollectibleOptions = (args, config) => {
1643
- return queryOptions19({
1573
+ return queryOptions17({
1644
1574
  queryKey: [...collectableKeys.listings, args, config],
1645
1575
  queryFn: () => fetchListListingsForCollectible(config, args)
1646
1576
  });
@@ -1651,15 +1581,15 @@ var useListListingsForCollectible = (args) => {
1651
1581
  };
1652
1582
 
1653
1583
  // src/react/hooks/useCountListingsForCollectible.tsx
1654
- import { queryOptions as queryOptions20, useQuery as useQuery20 } from "@tanstack/react-query";
1655
- import { z as z20 } from "zod";
1584
+ import { queryOptions as queryOptions18, useQuery as useQuery20 } from "@tanstack/react-query";
1585
+ import { z as z19 } from "zod";
1656
1586
  var UseCountListingsForCollectibleArgsSchema = countListingsForCollectibleArgsSchema.omit({
1657
1587
  contractAddress: true,
1658
1588
  tokenId: true
1659
1589
  }).extend({
1660
1590
  collectionAddress: AddressSchema,
1661
- collectibleId: z20.string(),
1662
- chainId: ChainIdSchema.pipe(z20.coerce.string()),
1591
+ collectibleId: z19.string(),
1592
+ chainId: ChainIdSchema.pipe(z19.coerce.string()),
1663
1593
  query: QueryArgSchema
1664
1594
  });
1665
1595
  var fetchCountListingsForCollectible = async (args, config) => {
@@ -1672,7 +1602,7 @@ var fetchCountListingsForCollectible = async (args, config) => {
1672
1602
  });
1673
1603
  };
1674
1604
  var countListingsForCollectibleOptions = (args, config) => {
1675
- return queryOptions20({
1605
+ return queryOptions18({
1676
1606
  ...args.query,
1677
1607
  queryKey: [...collectableKeys.listingsCount, args, config],
1678
1608
  queryFn: () => fetchCountListingsForCollectible(args, config)
@@ -1684,13 +1614,13 @@ var useCountListingsForCollectible = (args) => {
1684
1614
  };
1685
1615
 
1686
1616
  // src/react/hooks/useLowestListing.tsx
1687
- import { queryOptions as queryOptions21, useQuery as useQuery21 } from "@tanstack/react-query";
1688
- import { z as z21 } from "zod";
1617
+ import { queryOptions as queryOptions19, useQuery as useQuery21 } from "@tanstack/react-query";
1618
+ import { z as z20 } from "zod";
1689
1619
  var UseLowestListingSchema = getCollectibleLowestListingArgsSchema.omit({
1690
1620
  contractAddress: true
1691
1621
  }).extend({
1692
1622
  collectionAddress: AddressSchema,
1693
- chainId: ChainIdSchema.pipe(z21.coerce.string()),
1623
+ chainId: ChainIdSchema.pipe(z20.coerce.string()),
1694
1624
  query: QueryArgSchema
1695
1625
  });
1696
1626
  var fetchLowestListing = async (args, config) => {
@@ -1702,7 +1632,7 @@ var fetchLowestListing = async (args, config) => {
1702
1632
  });
1703
1633
  };
1704
1634
  var lowestListingOptions = (args, config) => {
1705
- return queryOptions21({
1635
+ return queryOptions19({
1706
1636
  ...args.query,
1707
1637
  queryKey: [...collectableKeys.lowestListings, args, config],
1708
1638
  queryFn: () => fetchLowestListing(args, config)
@@ -1714,14 +1644,14 @@ var useLowestListing = (args) => {
1714
1644
  };
1715
1645
 
1716
1646
  // src/react/hooks/useRoyaltyPercentage.tsx
1717
- import { queryOptions as queryOptions22, skipToken as skipToken2, useQuery as useQuery22 } from "@tanstack/react-query";
1647
+ import { queryOptions as queryOptions20, skipToken as skipToken2, useQuery as useQuery22 } from "@tanstack/react-query";
1718
1648
  import { getContract } from "viem";
1719
1649
  import { usePublicClient } from "wagmi";
1720
- import { z as z22 } from "zod";
1721
- var UseRoyaletyPercentageSchema = z22.object({
1722
- chainId: ChainIdSchema.pipe(z22.coerce.string()),
1650
+ import { z as z21 } from "zod";
1651
+ var UseRoyaletyPercentageSchema = z21.object({
1652
+ chainId: ChainIdSchema.pipe(z21.coerce.string()),
1723
1653
  collectionAddress: AddressSchema,
1724
- collectibleId: z22.string(),
1654
+ collectibleId: z21.string(),
1725
1655
  query: QueryArgSchema
1726
1656
  });
1727
1657
  var fetchRoyaletyPercentage = async (args, publicClient) => {
@@ -1741,7 +1671,7 @@ var fetchRoyaletyPercentage = async (args, publicClient) => {
1741
1671
  return 0n;
1742
1672
  }
1743
1673
  };
1744
- var royaletyPercentageOptions = (args, publicClient) => queryOptions22({
1674
+ var royaletyPercentageOptions = (args, publicClient) => queryOptions20({
1745
1675
  ...args.query,
1746
1676
  queryKey: [...collectableKeys.royaltyPercentage, args],
1747
1677
  queryFn: publicClient ? () => fetchRoyaletyPercentage(args, publicClient) : skipToken2
@@ -1807,13 +1737,13 @@ var useGenerateOfferTransaction = (params) => {
1807
1737
 
1808
1738
  // src/react/hooks/useGenerateSellTransaction.tsx
1809
1739
  import { useMutation as useMutation3 } from "@tanstack/react-query";
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()
1740
+ import { z as z22 } from "zod";
1741
+ var UserGeneratSellTransactionArgsSchema = z22.object({
1742
+ chainId: ChainIdSchema.pipe(z22.coerce.string()),
1743
+ onSuccess: z22.function().args(stepSchema.array().optional()).optional()
1814
1744
  });
1815
1745
  var generateSellTransaction = async (args, config, chainId) => {
1816
- const parsedChainId = ChainIdSchema.pipe(z23.coerce.string()).parse(chainId);
1746
+ const parsedChainId = ChainIdSchema.pipe(z22.coerce.string()).parse(chainId);
1817
1747
  const marketplaceClient = getMarketplaceClient(parsedChainId, config);
1818
1748
  return marketplaceClient.generateSellTransaction(args).then((data) => data.steps);
1819
1749
  };
@@ -1832,13 +1762,13 @@ var useGenerateSellTransaction = (params) => {
1832
1762
 
1833
1763
  // src/react/hooks/useGenerateCancelTransaction.tsx
1834
1764
  import { useMutation as useMutation4 } from "@tanstack/react-query";
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()
1765
+ import { z as z23 } from "zod";
1766
+ var UserGenerateCancelTransactionArgsSchema = z23.object({
1767
+ chainId: ChainIdSchema.pipe(z23.coerce.string()),
1768
+ onSuccess: z23.function().args(stepSchema.array().optional()).optional()
1839
1769
  });
1840
1770
  var generateCancelTransaction = async (args, config, chainId) => {
1841
- const parsedChainId = ChainIdSchema.pipe(z24.coerce.string()).parse(chainId);
1771
+ const parsedChainId = ChainIdSchema.pipe(z23.coerce.string()).parse(chainId);
1842
1772
  const marketplaceClient = getMarketplaceClient(parsedChainId, config);
1843
1773
  return marketplaceClient.generateCancelTransaction(args).then((data) => data.steps);
1844
1774
  };
@@ -1911,16 +1841,16 @@ var useTransferTokens = () => {
1911
1841
  };
1912
1842
 
1913
1843
  // src/react/hooks/useCheckoutOptions.tsx
1914
- import { queryOptions as queryOptions23, useQuery as useQuery23 } from "@tanstack/react-query";
1844
+ import { queryOptions as queryOptions21, useQuery as useQuery23 } from "@tanstack/react-query";
1915
1845
  import { useAccount as useAccount3 } from "wagmi";
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({
1846
+ import { z as z24 } from "zod";
1847
+ var UseCheckoutOptionsSchema = z24.object({
1848
+ chainId: ChainIdSchema.pipe(z24.coerce.string()),
1849
+ orders: z24.array(
1850
+ z24.object({
1921
1851
  collectionAddress: AddressSchema,
1922
- orderId: z25.string(),
1923
- marketplace: z25.nativeEnum(MarketplaceKind)
1852
+ orderId: z24.string(),
1853
+ marketplace: z24.nativeEnum(MarketplaceKind)
1924
1854
  })
1925
1855
  ),
1926
1856
  query: QueryArgSchema
@@ -1939,7 +1869,7 @@ var fetchCheckoutOptions = async (args, config) => {
1939
1869
  });
1940
1870
  };
1941
1871
  var checkoutOptionsOptions = (args, config) => {
1942
- return queryOptions23({
1872
+ return queryOptions21({
1943
1873
  queryKey: ["checkoutOptions", args],
1944
1874
  queryFn: () => fetchCheckoutOptions(args, config)
1945
1875
  });
@@ -1954,9 +1884,9 @@ var useCheckoutOptions = (args) => {
1954
1884
  };
1955
1885
 
1956
1886
  // src/react/hooks/useListCollections.tsx
1957
- import { queryOptions as queryOptions24, useQuery as useQuery24 } from "@tanstack/react-query";
1958
- import { z as z26 } from "zod";
1959
- var UseListCollectionsSchema = z26.object({
1887
+ import { queryOptions as queryOptions22, useQuery as useQuery24 } from "@tanstack/react-query";
1888
+ import { z as z25 } from "zod";
1889
+ var UseListCollectionsSchema = z25.object({
1960
1890
  query: QueryArgSchema.optional().default({})
1961
1891
  });
1962
1892
  var fetchListCollections = async ({ marketplaceConfig }, config) => {
@@ -1982,7 +1912,7 @@ var fetchListCollections = async ({ marketplaceConfig }, config) => {
1982
1912
  return results.flat();
1983
1913
  };
1984
1914
  var listCollectionsOptions = (args, config) => {
1985
- return queryOptions24({
1915
+ return queryOptions22({
1986
1916
  ...args.query,
1987
1917
  queryKey: [...collectionKeys.list],
1988
1918
  queryFn: () => fetchListCollections(args, config)
@@ -2002,21 +1932,21 @@ var useListCollections = (args = {}) => {
2002
1932
  };
2003
1933
 
2004
1934
  // src/react/hooks/useGenerateBuyTransaction.tsx
2005
- import { queryOptions as queryOptions25, skipToken as skipToken3, useQuery as useQuery25 } from "@tanstack/react-query";
1935
+ import { queryOptions as queryOptions23, skipToken as skipToken3, useQuery as useQuery25 } from "@tanstack/react-query";
2006
1936
  import { useAccount as useAccount4 } from "wagmi";
2007
- import { z as z27 } from "zod";
2008
- var UseGenerateBuyTransactionArgsSchema = z27.object({
2009
- chainId: ChainIdSchema.pipe(z27.coerce.string()),
1937
+ import { z as z26 } from "zod";
1938
+ var UseGenerateBuyTransactionArgsSchema = z26.object({
1939
+ chainId: ChainIdSchema.pipe(z26.coerce.string()),
2010
1940
  collectionAddress: AddressSchema,
2011
- marketplace: z27.nativeEnum(MarketplaceKind),
2012
- ordersData: z27.array(
2013
- z27.object({
2014
- orderId: z27.string(),
2015
- quantity: z27.string(),
2016
- marketplace: z27.string()
1941
+ marketplace: z26.nativeEnum(MarketplaceKind),
1942
+ ordersData: z26.array(
1943
+ z26.object({
1944
+ orderId: z26.string(),
1945
+ quantity: z26.string(),
1946
+ marketplace: z26.string()
2017
1947
  })
2018
1948
  ),
2019
- walletType: z27.nativeEnum(WalletKind).optional(),
1949
+ walletType: z26.nativeEnum(WalletKind).optional(),
2020
1950
  query: QueryArgSchema
2021
1951
  });
2022
1952
  var fetchGenerateBuyTransaction = async (args, config) => {
@@ -2030,7 +1960,7 @@ var fetchGenerateBuyTransaction = async (args, config) => {
2030
1960
  }).then((data) => data.steps);
2031
1961
  };
2032
1962
  var generateBuyTransactionOptions = (args, config) => {
2033
- return queryOptions25({
1963
+ return queryOptions23({
2034
1964
  queryKey: ["generateBuyTransaction", args],
2035
1965
  queryFn: () => fetchGenerateBuyTransaction(args, config),
2036
1966
  ...args.query
@@ -2051,7 +1981,8 @@ var useGenerateBuyTransaction = (args) => {
2051
1981
  };
2052
1982
 
2053
1983
  // src/react/hooks/useCancelOrder.tsx
2054
- import { useState, useEffect } from "react";
1984
+ import { useWaasFeeOptions } from "@0xsequence/kit";
1985
+ import { useEffect, useState } from "react";
2055
1986
 
2056
1987
  // src/react/_internal/wallet/useWallet.ts
2057
1988
  import { skipToken as skipToken4, useQuery as useQuery26 } from "@tanstack/react-query";
@@ -2125,6 +2056,7 @@ var TransactionLogger = class {
2125
2056
  var createLogger = (context, enabled = true) => new TransactionLogger(context, enabled);
2126
2057
 
2127
2058
  // src/react/_internal/wallet/wallet.ts
2059
+ var isSequenceWallet = (connector) => connector.id === "sequence" || connector.id === "sequence-waas";
2128
2060
  var wallet = ({
2129
2061
  wallet: wallet2,
2130
2062
  chains,
@@ -2136,7 +2068,7 @@ var wallet = ({
2136
2068
  const walletInstance = {
2137
2069
  transport: custom(wallet2.transport),
2138
2070
  isWaaS: connector.id.endsWith("waas"),
2139
- walletKind: connector.id === "sequence" ? "sequence" /* sequence */ : "unknown" /* unknown */,
2071
+ walletKind: isSequenceWallet(connector) ? "sequence" /* sequence */ : "unknown" /* unknown */,
2140
2072
  getChainId: wallet2.getChainId,
2141
2073
  address: async () => {
2142
2074
  let address = wallet2.account?.address;
@@ -2640,7 +2572,6 @@ var useCancelTransactionSteps = ({
2640
2572
  };
2641
2573
 
2642
2574
  // src/react/hooks/useCancelOrder.tsx
2643
- import { useWaasFeeOptions } from "@0xsequence/kit";
2644
2575
  var useCancelOrder = ({
2645
2576
  collectionAddress,
2646
2577
  chainId,
@@ -2714,7 +2645,7 @@ var useCancelOrder = ({
2714
2645
  };
2715
2646
 
2716
2647
  // src/react/hooks/useCollectionDetails.tsx
2717
- import { queryOptions as queryOptions26, useQuery as useQuery27 } from "@tanstack/react-query";
2648
+ import { queryOptions as queryOptions24, useQuery as useQuery27 } from "@tanstack/react-query";
2718
2649
  var fetchCollectionDetails = async (args, marketplaceClient) => {
2719
2650
  const { collection } = await marketplaceClient.getCollectionDetail({
2720
2651
  contractAddress: args.collectionAddress
@@ -2723,7 +2654,7 @@ var fetchCollectionDetails = async (args, marketplaceClient) => {
2723
2654
  };
2724
2655
  var collectionDetailsOptions = (args, config) => {
2725
2656
  const marketplaceClient = getMarketplaceClient(args.chainId, config);
2726
- return queryOptions26({
2657
+ return queryOptions24({
2727
2658
  queryKey: ["collectionDetails", args],
2728
2659
  queryFn: () => fetchCollectionDetails(args, marketplaceClient)
2729
2660
  });
@@ -2734,7 +2665,7 @@ var useCollectionDetails = (args) => {
2734
2665
  };
2735
2666
 
2736
2667
  // src/react/hooks/useCollectionDetailsPolling.tsx
2737
- import { queryOptions as queryOptions27, useQuery as useQuery28 } from "@tanstack/react-query";
2668
+ import { queryOptions as queryOptions25, useQuery as useQuery28 } from "@tanstack/react-query";
2738
2669
  var INITIAL_POLLING_INTERVAL = 2e3;
2739
2670
  var MAX_POLLING_INTERVAL = 3e4;
2740
2671
  var MAX_ATTEMPTS = 30;
@@ -2747,7 +2678,7 @@ var isTerminalState = (status) => {
2747
2678
  ].includes(status);
2748
2679
  };
2749
2680
  var collectionDetailsPollingOptions = (args, config) => {
2750
- return queryOptions27({
2681
+ return queryOptions25({
2751
2682
  ...collectionDetailsOptions(args, config),
2752
2683
  refetchInterval: (query) => {
2753
2684
  const data = query.state.data;
@@ -2787,9 +2718,7 @@ export {
2787
2718
  useCountOfCollectables,
2788
2719
  collectibleOptions,
2789
2720
  useCollectible,
2790
- collectionOptions,
2791
2721
  useCollection,
2792
- marketplaceConfigOptions,
2793
2722
  useMarketplaceConfig,
2794
2723
  currenciesOptions,
2795
2724
  useCurrencies,
@@ -2858,4 +2787,4 @@ export {
2858
2787
  collectionDetailsPollingOptions,
2859
2788
  useCollectionDetailsPolling
2860
2789
  };
2861
- //# sourceMappingURL=chunk-YA3DWLDC.js.map
2790
+ //# sourceMappingURL=chunk-A5ICXOCZ.js.map