@0xsequence/marketplace-sdk 2.0.0 → 2.0.2
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.
- package/CHANGELOG.md +18 -0
- package/dist/BellIcon.js +1 -1
- package/dist/Card.js +1 -1
- package/dist/ShopCard.d.ts +4 -4
- package/dist/builder-api.js +1 -1
- package/dist/collectible.js +2 -2
- package/dist/collectible.js.map +1 -1
- package/dist/collection.js +1 -1
- package/dist/create-config.d.ts +589 -193
- package/dist/create-config.js +1 -1
- package/dist/currency.js +3 -3
- package/dist/currency.js.map +1 -1
- package/dist/dist.js +167 -148
- package/dist/dist.js.map +1 -1
- package/dist/expirationDateSelect.js +1 -1
- package/dist/filter-state.d.ts +1 -1
- package/dist/filters.d.ts +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/index10.d.ts +1 -1
- package/dist/index11.d.ts +17 -17
- package/dist/index12.d.ts +21 -21
- package/dist/index14.d.ts +3 -3
- package/dist/index15.d.ts +3 -3
- package/dist/index16.d.ts +2 -2
- package/dist/index17.d.ts +75 -75
- package/dist/index18.d.ts +40 -40
- package/dist/index19.d.ts +5 -5
- package/dist/index2.d.ts +4 -1
- package/dist/index21.d.ts +15 -15
- package/dist/index22.d.ts +8 -65
- package/dist/index23.d.ts +21 -13
- package/dist/index26.d.ts +4 -4
- package/dist/index27.d.ts +4 -4
- package/dist/index28.d.ts +10 -10
- package/dist/index3.d.ts +2 -2194
- package/dist/index31.d.ts +5 -5
- package/dist/index33.d.ts +3 -3
- package/dist/index34.d.ts +1 -1
- package/dist/index35.d.ts +1 -1
- package/dist/index36.d.ts +5 -5
- package/dist/index37.d.ts +8 -6
- package/dist/index38.d.ts +5 -5
- package/dist/index39.d.ts +1 -1
- package/dist/index4.d.ts +1356 -1356
- package/dist/index40.d.ts +2 -2
- package/dist/index8.d.ts +11 -3
- package/dist/index9.d.ts +2811 -3
- package/dist/inventory.d.ts +4 -4
- package/dist/inventory.js +3 -3
- package/dist/inventory.js.map +1 -1
- package/dist/marketplace2.js +3 -3
- package/dist/marketplace2.js.map +1 -1
- package/dist/metadata.d.ts +41 -41
- package/dist/primary-sale-checkout-options.d.ts +4 -4
- package/dist/quantityInput.js +1 -1
- package/dist/ranges.d.ts +12 -12
- package/dist/react/_internal/index.d.ts +1 -1
- package/dist/react/_internal/index.js +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/react/queries/collectible/index.d.ts +1 -1
- package/dist/react/queries/index.d.ts +1 -1
- package/dist/react/ssr/index.d.ts +3 -3
- package/dist/react/ssr/index.js +3 -3
- package/dist/react/ui/components/marketplace-collectible-card/index.d.ts +1 -1
- package/dist/react/ui/modals/CreateListingModal/internal/hooks/index.d.ts +1 -1
- package/dist/react/ui/modals/MakeOfferModal/internal/hooks/index.d.ts +1 -1
- package/dist/react/ui/modals/_internal/components/alertMessage/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/baseModal/index.d.ts +6 -6
- package/dist/react/ui/modals/_internal/components/calendar/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/currencyImage/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/currencyOptionsSelect/index.d.ts +3 -3
- package/dist/react/ui/modals/_internal/components/floorPriceText/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/priceInput/index.d.ts +3 -5
- package/dist/react/ui/modals/_internal/components/quantityInput/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/selectWaasFeeOptions/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/switchChainErrorModal/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/timeAgo/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/tokenPreview/index.d.ts +3 -3
- package/dist/react/ui/modals/_internal/components/transaction-footer/index.d.ts +3 -3
- package/dist/react/ui/modals/_internal/components/transactionDetails/index.d.ts +3 -3
- package/dist/react/ui/modals/_internal/components/transactionPreview/index.d.ts +3 -3
- package/dist/react/ui/modals/_internal/components/transactionStatusModal/index.d.ts +3 -3
- package/dist/react.js +2279 -1919
- package/dist/react.js.map +1 -1
- package/dist/styles/index.css +15 -0
- package/dist/token-balances.d.ts +28 -28
- package/dist/transaction-footer.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/url-state.js +1 -1
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/utils.js +31 -4
- package/dist/utils.js.map +1 -1
- package/package.json +7 -5
- package/src/react/hooks/config/useMarketplaceConfig.test.tsx +1 -0
- package/src/react/hooks/currency/list.test.tsx +23 -2
- package/src/react/hooks/transactions/useCancelTransactionSteps.tsx +4 -1
- package/src/react/hooks/transactions/useMarketTransactionSteps.tsx +55 -15
- package/src/react/hooks/utils/useEnsureCorrectChain.ts +10 -5
- package/src/react/queries/collectible/market-list.ts +5 -3
- package/src/react/queries/currency/list.ts +8 -5
- package/src/react/queries/inventory/inventory.ts +5 -3
- package/src/react/queries/marketplace/filters.ts +5 -3
- package/src/react/ui/modals/BuyModal/components/BuyModalContent.tsx +74 -37
- package/src/react/ui/modals/BuyModal/components/CryptoPaymentModal.tsx +74 -11
- package/src/react/ui/modals/BuyModal/components/Modal.tsx +62 -1
- package/src/react/ui/modals/BuyModal/hooks/useExecuteBundledTransactions.ts +13 -26
- package/src/react/ui/modals/BuyModal/hooks/useMarketPlatformFee.ts +5 -5
- package/src/react/ui/modals/BuyModal/internal/__tests__/buildTrailsMarketBuyActions.test.ts +213 -0
- package/src/react/ui/modals/BuyModal/internal/buildTrailsMarketBuyActions.ts +259 -0
- package/src/react/ui/modals/BuyModal/internal/buyModalContext.ts +79 -10
- package/src/react/ui/modals/BuyModal/internal/cryptoPaymentModalContext.tsx +44 -17
- package/src/react/ui/modals/CreateListingModal/internal/store.ts +5 -2
- package/src/react/ui/modals/MakeOfferModal/internal/context.ts +21 -1
- package/src/react/ui/modals/MakeOfferModal/internal/helpers/validation.ts +16 -1
- package/src/react/ui/modals/MakeOfferModal/internal/store.ts +5 -2
- package/src/react/ui/modals/SellModal/internal/store.ts +5 -2
- package/src/react/ui/modals/_internal/components/baseModal/errors/ModalInitializationError.tsx +8 -6
- package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +2 -1
- package/src/react/ui/modals/_internal/components/priceInput/index.tsx +13 -19
- package/src/react/ui/modals/_internal/components/transactionDetails/index.tsx +5 -2
- package/src/react/ui/modals/_internal/helpers/currency.test.ts +27 -0
- package/src/react/ui/modals/_internal/helpers/currency.ts +4 -2
- package/src/styles/styles.ts +18 -0
- package/src/utils/__tests__/getMarketplaceDetails.test.ts +10 -0
- package/src/utils/__tests__/getWebRPCErrorMessage.test.ts +28 -0
- package/src/utils/__tests__/marketplaceNormalization.test.ts +38 -0
- package/src/utils/collection.ts +19 -0
- package/src/utils/getConduitAddressForOrderbook.ts +2 -10
- package/src/utils/getMarketplaceDetails.ts +11 -4
- package/src/utils/getWebRPCErrorMessage.ts +21 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/normalizeMarketplace.ts +31 -0
package/dist/inventory.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { At as GetUserCollectionBalancesRequest, Ft as TokenMetadata$1, Lt as ChainId, Nt as TokenBalance$1, c as ContractType, on as MetadataStatus, pn as Page } from "./index2.js";
|
|
2
2
|
import { W as SdkQueryParams, X as WithRequired, it as WithOptionalParams } from "./create-config.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _tanstack_react_query174 from "@tanstack/react-query";
|
|
4
4
|
|
|
5
5
|
//#region src/react/queries/inventory/inventory.d.ts
|
|
6
6
|
type FetchInventoryParams = GetUserCollectionBalancesRequest & {
|
|
@@ -33,8 +33,8 @@ type UseInventoryArgs = Omit<InventoryQueryOptions, 'config'> & {
|
|
|
33
33
|
};
|
|
34
34
|
declare function fetchInventory(params: WithRequired<InventoryQueryOptions, 'userAddress' | 'collectionAddress' | 'chainId' | 'config'>): Promise<CollectiblesResponse>;
|
|
35
35
|
declare function getInventoryQueryKey(params: InventoryQueryOptions): readonly ["inventory", `0x${string}` | undefined, `0x${string}` | undefined, number | undefined, number, number];
|
|
36
|
-
declare function inventoryOptions(params: WithOptionalParams<WithRequired<InventoryQueryOptions, 'userAddress' | 'collectionAddress' | 'chainId' | 'config'>>):
|
|
37
|
-
queryFn?:
|
|
36
|
+
declare function inventoryOptions(params: WithOptionalParams<WithRequired<InventoryQueryOptions, 'userAddress' | 'collectionAddress' | 'chainId' | 'config'>>): _tanstack_react_query174.OmitKeyof<_tanstack_react_query174.UseQueryOptions<CollectiblesResponse, Error, CollectiblesResponse, readonly unknown[]>, "queryFn"> & {
|
|
37
|
+
queryFn?: _tanstack_react_query174.QueryFunction<CollectiblesResponse, readonly unknown[], never> | undefined;
|
|
38
38
|
} & {
|
|
39
39
|
queryKey: readonly unknown[] & {
|
|
40
40
|
[dataTagSymbol]: CollectiblesResponse;
|
package/dist/inventory.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { m as MetadataStatus, t as ContractType } from "./dist.js";
|
|
2
|
+
import { d as findMarketCollection } from "./utils.js";
|
|
3
3
|
import { g as getQueryClient } from "./api.js";
|
|
4
4
|
import { r as buildQueryOptions } from "./_internal.js";
|
|
5
5
|
import { r as tokenBalancesOptions } from "./token-balances.js";
|
|
@@ -46,7 +46,7 @@ async function fetchIndexerTokens(params) {
|
|
|
46
46
|
}
|
|
47
47
|
async function fetchInventory(params) {
|
|
48
48
|
const { userAddress, collectionAddress, chainId, config, page = 1, pageSize = 30 } = params;
|
|
49
|
-
const isTradable = ((await fetchMarketplaceConfig({ config }))?.market.collections || []
|
|
49
|
+
const isTradable = !!findMarketCollection((await fetchMarketplaceConfig({ config }))?.market.collections || [], collectionAddress, chainId);
|
|
50
50
|
const { collectibles } = await fetchIndexerTokens({
|
|
51
51
|
chainId,
|
|
52
52
|
userAddress,
|
package/dist/inventory.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory.js","names":[],"sources":["../src/react/queries/inventory/inventory.ts"],"sourcesContent":["import type {\n\tChainId,\n\tGetUserCollectionBalancesRequest,\n\tIndexerTokenMetadata,\n\tIndexerTokenBalance as TokenBalance,\n} from '@0xsequence/api-client';\nimport { ContractType, MetadataStatus } from '@0xsequence/api-client';\nimport { isAddress } from 'viem';\nimport type { Page } from '../../../types';\nimport {
|
|
1
|
+
{"version":3,"file":"inventory.js","names":[],"sources":["../src/react/queries/inventory/inventory.ts"],"sourcesContent":["import type {\n\tChainId,\n\tGetUserCollectionBalancesRequest,\n\tIndexerTokenMetadata,\n\tIndexerTokenBalance as TokenBalance,\n} from '@0xsequence/api-client';\nimport { ContractType, MetadataStatus } from '@0xsequence/api-client';\nimport { isAddress } from 'viem';\nimport type { Page } from '../../../types';\nimport { findMarketCollection } from '../../../utils';\nimport {\n\tbuildQueryOptions,\n\tgetQueryClient,\n\ttype SdkQueryParams,\n\ttype WithOptionalParams,\n\ttype WithRequired,\n} from '../../_internal';\nimport { tokenBalancesOptions } from '../collectible/token-balances';\nimport { fetchMarketplaceConfig } from '../marketplace/config';\n\nexport type FetchInventoryParams = GetUserCollectionBalancesRequest & {\n\tchainId: ChainId;\n\tincludeNonTradable?: boolean;\n\tpage?: number;\n\tpageSize?: number;\n};\n\nexport type CollectibleMetadata = Pick<\n\tIndexerTokenMetadata,\n\t| 'tokenId'\n\t| 'attributes'\n\t| 'image'\n\t| 'name'\n\t| 'description'\n\t| 'video'\n\t| 'audio'\n> & {\n\tstatus: MetadataStatus;\n};\n\nexport type CollectibleWithBalance = Pick<TokenBalance, 'contractInfo'> & {\n\tmetadata: CollectibleMetadata;\n\tbalance: string;\n\tcontractType: ContractType.ERC1155 | ContractType.ERC721;\n};\n\nexport type CollectiblesResponse = {\n\tcollectibles: CollectibleWithBalance[];\n\tpage: Page;\n\tisTradable: boolean;\n};\n\n/**\n * Validates if a contract type is a valid collectible type (ERC721 or ERC1155)\n */\nfunction isCollectibleContractType(\n\tcontractType: string,\n): contractType is ContractType.ERC721 | ContractType.ERC1155 {\n\t// eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison -- Intentional type guard comparing string with enum\n\treturn (\n\t\tcontractType === ContractType.ERC721 ||\n\t\tcontractType === ContractType.ERC1155\n\t);\n}\n\n/**\n * Transforms an Indexer token balance into a collectible with metadata\n * @throws Error if token is not a valid collectible type (ERC721/ERC1155)\n */\nfunction collectibleFromTokenBalance(\n\ttoken: TokenBalance,\n): CollectibleWithBalance {\n\treturn {\n\t\tmetadata: {\n\t\t\ttokenId: token.tokenId ?? 0n,\n\t\t\tattributes: token.tokenMetadata?.attributes ?? [],\n\t\t\timage: token.tokenMetadata?.image,\n\t\t\tname: token.tokenMetadata?.name ?? '',\n\t\t\tdescription: token.tokenMetadata?.description,\n\t\t\tvideo: token.tokenMetadata?.video,\n\t\t\taudio: token.tokenMetadata?.audio,\n\t\t\tstatus: MetadataStatus.AVAILABLE,\n\t\t},\n\t\tcontractInfo: token.contractInfo,\n\t\tcontractType: token.contractType as\n\t\t\t| ContractType.ERC721\n\t\t\t| ContractType.ERC1155,\n\t\tbalance: token.balance.toString(),\n\t};\n}\n\nasync function fetchIndexerTokens(\n\tparams: WithRequired<\n\t\tInventoryQueryOptions,\n\t\t'chainId' | 'userAddress' | 'collectionAddress' | 'config'\n\t>,\n): Promise<{ collectibles: CollectibleWithBalance[] }> {\n\tconst { chainId, userAddress, collectionAddress, config } = params;\n\tconst queryClient = getQueryClient();\n\tconst balances = await queryClient.fetchQuery(\n\t\ttokenBalancesOptions({\n\t\t\tcollectionAddress,\n\t\t\tuserAddress,\n\t\t\tchainId,\n\t\t\tincludeMetadata: true,\n\t\t\tconfig,\n\t\t}),\n\t);\n\n\tconst collectibles = balances\n\t\t.filter((balance) => isCollectibleContractType(balance.contractType))\n\t\t.map((balance) => collectibleFromTokenBalance(balance));\n\n\treturn {\n\t\tcollectibles,\n\t};\n}\n\nexport type InventoryQueryOptions = SdkQueryParams<\n\tFetchInventoryParams,\n\t{\n\t\tenabled?: boolean;\n\t}\n>;\n\n/**\n * @deprecated Use InventoryQueryOptions instead\n */\nexport type UseInventoryArgs = Omit<InventoryQueryOptions, 'config'> & {\n\tconfig?: InventoryQueryOptions['config'];\n};\n\nexport async function fetchInventory(\n\tparams: WithRequired<\n\t\tInventoryQueryOptions,\n\t\t'userAddress' | 'collectionAddress' | 'chainId' | 'config'\n\t>,\n): Promise<CollectiblesResponse> {\n\tconst {\n\t\tuserAddress,\n\t\tcollectionAddress,\n\t\tchainId,\n\t\tconfig,\n\t\tpage = 1,\n\t\tpageSize = 30,\n\t} = params;\n\tconst marketplaceConfig = await fetchMarketplaceConfig({ config });\n\n\tconst marketCollections = marketplaceConfig?.market.collections || [];\n\n\tconst isMarketCollection = !!findMarketCollection(\n\t\tmarketCollections,\n\t\tcollectionAddress,\n\t\tchainId,\n\t);\n\n\t// Determine if this collection is tradable (market collection vs shop collection)\n\tconst isTradable = isMarketCollection;\n\n\t// Fetch collectibles from indexer\n\tconst { collectibles } = await fetchIndexerTokens({\n\t\tchainId,\n\t\tuserAddress,\n\t\tcollectionAddress,\n\t\tconfig,\n\t});\n\n\treturn {\n\t\tcollectibles,\n\t\tpage: {\n\t\t\tpage,\n\t\t\tpageSize,\n\t\t},\n\t\tisTradable,\n\t};\n}\n\nexport function getInventoryQueryKey(params: InventoryQueryOptions) {\n\treturn [\n\t\t'inventory',\n\t\tparams.userAddress,\n\t\tparams.collectionAddress,\n\t\tparams.chainId,\n\t\tparams.page ?? 1,\n\t\tparams.pageSize ?? 30,\n\t] as const;\n}\n\nexport function inventoryOptions(\n\tparams: WithOptionalParams<\n\t\tWithRequired<\n\t\t\tInventoryQueryOptions,\n\t\t\t'userAddress' | 'collectionAddress' | 'chainId' | 'config'\n\t\t>\n\t>,\n) {\n\treturn buildQueryOptions(\n\t\t{\n\t\t\tgetQueryKey: getInventoryQueryKey,\n\t\t\trequiredParams: [\n\t\t\t\t'userAddress',\n\t\t\t\t'collectionAddress',\n\t\t\t\t'chainId',\n\t\t\t\t'config',\n\t\t\t] as const,\n\t\t\tfetcher: fetchInventory,\n\t\t\tcustomValidation: (p) =>\n\t\t\t\t!!p.collectionAddress && isAddress(p.collectionAddress),\n\t\t},\n\t\tparams,\n\t);\n}\n"],"mappings":";;;;;;;;;;;;AAuDA,SAAS,0BACR,cAC6D;AAE7D,QACC,iBAAiB,aAAa,UAC9B,iBAAiB,aAAa;;;;;;AAQhC,SAAS,4BACR,OACyB;AACzB,QAAO;EACN,UAAU;GACT,SAAS,MAAM,WAAW;GAC1B,YAAY,MAAM,eAAe,cAAc,EAAE;GACjD,OAAO,MAAM,eAAe;GAC5B,MAAM,MAAM,eAAe,QAAQ;GACnC,aAAa,MAAM,eAAe;GAClC,OAAO,MAAM,eAAe;GAC5B,OAAO,MAAM,eAAe;GAC5B,QAAQ,eAAe;GACvB;EACD,cAAc,MAAM;EACpB,cAAc,MAAM;EAGpB,SAAS,MAAM,QAAQ,UAAU;EACjC;;AAGF,eAAe,mBACd,QAIsD;CACtD,MAAM,EAAE,SAAS,aAAa,mBAAmB,WAAW;AAgB5D,QAAO,EACN,eAfgB,MADG,gBAAgB,CACD,WAClC,qBAAqB;EACpB;EACA;EACA;EACA,iBAAiB;EACjB;EACA,CAAC,CACF,EAGC,QAAQ,YAAY,0BAA0B,QAAQ,aAAa,CAAC,CACpE,KAAK,YAAY,4BAA4B,QAAQ,CAAC,EAIvD;;AAiBF,eAAsB,eACrB,QAIgC;CAChC,MAAM,EACL,aACA,mBACA,SACA,QACA,OAAO,GACP,WAAW,OACR;CAYJ,MAAM,aAPqB,CAAC,CAAC,sBAJH,MAAM,uBAAuB,EAAE,QAAQ,CAAC,GAErB,OAAO,eAAe,EAAE,EAIpE,mBACA,QACA;CAMD,MAAM,EAAE,iBAAiB,MAAM,mBAAmB;EACjD;EACA;EACA;EACA;EACA,CAAC;AAEF,QAAO;EACN;EACA,MAAM;GACL;GACA;GACA;EACD;EACA;;AAGF,SAAgB,qBAAqB,QAA+B;AACnE,QAAO;EACN;EACA,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO,QAAQ;EACf,OAAO,YAAY;EACnB;;AAGF,SAAgB,iBACf,QAMC;AACD,QAAO,kBACN;EACC,aAAa;EACb,gBAAgB;GACf;GACA;GACA;GACA;GACA;EACD,SAAS;EACT,mBAAmB,MAClB,CAAC,CAAC,EAAE,qBAAqB,UAAU,EAAE,kBAAkB;EACxD,EACD,OACA"}
|
package/dist/marketplace2.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { T as FilterCondition } from "./dist.js";
|
|
2
|
+
import { d as findMarketCollection } from "./utils.js";
|
|
3
3
|
import { g as getQueryClient, i as getMetadataClient } from "./api.js";
|
|
4
4
|
import { r as buildQueryOptions } from "./_internal.js";
|
|
5
5
|
import { n as marketplaceConfigOptions, r as createMarketplaceQueryKey } from "./config.js";
|
|
@@ -18,7 +18,7 @@ async function fetchFilters(params) {
|
|
|
18
18
|
excludePropertyValues
|
|
19
19
|
})).filters;
|
|
20
20
|
if (showAllFilters) return filters;
|
|
21
|
-
const collectionFilters = (await getQueryClient().fetchQuery(marketplaceConfigOptions(config))).market.collections
|
|
21
|
+
const collectionFilters = findMarketCollection((await getQueryClient().fetchQuery(marketplaceConfigOptions(config))).market.collections, collectionAddress, chainId)?.filterSettings;
|
|
22
22
|
const filterOrder = collectionFilters?.filterOrder;
|
|
23
23
|
const exclusions = collectionFilters?.exclusions;
|
|
24
24
|
let sortedFilters = filters;
|
package/dist/marketplace2.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketplace2.js","names":[],"sources":["../src/react/queries/marketplace/filters.ts"],"sourcesContent":["import type { GetFiltersArgs, PropertyFilter } from '@0xsequence/api-client';\nimport { isAddress } from 'viem';\nimport { FilterCondition } from '../../../types';\nimport {
|
|
1
|
+
{"version":3,"file":"marketplace2.js","names":[],"sources":["../src/react/queries/marketplace/filters.ts"],"sourcesContent":["import type { GetFiltersArgs, PropertyFilter } from '@0xsequence/api-client';\nimport { isAddress } from 'viem';\nimport { FilterCondition } from '../../../types';\nimport { findMarketCollection } from '../../../utils';\nimport {\n\tbuildQueryOptions,\n\tgetMetadataClient,\n\tgetQueryClient,\n\ttype SdkQueryParams,\n\ttype WithOptionalParams,\n\ttype WithRequired,\n} from '../../_internal';\nimport { marketplaceConfigOptions } from './config';\nimport { createMarketplaceQueryKey } from './queryKeys';\n\nexport type FetchFiltersParams = GetFiltersArgs;\n\n/**\n * Fetches collection filters from the Metadata API with optional marketplace filtering\n */\nexport async function fetchFilters(\n\tparams: WithRequired<\n\t\tFiltersQueryOptions,\n\t\t'chainId' | 'collectionAddress' | 'config'\n\t>,\n): Promise<PropertyFilter[]> {\n\tconst {\n\t\tchainId,\n\t\tcollectionAddress,\n\t\tshowAllFilters,\n\t\texcludePropertyValues,\n\t\tconfig,\n\t} = params;\n\n\tconst metadataClient = getMetadataClient(config);\n\n\tconst result = await metadataClient.getTokenMetadataPropertyFilters({\n\t\tchainId,\n\t\tcollectionAddress,\n\t\texcludeProperties: [],\n\t\texcludePropertyValues,\n\t});\n\n\tconst filters = result.filters as PropertyFilter[];\n\n\tif (showAllFilters) return filters;\n\n\tconst queryClient = getQueryClient();\n\tconst marketplaceConfig = await queryClient.fetchQuery(\n\t\tmarketplaceConfigOptions(config),\n\t);\n\tconst collectionFilters = findMarketCollection(\n\t\tmarketplaceConfig.market.collections,\n\t\tcollectionAddress,\n\t\tchainId,\n\t)?.filterSettings;\n\n\tconst filterOrder = collectionFilters?.filterOrder;\n\tconst exclusions = collectionFilters?.exclusions;\n\tlet sortedFilters = filters;\n\n\tif (filterOrder) {\n\t\tsortedFilters = filters.toSorted((a, b) => {\n\t\t\tconst aIndex =\n\t\t\t\tfilterOrder.indexOf(a.name) > -1\n\t\t\t\t\t? filterOrder.indexOf(a.name)\n\t\t\t\t\t: filterOrder.length;\n\t\t\tconst bIndex =\n\t\t\t\tfilterOrder.indexOf(b.name) > -1\n\t\t\t\t\t? filterOrder.indexOf(b.name)\n\t\t\t\t\t: filterOrder.length;\n\t\t\treturn aIndex - bIndex;\n\t\t});\n\t}\n\n\tif (exclusions) {\n\t\tsortedFilters = sortedFilters.reduce<PropertyFilter[]>((acc, filter) => {\n\t\t\tconst exclusionRule = exclusions.find((rule) => rule.key === filter.name);\n\n\t\t\tif (!exclusionRule) {\n\t\t\t\tacc.push(filter);\n\t\t\t\treturn acc;\n\t\t\t}\n\n\t\t\tif (exclusionRule.condition === FilterCondition.ENTIRE_KEY) {\n\t\t\t\treturn acc;\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\texclusionRule.condition === FilterCondition.SPECIFIC_VALUE &&\n\t\t\t\texclusionRule.value\n\t\t\t) {\n\t\t\t\tconst filteredValues =\n\t\t\t\t\tfilter.values?.filter((value) => value !== exclusionRule.value) || [];\n\t\t\t\tif (filteredValues.length > 0) {\n\t\t\t\t\tacc.push({ ...filter, values: filteredValues });\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn acc;\n\t\t}, []);\n\t}\n\n\treturn sortedFilters;\n}\n\nexport type FiltersQueryOptions = SdkQueryParams<FetchFiltersParams>;\n\nexport function getFiltersQueryKey(params: FiltersQueryOptions) {\n\tconst apiArgs = {\n\t\tchainId: params.chainId,\n\t\tcollectionAddress: params.collectionAddress,\n\t\texcludeProperties: undefined,\n\t\texcludePropertyValues: params.excludePropertyValues,\n\t};\n\n\treturn createMarketplaceQueryKey('filters', {\n\t\t...apiArgs,\n\t\tshowAllFilters: params.showAllFilters,\n\t});\n}\n\nexport function filtersQueryOptions(\n\tparams: WithOptionalParams<\n\t\tWithRequired<\n\t\t\tFiltersQueryOptions,\n\t\t\t'chainId' | 'collectionAddress' | 'config'\n\t\t>\n\t>,\n) {\n\treturn buildQueryOptions(\n\t\t{\n\t\t\tgetQueryKey: getFiltersQueryKey,\n\t\t\trequiredParams: ['chainId', 'collectionAddress', 'config'] as const,\n\t\t\tfetcher: fetchFilters,\n\t\t\tcustomValidation: (p) =>\n\t\t\t\t!!p.collectionAddress && isAddress(p.collectionAddress),\n\t\t},\n\t\tparams,\n\t);\n}\n"],"mappings":";;;;;;;;;;;AAoBA,eAAsB,aACrB,QAI4B;CAC5B,MAAM,EACL,SACA,mBACA,gBACA,uBACA,WACG;CAWJ,MAAM,WAPS,MAFQ,kBAAkB,OAAO,CAEZ,gCAAgC;EACnE;EACA;EACA,mBAAmB,EAAE;EACrB;EACA,CAAC,EAEqB;AAEvB,KAAI,eAAgB,QAAO;CAM3B,MAAM,oBAAoB,sBAHA,MADN,gBAAgB,CACQ,WAC3C,yBAAyB,OAAO,CAChC,EAEkB,OAAO,aACzB,mBACA,QACA,EAAE;CAEH,MAAM,cAAc,mBAAmB;CACvC,MAAM,aAAa,mBAAmB;CACtC,IAAI,gBAAgB;AAEpB,KAAI,YACH,iBAAgB,QAAQ,UAAU,GAAG,MAAM;AAS1C,UAPC,YAAY,QAAQ,EAAE,KAAK,GAAG,KAC3B,YAAY,QAAQ,EAAE,KAAK,GAC3B,YAAY,WAEf,YAAY,QAAQ,EAAE,KAAK,GAAG,KAC3B,YAAY,QAAQ,EAAE,KAAK,GAC3B,YAAY;GAEf;AAGH,KAAI,WACH,iBAAgB,cAAc,QAA0B,KAAK,WAAW;EACvE,MAAM,gBAAgB,WAAW,MAAM,SAAS,KAAK,QAAQ,OAAO,KAAK;AAEzE,MAAI,CAAC,eAAe;AACnB,OAAI,KAAK,OAAO;AAChB,UAAO;;AAGR,MAAI,cAAc,cAAc,gBAAgB,WAC/C,QAAO;AAGR,MACC,cAAc,cAAc,gBAAgB,kBAC5C,cAAc,OACb;GACD,MAAM,iBACL,OAAO,QAAQ,QAAQ,UAAU,UAAU,cAAc,MAAM,IAAI,EAAE;AACtE,OAAI,eAAe,SAAS,EAC3B,KAAI,KAAK;IAAE,GAAG;IAAQ,QAAQ;IAAgB,CAAC;;AAIjD,SAAO;IACL,EAAE,CAAC;AAGP,QAAO;;AAKR,SAAgB,mBAAmB,QAA6B;AAQ/D,QAAO,0BAA0B,WAAW;EAN3C,SAAS,OAAO;EAChB,mBAAmB,OAAO;EAC1B,mBAAmB;EACnB,uBAAuB,OAAO;EAK9B,gBAAgB,OAAO;EACvB,CAAC;;AAGH,SAAgB,oBACf,QAMC;AACD,QAAO,kBACN;EACC,aAAa;EACb,gBAAgB;GAAC;GAAW;GAAqB;GAAS;EAC1D,SAAS;EACT,mBAAmB,MAClB,CAAC,CAAC,EAAE,qBAAqB,UAAU,EAAE,kBAAkB;EACxD,EACD,OACA"}
|
package/dist/metadata.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as ListOrdersWithCollectiblesResponse, Bt as TokenId, C as GetFloorOrderRequest, It as Address$1, Kt as CollectiblesFilter, Lt as ChainId, Pt as TokenBalancesFilter$1, St as GetTokenBalancesDetailsRequest, _ as GetCountOfAllOrdersRequest, a as CollectibleOrder, ct as index_d_exports$1$1, dn as OrderbookKind, dt as ContractInfo$1$1, fn as OrdersFilter, ft as ContractInfoExtensions$1$1, ln as OrderSide, mt as GetContractInfoSdkArgs, pn as Page$2, s as CollectionFilterSettings, y as GetCountOfFilteredOrdersRequest, z as ListOrdersWithCollectiblesRequest, zt as ProjectId } from "./index2.js";
|
|
2
2
|
import { U as SdkInfiniteQueryParams, W as SdkQueryParams, X as WithRequired, c as SdkConfig, it as WithOptionalParams, p as MarketplaceConfig } from "./create-config.js";
|
|
3
3
|
import * as _0xsequence_indexer1 from "@0xsequence/indexer";
|
|
4
4
|
import * as _0xsequence_metadata3 from "@0xsequence/metadata";
|
|
5
|
-
import * as
|
|
5
|
+
import * as _tanstack_react_query136 from "@tanstack/react-query";
|
|
6
6
|
|
|
7
7
|
//#region src/react/queries/collection/balance-details.d.ts
|
|
8
8
|
type CollectionBalanceFilter = TokenBalancesFilter$1;
|
|
@@ -18,8 +18,8 @@ declare function getCollectionBalanceDetailsQueryKey(params: CollectionBalanceDe
|
|
|
18
18
|
chainId: number | undefined;
|
|
19
19
|
filter: index_d_exports$1$1.TokenBalancesFilter | undefined;
|
|
20
20
|
}];
|
|
21
|
-
declare function collectionBalanceDetailsQueryOptions(params: WithOptionalParams<WithRequired<CollectionBalanceDetailsQueryOptions, 'chainId' | 'filter' | 'config'>>):
|
|
22
|
-
queryFn?:
|
|
21
|
+
declare function collectionBalanceDetailsQueryOptions(params: WithOptionalParams<WithRequired<CollectionBalanceDetailsQueryOptions, 'chainId' | 'filter' | 'config'>>): _tanstack_react_query136.OmitKeyof<_tanstack_react_query136.UseQueryOptions<index_d_exports$1$1.GetTokenBalancesDetailsResponse, Error, index_d_exports$1$1.GetTokenBalancesDetailsResponse, readonly unknown[]>, "queryFn"> & {
|
|
22
|
+
queryFn?: _tanstack_react_query136.QueryFunction<index_d_exports$1$1.GetTokenBalancesDetailsResponse, readonly unknown[], never> | undefined;
|
|
23
23
|
} & {
|
|
24
24
|
queryKey: readonly unknown[] & {
|
|
25
25
|
[dataTagSymbol]: index_d_exports$1$1.GetTokenBalancesDetailsResponse;
|
|
@@ -38,9 +38,9 @@ type ListCollectionsQueryOptions = SdkQueryParams<FetchListCollectionsParams>;
|
|
|
38
38
|
*/
|
|
39
39
|
declare function fetchListCollections(params: WithRequired<ListCollectionsQueryOptions, 'marketplaceConfig' | 'config'>): Promise<({
|
|
40
40
|
symbol: string;
|
|
41
|
-
status: _0xsequence_metadata3.ResourceStatus;
|
|
42
41
|
type: string;
|
|
43
42
|
name: string;
|
|
43
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
44
44
|
updatedAt: string;
|
|
45
45
|
decimals?: number | undefined;
|
|
46
46
|
source: string;
|
|
@@ -66,9 +66,9 @@ declare function fetchListCollections(params: WithRequired<ListCollectionsQueryO
|
|
|
66
66
|
filterSettings?: CollectionFilterSettings;
|
|
67
67
|
} | {
|
|
68
68
|
symbol: string;
|
|
69
|
-
status: _0xsequence_metadata3.ResourceStatus;
|
|
70
69
|
type: string;
|
|
71
70
|
name: string;
|
|
71
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
72
72
|
updatedAt: string;
|
|
73
73
|
decimals?: number | undefined;
|
|
74
74
|
source: string;
|
|
@@ -95,11 +95,11 @@ declare function getListCollectionsQueryKey(params: ListCollectionsQueryOptions)
|
|
|
95
95
|
readonly collectionType: "market" | "shop" | undefined;
|
|
96
96
|
readonly marketplaceConfig: MarketplaceConfig | undefined;
|
|
97
97
|
}];
|
|
98
|
-
declare function listCollectionsQueryOptions(params: WithOptionalParams<WithRequired<ListCollectionsQueryOptions, 'marketplaceConfig' | 'config'>>):
|
|
98
|
+
declare function listCollectionsQueryOptions(params: WithOptionalParams<WithRequired<ListCollectionsQueryOptions, 'marketplaceConfig' | 'config'>>): _tanstack_react_query136.OmitKeyof<_tanstack_react_query136.UseQueryOptions<({
|
|
99
99
|
symbol: string;
|
|
100
|
-
status: _0xsequence_metadata3.ResourceStatus;
|
|
101
100
|
type: string;
|
|
102
101
|
name: string;
|
|
102
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
103
103
|
updatedAt: string;
|
|
104
104
|
decimals?: number | undefined;
|
|
105
105
|
source: string;
|
|
@@ -125,9 +125,9 @@ declare function listCollectionsQueryOptions(params: WithOptionalParams<WithRequ
|
|
|
125
125
|
filterSettings?: CollectionFilterSettings;
|
|
126
126
|
} | {
|
|
127
127
|
symbol: string;
|
|
128
|
-
status: _0xsequence_metadata3.ResourceStatus;
|
|
129
128
|
type: string;
|
|
130
129
|
name: string;
|
|
130
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
131
131
|
updatedAt: string;
|
|
132
132
|
decimals?: number | undefined;
|
|
133
133
|
source: string;
|
|
@@ -151,9 +151,9 @@ declare function listCollectionsQueryOptions(params: WithOptionalParams<WithRequ
|
|
|
151
151
|
customTokenIds: TokenId[];
|
|
152
152
|
})[], Error, ({
|
|
153
153
|
symbol: string;
|
|
154
|
-
status: _0xsequence_metadata3.ResourceStatus;
|
|
155
154
|
type: string;
|
|
156
155
|
name: string;
|
|
156
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
157
157
|
updatedAt: string;
|
|
158
158
|
decimals?: number | undefined;
|
|
159
159
|
source: string;
|
|
@@ -179,9 +179,9 @@ declare function listCollectionsQueryOptions(params: WithOptionalParams<WithRequ
|
|
|
179
179
|
filterSettings?: CollectionFilterSettings;
|
|
180
180
|
} | {
|
|
181
181
|
symbol: string;
|
|
182
|
-
status: _0xsequence_metadata3.ResourceStatus;
|
|
183
182
|
type: string;
|
|
184
183
|
name: string;
|
|
184
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
185
185
|
updatedAt: string;
|
|
186
186
|
decimals?: number | undefined;
|
|
187
187
|
source: string;
|
|
@@ -204,11 +204,11 @@ declare function listCollectionsQueryOptions(params: WithOptionalParams<WithRequ
|
|
|
204
204
|
tokenIds: TokenId[];
|
|
205
205
|
customTokenIds: TokenId[];
|
|
206
206
|
})[], readonly unknown[]>, "queryFn"> & {
|
|
207
|
-
queryFn?:
|
|
207
|
+
queryFn?: _tanstack_react_query136.QueryFunction<({
|
|
208
208
|
symbol: string;
|
|
209
|
-
status: _0xsequence_metadata3.ResourceStatus;
|
|
210
209
|
type: string;
|
|
211
210
|
name: string;
|
|
211
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
212
212
|
updatedAt: string;
|
|
213
213
|
decimals?: number | undefined;
|
|
214
214
|
source: string;
|
|
@@ -234,9 +234,9 @@ declare function listCollectionsQueryOptions(params: WithOptionalParams<WithRequ
|
|
|
234
234
|
filterSettings?: CollectionFilterSettings;
|
|
235
235
|
} | {
|
|
236
236
|
symbol: string;
|
|
237
|
-
status: _0xsequence_metadata3.ResourceStatus;
|
|
238
237
|
type: string;
|
|
239
238
|
name: string;
|
|
239
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
240
240
|
updatedAt: string;
|
|
241
241
|
decimals?: number | undefined;
|
|
242
242
|
source: string;
|
|
@@ -263,9 +263,9 @@ declare function listCollectionsQueryOptions(params: WithOptionalParams<WithRequ
|
|
|
263
263
|
queryKey: readonly unknown[] & {
|
|
264
264
|
[dataTagSymbol]: ({
|
|
265
265
|
symbol: string;
|
|
266
|
-
status: _0xsequence_metadata3.ResourceStatus;
|
|
267
266
|
type: string;
|
|
268
267
|
name: string;
|
|
268
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
269
269
|
updatedAt: string;
|
|
270
270
|
decimals?: number | undefined;
|
|
271
271
|
source: string;
|
|
@@ -291,9 +291,9 @@ declare function listCollectionsQueryOptions(params: WithOptionalParams<WithRequ
|
|
|
291
291
|
filterSettings?: CollectionFilterSettings;
|
|
292
292
|
} | {
|
|
293
293
|
symbol: string;
|
|
294
|
-
status: _0xsequence_metadata3.ResourceStatus;
|
|
295
294
|
type: string;
|
|
296
295
|
name: string;
|
|
296
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
297
297
|
updatedAt: string;
|
|
298
298
|
decimals?: number | undefined;
|
|
299
299
|
source: string;
|
|
@@ -324,11 +324,11 @@ declare const listCollectionsOptions: ({
|
|
|
324
324
|
marketplaceConfig,
|
|
325
325
|
config,
|
|
326
326
|
query
|
|
327
|
-
}: ListCollectionsQueryOptions) =>
|
|
327
|
+
}: ListCollectionsQueryOptions) => _tanstack_react_query136.UseQueryOptions<({
|
|
328
328
|
symbol: string;
|
|
329
|
-
status: _0xsequence_metadata3.ResourceStatus;
|
|
330
329
|
type: string;
|
|
331
330
|
name: string;
|
|
331
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
332
332
|
updatedAt: string;
|
|
333
333
|
decimals?: number | undefined;
|
|
334
334
|
source: string;
|
|
@@ -354,9 +354,9 @@ declare const listCollectionsOptions: ({
|
|
|
354
354
|
filterSettings?: CollectionFilterSettings;
|
|
355
355
|
} | {
|
|
356
356
|
symbol: string;
|
|
357
|
-
status: _0xsequence_metadata3.ResourceStatus;
|
|
358
357
|
type: string;
|
|
359
358
|
name: string;
|
|
359
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
360
360
|
updatedAt: string;
|
|
361
361
|
decimals?: number | undefined;
|
|
362
362
|
source: string;
|
|
@@ -380,9 +380,9 @@ declare const listCollectionsOptions: ({
|
|
|
380
380
|
customTokenIds: TokenId[];
|
|
381
381
|
})[], Error, ({
|
|
382
382
|
symbol: string;
|
|
383
|
-
status: _0xsequence_metadata3.ResourceStatus;
|
|
384
383
|
type: string;
|
|
385
384
|
name: string;
|
|
385
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
386
386
|
updatedAt: string;
|
|
387
387
|
decimals?: number | undefined;
|
|
388
388
|
source: string;
|
|
@@ -408,9 +408,9 @@ declare const listCollectionsOptions: ({
|
|
|
408
408
|
filterSettings?: CollectionFilterSettings;
|
|
409
409
|
} | {
|
|
410
410
|
symbol: string;
|
|
411
|
-
status: _0xsequence_metadata3.ResourceStatus;
|
|
412
411
|
type: string;
|
|
413
412
|
name: string;
|
|
413
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
414
414
|
updatedAt: string;
|
|
415
415
|
decimals?: number | undefined;
|
|
416
416
|
source: string;
|
|
@@ -439,9 +439,9 @@ declare const listCollectionsOptions: ({
|
|
|
439
439
|
})[]> & {
|
|
440
440
|
initialData?: ({
|
|
441
441
|
symbol: string;
|
|
442
|
-
status: _0xsequence_metadata3.ResourceStatus;
|
|
443
442
|
type: string;
|
|
444
443
|
name: string;
|
|
444
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
445
445
|
updatedAt: string;
|
|
446
446
|
decimals?: number | undefined;
|
|
447
447
|
source: string;
|
|
@@ -467,9 +467,9 @@ declare const listCollectionsOptions: ({
|
|
|
467
467
|
filterSettings?: CollectionFilterSettings;
|
|
468
468
|
} | {
|
|
469
469
|
symbol: string;
|
|
470
|
-
status: _0xsequence_metadata3.ResourceStatus;
|
|
471
470
|
type: string;
|
|
472
471
|
name: string;
|
|
472
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
473
473
|
updatedAt: string;
|
|
474
474
|
decimals?: number | undefined;
|
|
475
475
|
source: string;
|
|
@@ -491,11 +491,11 @@ declare const listCollectionsOptions: ({
|
|
|
491
491
|
saleAddress: Address$1;
|
|
492
492
|
tokenIds: TokenId[];
|
|
493
493
|
customTokenIds: TokenId[];
|
|
494
|
-
})[] |
|
|
494
|
+
})[] | _tanstack_react_query136.InitialDataFunction<({
|
|
495
495
|
symbol: string;
|
|
496
|
-
status: _0xsequence_metadata3.ResourceStatus;
|
|
497
496
|
type: string;
|
|
498
497
|
name: string;
|
|
498
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
499
499
|
updatedAt: string;
|
|
500
500
|
decimals?: number | undefined;
|
|
501
501
|
source: string;
|
|
@@ -521,9 +521,9 @@ declare const listCollectionsOptions: ({
|
|
|
521
521
|
filterSettings?: CollectionFilterSettings;
|
|
522
522
|
} | {
|
|
523
523
|
symbol: string;
|
|
524
|
-
status: _0xsequence_metadata3.ResourceStatus;
|
|
525
524
|
type: string;
|
|
526
525
|
name: string;
|
|
526
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
527
527
|
updatedAt: string;
|
|
528
528
|
decimals?: number | undefined;
|
|
529
529
|
source: string;
|
|
@@ -554,9 +554,9 @@ declare const listCollectionsOptions: ({
|
|
|
554
554
|
})[] & {
|
|
555
555
|
[dataTagSymbol]: ({
|
|
556
556
|
symbol: string;
|
|
557
|
-
status: _0xsequence_metadata3.ResourceStatus;
|
|
558
557
|
type: string;
|
|
559
558
|
name: string;
|
|
559
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
560
560
|
updatedAt: string;
|
|
561
561
|
decimals?: number | undefined;
|
|
562
562
|
source: string;
|
|
@@ -582,9 +582,9 @@ declare const listCollectionsOptions: ({
|
|
|
582
582
|
filterSettings?: CollectionFilterSettings;
|
|
583
583
|
} | {
|
|
584
584
|
symbol: string;
|
|
585
|
-
status: _0xsequence_metadata3.ResourceStatus;
|
|
586
585
|
type: string;
|
|
587
586
|
name: string;
|
|
587
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
588
588
|
updatedAt: string;
|
|
589
589
|
decimals?: number | undefined;
|
|
590
590
|
source: string;
|
|
@@ -621,8 +621,8 @@ declare function getCountOfFilteredOrdersQueryKey(params: GetCountOfFilteredOrde
|
|
|
621
621
|
readonly side: OrderSide | undefined;
|
|
622
622
|
readonly filter: OrdersFilter | undefined;
|
|
623
623
|
}];
|
|
624
|
-
declare function getCountOfFilteredOrdersQueryOptions(params: WithOptionalParams<WithRequired<GetCountOfFilteredOrdersQueryOptions, 'chainId' | 'collectionAddress' | 'side' | 'config'>>):
|
|
625
|
-
queryFn?:
|
|
624
|
+
declare function getCountOfFilteredOrdersQueryOptions(params: WithOptionalParams<WithRequired<GetCountOfFilteredOrdersQueryOptions, 'chainId' | 'collectionAddress' | 'side' | 'config'>>): _tanstack_react_query136.OmitKeyof<_tanstack_react_query136.UseQueryOptions<number, Error, number, readonly unknown[]>, "queryFn"> & {
|
|
625
|
+
queryFn?: _tanstack_react_query136.QueryFunction<number, readonly unknown[], never> | undefined;
|
|
626
626
|
} & {
|
|
627
627
|
queryKey: readonly unknown[] & {
|
|
628
628
|
[dataTagSymbol]: number;
|
|
@@ -641,8 +641,8 @@ declare function getFloorOrderQueryKey(params: FloorOrderQueryOptions): readonly
|
|
|
641
641
|
readonly collectionAddress: "" | `0x${string}`;
|
|
642
642
|
readonly filter: CollectiblesFilter | undefined;
|
|
643
643
|
}];
|
|
644
|
-
declare function floorOrderQueryOptions(params: WithOptionalParams<WithRequired<FloorOrderQueryOptions, 'chainId' | 'collectionAddress' | 'config'>>):
|
|
645
|
-
queryFn?:
|
|
644
|
+
declare function floorOrderQueryOptions(params: WithOptionalParams<WithRequired<FloorOrderQueryOptions, 'chainId' | 'collectionAddress' | 'config'>>): _tanstack_react_query136.OmitKeyof<_tanstack_react_query136.UseQueryOptions<CollectibleOrder, Error, CollectibleOrder, readonly unknown[]>, "queryFn"> & {
|
|
645
|
+
queryFn?: _tanstack_react_query136.QueryFunction<CollectibleOrder, readonly unknown[], never> | undefined;
|
|
646
646
|
} & {
|
|
647
647
|
queryKey: readonly unknown[] & {
|
|
648
648
|
[dataTagSymbol]: CollectibleOrder;
|
|
@@ -659,11 +659,11 @@ declare function getListItemsOrdersForCollectionQueryKey(params: ListItemsOrders
|
|
|
659
659
|
side: OrderSide | undefined;
|
|
660
660
|
filter: OrdersFilter | undefined;
|
|
661
661
|
}];
|
|
662
|
-
declare function listItemsOrdersForCollectionQueryOptions(params: WithOptionalParams<WithRequired<ListItemsOrdersForCollectionQueryOptions, 'chainId' | 'collectionAddress' | 'side' | 'config'>>):
|
|
663
|
-
queryFn?:
|
|
662
|
+
declare function listItemsOrdersForCollectionQueryOptions(params: WithOptionalParams<WithRequired<ListItemsOrdersForCollectionQueryOptions, 'chainId' | 'collectionAddress' | 'side' | 'config'>>): _tanstack_react_query136.OmitKeyof<_tanstack_react_query136.UseInfiniteQueryOptions<ListOrdersWithCollectiblesResponse, Error, _tanstack_react_query136.InfiniteData<ListOrdersWithCollectiblesResponse, unknown>, readonly unknown[], Page$2>, "queryFn"> & {
|
|
663
|
+
queryFn?: _tanstack_react_query136.QueryFunction<ListOrdersWithCollectiblesResponse, readonly unknown[], Page$2> | undefined;
|
|
664
664
|
} & {
|
|
665
665
|
queryKey: readonly unknown[] & {
|
|
666
|
-
[dataTagSymbol]:
|
|
666
|
+
[dataTagSymbol]: _tanstack_react_query136.InfiniteData<ListOrdersWithCollectiblesResponse, unknown>;
|
|
667
667
|
[dataTagErrorSymbol]: Error;
|
|
668
668
|
};
|
|
669
669
|
};
|
|
@@ -680,8 +680,8 @@ declare function getCountItemsOrdersForCollectionQueryKey(params: CountItemsOrde
|
|
|
680
680
|
readonly collectionAddress: "" | `0x${string}`;
|
|
681
681
|
readonly side: OrderSide | undefined;
|
|
682
682
|
}];
|
|
683
|
-
declare function countItemsOrdersForCollectionQueryOptions(params: WithOptionalParams<WithRequired<CountItemsOrdersForCollectionQueryOptions, 'chainId' | 'collectionAddress' | 'side' | 'config'>>):
|
|
684
|
-
queryFn?:
|
|
683
|
+
declare function countItemsOrdersForCollectionQueryOptions(params: WithOptionalParams<WithRequired<CountItemsOrdersForCollectionQueryOptions, 'chainId' | 'collectionAddress' | 'side' | 'config'>>): _tanstack_react_query136.OmitKeyof<_tanstack_react_query136.UseQueryOptions<number, Error, number, readonly unknown[]>, "queryFn"> & {
|
|
684
|
+
queryFn?: _tanstack_react_query136.QueryFunction<number, readonly unknown[], never> | undefined;
|
|
685
685
|
} & {
|
|
686
686
|
queryKey: readonly unknown[] & {
|
|
687
687
|
[dataTagSymbol]: number;
|
|
@@ -700,8 +700,8 @@ type ListItemsOrdersForCollectionPaginatedQueryOptions = SdkQueryParams<FetchLis
|
|
|
700
700
|
*/
|
|
701
701
|
declare function fetchListItemsOrdersForCollectionPaginated(params: WithRequired<ListItemsOrdersForCollectionPaginatedQueryOptions, 'chainId' | 'collectionAddress' | 'side' | 'config'>): Promise<ListOrdersWithCollectiblesResponse>;
|
|
702
702
|
declare function getListItemsOrdersForCollectionPaginatedQueryKey(params: ListItemsOrdersForCollectionPaginatedQueryOptions): readonly ["order", "collection-items-paginated", ListItemsOrdersForCollectionPaginatedQueryOptions];
|
|
703
|
-
declare function listItemsOrdersForCollectionPaginatedQueryOptions(params: WithOptionalParams<WithRequired<ListItemsOrdersForCollectionPaginatedQueryOptions, 'collectionAddress' | 'chainId' | 'config' | 'side'>>):
|
|
704
|
-
queryFn?:
|
|
703
|
+
declare function listItemsOrdersForCollectionPaginatedQueryOptions(params: WithOptionalParams<WithRequired<ListItemsOrdersForCollectionPaginatedQueryOptions, 'collectionAddress' | 'chainId' | 'config' | 'side'>>): _tanstack_react_query136.OmitKeyof<_tanstack_react_query136.UseQueryOptions<ListOrdersWithCollectiblesResponse, Error, ListOrdersWithCollectiblesResponse, readonly unknown[]>, "queryFn"> & {
|
|
704
|
+
queryFn?: _tanstack_react_query136.QueryFunction<ListOrdersWithCollectiblesResponse, readonly unknown[], never> | undefined;
|
|
705
705
|
} & {
|
|
706
706
|
queryKey: readonly unknown[] & {
|
|
707
707
|
[dataTagSymbol]: ListOrdersWithCollectiblesResponse;
|
|
@@ -720,8 +720,8 @@ declare function getCollectionQueryKey(params: CollectionQueryOptions): readonly
|
|
|
720
720
|
chainId: number | undefined;
|
|
721
721
|
contractAddress: `0x${string}` | undefined;
|
|
722
722
|
}];
|
|
723
|
-
declare function collectionQueryOptions(params: WithOptionalParams<WithRequired<CollectionQueryOptions, 'chainId' | 'collectionAddress' | 'config'>>):
|
|
724
|
-
queryFn?:
|
|
723
|
+
declare function collectionQueryOptions(params: WithOptionalParams<WithRequired<CollectionQueryOptions, 'chainId' | 'collectionAddress' | 'config'>>): _tanstack_react_query136.OmitKeyof<_tanstack_react_query136.UseQueryOptions<ContractInfo$1$1, Error, ContractInfo$1$1, readonly unknown[]>, "queryFn"> & {
|
|
724
|
+
queryFn?: _tanstack_react_query136.QueryFunction<ContractInfo$1$1, readonly unknown[], never> | undefined;
|
|
725
725
|
} & {
|
|
726
726
|
queryKey: readonly unknown[] & {
|
|
727
727
|
[dataTagSymbol]: ContractInfo$1$1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as GetPrimarySaleCheckoutOptionsRequest, It as Address$1, Wt as CheckoutOptionsSalesContractResponse, r as CheckoutOptionsItem } from "./index2.js";
|
|
2
2
|
import { W as SdkQueryParams, X as WithRequired, it as WithOptionalParams } from "./create-config.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _tanstack_react_query213 from "@tanstack/react-query";
|
|
4
4
|
|
|
5
5
|
//#region src/react/queries/checkout/primary-sale-checkout-options.d.ts
|
|
6
6
|
type FetchPrimarySaleCheckoutOptionsParams = GetPrimarySaleCheckoutOptionsRequest;
|
|
@@ -16,8 +16,8 @@ declare function getPrimarySaleCheckoutOptionsQueryKey(params: PrimarySaleChecko
|
|
|
16
16
|
collectionAddress: Address$1;
|
|
17
17
|
items: ReadonlyArray<CheckoutOptionsItem>;
|
|
18
18
|
}];
|
|
19
|
-
declare function primarySaleCheckoutOptionsQueryOptions(params: WithOptionalParams<WithRequired<PrimarySaleCheckoutOptionsQueryOptions, 'chainId' | 'walletAddress' | 'contractAddress' | 'collectionAddress' | 'items' | 'config'>>):
|
|
20
|
-
queryFn?:
|
|
19
|
+
declare function primarySaleCheckoutOptionsQueryOptions(params: WithOptionalParams<WithRequired<PrimarySaleCheckoutOptionsQueryOptions, 'chainId' | 'walletAddress' | 'contractAddress' | 'collectionAddress' | 'items' | 'config'>>): _tanstack_react_query213.OmitKeyof<_tanstack_react_query213.UseQueryOptions<CheckoutOptionsSalesContractResponse, Error, CheckoutOptionsSalesContractResponse, readonly unknown[]>, "queryFn"> & {
|
|
20
|
+
queryFn?: _tanstack_react_query213.QueryFunction<CheckoutOptionsSalesContractResponse, readonly unknown[], never> | undefined;
|
|
21
21
|
} & {
|
|
22
22
|
queryKey: readonly unknown[] & {
|
|
23
23
|
[dataTagSymbol]: CheckoutOptionsSalesContractResponse;
|
package/dist/quantityInput.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { f as cn$1 } from "./utils.js";
|
|
4
4
|
import { useState } from "react";
|
|
5
5
|
import { AddIcon, Field, FieldLabel, IconButton, NumericInput, SubtractIcon } from "@0xsequence/design-system";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
package/dist/ranges.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dt as GetTokenIDRangesResponse, Et as GetTokenIDRangesRequest, It as Address$1, Mt as Page$1, Tt as GetTokenBalancesSdkRequest, _t as GetTokenMetadataSdkArgs, bt as TokenMetadata$1, jt as MetadataOptions$1, pn as Page$2, vt as SearchTokenMetadataReturn$1, wt as GetTokenBalancesResponse, yt as SearchTokenMetadataSdkArgs } from "./index2.js";
|
|
2
2
|
import { B as Optional, U as SdkInfiniteQueryParams, W as SdkQueryParams, X as WithRequired, it as WithOptionalParams, rt as WithOptionalInfiniteParams } from "./create-config.js";
|
|
3
3
|
import * as _0xsequence_metadata0 from "@0xsequence/metadata";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _tanstack_react_query59 from "@tanstack/react-query";
|
|
5
5
|
|
|
6
6
|
//#region src/react/queries/token/balances.d.ts
|
|
7
7
|
type FetchBalancesParams = GetTokenBalancesSdkRequest & {
|
|
@@ -28,11 +28,11 @@ declare function getListBalancesQueryKey(params: ListBalancesQueryOptions): read
|
|
|
28
28
|
* @param params - The query parameters including config
|
|
29
29
|
* @returns Query options configuration
|
|
30
30
|
*/
|
|
31
|
-
declare function listBalancesOptions(params: WithOptionalInfiniteParams<WithRequired<ListBalancesQueryOptions, 'chainId' | 'accountAddress' | 'config'>>):
|
|
32
|
-
queryFn?:
|
|
31
|
+
declare function listBalancesOptions(params: WithOptionalInfiniteParams<WithRequired<ListBalancesQueryOptions, 'chainId' | 'accountAddress' | 'config'>>): _tanstack_react_query59.OmitKeyof<_tanstack_react_query59.UseInfiniteQueryOptions<GetTokenBalancesResponse, Error, _tanstack_react_query59.InfiniteData<GetTokenBalancesResponse, unknown>, readonly unknown[], Page$2>, "queryFn"> & {
|
|
32
|
+
queryFn?: _tanstack_react_query59.QueryFunction<GetTokenBalancesResponse, readonly unknown[], Page$2> | undefined;
|
|
33
33
|
} & {
|
|
34
34
|
queryKey: readonly unknown[] & {
|
|
35
|
-
[dataTagSymbol]:
|
|
35
|
+
[dataTagSymbol]: _tanstack_react_query59.InfiniteData<GetTokenBalancesResponse, unknown>;
|
|
36
36
|
[dataTagErrorSymbol]: Error;
|
|
37
37
|
};
|
|
38
38
|
};
|
|
@@ -49,8 +49,8 @@ declare function getListTokenMetadataQueryKey(params: ListTokenMetadataQueryOpti
|
|
|
49
49
|
contractAddress: `0x${string}` | undefined;
|
|
50
50
|
tokenIds: bigint[] | undefined;
|
|
51
51
|
}];
|
|
52
|
-
declare function listTokenMetadataQueryOptions(params: WithOptionalParams<WithRequired<ListTokenMetadataQueryOptions, 'chainId' | 'contractAddress' | 'tokenIds' | 'config'>>):
|
|
53
|
-
queryFn?:
|
|
52
|
+
declare function listTokenMetadataQueryOptions(params: WithOptionalParams<WithRequired<ListTokenMetadataQueryOptions, 'chainId' | 'contractAddress' | 'tokenIds' | 'config'>>): _tanstack_react_query59.OmitKeyof<_tanstack_react_query59.UseQueryOptions<TokenMetadata$1[], Error, TokenMetadata$1[], readonly unknown[]>, "queryFn"> & {
|
|
53
|
+
queryFn?: _tanstack_react_query59.QueryFunction<TokenMetadata$1[], readonly unknown[], never> | undefined;
|
|
54
54
|
} & {
|
|
55
55
|
queryKey: readonly unknown[] & {
|
|
56
56
|
[dataTagSymbol]: TokenMetadata$1[];
|
|
@@ -70,7 +70,7 @@ declare function getSearchTokenMetadataQueryKey(params: SearchTokenMetadataQuery
|
|
|
70
70
|
collectionAddress: string;
|
|
71
71
|
filter: _0xsequence_metadata0.Filter | undefined;
|
|
72
72
|
}];
|
|
73
|
-
declare function searchTokenMetadataQueryOptions(params: SearchTokenMetadataQueryOptions):
|
|
73
|
+
declare function searchTokenMetadataQueryOptions(params: SearchTokenMetadataQueryOptions): _tanstack_react_query59.OmitKeyof<_tanstack_react_query59.UseInfiniteQueryOptions<SearchTokenMetadataReturn$1, Error, _tanstack_react_query59.InfiniteData<SearchTokenMetadataReturn$1, unknown>, readonly ["token", string, {
|
|
74
74
|
chainId: number;
|
|
75
75
|
collectionAddress: string;
|
|
76
76
|
filter: _0xsequence_metadata0.Filter | undefined;
|
|
@@ -78,7 +78,7 @@ declare function searchTokenMetadataQueryOptions(params: SearchTokenMetadataQuer
|
|
|
78
78
|
page: number;
|
|
79
79
|
pageSize: number;
|
|
80
80
|
}>, "queryFn"> & {
|
|
81
|
-
queryFn?:
|
|
81
|
+
queryFn?: _tanstack_react_query59.QueryFunction<SearchTokenMetadataReturn$1, readonly ["token", string, {
|
|
82
82
|
chainId: number;
|
|
83
83
|
collectionAddress: string;
|
|
84
84
|
filter: _0xsequence_metadata0.Filter | undefined;
|
|
@@ -92,7 +92,7 @@ declare function searchTokenMetadataQueryOptions(params: SearchTokenMetadataQuer
|
|
|
92
92
|
collectionAddress: string;
|
|
93
93
|
filter: _0xsequence_metadata0.Filter | undefined;
|
|
94
94
|
}] & {
|
|
95
|
-
[dataTagSymbol]:
|
|
95
|
+
[dataTagSymbol]: _tanstack_react_query59.InfiniteData<SearchTokenMetadataReturn$1, unknown>;
|
|
96
96
|
[dataTagErrorSymbol]: Error;
|
|
97
97
|
};
|
|
98
98
|
};
|
|
@@ -112,8 +112,8 @@ declare function getTokenRangesQueryKey(params: GetTokenRangesQueryOptions): rea
|
|
|
112
112
|
chainId: number | undefined;
|
|
113
113
|
collectionAddress: `0x${string}` | undefined;
|
|
114
114
|
}];
|
|
115
|
-
declare function getTokenRangesQueryOptions(params: WithOptionalParams<WithRequired<GetTokenRangesQueryOptions, 'chainId' | 'collectionAddress' | 'config'>>):
|
|
116
|
-
queryFn?:
|
|
115
|
+
declare function getTokenRangesQueryOptions(params: WithOptionalParams<WithRequired<GetTokenRangesQueryOptions, 'chainId' | 'collectionAddress' | 'config'>>): _tanstack_react_query59.OmitKeyof<_tanstack_react_query59.UseQueryOptions<GetTokenIDRangesResponse, Error, GetTokenIDRangesResponse, readonly unknown[]>, "queryFn"> & {
|
|
116
|
+
queryFn?: _tanstack_react_query59.QueryFunction<GetTokenIDRangesResponse, readonly unknown[], never> | undefined;
|
|
117
117
|
} & {
|
|
118
118
|
queryKey: readonly unknown[] & {
|
|
119
119
|
[dataTagSymbol]: GetTokenIDRangesResponse;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as OrderData, A as ListCollectibleListingsResponse, B as ListOrdersWithCollectiblesResponse, C as GetFloorOrderRequest, Cn as TransactionCrypto, Gt as Collectible, H as ListPrimarySaleItemsResponse, I as ListListingsForCollectibleResponse, Jt as CollectionStatus, Kt as CollectiblesFilter, L as ListOffersForCollectibleRequest, M as ListCollectiblesRequest, N as ListCollectiblesResponse, P as ListCurrenciesRequest, Q as Order, Qt as GetCollectibleHighestOfferResponse, R as ListOffersForCollectibleResponse, S as GetCountOfPrimarySaleItemsRequest, T as GetLowestPriceListingForCollectibleRequest, Tn as WalletKind, Ut as CheckoutOptions, V as ListPrimarySaleItemsRequest, Vt as AdditionalFee, Xt as ExecuteType, Yt as CurrencyStatus, Zt as GetCollectibleHighestOfferRequest, _n as PropertyFilter, a as CollectibleOrder, an as MarketplaceKind, at as Step, bn as SortOrder, c as ContractType, cn as OrderFilter, d as GenerateCancelTransactionRequest, dn as OrderbookKind, et as PrimarySaleItem, f as GenerateListingTransactionRequest, gn as PrimarySaleItemsFilter, hn as PriceFilter, i as CheckoutOptionsMarketplaceRequest, in as ListCollectibleListingsRequest, it as SignatureStep, j as ListCollectibleOffersResponse, l as CreateReq, ln as OrderSide, lt as isSignatureStep, m as GenerateSellTransactionRequest, mn as PostRequest, nn as GetCountOfOffersForCollectibleResponse, on as MetadataStatus, ot as TransactionStep, p as GenerateOfferTransactionRequest, pn as Page, qt as Collection, r as CheckoutOptionsItem, rn as GetCountOfPrimarySaleItemsResponse, rt as Signature, sn as OfferType, t as ApprovalStep, tn as GetCountOfListingsForCollectibleResponse, u as Currency, un as OrderStatus, ut as isTransactionStep, vn as PropertyType, w as GetHighestPriceOfferForCollectibleRequest, wn as TransactionOnRampProvider, xn as StepType, yn as SortBy, z as ListOrdersWithCollectiblesRequest } from "../../index2.js";
|
|
2
2
|
import { $ as EnsureAllRequiredKeys, A as serializeBigInts, B as Optional, Ct as marketplaceApiURL, D as getWaasConnectors, E as getEcosystemConnector, Et as getQueryClient, F as CollectableId, G as SellInput, H as QueryKeyArgs, I as CollectionType, J as TransactionType, K as Transaction, L as HookParamsFromApiRequest, M as ApiArgs, N as BuyInput, P as CancelInput, Q as BaseQueryParams, R as ListingInput, St as indexerURL, T as getConnectors, Tt as SequenceMarketplace, U as SdkInfiniteQueryParams, V as QueryArg, W as SdkQueryParams, X as WithRequired, Y as ValuesOptional, Z as BaseInfiniteQueryParams, _t as getSequenceApiClient, at as buildInfiniteQueryOptions, bt as getSequenceNodeGatewayUrl, dt as getProviderEl, et as InfiniteQueryBuilderConfig, ft as DEFAULT_NETWORK, gt as getMetadataClient, ht as getMarketplaceClient, it as WithOptionalParams, j as AllRequired, k as clamp, kt as BuilderAPI, mt as getIndexerClient, n as getWagmiChainsAndTransports, nt as RequiredKeys, ot as buildQueryOptions, pt as getBuilderClient, q as TransactionSteps, rt as WithOptionalInfiniteParams, st as requiredParamsFor, t as createWagmiConfig, tt as QueryBuilderConfig, ut as PROVIDER_ID, vt as getSequenceApiUrl, wt as sequenceApiUrl, xt as getTrailsApiUrl, yt as getSequenceIndexerUrl, z as OfferInput } from "../../create-config.js";
|
|
3
3
|
import "../../xstate-store.cjs.js";
|
|
4
4
|
import "../../index3.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as
|
|
1
|
+
import { C as TransactionOnRampProvider, S as TransactionCrypto, _ as OrderStatus, b as SortOrder, c as isSignatureStep, d as CurrencyStatus, f as ExecuteType, g as OrderSide, h as OfferType, l as isTransactionStep, m as MetadataStatus, p as MarketplaceKind, t as ContractType, u as CollectionStatus, v as OrderbookKind, w as WalletKind, x as StepType, y as PropertyType } from "../../dist.js";
|
|
2
2
|
import { t as BuilderAPI } from "../../builder-api.js";
|
|
3
3
|
import { a as getWaasConnectors, i as getEcosystemConnector, n as getWagmiChainsAndTransports, o as DEFAULT_NETWORK, r as getConnectors, t as createWagmiConfig } from "../../create-config.js";
|
|
4
4
|
import { a as getSequenceApiClient, c as getSequenceNodeGatewayUrl, d as marketplaceApiURL, f as sequenceApiUrl, g as getQueryClient, h as serializeBigInts, i as getMetadataClient, l as getTrailsApiUrl, m as clamp, n as getIndexerClient, o as getSequenceApiUrl, p as SequenceMarketplace, r as getMarketplaceClient, s as getSequenceIndexerUrl, t as getBuilderClient, u as indexerURL } from "../../api.js";
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as ListPrimarySaleItemsResponse, O as GetPrimarySaleItemResponse, V as ListPrimarySaleItemsRequest, o as CollectiblePrimarySaleItem } from "../index2.js";
|
|
2
2
|
import { Dt as fetchMarketplaceConfig, Et as getQueryClient, Ot as marketplaceConfigOptions, a as CheckoutMode, ct as StandardInfiniteQueryOptions, lt as StandardQueryOptions, n as getWagmiChainsAndTransports, t as createWagmiConfig } from "../create-config.js";
|
|
3
3
|
import "../xstate-store.cjs.js";
|
|
4
4
|
import "../index3.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as ListPrimarySaleItemsResponse, O as GetPrimarySaleItemResponse, V as ListPrimarySaleItemsRequest, o as CollectiblePrimarySaleItem } from "../../../index2.js";
|
|
2
2
|
import "../../../create-config.js";
|
|
3
3
|
import "../../../xstate-store.cjs.js";
|
|
4
4
|
import "../../../index3.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as ListPrimarySaleItemsResponse, O as GetPrimarySaleItemResponse, V as ListPrimarySaleItemsRequest, o as CollectiblePrimarySaleItem } from "../../index2.js";
|
|
2
2
|
import { Dt as fetchMarketplaceConfig, Ot as marketplaceConfigOptions } from "../../create-config.js";
|
|
3
3
|
import "../../xstate-store.cjs.js";
|
|
4
4
|
import "../../index3.js";
|