@0xsequence/marketplace-sdk 0.8.10 → 0.8.11

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 (166) hide show
  1. package/.changeset/fluffy-jokes-lay.md +5 -0
  2. package/.changeset/wise-bugs-boil.md +8 -0
  3. package/CHANGELOG.md +16 -3
  4. package/dist/{chunk-DWTLVJAW.js → chunk-6OPMUCGX.js} +1 -1
  5. package/dist/chunk-6OPMUCGX.js.map +1 -0
  6. package/dist/{chunk-O34GCB47.js → chunk-L6KWLCER.js} +4 -4
  7. package/dist/chunk-L6KWLCER.js.map +1 -0
  8. package/dist/{chunk-Y2HJO2VY.js → chunk-LAP2CKLN.js} +56 -3
  9. package/dist/chunk-LAP2CKLN.js.map +1 -0
  10. package/dist/{chunk-Y63BOO6M.js → chunk-LECCEZAO.js} +1 -1
  11. package/dist/{chunk-WH5BZC7W.js → chunk-N7SQWS2R.js} +3 -3
  12. package/dist/{chunk-7F27CJZW.js → chunk-OAOONM4S.js} +682 -439
  13. package/dist/chunk-OAOONM4S.js.map +1 -0
  14. package/dist/chunk-QY52UADF.js +107 -0
  15. package/dist/chunk-QY52UADF.js.map +1 -0
  16. package/dist/{chunk-UJSF7PSC.js → chunk-TNAR3XEF.js} +3766 -765
  17. package/dist/chunk-TNAR3XEF.js.map +1 -0
  18. package/dist/chunk-XABYNWXO.js +549 -0
  19. package/dist/chunk-XABYNWXO.js.map +1 -0
  20. package/dist/chunk-YB5UUF2G.js +11 -0
  21. package/dist/chunk-YB5UUF2G.js.map +1 -0
  22. package/dist/{chunk-M6NJ73Y5.js → chunk-YWGFI4PN.js} +87 -24
  23. package/dist/chunk-YWGFI4PN.js.map +1 -0
  24. package/dist/{create-config-CAQcvjl6.d.ts → create-config-DLMvMTkZ.d.ts} +2 -2
  25. package/dist/index.css +1 -1
  26. package/dist/index.css.map +1 -1
  27. package/dist/index.d.ts +7 -6
  28. package/dist/index.js +14 -15
  29. package/dist/{listTokenMetadata-DO4ChDjn.d.ts → marketCurrencies-enNVYwBk.d.ts} +77 -3
  30. package/dist/{marketplace.gen-DQzWciwC.d.ts → marketplace.gen-D24veUQs.d.ts} +3 -2
  31. package/dist/marketplaceConfig-BwNAbLPw.d.ts +21 -0
  32. package/dist/new-marketplace-types-BCw19X9S.d.ts +102 -0
  33. package/dist/react/_internal/api/index.d.ts +3 -3
  34. package/dist/react/_internal/api/index.js +1 -1
  35. package/dist/react/_internal/databeat/index.css +2764 -0
  36. package/dist/react/_internal/databeat/index.css.map +1 -0
  37. package/dist/react/_internal/databeat/index.d.ts +1 -1
  38. package/dist/react/_internal/databeat/index.js +12 -12
  39. package/dist/react/_internal/index.d.ts +61 -9
  40. package/dist/react/_internal/index.js +3 -3
  41. package/dist/react/_internal/wagmi/index.d.ts +5 -6
  42. package/dist/react/_internal/wagmi/index.js +1 -1
  43. package/dist/react/hooks/index.css +2764 -0
  44. package/dist/react/hooks/index.css.map +1 -0
  45. package/dist/react/hooks/index.d.ts +71 -222
  46. package/dist/react/hooks/index.js +16 -20
  47. package/dist/react/hooks/options/index.d.ts +5 -4
  48. package/dist/react/hooks/options/index.js +9 -7
  49. package/dist/react/index.css +1 -1
  50. package/dist/react/index.css.map +1 -1
  51. package/dist/react/index.d.ts +9 -9
  52. package/dist/react/index.js +28 -34
  53. package/dist/react/queries/index.d.ts +3 -3
  54. package/dist/react/queries/index.js +15 -4
  55. package/dist/react/ssr/index.d.ts +3 -3
  56. package/dist/react/ssr/index.js +6 -5
  57. package/dist/react/ssr/index.js.map +1 -1
  58. package/dist/react/ui/components/collectible-card/index.css +1 -1
  59. package/dist/react/ui/components/collectible-card/index.css.map +1 -1
  60. package/dist/react/ui/components/collectible-card/index.d.ts +3 -2
  61. package/dist/react/ui/components/collectible-card/index.js +12 -17
  62. package/dist/react/ui/icons/index.js +6 -6
  63. package/dist/react/ui/index.css +1 -1
  64. package/dist/react/ui/index.css.map +1 -1
  65. package/dist/react/ui/index.d.ts +1 -1
  66. package/dist/react/ui/index.js +12 -17
  67. package/dist/react/ui/modals/_internal/components/actionModal/index.css +2764 -0
  68. package/dist/react/ui/modals/_internal/components/actionModal/index.css.map +1 -0
  69. package/dist/react/ui/modals/_internal/components/actionModal/index.js +12 -12
  70. package/dist/sdk-config-qorA0TgF.d.ts +165 -0
  71. package/dist/{services-CMSb9ipU.d.ts → services-WrshxCqc.d.ts} +2 -2
  72. package/dist/types/index.d.ts +5 -4
  73. package/dist/types/index.js +7 -7
  74. package/dist/{index-MlUK9AQE.d.ts → useCollection-YAdXfVO7.d.ts} +1 -2
  75. package/dist/utils/abi/index.js +4 -4
  76. package/dist/utils/index.d.ts +1 -1
  77. package/dist/utils/index.js +8 -7
  78. package/package.json +15 -15
  79. package/src/react/_internal/api/__mocks__/builder.msw.ts +157 -80
  80. package/src/react/_internal/api/builder-api.ts +2 -2
  81. package/src/react/_internal/api/builder.gen.ts +667 -112
  82. package/src/react/_internal/api/marketplace.gen.ts +1981 -1316
  83. package/src/react/_internal/types.ts +1 -13
  84. package/src/react/_internal/wagmi/__tests__/create-config.test.ts +99 -84
  85. package/src/react/_internal/wagmi/create-config.ts +8 -4
  86. package/src/react/_internal/wagmi/get-connectors.ts +24 -19
  87. package/src/react/hooks/__tests__/__snapshots__/useListCollections.test.tsx.snap +114 -0
  88. package/src/react/hooks/__tests__/__snapshots__/useMarketplaceConfig.test.tsx.snap +85 -83
  89. package/src/react/hooks/__tests__/useFilters.test.tsx +0 -16
  90. package/src/react/hooks/__tests__/useInventory.test.tsx +16 -16
  91. package/src/react/hooks/__tests__/useListCollections.test.tsx +23 -56
  92. package/src/react/hooks/__tests__/{useCurrencies.test.tsx → useMarketCurrencies.test.tsx} +21 -15
  93. package/src/react/hooks/__tests__/useMarketplaceConfig.test.tsx +2 -59
  94. package/src/react/hooks/index.ts +2 -1
  95. package/src/react/hooks/useBalanceOfCollectible.tsx +5 -3
  96. package/src/react/hooks/useConvertPriceToUSD.tsx +1 -1
  97. package/src/react/hooks/useFilters.tsx +14 -22
  98. package/src/react/hooks/useGetTokenSuppliesMap.ts +28 -0
  99. package/src/react/hooks/useInventory.tsx +4 -3
  100. package/src/react/hooks/useListBalances.tsx +5 -3
  101. package/src/react/hooks/useListCollectibles.tsx +5 -3
  102. package/src/react/hooks/useListCollections.tsx +14 -76
  103. package/src/react/hooks/useMarketCurrencies.tsx +8 -0
  104. package/src/react/hooks/useMarketplaceConfig.tsx +0 -2
  105. package/src/react/queries/index.ts +1 -0
  106. package/src/react/queries/inventory.ts +1 -1
  107. package/src/react/queries/listCollections.ts +118 -0
  108. package/src/react/queries/marketCurrencies.ts +77 -0
  109. package/src/react/queries/marketplaceConfig.ts +83 -55
  110. package/src/react/ssr/__tests__/__snapshots__/create-ssr-client.test.ts.snap +85 -83
  111. package/src/react/ui/components/collectible-card/__tests__/Media.test.tsx +41 -1
  112. package/src/react/ui/components/collectible-card/media/Media.tsx +11 -6
  113. package/src/react/ui/components/collectible-card/media/MediaSkeleton.tsx +1 -1
  114. package/src/react/ui/components/collectible-card/media/types.ts +1 -0
  115. package/src/react/ui/modals/BuyModal/ERC1155QuantityModal.tsx +9 -3
  116. package/src/react/ui/modals/BuyModal/hooks/__tests__/useFees.test.tsx +31 -21
  117. package/src/react/ui/modals/BuyModal/hooks/useFees.ts +3 -2
  118. package/src/react/ui/modals/CreateListingModal/Modal.tsx +3 -5
  119. package/src/react/ui/modals/CreateListingModal/hooks/useCreateListing.tsx +5 -3
  120. package/src/react/ui/modals/CreateListingModal/hooks/useTransactionSteps.tsx +2 -2
  121. package/src/react/ui/modals/MakeOfferModal/Modal.tsx +2 -3
  122. package/src/react/ui/modals/MakeOfferModal/hooks/useMakeOffer.tsx +4 -3
  123. package/src/react/ui/modals/SellModal/Modal.tsx +0 -1
  124. package/src/react/ui/modals/SellModal/hooks/useTransactionSteps.tsx +2 -2
  125. package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/index.tsx +0 -1
  126. package/src/react/ui/modals/TransferModal/index.tsx +0 -1
  127. package/src/react/ui/modals/_internal/components/currencyOptionsSelect/__tests__/index.test.tsx +2 -2
  128. package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +7 -6
  129. package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/__tests__/SelectWaasFeeOptions.test.tsx +13 -7
  130. package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/index.tsx +3 -5
  131. package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/useWaasFeeOptionManager.tsx +5 -3
  132. package/src/react/ui/modals/_internal/components/transactionDetails/index.tsx +2 -2
  133. package/src/react/ui/modals/_internal/hooks/useSelectWaasFeeOptions.ts +2 -12
  134. package/src/types/index.ts +1 -6
  135. package/src/types/new-marketplace-types.ts +119 -0
  136. package/src/types/sdk-config.ts +18 -2
  137. package/src/types/types.ts +1 -0
  138. package/tsconfig.tsbuildinfo +1 -1
  139. package/dist/chunk-7F27CJZW.js.map +0 -1
  140. package/dist/chunk-A7BVFBWB.js +0 -81
  141. package/dist/chunk-A7BVFBWB.js.map +0 -1
  142. package/dist/chunk-D7RVSZAQ.js +0 -332
  143. package/dist/chunk-D7RVSZAQ.js.map +0 -1
  144. package/dist/chunk-DWTLVJAW.js.map +0 -1
  145. package/dist/chunk-FGM57QUU.js +0 -128
  146. package/dist/chunk-FGM57QUU.js.map +0 -1
  147. package/dist/chunk-JKCF7HEA.js +0 -1
  148. package/dist/chunk-JKCF7HEA.js.map +0 -1
  149. package/dist/chunk-KTST7ORH.js +0 -53
  150. package/dist/chunk-KTST7ORH.js.map +0 -1
  151. package/dist/chunk-M6NJ73Y5.js.map +0 -1
  152. package/dist/chunk-N7BPFK46.js +0 -1
  153. package/dist/chunk-N7BPFK46.js.map +0 -1
  154. package/dist/chunk-O34GCB47.js.map +0 -1
  155. package/dist/chunk-RVIUUJTP.js +0 -76
  156. package/dist/chunk-RVIUUJTP.js.map +0 -1
  157. package/dist/chunk-SXVUTSMT.js +0 -2895
  158. package/dist/chunk-SXVUTSMT.js.map +0 -1
  159. package/dist/chunk-UJSF7PSC.js.map +0 -1
  160. package/dist/chunk-Y2HJO2VY.js.map +0 -1
  161. package/dist/marketplaceConfig-D0MXemEl.d.ts +0 -17
  162. package/dist/sdk-config-onSPBxJj.d.ts +0 -134
  163. package/dist/types-B8xzPEKX.d.ts +0 -68
  164. package/src/react/hooks/useCurrencies.tsx +0 -77
  165. /package/dist/{chunk-Y63BOO6M.js.map → chunk-LECCEZAO.js.map} +0 -0
  166. /package/dist/{chunk-WH5BZC7W.js.map → chunk-N7SQWS2R.js.map} +0 -0
@@ -20,8 +20,8 @@ import type {
20
20
  import { useWallet } from '../../../../_internal/wallet/useWallet';
21
21
  import {
22
22
  useConfig,
23
- useCurrencies,
24
23
  useGenerateListingTransaction,
24
+ useMarketCurrencies,
25
25
  } from '../../../../hooks';
26
26
  import { useTransactionStatusModal } from '../../_internal/components/transactionStatusModal';
27
27
  import type { ModalCallbacks } from '../../_internal/types';
@@ -48,7 +48,7 @@ export const useTransactionSteps = ({
48
48
  const expiry = new Date(Number(listingInput.listing.expiry) * 1000);
49
49
  const { show: showTransactionStatusModal } = useTransactionStatusModal();
50
50
  const sdkConfig = useConfig();
51
- const { data: currencies } = useCurrencies({
51
+ const { data: currencies } = useMarketCurrencies({
52
52
  chainId,
53
53
  });
54
54
  const currency = currencies?.find(
@@ -12,8 +12,8 @@ import { useWallet } from '../../../_internal/wallet/useWallet';
12
12
  import {
13
13
  useCollectible,
14
14
  useCollection,
15
- useCurrencies,
16
15
  useLowestListing,
16
+ useMarketCurrencies,
17
17
  } from '../../../hooks';
18
18
  import { useBuyModal } from '../BuyModal';
19
19
  import { ActionModal } from '../_internal/components/actionModal/ActionModal';
@@ -64,7 +64,6 @@ const Modal = observer(() => {
64
64
  waasFeeOptionsShown,
65
65
  getActionLabel,
66
66
  } = useSelectWaasFeeOptions({
67
- chainId,
68
67
  isProcessing,
69
68
  feeOptionsVisible: selectWaasFeeOptions$.isVisible.get(),
70
69
  selectedFeeOption:
@@ -83,7 +82,7 @@ const Modal = observer(() => {
83
82
  data: currencies,
84
83
  isLoading: currenciesLoading,
85
84
  isError: currenciesIsError,
86
- } = useCurrencies({
85
+ } = useMarketCurrencies({
87
86
  chainId,
88
87
  includeNativeCurrency: false,
89
88
  });
@@ -3,6 +3,7 @@
3
3
  import type { Observable } from '@legendapp/state';
4
4
  import { useEffect } from 'react';
5
5
  import { OrderbookKind } from '../../../../../types';
6
+ import type { MarketCollection } from '../../../../../types/new-marketplace-types';
6
7
  import type { TransactionSteps } from '../../../../_internal';
7
8
  import type { OfferInput } from '../../../../_internal/types';
8
9
  import { useMarketplaceConfig } from '../../../../hooks';
@@ -32,9 +33,9 @@ export const useMakeOffer = ({
32
33
  const { data: marketplaceConfig, isLoading: marketplaceIsLoading } =
33
34
  useMarketplaceConfig();
34
35
 
35
- const collectionConfig = marketplaceConfig?.collections.find(
36
- (c) => c.address === collectionAddress,
37
- );
36
+ const collectionConfig = marketplaceConfig?.market.collections.find(
37
+ (c) => c.itemsAddress === collectionAddress,
38
+ ) as MarketCollection;
38
39
 
39
40
  orderbookKind =
40
41
  orderbookKind ??
@@ -60,7 +60,6 @@ const Modal = observer(() => {
60
60
  const isWaaS = wallet?.isWaaS;
61
61
  const { shouldHideActionButton: shouldHideSellButton } =
62
62
  useSelectWaasFeeOptions({
63
- chainId,
64
63
  isProcessing,
65
64
  feeOptionsVisible: selectWaasFeeOptions$.isVisible.get(),
66
65
  selectedFeeOption:
@@ -19,8 +19,8 @@ import type {
19
19
  import { useWallet } from '../../../../_internal/wallet/useWallet';
20
20
  import {
21
21
  useConfig,
22
- useCurrencies,
23
22
  useGenerateSellTransaction,
23
+ useMarketCurrencies,
24
24
  } from '../../../../hooks';
25
25
  import { useFees } from '../../BuyModal/hooks/useFees';
26
26
  import { useTransactionStatusModal } from '../../_internal/components/transactionStatusModal';
@@ -60,7 +60,7 @@ export const useTransactionSteps = ({
60
60
  collectionAddress: collectionAddress,
61
61
  });
62
62
 
63
- const { data: currencies } = useCurrencies({
63
+ const { data: currencies } = useMarketCurrencies({
64
64
  chainId,
65
65
  });
66
66
  const { generateSellTransactionAsync, isPending: generatingSteps } =
@@ -30,7 +30,6 @@ const EnterWalletAddressView = observer(() => {
30
30
  isProcessingWithWaaS,
31
31
  shouldHideActionButton: shouldHideTransferButton,
32
32
  } = useSelectWaasFeeOptions({
33
- chainId,
34
33
  isProcessing: transferModal$.state.transferIsBeingProcessed.get(),
35
34
  feeOptionsVisible: selectWaasFeeOptions$.isVisible.get(),
36
35
  selectedFeeOption:
@@ -88,7 +88,6 @@ const TransferModal = observer(() => {
88
88
  const isTransferBeingProcessed =
89
89
  transferModal$.state.transferIsBeingProcessed.get();
90
90
  const { waasFeeOptionsShown } = useSelectWaasFeeOptions({
91
- chainId: chainId,
92
91
  isProcessing: isTransferBeingProcessed,
93
92
  feeOptionsVisible: selectWaasFeeOptions$.isVisible.get(),
94
93
  selectedFeeOption:
@@ -23,7 +23,7 @@ describe('CurrencyOptionsSelect', () => {
23
23
  });
24
24
 
25
25
  it('should render loading skeleton when currencies are loading', () => {
26
- const useCurrenciesSpy = vi.spyOn(hooks, 'useCurrencies');
26
+ const useCurrenciesSpy = vi.spyOn(hooks, 'useMarketCurrencies');
27
27
  useCurrenciesSpy.mockReturnValue({
28
28
  isLoading: true,
29
29
  data: undefined,
@@ -38,7 +38,7 @@ describe('CurrencyOptionsSelect', () => {
38
38
  });
39
39
 
40
40
  it('should set first currency as default when currencies load', async () => {
41
- const useCurrenciesSpy = vi.spyOn(hooks, 'useCurrencies');
41
+ const useCurrenciesSpy = vi.spyOn(hooks, 'useMarketCurrencies');
42
42
  useCurrenciesSpy.mockReturnValue({
43
43
  isLoading: false,
44
44
  data: TEST_CURRENCIES,
@@ -6,7 +6,7 @@ import { observer } from '@legendapp/state/react';
6
6
  import { useEffect } from 'react';
7
7
  import type { Hex } from 'viem';
8
8
  import type { Currency } from '../../../../../_internal';
9
- import { useCurrencies } from '../../../../../hooks';
9
+ import { useMarketCurrencies } from '../../../../../hooks';
10
10
  import {
11
11
  CustomSelect,
12
12
  type SelectItem,
@@ -28,11 +28,12 @@ const CurrencyOptionsSelect = observer(function CurrencyOptionsSelect({
28
28
  includeNativeCurrency,
29
29
  }: CurrencyOptionsSelectProps) {
30
30
  const currency = selectedCurrency$.get();
31
- const { data: currencies, isLoading: currenciesLoading } = useCurrencies({
32
- chainId,
33
- collectionAddress,
34
- includeNativeCurrency,
35
- });
31
+ const { data: currencies, isLoading: currenciesLoading } =
32
+ useMarketCurrencies({
33
+ chainId,
34
+ collectionAddress,
35
+ includeNativeCurrency,
36
+ });
36
37
 
37
38
  // set default currency
38
39
  // biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>
@@ -84,12 +84,18 @@ describe('SelectWaasFeeOptions', () => {
84
84
  expect(container.firstChild).toBeNull();
85
85
  });
86
86
 
87
- it('should not render on testnet', () => {
87
+ it('should not render when fees are sponsored (empty options array)', () => {
88
+ const sponsoredFeeOptionConfirmation: WaasFeeOptionConfirmation = {
89
+ id: 'fee-confirmation-id',
90
+ options: [], // Empty array indicates sponsored fees
91
+ chainId: 1,
92
+ };
93
+
88
94
  vi.spyOn(useWaasFeeOptionManagerModule, 'default').mockReturnValue({
89
- selectedFeeOption$: observable<FeeOption | undefined>(mockFeeOption),
90
- selectedFeeOption: mockFeeOption,
95
+ selectedFeeOption$: observable<FeeOption | undefined>(undefined),
96
+ selectedFeeOption: undefined,
91
97
  // @ts-expect-error - types are not compatible
92
- pendingFeeOptionConfirmation: mockPendingFeeOptionConfirmation,
98
+ pendingFeeOptionConfirmation: sponsoredFeeOptionConfirmation,
93
99
  currencyBalance: mockCurrencyBalance,
94
100
  currencyBalanceLoading: false,
95
101
  insufficientBalance: false,
@@ -98,14 +104,14 @@ describe('SelectWaasFeeOptions', () => {
98
104
  });
99
105
 
100
106
  vi.spyOn(useNetworkModule, 'getNetwork').mockReturnValue({
101
- type: NetworkType.TESTNET,
107
+ type: NetworkType.MAINNET,
102
108
  chainId: 1,
103
- name: 'Testnet',
109
+ name: 'Mainnet',
104
110
  nativeToken: TEST_CURRENCY,
105
111
  });
106
112
  vi.spyOn(useWaasFeeOptionsModule, 'useWaasFeeOptions').mockReturnValue([
107
113
  // @ts-expect-error - types are not compatible
108
- mockPendingFeeOptionConfirmation,
114
+ sponsoredFeeOptionConfirmation,
109
115
  vi.fn(),
110
116
  ]);
111
117
 
@@ -1,8 +1,6 @@
1
1
  'use client';
2
2
 
3
- import { getNetwork } from '@0xsequence/connect';
4
3
  import { Divider, Skeleton, Text } from '@0xsequence/design-system';
5
- import { NetworkType } from '@0xsequence/network';
6
4
  import { observer } from '@legendapp/state/react';
7
5
  import type { FeeOption } from '../../../../../../types/waas-types';
8
6
  import { cn } from '../../../../../../utils';
@@ -26,8 +24,6 @@ const SelectWaasFeeOptions = observer(
26
24
  titleOnConfirm,
27
25
  className,
28
26
  }: SelectWaasFeeOptionsProps) => {
29
- const network = getNetwork(chainId);
30
- const isTestnet = network.type === NetworkType.TESTNET;
31
27
  const {
32
28
  selectedFeeOption$,
33
29
  selectedFeeOption,
@@ -47,9 +43,11 @@ const SelectWaasFeeOptions = observer(
47
43
  onCancel?.();
48
44
  };
49
45
 
46
+ const isSponsored = pendingFeeOptionConfirmation?.options?.length === 0;
47
+
50
48
  if (
51
49
  !selectWaasFeeOptions$.isVisible.get() ||
52
- isTestnet ||
50
+ isSponsored ||
53
51
  !selectedFeeOption
54
52
  ) {
55
53
  return null;
@@ -25,9 +25,11 @@ const useWaasFeeOptionManager = (chainId: number) => {
25
25
  // biome-ignore lint/correctness/useExhaustiveDependencies: it causes a loop
26
26
  useEffect(() => {
27
27
  if (!selectedFeeOption && pendingFeeOptionConfirmation) {
28
- selectedFeeOption$.set(
29
- pendingFeeOptionConfirmation.options[0] as FeeOption,
30
- );
28
+ if (pendingFeeOptionConfirmation.options.length > 0) {
29
+ selectedFeeOption$.set(
30
+ pendingFeeOptionConfirmation.options[0] as FeeOption,
31
+ );
32
+ }
31
33
  }
32
34
  }, [pendingFeeOptionConfirmation]);
33
35
 
@@ -30,8 +30,8 @@ export default function TransactionDetails({
30
30
  const { data, isLoading: marketplaceConfigLoading } = useMarketplaceConfig();
31
31
 
32
32
  const marketplaceFeePercentage = includeMarketplaceFee
33
- ? data?.collections.find(
34
- (collection) => collection.address === collectionAddress,
33
+ ? data?.market.collections.find(
34
+ (collection) => collection.itemsAddress === collectionAddress,
35
35
  )?.feePercentage || DEFAULT_MARKETPLACE_FEE_PERCENTAGE
36
36
  : 0;
37
37
  // royaltyPercentage is an array of [recipient, percentage]
@@ -1,32 +1,23 @@
1
- import { getNetwork } from '@0xsequence/connect';
2
- import { NetworkType } from '@0xsequence/network';
3
1
  import type { FeeOption } from '../../../../../types/waas-types';
4
2
  import { useWallet } from '../../../../_internal/wallet/useWallet';
5
3
 
6
4
  interface UseSelectWaasFeeOptionsProps {
7
- chainId: string | number;
8
5
  isProcessing: boolean;
9
6
  feeOptionsVisible: boolean;
10
7
  selectedFeeOption: FeeOption;
11
8
  }
12
9
 
13
10
  export const useSelectWaasFeeOptions = ({
14
- chainId,
15
11
  isProcessing,
16
12
  feeOptionsVisible,
17
13
  selectedFeeOption,
18
14
  }: UseSelectWaasFeeOptionsProps) => {
19
15
  const { wallet } = useWallet();
20
- const network = chainId ? getNetwork(Number(chainId)) : undefined;
21
- const isTestnet = network?.type === NetworkType.TESTNET;
22
16
  const isWaaS = wallet?.isWaaS;
23
17
  const isProcessingWithWaaS = isProcessing && isWaaS;
24
18
 
25
19
  const shouldHideActionButton =
26
- !isTestnet &&
27
- isProcessingWithWaaS &&
28
- feeOptionsVisible === true &&
29
- !!selectedFeeOption;
20
+ isProcessingWithWaaS && feeOptionsVisible === true && !!selectedFeeOption;
30
21
 
31
22
  const waasFeeOptionsShown =
32
23
  wallet?.isWaaS && isProcessing && feeOptionsVisible;
@@ -36,14 +27,13 @@ export const useSelectWaasFeeOptions = ({
36
27
  loadingLabel = 'Loading fee options',
37
28
  ) => {
38
29
  if (isProcessing) {
39
- return isWaaS && !isTestnet ? loadingLabel : defaultLabel;
30
+ return isWaaS ? loadingLabel : defaultLabel;
40
31
  }
41
32
  return defaultLabel;
42
33
  };
43
34
 
44
35
  return {
45
36
  isWaaS,
46
- isTestnet,
47
37
  feeOptionsVisible,
48
38
  shouldHideActionButton,
49
39
  waasFeeOptionsShown,
@@ -1,10 +1,5 @@
1
1
  export * from './api-types';
2
2
  export * from './sdk-config';
3
3
  export * from './types';
4
- export type * from '../react/_internal/api/builder.gen';
5
4
  export type * from './../react/queries/marketplaceConfig';
6
- export {
7
- MarketplaceWallet,
8
- FilterCondition,
9
- MarketplaceType,
10
- } from '../react/_internal/api/builder.gen';
5
+ export { FilterCondition } from '../react/_internal/api/builder.gen';
@@ -0,0 +1,119 @@
1
+ import type {
2
+ FilterCondition,
3
+ MarketplaceWallet,
4
+ MarketplaceWalletType,
5
+ OpenIdProvider,
6
+ } from '../react/_internal/api/builder.gen';
7
+ import type { ContractType, OrderbookKind } from './api-types';
8
+
9
+ export interface MarketplaceConfig {
10
+ projectId: number;
11
+ settings: NewMarketplaceSettings;
12
+ market: MarketPage;
13
+ shop: ShopPage;
14
+ }
15
+
16
+ export interface NewMarketplaceSettings {
17
+ publisherId: string;
18
+ title: string;
19
+ socials: MarketplaceSocials;
20
+ faviconUrl: string;
21
+ walletOptions: MarketplaceWallet;
22
+ logoUrl: string;
23
+ fontUrl?: string;
24
+ accessKey?: string;
25
+ }
26
+
27
+ interface MarketplacePage {
28
+ enabled: boolean;
29
+ bannerUrl: string;
30
+ ogImage?: string;
31
+ }
32
+
33
+ export interface MarketPage extends MarketplacePage {
34
+ collections: MarketCollection[];
35
+ }
36
+
37
+ export interface ShopPage extends MarketplacePage {
38
+ collections: ShopCollection[];
39
+ }
40
+
41
+ export interface MarketplaceSocials {
42
+ twitter: string;
43
+ discord: string;
44
+ website: string;
45
+ tiktok: string;
46
+ instagram: string;
47
+ youtube: string;
48
+ }
49
+
50
+ export interface MarketplaceWalletEcosystem {
51
+ walletUrl: string;
52
+ walletAppName: string;
53
+ logoLightUrl?: string;
54
+ logoDarkUrl?: string;
55
+ }
56
+
57
+ export interface MarketplaceWalletEmbedded {
58
+ tenantKey: string;
59
+ emailEnabled: boolean;
60
+ providers: Array<OpenIdProvider>;
61
+ }
62
+
63
+ export enum MarketplaceType {
64
+ SHOP = 'SHOP',
65
+ MARKET = 'MARKET',
66
+ }
67
+
68
+ interface MarketplaceCollection {
69
+ contractType: ContractType;
70
+ chainId: number;
71
+ bannerUrl: string;
72
+ itemsAddress: string;
73
+ filterSettings?: CollectionFilterSettings;
74
+ }
75
+
76
+ export interface MarketCollection extends MarketplaceCollection {
77
+ marketplaceType: MarketplaceType.MARKET;
78
+ feePercentage: number;
79
+ destinationMarketplace: OrderbookKind;
80
+ currencyOptions: Array<string>;
81
+ }
82
+
83
+ export interface ShopCollection extends MarketplaceCollection {
84
+ marketplaceType: MarketplaceType.SHOP;
85
+ saleAddress: string;
86
+ }
87
+
88
+ export interface EcosystemWalletSettings {
89
+ walletUrl: string;
90
+ walletAppName: string;
91
+ logoLightUrl?: string;
92
+ logoDarkUrl?: string;
93
+ }
94
+
95
+ export interface MarketplaceWalletOptions {
96
+ walletType: MarketplaceWalletType;
97
+ oidcIssuers: { [key: string]: string };
98
+ connectors: Array<string>;
99
+ includeEIP6963Wallets: boolean;
100
+ ecosystem?: EcosystemWalletSettings;
101
+ waas?: MarketplaceWalletWaasSettings;
102
+ }
103
+
104
+ export interface MarketplaceWalletWaasSettings {
105
+ tenantKey: string;
106
+ emailEnabled: boolean;
107
+ providers: Array<OpenIdProvider>;
108
+ }
109
+
110
+ export interface MetadataFilterRule {
111
+ key: string;
112
+ condition: FilterCondition;
113
+ value?: string;
114
+ }
115
+
116
+ export interface CollectionFilterSettings {
117
+ filterOrder: Array<string>;
118
+ exclusions: Array<MetadataFilterRule>;
119
+ }
@@ -1,13 +1,29 @@
1
- import type { MarketplaceSettings } from '../react/_internal/api/builder.gen';
1
+ import type { LookupMarketplaceReturn } from '../react/_internal/api/builder.gen';
2
+ import type { ContractType } from './api-types';
2
3
 
3
4
  export type Env = 'development' | 'next' | 'production';
4
5
 
6
+ export type ShopConfig = {
7
+ title: string;
8
+ bannerUrl: string;
9
+ ogImage?: string;
10
+ collections: {
11
+ address: string;
12
+ contractType: ContractType;
13
+ bannerUrl: string;
14
+ chainId: number;
15
+ primarySalesContractAddress: string;
16
+ tokenIds: string[];
17
+ }[];
18
+ };
19
+
5
20
  export type SdkConfig = {
6
21
  projectAccessKey: string;
7
22
  projectId: string;
8
23
  walletConnectProjectId?: string;
24
+ tmpShopConfig?: ShopConfig;
9
25
  _internal?: {
10
- prefetchedMarketplaceSettings?: MarketplaceSettings;
26
+ prefetchedMarketplaceSettings?: LookupMarketplaceReturn;
11
27
  devAccessKey?: string;
12
28
  nextAccessKey?: string;
13
29
  builderEnv?: Env;
@@ -1,4 +1,5 @@
1
1
  import type { Currency } from './api-types';
2
+ export * from './new-marketplace-types';
2
3
 
3
4
  export type Price = {
4
5
  amountRaw: string;
@@ -1 +1 @@
1
- {"root":["./src/consts.ts","./src/index.ts","./src/react/index.ts","./src/react/provider.tsx","./src/react/__tests__/provider.test.tsx","./src/react/_internal/consts.ts","./src/react/_internal/get-provider.ts","./src/react/_internal/index.ts","./src/react/_internal/logger.ts","./src/react/_internal/types.ts","./src/react/_internal/utils.ts","./src/react/_internal/api/builder-api.ts","./src/react/_internal/api/builder.gen.ts","./src/react/_internal/api/get-query-client.ts","./src/react/_internal/api/index.ts","./src/react/_internal/api/laos-api.ts","./src/react/_internal/api/marketplace-api.ts","./src/react/_internal/api/marketplace.gen.ts","./src/react/_internal/api/query-keys.ts","./src/react/_internal/api/services.ts","./src/react/_internal/api/zod-schema.ts","./src/react/_internal/api/__mocks__/builder.msw.ts","./src/react/_internal/api/__mocks__/indexer.msw.ts","./src/react/_internal/api/__mocks__/marketplace.msw.ts","./src/react/_internal/api/__mocks__/metadata.msw.ts","./src/react/_internal/databeat/index.ts","./src/react/_internal/databeat/types.ts","./src/react/_internal/wagmi/create-config.ts","./src/react/_internal/wagmi/get-connectors.ts","./src/react/_internal/wagmi/index.ts","./src/react/_internal/wagmi/__tests__/create-config.test.ts","./src/react/_internal/wallet/usewallet.ts","./src/react/_internal/wallet/wallet.ts","./src/react/_internal/wallet/__tests__/wallet.test.ts","./src/react/hooks/index.ts","./src/react/hooks/useautoselectfeeoption.tsx","./src/react/hooks/usebalanceofcollectible.tsx","./src/react/hooks/usecancelorder.tsx","./src/react/hooks/usecanceltransactionsteps.tsx","./src/react/hooks/usecheckoutoptions.tsx","./src/react/hooks/usecollectible.tsx","./src/react/hooks/usecollection.tsx","./src/react/hooks/usecollectionbalancedetails.tsx","./src/react/hooks/usecollectiondetails.tsx","./src/react/hooks/usecollectiondetailspolling.tsx","./src/react/hooks/usecompareprices.tsx","./src/react/hooks/useconfig.tsx","./src/react/hooks/useconvertpricetousd.tsx","./src/react/hooks/usecountlistingsforcollectible.tsx","./src/react/hooks/usecountofcollectables.tsx","./src/react/hooks/usecountoffersforcollectible.tsx","./src/react/hooks/usecurrencies.tsx","./src/react/hooks/usecurrency.tsx","./src/react/hooks/usecurrencybalance.tsx","./src/react/hooks/usefilterstate.tsx","./src/react/hooks/usefilters.tsx","./src/react/hooks/usefloororder.tsx","./src/react/hooks/usegeneratecanceltransaction.tsx","./src/react/hooks/usegeneratelistingtransaction.tsx","./src/react/hooks/usegenerateoffertransaction.tsx","./src/react/hooks/usegenerateselltransaction.tsx","./src/react/hooks/usegetreceiptfromhash.tsx","./src/react/hooks/usehighestoffer.tsx","./src/react/hooks/useinventory.tsx","./src/react/hooks/uselist1155salesupplies.tsx","./src/react/hooks/uselistbalances.tsx","./src/react/hooks/uselistcollectibleactivities.tsx","./src/react/hooks/uselistcollectibles.tsx","./src/react/hooks/uselistcollectiblespaginated.tsx","./src/react/hooks/uselistcollectionactivities.tsx","./src/react/hooks/uselistcollections.tsx","./src/react/hooks/uselistlistingsforcollectible.tsx","./src/react/hooks/uselistoffersforcollectible.tsx","./src/react/hooks/uselisttokenmetadata.ts","./src/react/hooks/uselowestlisting.tsx","./src/react/hooks/usemarketplaceconfig.tsx","./src/react/hooks/useroyalty.tsx","./src/react/hooks/usetransfertokens.tsx","./src/react/hooks/__tests__/useautoselectfeeoption.test.tsx","./src/react/hooks/__tests__/usebalanceofcollectible.test.tsx","./src/react/hooks/__tests__/usecancelorder.test.tsx","./src/react/hooks/__tests__/usecanceltransactionsteps.test.tsx","./src/react/hooks/__tests__/usecollectible.test.tsx","./src/react/hooks/__tests__/usecollection.test.tsx","./src/react/hooks/__tests__/usecollectionbalancedetails.test.tsx","./src/react/hooks/__tests__/usecollectiondetails.test.tsx","./src/react/hooks/__tests__/usecollectiondetailspolling.test.tsx","./src/react/hooks/__tests__/usecompareprices.test.tsx","./src/react/hooks/__tests__/useconvertpricetousd.test.tsx","./src/react/hooks/__tests__/usecountlistingsforcollectible.test.tsx","./src/react/hooks/__tests__/usecountofcollectables.test.tsx","./src/react/hooks/__tests__/usecountoffersforcollectible.test.tsx","./src/react/hooks/__tests__/usecurrencies.test.tsx","./src/react/hooks/__tests__/usecurrency.test.tsx","./src/react/hooks/__tests__/usecurrencybalance.test.tsx","./src/react/hooks/__tests__/usefilters.test.tsx","./src/react/hooks/__tests__/usefloororder.test.tsx","./src/react/hooks/__tests__/usegeneratecanceltransaction.test.tsx","./src/react/hooks/__tests__/usegeneratelistingtransaction.test.tsx","./src/react/hooks/__tests__/usegenerateoffertransaction.test.tsx","./src/react/hooks/__tests__/usegenerateselltransaction.test.tsx","./src/react/hooks/__tests__/usehighestoffer.test.tsx","./src/react/hooks/__tests__/useinventory.test.tsx","./src/react/hooks/__tests__/uselistbalances.test.tsx","./src/react/hooks/__tests__/uselistcollectibleactivities.test.tsx","./src/react/hooks/__tests__/uselistcollectibles.test.tsx","./src/react/hooks/__tests__/uselistcollectiblespaginated.test.tsx","./src/react/hooks/__tests__/uselistcollectionactivities.test.tsx","./src/react/hooks/__tests__/uselistcollections.test.tsx","./src/react/hooks/__tests__/uselistlistingsforcollectible.test.tsx","./src/react/hooks/__tests__/uselistoffersforcollectible.test.tsx","./src/react/hooks/__tests__/uselowestlisting.test.tsx","./src/react/hooks/__tests__/usemarketplaceconfig.test.tsx","./src/react/hooks/__tests__/useroyalty.test.tsx","./src/react/hooks/options/collectionoptions.ts","./src/react/hooks/options/index.ts","./src/react/hooks/util/optimisticcancelupdates.ts","./src/react/queries/balanceofcollectible.ts","./src/react/queries/gettokensupplies.ts","./src/react/queries/highestoffer.ts","./src/react/queries/index.ts","./src/react/queries/inventory.ts","./src/react/queries/listbalances.ts","./src/react/queries/listcollectibles.ts","./src/react/queries/listtokenmetadata.ts","./src/react/queries/lowestlisting.ts","./src/react/queries/marketplaceconfig.ts","./src/react/ssr/create-ssr-client.ts","./src/react/ssr/index.ts","./src/react/ssr/__tests__/create-ssr-client.test.ts","./src/react/ui/index.ts","./src/react/ui/components/modelviewer.tsx","./src/react/ui/components/_internals/action-button/actionbutton.tsx","./src/react/ui/components/_internals/action-button/store.ts","./src/react/ui/components/_internals/action-button/types.ts","./src/react/ui/components/_internals/action-button/__tests__/actionbuttonbody.test.tsx","./src/react/ui/components/_internals/action-button/__tests__/nonowneractions.test.tsx","./src/react/ui/components/_internals/action-button/__tests__/owneractions.test.tsx","./src/react/ui/components/_internals/action-button/__tests__/useactionbuttonlogic.test.tsx","./src/react/ui/components/_internals/action-button/components/actionbuttonbody.tsx","./src/react/ui/components/_internals/action-button/components/nonowneractions.tsx","./src/react/ui/components/_internals/action-button/components/owneractions.tsx","./src/react/ui/components/_internals/action-button/hooks/useactionbuttonlogic.ts","./src/react/ui/components/_internals/custom-select/customselect.tsx","./src/react/ui/components/_internals/custom-select/__tests__/customselect.test.tsx","./src/react/ui/components/_internals/pill/pill.tsx","./src/react/ui/components/_internals/pill/__tests__/pill.test.tsx","./src/react/ui/components/collectible-card/collectiblecard.tsx","./src/react/ui/components/collectible-card/footer.tsx","./src/react/ui/components/collectible-card/index.ts","./src/react/ui/components/collectible-card/__tests__/collectiblecard.test.tsx","./src/react/ui/components/collectible-card/__tests__/footer.test.tsx","./src/react/ui/components/collectible-card/__tests__/media.test.tsx","./src/react/ui/components/collectible-card/media/media.tsx","./src/react/ui/components/collectible-card/media/mediaskeleton.tsx","./src/react/ui/components/collectible-card/media/types.ts","./src/react/ui/components/collectible-card/media/utils.ts","./src/react/ui/components/marketplace-logos/index.ts","./src/react/ui/components/marketplace-logos/marketplace-logos.tsx","./src/react/ui/icons/bellicon.tsx","./src/react/ui/icons/calendaricon.tsx","./src/react/ui/icons/carticon.tsx","./src/react/ui/icons/infoicon.tsx","./src/react/ui/icons/iconvariants.ts","./src/react/ui/icons/index.ts","./src/react/ui/modals/modal-provider.tsx","./src/react/ui/modals/buymodal/erc1155quantitymodal.tsx","./src/react/ui/modals/buymodal/modal.tsx","./src/react/ui/modals/buymodal/index.tsx","./src/react/ui/modals/buymodal/store.ts","./src/react/ui/modals/buymodal/__tests__/modal.test.tsx","./src/react/ui/modals/buymodal/__tests__/modal1155.test.tsx","./src/react/ui/modals/buymodal/__tests__/store.test.ts","./src/react/ui/modals/buymodal/hooks/usecheckoutoptions.ts","./src/react/ui/modals/buymodal/hooks/usefees.ts","./src/react/ui/modals/buymodal/hooks/useloaddata.ts","./src/react/ui/modals/buymodal/hooks/usepaymentmodalparams.ts","./src/react/ui/modals/buymodal/hooks/__tests__/usecheckoutoptions.test.tsx","./src/react/ui/modals/buymodal/hooks/__tests__/usefees.test.tsx","./src/react/ui/modals/createlistingmodal/modal.tsx","./src/react/ui/modals/createlistingmodal/index.tsx","./src/react/ui/modals/createlistingmodal/store.ts","./src/react/ui/modals/createlistingmodal/__tests__/modal.test.tsx","./src/react/ui/modals/createlistingmodal/hooks/usecreatelisting.tsx","./src/react/ui/modals/createlistingmodal/hooks/usegettokenapproval.ts","./src/react/ui/modals/createlistingmodal/hooks/usetransactionsteps.tsx","./src/react/ui/modals/makeoffermodal/modal.tsx","./src/react/ui/modals/makeoffermodal/index.tsx","./src/react/ui/modals/makeoffermodal/store.ts","./src/react/ui/modals/makeoffermodal/__tests__/modal.test.tsx","./src/react/ui/modals/makeoffermodal/hooks/usegettokenapproval.tsx","./src/react/ui/modals/makeoffermodal/hooks/usemakeoffer.tsx","./src/react/ui/modals/makeoffermodal/hooks/usetransactionsteps.tsx","./src/react/ui/modals/sellmodal/modal.tsx","./src/react/ui/modals/sellmodal/index.tsx","./src/react/ui/modals/sellmodal/store.ts","./src/react/ui/modals/sellmodal/utils.ts","./src/react/ui/modals/sellmodal/__tests__/modal.test.tsx","./src/react/ui/modals/sellmodal/hooks/usegettokenapproval.tsx","./src/react/ui/modals/sellmodal/hooks/usesell.tsx","./src/react/ui/modals/sellmodal/hooks/usetransactionsteps.tsx","./src/react/ui/modals/successfulpurchasemodal/_store.ts","./src/react/ui/modals/successfulpurchasemodal/index.tsx","./src/react/ui/modals/successfulpurchasemodal/__tests__/modal.test.tsx","./src/react/ui/modals/transfermodal/_store.ts","./src/react/ui/modals/transfermodal/index.tsx","./src/react/ui/modals/transfermodal/messages.ts","./src/react/ui/modals/transfermodal/_views/enterwalletaddress/index.tsx","./src/react/ui/modals/transfermodal/_views/enterwalletaddress/usehandletransfer.tsx","./src/react/ui/modals/transfermodal/_views/enterwalletaddress/_components/tokenquantityinput.tsx","./src/react/ui/modals/transfermodal/_views/enterwalletaddress/_components/transferbutton.tsx","./src/react/ui/modals/transfermodal/_views/enterwalletaddress/_components/walletaddressinput.tsx","./src/react/ui/modals/transfermodal/_views/followwalletinstructions/index.tsx","./src/react/ui/modals/_internal/types.ts","./src/react/ui/modals/_internal/components/consts.ts","./src/react/ui/modals/_internal/components/actionmodal/actionmodal.test.tsx","./src/react/ui/modals/_internal/components/actionmodal/actionmodal.tsx","./src/react/ui/modals/_internal/components/actionmodal/errormodal.tsx","./src/react/ui/modals/_internal/components/actionmodal/loadingmodal.tsx","./src/react/ui/modals/_internal/components/actionmodal/index.ts","./src/react/ui/modals/_internal/components/actionmodal/store.ts","./src/react/ui/modals/_internal/components/alertmessage/index.tsx","./src/react/ui/modals/_internal/components/calendar/index.tsx","./src/react/ui/modals/_internal/components/calendardropdown/index.tsx","./src/react/ui/modals/_internal/components/currencyimage/index.tsx","./src/react/ui/modals/_internal/components/currencyoptionsselect/index.tsx","./src/react/ui/modals/_internal/components/currencyoptionsselect/__tests__/index.test.tsx","./src/react/ui/modals/_internal/components/expirationdateselect/index.tsx","./src/react/ui/modals/_internal/components/floorpricetext/index.tsx","./src/react/ui/modals/_internal/components/floorpricetext/__tests__/floorpricetext.test.tsx","./src/react/ui/modals/_internal/components/priceinput/index.tsx","./src/react/ui/modals/_internal/components/priceinput/types.ts","./src/react/ui/modals/_internal/components/priceinput/__tests__/priceinput.test.tsx","./src/react/ui/modals/_internal/components/quantityinput/index.tsx","./src/react/ui/modals/_internal/components/quantityinput/__tests__/index.test.tsx","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/index.tsx","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/store.ts","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/usewaasfeeoptionmanager.tsx","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/__tests__/actionbuttons.test.tsx","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/__tests__/balanceindicator.test.tsx","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/__tests__/selectwaasfeeoptions.test.tsx","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/_components/actionbuttons.tsx","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/_components/balanceindicator.tsx","./src/react/ui/modals/_internal/components/switchchainmodal/index.tsx","./src/react/ui/modals/_internal/components/switchchainmodal/store.ts","./src/react/ui/modals/_internal/components/switchchainmodal/__tests__/switchchainmodal.test.tsx","./src/react/ui/modals/_internal/components/timeago/index.tsx","./src/react/ui/modals/_internal/components/tokenpreview/index.tsx","./src/react/ui/modals/_internal/components/transaction-footer/index.tsx","./src/react/ui/modals/_internal/components/transactiondetails/index.tsx","./src/react/ui/modals/_internal/components/transactionheader/index.tsx","./src/react/ui/modals/_internal/components/transactionpreview/consts.ts","./src/react/ui/modals/_internal/components/transactionpreview/index.tsx","./src/react/ui/modals/_internal/components/transactionpreview/usetransactionpreviewtitle.tsx","./src/react/ui/modals/_internal/components/transactionstatusmodal/index.tsx","./src/react/ui/modals/_internal/components/transactionstatusmodal/store.ts","./src/react/ui/modals/_internal/components/transactionstatusmodal/__tests__/transactionstatusmodal.test.tsx","./src/react/ui/modals/_internal/components/transactionstatusmodal/__tests__/utils.test.ts","./src/react/ui/modals/_internal/components/transactionstatusmodal/hooks/usetransactionstatus.ts","./src/react/ui/modals/_internal/components/transactionstatusmodal/util/getformattedtype.ts","./src/react/ui/modals/_internal/components/transactionstatusmodal/util/getmessage.ts","./src/react/ui/modals/_internal/components/transactionstatusmodal/util/gettitle.ts","./src/react/ui/modals/_internal/components/waasfeeoptionsselect/waasfeeoptionsselect.tsx","./src/react/ui/modals/_internal/hooks/useselectwaasfeeoptions.ts","./src/react/ui/modals/_internal/stores/accountmodal.ts","./src/types/api-types.ts","./src/types/custom.d.ts","./src/types/index.ts","./src/types/messages.ts","./src/types/sdk-config.ts","./src/types/types.ts","./src/types/waas-types.ts","./src/utils/address.ts","./src/utils/cn.ts","./src/utils/date.ts","./src/utils/fetchcontenttype.ts","./src/utils/getmarketplacedetails.ts","./src/utils/getsequencemarketrequestid.ts","./src/utils/index.ts","./src/utils/network.ts","./src/utils/networkconfigtowagmichain.ts","./src/utils/price.ts","./src/utils/__tests__/address.test.ts","./src/utils/__tests__/date.test.ts","./src/utils/__tests__/getmarketplacedetails.test.ts","./src/utils/__tests__/price.test.ts","./src/utils/_internal/error/base.ts","./src/utils/_internal/error/config.ts","./src/utils/_internal/error/context.ts","./src/utils/_internal/error/transaction.ts","./src/utils/abi/index.ts","./src/utils/abi/marketplace/eip2981.ts","./src/utils/abi/marketplace/index.ts","./src/utils/abi/marketplace/sequence-marketplace-v1.ts","./src/utils/abi/marketplace/sequence-marketplace-v2.ts","./src/utils/abi/primary-sale/index.ts","./src/utils/abi/primary-sale/sequence-1155-sales-contract.ts","./src/utils/abi/primary-sale/sequence-721-sales-contract.ts","./src/utils/abi/token/erc1155.ts","./src/utils/abi/token/erc20.ts","./src/utils/abi/token/erc721.ts","./src/utils/abi/token/index.ts","./src/utils/abi/token/sequence-erc1155-items.ts","./src/utils/decode/erc20.ts","./tsup.config.ts","./test/const.ts","./test/globalsetup.ts","./test/index.ts","./test/setup.ts","./test/test-utils.tsx","./test/mocks/wallet.ts"],"version":"5.8.3"}
1
+ {"root":["./src/consts.ts","./src/index.ts","./src/react/index.ts","./src/react/provider.tsx","./src/react/__tests__/provider.test.tsx","./src/react/_internal/consts.ts","./src/react/_internal/get-provider.ts","./src/react/_internal/index.ts","./src/react/_internal/logger.ts","./src/react/_internal/types.ts","./src/react/_internal/utils.ts","./src/react/_internal/api/builder-api.ts","./src/react/_internal/api/builder.gen.ts","./src/react/_internal/api/get-query-client.ts","./src/react/_internal/api/index.ts","./src/react/_internal/api/laos-api.ts","./src/react/_internal/api/marketplace-api.ts","./src/react/_internal/api/marketplace.gen.ts","./src/react/_internal/api/query-keys.ts","./src/react/_internal/api/services.ts","./src/react/_internal/api/zod-schema.ts","./src/react/_internal/api/__mocks__/builder.msw.ts","./src/react/_internal/api/__mocks__/indexer.msw.ts","./src/react/_internal/api/__mocks__/marketplace.msw.ts","./src/react/_internal/api/__mocks__/metadata.msw.ts","./src/react/_internal/databeat/index.ts","./src/react/_internal/databeat/types.ts","./src/react/_internal/wagmi/create-config.ts","./src/react/_internal/wagmi/get-connectors.ts","./src/react/_internal/wagmi/index.ts","./src/react/_internal/wagmi/__tests__/create-config.test.ts","./src/react/_internal/wallet/usewallet.ts","./src/react/_internal/wallet/wallet.ts","./src/react/_internal/wallet/__tests__/wallet.test.ts","./src/react/hooks/index.ts","./src/react/hooks/useautoselectfeeoption.tsx","./src/react/hooks/usebalanceofcollectible.tsx","./src/react/hooks/usecancelorder.tsx","./src/react/hooks/usecanceltransactionsteps.tsx","./src/react/hooks/usecheckoutoptions.tsx","./src/react/hooks/usecollectible.tsx","./src/react/hooks/usecollection.tsx","./src/react/hooks/usecollectionbalancedetails.tsx","./src/react/hooks/usecollectiondetails.tsx","./src/react/hooks/usecollectiondetailspolling.tsx","./src/react/hooks/usecompareprices.tsx","./src/react/hooks/useconfig.tsx","./src/react/hooks/useconvertpricetousd.tsx","./src/react/hooks/usecountlistingsforcollectible.tsx","./src/react/hooks/usecountofcollectables.tsx","./src/react/hooks/usecountoffersforcollectible.tsx","./src/react/hooks/usecurrency.tsx","./src/react/hooks/usecurrencybalance.tsx","./src/react/hooks/usefilterstate.tsx","./src/react/hooks/usefilters.tsx","./src/react/hooks/usefloororder.tsx","./src/react/hooks/usegeneratecanceltransaction.tsx","./src/react/hooks/usegeneratelistingtransaction.tsx","./src/react/hooks/usegenerateoffertransaction.tsx","./src/react/hooks/usegenerateselltransaction.tsx","./src/react/hooks/usegetreceiptfromhash.tsx","./src/react/hooks/usegettokensuppliesmap.ts","./src/react/hooks/usehighestoffer.tsx","./src/react/hooks/useinventory.tsx","./src/react/hooks/uselist1155salesupplies.tsx","./src/react/hooks/uselistbalances.tsx","./src/react/hooks/uselistcollectibleactivities.tsx","./src/react/hooks/uselistcollectibles.tsx","./src/react/hooks/uselistcollectiblespaginated.tsx","./src/react/hooks/uselistcollectionactivities.tsx","./src/react/hooks/uselistcollections.tsx","./src/react/hooks/uselistlistingsforcollectible.tsx","./src/react/hooks/uselistoffersforcollectible.tsx","./src/react/hooks/uselisttokenmetadata.ts","./src/react/hooks/uselowestlisting.tsx","./src/react/hooks/usemarketcurrencies.tsx","./src/react/hooks/usemarketplaceconfig.tsx","./src/react/hooks/useroyalty.tsx","./src/react/hooks/usetransfertokens.tsx","./src/react/hooks/__tests__/useautoselectfeeoption.test.tsx","./src/react/hooks/__tests__/usebalanceofcollectible.test.tsx","./src/react/hooks/__tests__/usecancelorder.test.tsx","./src/react/hooks/__tests__/usecanceltransactionsteps.test.tsx","./src/react/hooks/__tests__/usecollectible.test.tsx","./src/react/hooks/__tests__/usecollection.test.tsx","./src/react/hooks/__tests__/usecollectionbalancedetails.test.tsx","./src/react/hooks/__tests__/usecollectiondetails.test.tsx","./src/react/hooks/__tests__/usecollectiondetailspolling.test.tsx","./src/react/hooks/__tests__/usecompareprices.test.tsx","./src/react/hooks/__tests__/useconvertpricetousd.test.tsx","./src/react/hooks/__tests__/usecountlistingsforcollectible.test.tsx","./src/react/hooks/__tests__/usecountofcollectables.test.tsx","./src/react/hooks/__tests__/usecountoffersforcollectible.test.tsx","./src/react/hooks/__tests__/usecurrency.test.tsx","./src/react/hooks/__tests__/usecurrencybalance.test.tsx","./src/react/hooks/__tests__/usefilters.test.tsx","./src/react/hooks/__tests__/usefloororder.test.tsx","./src/react/hooks/__tests__/usegeneratecanceltransaction.test.tsx","./src/react/hooks/__tests__/usegeneratelistingtransaction.test.tsx","./src/react/hooks/__tests__/usegenerateoffertransaction.test.tsx","./src/react/hooks/__tests__/usegenerateselltransaction.test.tsx","./src/react/hooks/__tests__/usehighestoffer.test.tsx","./src/react/hooks/__tests__/useinventory.test.tsx","./src/react/hooks/__tests__/uselistbalances.test.tsx","./src/react/hooks/__tests__/uselistcollectibleactivities.test.tsx","./src/react/hooks/__tests__/uselistcollectibles.test.tsx","./src/react/hooks/__tests__/uselistcollectiblespaginated.test.tsx","./src/react/hooks/__tests__/uselistcollectionactivities.test.tsx","./src/react/hooks/__tests__/uselistcollections.test.tsx","./src/react/hooks/__tests__/uselistlistingsforcollectible.test.tsx","./src/react/hooks/__tests__/uselistoffersforcollectible.test.tsx","./src/react/hooks/__tests__/uselowestlisting.test.tsx","./src/react/hooks/__tests__/usemarketcurrencies.test.tsx","./src/react/hooks/__tests__/usemarketplaceconfig.test.tsx","./src/react/hooks/__tests__/useroyalty.test.tsx","./src/react/hooks/options/collectionoptions.ts","./src/react/hooks/options/index.ts","./src/react/hooks/util/optimisticcancelupdates.ts","./src/react/queries/balanceofcollectible.ts","./src/react/queries/gettokensupplies.ts","./src/react/queries/highestoffer.ts","./src/react/queries/index.ts","./src/react/queries/inventory.ts","./src/react/queries/listbalances.ts","./src/react/queries/listcollectibles.ts","./src/react/queries/listcollections.ts","./src/react/queries/listtokenmetadata.ts","./src/react/queries/lowestlisting.ts","./src/react/queries/marketcurrencies.ts","./src/react/queries/marketplaceconfig.ts","./src/react/ssr/create-ssr-client.ts","./src/react/ssr/index.ts","./src/react/ssr/__tests__/create-ssr-client.test.ts","./src/react/ui/index.ts","./src/react/ui/components/modelviewer.tsx","./src/react/ui/components/_internals/action-button/actionbutton.tsx","./src/react/ui/components/_internals/action-button/store.ts","./src/react/ui/components/_internals/action-button/types.ts","./src/react/ui/components/_internals/action-button/__tests__/actionbuttonbody.test.tsx","./src/react/ui/components/_internals/action-button/__tests__/nonowneractions.test.tsx","./src/react/ui/components/_internals/action-button/__tests__/owneractions.test.tsx","./src/react/ui/components/_internals/action-button/__tests__/useactionbuttonlogic.test.tsx","./src/react/ui/components/_internals/action-button/components/actionbuttonbody.tsx","./src/react/ui/components/_internals/action-button/components/nonowneractions.tsx","./src/react/ui/components/_internals/action-button/components/owneractions.tsx","./src/react/ui/components/_internals/action-button/hooks/useactionbuttonlogic.ts","./src/react/ui/components/_internals/custom-select/customselect.tsx","./src/react/ui/components/_internals/custom-select/__tests__/customselect.test.tsx","./src/react/ui/components/_internals/pill/pill.tsx","./src/react/ui/components/_internals/pill/__tests__/pill.test.tsx","./src/react/ui/components/collectible-card/collectiblecard.tsx","./src/react/ui/components/collectible-card/footer.tsx","./src/react/ui/components/collectible-card/index.ts","./src/react/ui/components/collectible-card/__tests__/collectiblecard.test.tsx","./src/react/ui/components/collectible-card/__tests__/footer.test.tsx","./src/react/ui/components/collectible-card/__tests__/media.test.tsx","./src/react/ui/components/collectible-card/media/media.tsx","./src/react/ui/components/collectible-card/media/mediaskeleton.tsx","./src/react/ui/components/collectible-card/media/types.ts","./src/react/ui/components/collectible-card/media/utils.ts","./src/react/ui/components/marketplace-logos/index.ts","./src/react/ui/components/marketplace-logos/marketplace-logos.tsx","./src/react/ui/icons/bellicon.tsx","./src/react/ui/icons/calendaricon.tsx","./src/react/ui/icons/carticon.tsx","./src/react/ui/icons/infoicon.tsx","./src/react/ui/icons/iconvariants.ts","./src/react/ui/icons/index.ts","./src/react/ui/modals/modal-provider.tsx","./src/react/ui/modals/buymodal/erc1155quantitymodal.tsx","./src/react/ui/modals/buymodal/modal.tsx","./src/react/ui/modals/buymodal/index.tsx","./src/react/ui/modals/buymodal/store.ts","./src/react/ui/modals/buymodal/__tests__/modal.test.tsx","./src/react/ui/modals/buymodal/__tests__/modal1155.test.tsx","./src/react/ui/modals/buymodal/__tests__/store.test.ts","./src/react/ui/modals/buymodal/hooks/usecheckoutoptions.ts","./src/react/ui/modals/buymodal/hooks/usefees.ts","./src/react/ui/modals/buymodal/hooks/useloaddata.ts","./src/react/ui/modals/buymodal/hooks/usepaymentmodalparams.ts","./src/react/ui/modals/buymodal/hooks/__tests__/usecheckoutoptions.test.tsx","./src/react/ui/modals/buymodal/hooks/__tests__/usefees.test.tsx","./src/react/ui/modals/createlistingmodal/modal.tsx","./src/react/ui/modals/createlistingmodal/index.tsx","./src/react/ui/modals/createlistingmodal/store.ts","./src/react/ui/modals/createlistingmodal/__tests__/modal.test.tsx","./src/react/ui/modals/createlistingmodal/hooks/usecreatelisting.tsx","./src/react/ui/modals/createlistingmodal/hooks/usegettokenapproval.ts","./src/react/ui/modals/createlistingmodal/hooks/usetransactionsteps.tsx","./src/react/ui/modals/makeoffermodal/modal.tsx","./src/react/ui/modals/makeoffermodal/index.tsx","./src/react/ui/modals/makeoffermodal/store.ts","./src/react/ui/modals/makeoffermodal/__tests__/modal.test.tsx","./src/react/ui/modals/makeoffermodal/hooks/usegettokenapproval.tsx","./src/react/ui/modals/makeoffermodal/hooks/usemakeoffer.tsx","./src/react/ui/modals/makeoffermodal/hooks/usetransactionsteps.tsx","./src/react/ui/modals/sellmodal/modal.tsx","./src/react/ui/modals/sellmodal/index.tsx","./src/react/ui/modals/sellmodal/store.ts","./src/react/ui/modals/sellmodal/utils.ts","./src/react/ui/modals/sellmodal/__tests__/modal.test.tsx","./src/react/ui/modals/sellmodal/hooks/usegettokenapproval.tsx","./src/react/ui/modals/sellmodal/hooks/usesell.tsx","./src/react/ui/modals/sellmodal/hooks/usetransactionsteps.tsx","./src/react/ui/modals/successfulpurchasemodal/_store.ts","./src/react/ui/modals/successfulpurchasemodal/index.tsx","./src/react/ui/modals/successfulpurchasemodal/__tests__/modal.test.tsx","./src/react/ui/modals/transfermodal/_store.ts","./src/react/ui/modals/transfermodal/index.tsx","./src/react/ui/modals/transfermodal/messages.ts","./src/react/ui/modals/transfermodal/_views/enterwalletaddress/index.tsx","./src/react/ui/modals/transfermodal/_views/enterwalletaddress/usehandletransfer.tsx","./src/react/ui/modals/transfermodal/_views/enterwalletaddress/_components/tokenquantityinput.tsx","./src/react/ui/modals/transfermodal/_views/enterwalletaddress/_components/transferbutton.tsx","./src/react/ui/modals/transfermodal/_views/enterwalletaddress/_components/walletaddressinput.tsx","./src/react/ui/modals/transfermodal/_views/followwalletinstructions/index.tsx","./src/react/ui/modals/_internal/types.ts","./src/react/ui/modals/_internal/components/consts.ts","./src/react/ui/modals/_internal/components/actionmodal/actionmodal.test.tsx","./src/react/ui/modals/_internal/components/actionmodal/actionmodal.tsx","./src/react/ui/modals/_internal/components/actionmodal/errormodal.tsx","./src/react/ui/modals/_internal/components/actionmodal/loadingmodal.tsx","./src/react/ui/modals/_internal/components/actionmodal/index.ts","./src/react/ui/modals/_internal/components/actionmodal/store.ts","./src/react/ui/modals/_internal/components/alertmessage/index.tsx","./src/react/ui/modals/_internal/components/calendar/index.tsx","./src/react/ui/modals/_internal/components/calendardropdown/index.tsx","./src/react/ui/modals/_internal/components/currencyimage/index.tsx","./src/react/ui/modals/_internal/components/currencyoptionsselect/index.tsx","./src/react/ui/modals/_internal/components/currencyoptionsselect/__tests__/index.test.tsx","./src/react/ui/modals/_internal/components/expirationdateselect/index.tsx","./src/react/ui/modals/_internal/components/floorpricetext/index.tsx","./src/react/ui/modals/_internal/components/floorpricetext/__tests__/floorpricetext.test.tsx","./src/react/ui/modals/_internal/components/priceinput/index.tsx","./src/react/ui/modals/_internal/components/priceinput/types.ts","./src/react/ui/modals/_internal/components/priceinput/__tests__/priceinput.test.tsx","./src/react/ui/modals/_internal/components/quantityinput/index.tsx","./src/react/ui/modals/_internal/components/quantityinput/__tests__/index.test.tsx","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/index.tsx","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/store.ts","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/usewaasfeeoptionmanager.tsx","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/__tests__/actionbuttons.test.tsx","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/__tests__/balanceindicator.test.tsx","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/__tests__/selectwaasfeeoptions.test.tsx","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/_components/actionbuttons.tsx","./src/react/ui/modals/_internal/components/selectwaasfeeoptions/_components/balanceindicator.tsx","./src/react/ui/modals/_internal/components/switchchainmodal/index.tsx","./src/react/ui/modals/_internal/components/switchchainmodal/store.ts","./src/react/ui/modals/_internal/components/switchchainmodal/__tests__/switchchainmodal.test.tsx","./src/react/ui/modals/_internal/components/timeago/index.tsx","./src/react/ui/modals/_internal/components/tokenpreview/index.tsx","./src/react/ui/modals/_internal/components/transaction-footer/index.tsx","./src/react/ui/modals/_internal/components/transactiondetails/index.tsx","./src/react/ui/modals/_internal/components/transactionheader/index.tsx","./src/react/ui/modals/_internal/components/transactionpreview/consts.ts","./src/react/ui/modals/_internal/components/transactionpreview/index.tsx","./src/react/ui/modals/_internal/components/transactionpreview/usetransactionpreviewtitle.tsx","./src/react/ui/modals/_internal/components/transactionstatusmodal/index.tsx","./src/react/ui/modals/_internal/components/transactionstatusmodal/store.ts","./src/react/ui/modals/_internal/components/transactionstatusmodal/__tests__/transactionstatusmodal.test.tsx","./src/react/ui/modals/_internal/components/transactionstatusmodal/__tests__/utils.test.ts","./src/react/ui/modals/_internal/components/transactionstatusmodal/hooks/usetransactionstatus.ts","./src/react/ui/modals/_internal/components/transactionstatusmodal/util/getformattedtype.ts","./src/react/ui/modals/_internal/components/transactionstatusmodal/util/getmessage.ts","./src/react/ui/modals/_internal/components/transactionstatusmodal/util/gettitle.ts","./src/react/ui/modals/_internal/components/waasfeeoptionsselect/waasfeeoptionsselect.tsx","./src/react/ui/modals/_internal/hooks/useselectwaasfeeoptions.ts","./src/react/ui/modals/_internal/stores/accountmodal.ts","./src/types/api-types.ts","./src/types/custom.d.ts","./src/types/index.ts","./src/types/messages.ts","./src/types/new-marketplace-types.ts","./src/types/sdk-config.ts","./src/types/types.ts","./src/types/waas-types.ts","./src/utils/address.ts","./src/utils/cn.ts","./src/utils/date.ts","./src/utils/fetchcontenttype.ts","./src/utils/getmarketplacedetails.ts","./src/utils/getsequencemarketrequestid.ts","./src/utils/index.ts","./src/utils/network.ts","./src/utils/networkconfigtowagmichain.ts","./src/utils/price.ts","./src/utils/__tests__/address.test.ts","./src/utils/__tests__/date.test.ts","./src/utils/__tests__/getmarketplacedetails.test.ts","./src/utils/__tests__/price.test.ts","./src/utils/_internal/error/base.ts","./src/utils/_internal/error/config.ts","./src/utils/_internal/error/context.ts","./src/utils/_internal/error/transaction.ts","./src/utils/abi/index.ts","./src/utils/abi/marketplace/eip2981.ts","./src/utils/abi/marketplace/index.ts","./src/utils/abi/marketplace/sequence-marketplace-v1.ts","./src/utils/abi/marketplace/sequence-marketplace-v2.ts","./src/utils/abi/primary-sale/index.ts","./src/utils/abi/primary-sale/sequence-1155-sales-contract.ts","./src/utils/abi/primary-sale/sequence-721-sales-contract.ts","./src/utils/abi/token/erc1155.ts","./src/utils/abi/token/erc20.ts","./src/utils/abi/token/erc721.ts","./src/utils/abi/token/index.ts","./src/utils/abi/token/sequence-erc1155-items.ts","./src/utils/decode/erc20.ts","./tsup.config.ts","./test/const.ts","./test/globalsetup.ts","./test/index.ts","./test/setup.ts","./test/test-utils.tsx","./test/mocks/wallet.ts"],"version":"5.8.3"}