@0xsequence/marketplace-sdk 0.0.1
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/README.md +8 -0
- package/dist/chunk-3TYUQEFM.js +115 -0
- package/dist/chunk-3TYUQEFM.js.map +1 -0
- package/dist/chunk-4ESPWOBV.js +13 -0
- package/dist/chunk-4ESPWOBV.js.map +1 -0
- package/dist/chunk-4PFMUVE4.js +78 -0
- package/dist/chunk-4PFMUVE4.js.map +1 -0
- package/dist/chunk-5WRI5ZAA.js +31 -0
- package/dist/chunk-5WRI5ZAA.js.map +1 -0
- package/dist/chunk-6S4FYXP6.js +43 -0
- package/dist/chunk-6S4FYXP6.js.map +1 -0
- package/dist/chunk-7OO74L2K.js +41 -0
- package/dist/chunk-7OO74L2K.js.map +1 -0
- package/dist/chunk-BBB3XUB4.js +213 -0
- package/dist/chunk-BBB3XUB4.js.map +1 -0
- package/dist/chunk-BCNFYVAL.js +1 -0
- package/dist/chunk-BCNFYVAL.js.map +1 -0
- package/dist/chunk-D7QQP6MS.js +2 -0
- package/dist/chunk-D7QQP6MS.js.map +1 -0
- package/dist/chunk-DBFOPEV6.js +23 -0
- package/dist/chunk-DBFOPEV6.js.map +1 -0
- package/dist/chunk-EDTC7UES.js +176 -0
- package/dist/chunk-EDTC7UES.js.map +1 -0
- package/dist/chunk-G3D572BT.js +249 -0
- package/dist/chunk-G3D572BT.js.map +1 -0
- package/dist/chunk-HGBEC3WX.js +1285 -0
- package/dist/chunk-HGBEC3WX.js.map +1 -0
- package/dist/chunk-MJ4YU7RW.js +2 -0
- package/dist/chunk-MJ4YU7RW.js.map +1 -0
- package/dist/chunk-NJ2GXOPW.js +2 -0
- package/dist/chunk-NJ2GXOPW.js.map +1 -0
- package/dist/chunk-O5JXKTWP.js +1029 -0
- package/dist/chunk-O5JXKTWP.js.map +1 -0
- package/dist/chunk-O642NH7U.js +15 -0
- package/dist/chunk-O642NH7U.js.map +1 -0
- package/dist/chunk-QOJXWHRZ.js +71 -0
- package/dist/chunk-QOJXWHRZ.js.map +1 -0
- package/dist/chunk-QVFMD6S2.js +21 -0
- package/dist/chunk-QVFMD6S2.js.map +1 -0
- package/dist/chunk-RNUHUVLC.js +214 -0
- package/dist/chunk-RNUHUVLC.js.map +1 -0
- package/dist/chunk-SM7V6ZWI.js +2740 -0
- package/dist/chunk-SM7V6ZWI.js.map +1 -0
- package/dist/chunk-STO74F2I.js +14 -0
- package/dist/chunk-STO74F2I.js.map +1 -0
- package/dist/chunk-TZGLKJRF.js +198 -0
- package/dist/chunk-TZGLKJRF.js.map +1 -0
- package/dist/chunk-UYRQ5MJQ.js +1027 -0
- package/dist/chunk-UYRQ5MJQ.js.map +1 -0
- package/dist/chunk-VPGWEMWL.js +162 -0
- package/dist/chunk-VPGWEMWL.js.map +1 -0
- package/dist/chunk-ZE2LNX65.js +394 -0
- package/dist/chunk-ZE2LNX65.js.map +1 -0
- package/dist/create-config-Dz0gCiQ0.d.ts +8 -0
- package/dist/get-query-client-D46hbjk6.d.ts +5 -0
- package/dist/index.css +232 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +76 -0
- package/dist/index.js.map +1 -0
- package/dist/marketplace-config-DZbtyrma.d.ts +57 -0
- package/dist/marketplace.gen-Ceofb9Cs.d.ts +904 -0
- package/dist/react/_internal/api/index.d.ts +51 -0
- package/dist/react/_internal/api/index.js +134 -0
- package/dist/react/_internal/api/index.js.map +1 -0
- package/dist/react/_internal/index.d.ts +22 -0
- package/dist/react/_internal/index.js +150 -0
- package/dist/react/_internal/index.js.map +1 -0
- package/dist/react/_internal/wagmi/index.d.ts +12 -0
- package/dist/react/_internal/wagmi/index.js +12 -0
- package/dist/react/_internal/wagmi/index.js.map +1 -0
- package/dist/react/hooks/index.d.ts +381 -0
- package/dist/react/hooks/index.js +82 -0
- package/dist/react/hooks/index.js.map +1 -0
- package/dist/react/index.css +233 -0
- package/dist/react/index.css.map +1 -0
- package/dist/react/index.d.ts +27 -0
- package/dist/react/index.js +113 -0
- package/dist/react/index.js.map +1 -0
- package/dist/react/ssr/index.d.ts +94 -0
- package/dist/react/ssr/index.js +351 -0
- package/dist/react/ssr/index.js.map +1 -0
- package/dist/react/ui/icons/index.css +25 -0
- package/dist/react/ui/icons/index.css.map +1 -0
- package/dist/react/ui/icons/index.d.ts +2 -0
- package/dist/react/ui/icons/index.js +12 -0
- package/dist/react/ui/icons/index.js.map +1 -0
- package/dist/react/ui/index.css +233 -0
- package/dist/react/ui/index.css.map +1 -0
- package/dist/react/ui/index.d.ts +112 -0
- package/dist/react/ui/index.js +34 -0
- package/dist/react/ui/index.js.map +1 -0
- package/dist/react/ui/modals/_internal/components/actionModal/index.css +44 -0
- package/dist/react/ui/modals/_internal/components/actionModal/index.css.map +1 -0
- package/dist/react/ui/modals/_internal/components/actionModal/index.d.ts +31 -0
- package/dist/react/ui/modals/_internal/components/actionModal/index.js +39 -0
- package/dist/react/ui/modals/_internal/components/actionModal/index.js.map +1 -0
- package/dist/react/ui/styles/index.css +36 -0
- package/dist/react/ui/styles/index.css.map +1 -0
- package/dist/react/ui/styles/index.d.ts +5 -0
- package/dist/react/ui/styles/index.js +13 -0
- package/dist/react/ui/styles/index.js.map +1 -0
- package/dist/sdk-config-xWkdBdrL.d.ts +24 -0
- package/dist/services-BIwQ1C1c.d.ts +20 -0
- package/dist/styles/index.css +233 -0
- package/dist/styles/index.css.map +1 -0
- package/dist/styles/index.d.ts +58 -0
- package/dist/styles/index.js +5019 -0
- package/dist/styles/index.js.map +1 -0
- package/dist/styles.css-BVaTR5nO.d.ts +3 -0
- package/dist/types/index.d.ts +12 -0
- package/dist/types/index.js +39 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types-BrAQ8-w4.d.ts +12 -0
- package/dist/utils/abi/abi/standard/index.d.ts +25 -0
- package/dist/utils/abi/abi/standard/index.js +8 -0
- package/dist/utils/abi/abi/standard/index.js.map +1 -0
- package/dist/utils/abi/abi/token/index.d.ts +1125 -0
- package/dist/utils/abi/abi/token/index.js +13 -0
- package/dist/utils/abi/abi/token/index.js.map +1 -0
- package/dist/utils/abi/clients/index.d.ts +27 -0
- package/dist/utils/abi/clients/index.js +13 -0
- package/dist/utils/abi/clients/index.js.map +1 -0
- package/dist/utils/index.d.ts +23 -0
- package/dist/utils/index.js +37 -0
- package/dist/utils/index.js.map +1 -0
- package/package.json +74 -0
- package/src/consts.ts +2 -0
- package/src/index.ts +3 -0
- package/src/react/_internal/api/get-query-client.ts +32 -0
- package/src/react/_internal/api/index.ts +5 -0
- package/src/react/_internal/api/marketplace-api.ts +31 -0
- package/src/react/_internal/api/marketplace.gen.ts +1911 -0
- package/src/react/_internal/api/query-keys.ts +61 -0
- package/src/react/_internal/api/services.ts +101 -0
- package/src/react/_internal/consts.ts +1 -0
- package/src/react/_internal/get-provider.ts +6 -0
- package/src/react/_internal/index.ts +5 -0
- package/src/react/_internal/types.ts +13 -0
- package/src/react/_internal/wagmi/create-config.ts +62 -0
- package/src/react/_internal/wagmi/embedded.ts +87 -0
- package/src/react/_internal/wagmi/index.ts +3 -0
- package/src/react/_internal/wagmi/universal.ts +82 -0
- package/src/react/hooks/index.ts +17 -0
- package/src/react/hooks/options/marketplaceConfigOptions.ts +62 -0
- package/src/react/hooks/useBalanceOfCollectible.tsx +51 -0
- package/src/react/hooks/useCollectible.tsx +47 -0
- package/src/react/hooks/useCollection.tsx +42 -0
- package/src/react/hooks/useCollectionCounts.tsx +61 -0
- package/src/react/hooks/useConfig.tsx +15 -0
- package/src/react/hooks/useCurrencies.tsx +76 -0
- package/src/react/hooks/useFilters.tsx +39 -0
- package/src/react/hooks/useFloorOrder.tsx +28 -0
- package/src/react/hooks/useGenerateListingTransaction.tsx +63 -0
- package/src/react/hooks/useGenerateOfferTransaction.tsx +60 -0
- package/src/react/hooks/useGenerateSellTransaction.tsx +43 -0
- package/src/react/hooks/useHighestOffer.tsx +46 -0
- package/src/react/hooks/useListBalances.tsx +56 -0
- package/src/react/hooks/useListCollectibles.tsx +54 -0
- package/src/react/hooks/useListOffersForCollectible.tsx +53 -0
- package/src/react/hooks/useLowestListing.tsx +47 -0
- package/src/react/hooks/useMarketplaceConfig.tsx +10 -0
- package/src/react/hooks/useRoyaltyPercentage.tsx +45 -0
- package/src/react/hooks/useTransferTokens.tsx +81 -0
- package/src/react/index.ts +5 -0
- package/src/react/provider.tsx +24 -0
- package/src/react/ssr/create-ssr-client.ts +31 -0
- package/src/react/ssr/index.ts +1 -0
- package/src/react/ui/icons/ArrowUp.tsx +29 -0
- package/src/react/ui/icons/CalendarIcon.tsx +29 -0
- package/src/react/ui/icons/InfoIcon.tsx +36 -0
- package/src/react/ui/icons/InventoryIcon.tsx +41 -0
- package/src/react/ui/icons/MinusIcon.tsx +31 -0
- package/src/react/ui/icons/PlusIcon.tsx +29 -0
- package/src/react/ui/icons/PositiveCircleIcon.tsx +35 -0
- package/src/react/ui/icons/index.ts +7 -0
- package/src/react/ui/icons/styles.css.ts +35 -0
- package/src/react/ui/index.ts +6 -0
- package/src/react/ui/modals/Account/index.tsx +29 -0
- package/src/react/ui/modals/CreateListingModal/_store.ts +326 -0
- package/src/react/ui/modals/CreateListingModal/_utils/getCreateListingTransactionTitleMessage.ts +30 -0
- package/src/react/ui/modals/CreateListingModal/index.tsx +146 -0
- package/src/react/ui/modals/MakeOfferModal/_store.ts +296 -0
- package/src/react/ui/modals/MakeOfferModal/_utils/getMakeOfferTransactionTitleMessage.ts +28 -0
- package/src/react/ui/modals/MakeOfferModal/index.tsx +157 -0
- package/src/react/ui/modals/SellModal/_store.ts +274 -0
- package/src/react/ui/modals/SellModal/_utils/getSellTransactionTitleMessage.ts +28 -0
- package/src/react/ui/modals/SellModal/index.tsx +126 -0
- package/src/react/ui/modals/SellModal/utils.ts +38 -0
- package/src/react/ui/modals/SuccessfulPurchaseModal/_store.ts +58 -0
- package/src/react/ui/modals/SuccessfulPurchaseModal/index.tsx +186 -0
- package/src/react/ui/modals/SuccessfulPurchaseModal/styles.css.ts +52 -0
- package/src/react/ui/modals/TransferModal/_store.ts +58 -0
- package/src/react/ui/modals/TransferModal/_utils/getTransferTransactionTitleMessage.ts +28 -0
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/index.tsx +102 -0
- package/src/react/ui/modals/TransferModal/_views/followWalletInstructions/index.tsx +130 -0
- package/src/react/ui/modals/TransferModal/index.tsx +92 -0
- package/src/react/ui/modals/TransferModal/messages.ts +14 -0
- package/src/react/ui/modals/TransferModal/styles.css.ts +20 -0
- package/src/react/ui/modals/_internal/components/actionModal/ActionModal.tsx +94 -0
- package/src/react/ui/modals/_internal/components/actionModal/index.ts +3 -0
- package/src/react/ui/modals/_internal/components/actionModal/store.ts +19 -0
- package/src/react/ui/modals/_internal/components/actionModal/styles.css.ts +15 -0
- package/src/react/ui/modals/_internal/components/alertMessage/index.tsx +21 -0
- package/src/react/ui/modals/_internal/components/alertMessage/styles.css.ts +22 -0
- package/src/react/ui/modals/_internal/components/calendar/index.tsx +59 -0
- package/src/react/ui/modals/_internal/components/calendarPopover/index.tsx +41 -0
- package/src/react/ui/modals/_internal/components/calendarPopover/styles.css.ts +16 -0
- package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +76 -0
- package/src/react/ui/modals/_internal/components/currencyOptionsSelect/styles.css.ts +33 -0
- package/src/react/ui/modals/_internal/components/expirationDateSelect/index.tsx +127 -0
- package/src/react/ui/modals/_internal/components/expirationDateSelect/styles.css.ts +25 -0
- package/src/react/ui/modals/_internal/components/floorPriceText/index.tsx +54 -0
- package/src/react/ui/modals/_internal/components/priceInput/index.tsx +72 -0
- package/src/react/ui/modals/_internal/components/priceInput/styles.css.ts +23 -0
- package/src/react/ui/modals/_internal/components/priceInput/types.ts +4 -0
- package/src/react/ui/modals/_internal/components/quantityInput/index.tsx +168 -0
- package/src/react/ui/modals/_internal/components/quantityInput/styles.css.ts +30 -0
- package/src/react/ui/modals/_internal/components/switchChainModal/index.tsx +132 -0
- package/src/react/ui/modals/_internal/components/switchChainModal/store.ts +41 -0
- package/src/react/ui/modals/_internal/components/switchChainModal/styles.css.ts +37 -0
- package/src/react/ui/modals/_internal/components/timeAgo/index.tsx +32 -0
- package/src/react/ui/modals/_internal/components/tokenPreview/index.tsx +58 -0
- package/src/react/ui/modals/_internal/components/tokenPreview/styles.css.ts +11 -0
- package/src/react/ui/modals/_internal/components/transaction-footer/index.tsx +48 -0
- package/src/react/ui/modals/_internal/components/transactionDetails/index.tsx +80 -0
- package/src/react/ui/modals/_internal/components/transactionHeader/index.tsx +30 -0
- package/src/react/ui/modals/_internal/components/transactionPreview/consts.ts +27 -0
- package/src/react/ui/modals/_internal/components/transactionPreview/index.tsx +111 -0
- package/src/react/ui/modals/_internal/components/transactionPreview/useTransactionPreviewTitle.tsx +24 -0
- package/src/react/ui/modals/_internal/components/transactionStatusModal/index.tsx +123 -0
- package/src/react/ui/modals/_internal/components/transactionStatusModal/store.ts +87 -0
- package/src/react/ui/modals/_internal/components/transactionStatusModal/styles.css.ts +15 -0
- package/src/react/ui/modals/_internal/stores/accountModal.ts +3 -0
- package/src/react/ui/modals/modal-provider.tsx +27 -0
- package/src/react/ui/styles/index.ts +1 -0
- package/src/react/ui/styles/modal.css.ts +73 -0
- package/src/styles/index.ts +18 -0
- package/src/types/api-types.ts +48 -0
- package/src/types/index.ts +4 -0
- package/src/types/marketplace-config.ts +63 -0
- package/src/types/messages.ts +43 -0
- package/src/types/sdk-config.ts +23 -0
- package/src/types/types.ts +6 -0
- package/src/utils/abi/abi/standard/EIP2981.ts +15 -0
- package/src/utils/abi/abi/standard/index.ts +1 -0
- package/src/utils/abi/abi/token/ERC1155.ts +324 -0
- package/src/utils/abi/abi/token/ERC20.ts +185 -0
- package/src/utils/abi/abi/token/ERC721.ts +506 -0
- package/src/utils/abi/abi/token/index.ts +3 -0
- package/src/utils/abi/clients/ERC1155.ts +82 -0
- package/src/utils/abi/clients/ERC20.ts +101 -0
- package/src/utils/abi/clients/ERC721.ts +97 -0
- package/src/utils/abi/clients/index.ts +3 -0
- package/src/utils/address.ts +26 -0
- package/src/utils/get-public-rpc-client.ts +32 -0
- package/src/utils/index.ts +6 -0
- package/src/utils/network.ts +5 -0
- package/src/utils/price.ts +21 -0
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
import * as _0xsequence_indexer from '@0xsequence/indexer';
|
|
3
|
+
import { MetadataOptions, Page } from '@0xsequence/indexer';
|
|
4
|
+
import { C as ChainId, Q as QueryArg } from '../../types-BrAQ8-w4.js';
|
|
5
|
+
import { S as SdkConfig } from '../../sdk-config-xWkdBdrL.js';
|
|
6
|
+
import * as _0xsequence_metadata from '@0xsequence/metadata';
|
|
7
|
+
import { w as Currency, o as CollectibleOrder, aB as GetCollectibleHighestOfferArgs, aC as GetCollectibleHighestOfferReturn, aV as ListCollectiblesArgs, i as Page$1, aW as ListCollectiblesReturn, ax as ListOffersForCollectibleArgs, aK as ListCollectibleOffersReturn, aD as GetCollectibleLowestListingArgs, aE as GetCollectibleLowestListingReturn, z as Step, D as CreateReq, aP as GenerateListingTransactionArgs, aR as GenerateOfferTransactionArgs, C as ContractType } from '../../marketplace.gen-Ceofb9Cs.js';
|
|
8
|
+
import { c as getMarketplaceClient, S as SequenceMarketplace } from '../../services-BIwQ1C1c.js';
|
|
9
|
+
import { M as MarketplaceConfig } from '../../marketplace-config-DZbtyrma.js';
|
|
10
|
+
import { Hex, Address } from 'viem';
|
|
11
|
+
import '@0xsequence/network';
|
|
12
|
+
|
|
13
|
+
type UseBalanceOfCollectibleArgs = {
|
|
14
|
+
collectionAddress: string;
|
|
15
|
+
userAddress: string;
|
|
16
|
+
tokenId: string;
|
|
17
|
+
chainId: ChainId;
|
|
18
|
+
} & QueryArg;
|
|
19
|
+
declare const balanceOfCollectibleOptions: (args: UseBalanceOfCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<_0xsequence_indexer.TokenBalance, Error, _0xsequence_indexer.TokenBalance, ("collectable" | "details" | "userBalances" | SdkConfig | UseBalanceOfCollectibleArgs)[]>, "queryFn"> & {
|
|
20
|
+
queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_indexer.TokenBalance, ("collectable" | "details" | "userBalances" | SdkConfig | UseBalanceOfCollectibleArgs)[], never> | undefined;
|
|
21
|
+
} & {
|
|
22
|
+
queryKey: _tanstack_react_query.DataTag<("collectable" | "details" | "userBalances" | SdkConfig | UseBalanceOfCollectibleArgs)[], _0xsequence_indexer.TokenBalance>;
|
|
23
|
+
};
|
|
24
|
+
declare const useBalanceOfCollectible: (args: UseBalanceOfCollectibleArgs) => _tanstack_react_query.UseQueryResult<_0xsequence_indexer.TokenBalance, Error>;
|
|
25
|
+
|
|
26
|
+
type UseCollectibleArgs = {
|
|
27
|
+
chainId: ChainId;
|
|
28
|
+
collectionAddress: string;
|
|
29
|
+
collectibleId: string;
|
|
30
|
+
} & QueryArg;
|
|
31
|
+
type UseCollectibleReturn = ReturnType<typeof fetchCollectible>;
|
|
32
|
+
declare const fetchCollectible: (args: UseCollectibleArgs, config: SdkConfig) => Promise<_0xsequence_metadata.TokenMetadata>;
|
|
33
|
+
declare const collectibleOptions: (args: UseCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<_0xsequence_metadata.TokenMetadata, Error, _0xsequence_metadata.TokenMetadata, ("collectable" | "details" | SdkConfig | UseCollectibleArgs)[]>, "queryFn"> & {
|
|
34
|
+
queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_metadata.TokenMetadata, ("collectable" | "details" | SdkConfig | UseCollectibleArgs)[], never> | undefined;
|
|
35
|
+
} & {
|
|
36
|
+
queryKey: _tanstack_react_query.DataTag<("collectable" | "details" | SdkConfig | UseCollectibleArgs)[], _0xsequence_metadata.TokenMetadata>;
|
|
37
|
+
};
|
|
38
|
+
declare const useCollectible: (args: UseCollectibleArgs) => _tanstack_react_query.UseQueryResult<_0xsequence_metadata.TokenMetadata, Error>;
|
|
39
|
+
|
|
40
|
+
type UseCollectionArgs = {
|
|
41
|
+
chainId: ChainId;
|
|
42
|
+
collectionAddress: string;
|
|
43
|
+
} & QueryArg;
|
|
44
|
+
type UseCollectionReturn = ReturnType<typeof fetchCollection>;
|
|
45
|
+
declare const fetchCollection: (args: UseCollectionArgs, config: SdkConfig) => Promise<_0xsequence_metadata.ContractInfo>;
|
|
46
|
+
declare const collectionOptions: (args: UseCollectionArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<_0xsequence_metadata.ContractInfo, Error, _0xsequence_metadata.ContractInfo, ("collections" | "detail" | SdkConfig | UseCollectionArgs)[]>, "queryFn"> & {
|
|
47
|
+
queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_metadata.ContractInfo, ("collections" | "detail" | SdkConfig | UseCollectionArgs)[], never> | undefined;
|
|
48
|
+
} & {
|
|
49
|
+
queryKey: _tanstack_react_query.DataTag<("collections" | "detail" | SdkConfig | UseCollectionArgs)[], _0xsequence_metadata.ContractInfo>;
|
|
50
|
+
};
|
|
51
|
+
declare const useCollection: (args: UseCollectionArgs) => _tanstack_react_query.UseQueryResult<_0xsequence_metadata.ContractInfo, Error>;
|
|
52
|
+
|
|
53
|
+
declare function useConfig(): SdkConfig;
|
|
54
|
+
|
|
55
|
+
type UseCurrenciesArgs = {
|
|
56
|
+
chainId: ChainId;
|
|
57
|
+
collectionAddress?: string;
|
|
58
|
+
includeNativeCurrency?: boolean;
|
|
59
|
+
} & QueryArg;
|
|
60
|
+
type UseCurrenciesReturn = ReturnType<typeof fetchCurrencies>;
|
|
61
|
+
declare const fetchCurrencies: (chainId: ChainId, config: SdkConfig) => Promise<Currency[]>;
|
|
62
|
+
declare const currenciesOptions: (args: UseCurrenciesArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Currency[], Error, Currency[], ChainId[]>, "queryFn"> & {
|
|
63
|
+
queryFn?: _tanstack_react_query.QueryFunction<Currency[], ChainId[], never> | undefined;
|
|
64
|
+
} & {
|
|
65
|
+
queryKey: _tanstack_react_query.DataTag<ChainId[], Currency[]>;
|
|
66
|
+
};
|
|
67
|
+
declare const useCurrencies: (args: UseCurrenciesArgs) => _tanstack_react_query.UseQueryResult<Currency[], Error>;
|
|
68
|
+
|
|
69
|
+
type UseFiltersArgs = {
|
|
70
|
+
chainId: ChainId;
|
|
71
|
+
collectionAddress: string;
|
|
72
|
+
} & QueryArg;
|
|
73
|
+
type UseFilterReturn = ReturnType<typeof fetchFilters>;
|
|
74
|
+
declare const fetchFilters: (args: UseFiltersArgs, config: SdkConfig) => Promise<_0xsequence_metadata.PropertyFilter[]>;
|
|
75
|
+
declare const filtersOptions: (args: UseFiltersArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<_0xsequence_metadata.PropertyFilter[], Error, _0xsequence_metadata.PropertyFilter[], ("filter" | "collectable" | SdkConfig | UseFiltersArgs)[]>, "queryFn"> & {
|
|
76
|
+
queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_metadata.PropertyFilter[], ("filter" | "collectable" | SdkConfig | UseFiltersArgs)[], never> | undefined;
|
|
77
|
+
} & {
|
|
78
|
+
queryKey: _tanstack_react_query.DataTag<("filter" | "collectable" | SdkConfig | UseFiltersArgs)[], _0xsequence_metadata.PropertyFilter[]>;
|
|
79
|
+
};
|
|
80
|
+
declare const useFilters: (args: UseFiltersArgs) => _tanstack_react_query.UseQueryResult<_0xsequence_metadata.PropertyFilter[], Error>;
|
|
81
|
+
|
|
82
|
+
type UseFloorOrder = {
|
|
83
|
+
chainId: string;
|
|
84
|
+
collectionAddress: string;
|
|
85
|
+
};
|
|
86
|
+
declare const floorOrderOptions: (args: UseFloorOrder, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<CollectibleOrder, Error, CollectibleOrder, ("collectable" | "floorOrders" | SdkConfig | UseFloorOrder)[]>, "queryFn"> & {
|
|
87
|
+
queryFn?: _tanstack_react_query.QueryFunction<CollectibleOrder, ("collectable" | "floorOrders" | SdkConfig | UseFloorOrder)[], never> | undefined;
|
|
88
|
+
} & {
|
|
89
|
+
queryKey: _tanstack_react_query.DataTag<("collectable" | "floorOrders" | SdkConfig | UseFloorOrder)[], CollectibleOrder>;
|
|
90
|
+
};
|
|
91
|
+
declare const useFloorOrder: (args: UseFloorOrder) => _tanstack_react_query.UseQueryResult<CollectibleOrder, Error>;
|
|
92
|
+
|
|
93
|
+
type UseHighestOfferArgs = Omit<GetCollectibleHighestOfferArgs, 'contractAddress'> & {
|
|
94
|
+
collectionAddress: string;
|
|
95
|
+
chainId: string;
|
|
96
|
+
} & QueryArg;
|
|
97
|
+
type UseHighestOfferReturn = ReturnType<typeof fetchHighestOffer>;
|
|
98
|
+
declare const fetchHighestOffer: (args: UseHighestOfferArgs, config: SdkConfig) => Promise<GetCollectibleHighestOfferReturn>;
|
|
99
|
+
declare const highestOfferOptions: (args: UseHighestOfferArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetCollectibleHighestOfferReturn, Error, GetCollectibleHighestOfferReturn, ("collectable" | "details" | "highestOffers" | SdkConfig | UseHighestOfferArgs)[]>, "queryFn"> & {
|
|
100
|
+
queryFn?: _tanstack_react_query.QueryFunction<GetCollectibleHighestOfferReturn, ("collectable" | "details" | "highestOffers" | SdkConfig | UseHighestOfferArgs)[], never> | undefined;
|
|
101
|
+
} & {
|
|
102
|
+
queryKey: _tanstack_react_query.DataTag<("collectable" | "details" | "highestOffers" | SdkConfig | UseHighestOfferArgs)[], GetCollectibleHighestOfferReturn>;
|
|
103
|
+
};
|
|
104
|
+
declare const useHighestOffer: (args: UseHighestOfferArgs) => _tanstack_react_query.UseQueryResult<GetCollectibleHighestOfferReturn, Error>;
|
|
105
|
+
|
|
106
|
+
type UseTokenBalancesArgs = {
|
|
107
|
+
chainId: ChainId;
|
|
108
|
+
accountAddress?: string;
|
|
109
|
+
contractAddress?: string;
|
|
110
|
+
tokenId?: string;
|
|
111
|
+
includeMetadata?: boolean;
|
|
112
|
+
metadataOptions?: MetadataOptions;
|
|
113
|
+
includeCollectionTokens?: boolean;
|
|
114
|
+
page?: Page;
|
|
115
|
+
} & QueryArg;
|
|
116
|
+
type UseFetchTokenBalancesReturn = ReturnType<typeof fetchTokenBalances>;
|
|
117
|
+
declare const fetchTokenBalances: (args: UseTokenBalancesArgs, page: Page, config: SdkConfig) => Promise<_0xsequence_indexer.GetTokenBalancesReturn>;
|
|
118
|
+
declare const tokenBalancesOptions: (args: UseTokenBalancesArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<_0xsequence_indexer.GetTokenBalancesReturn, Error, _tanstack_react_query.InfiniteData<_0xsequence_indexer.GetTokenBalancesReturn, unknown>, _0xsequence_indexer.GetTokenBalancesReturn, ("balances" | "tokenBalances" | SdkConfig | UseTokenBalancesArgs)[], any>, "queryFn"> & {
|
|
119
|
+
queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_indexer.GetTokenBalancesReturn, ("balances" | "tokenBalances" | SdkConfig | UseTokenBalancesArgs)[], any> | undefined;
|
|
120
|
+
} & {
|
|
121
|
+
queryKey: _tanstack_react_query.DataTag<("balances" | "tokenBalances" | SdkConfig | UseTokenBalancesArgs)[], _tanstack_react_query.InfiniteData<_0xsequence_indexer.GetTokenBalancesReturn, unknown>>;
|
|
122
|
+
};
|
|
123
|
+
declare const useTokenBalances: (args: UseTokenBalancesArgs) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<_0xsequence_indexer.GetTokenBalancesReturn, unknown>, Error>;
|
|
124
|
+
|
|
125
|
+
type UseListCollectiblesArgs = Omit<ListCollectiblesArgs, 'contractAddress'> & {
|
|
126
|
+
collectionAddress: string;
|
|
127
|
+
chainId: ChainId;
|
|
128
|
+
};
|
|
129
|
+
type UseListCollectiblesReturn = ReturnType<typeof fetchCollectibles>;
|
|
130
|
+
declare const fetchCollectibles: (args: UseListCollectiblesArgs, page: Page$1, marketplaceClient: ReturnType<typeof getMarketplaceClient>) => Promise<ListCollectiblesReturn>;
|
|
131
|
+
declare const listCollectiblesOptions: (args: UseListCollectiblesArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<ListCollectiblesReturn, Error, _tanstack_react_query.InfiniteData<ListCollectiblesReturn, unknown>, ListCollectiblesReturn, (SequenceMarketplace | "collectable" | "list" | UseListCollectiblesArgs)[], {
|
|
132
|
+
page: number;
|
|
133
|
+
pageSize: number;
|
|
134
|
+
}>, "queryFn"> & {
|
|
135
|
+
queryFn?: _tanstack_react_query.QueryFunction<ListCollectiblesReturn, (SequenceMarketplace | "collectable" | "list" | UseListCollectiblesArgs)[], {
|
|
136
|
+
page: number;
|
|
137
|
+
pageSize: number;
|
|
138
|
+
}> | undefined;
|
|
139
|
+
} & {
|
|
140
|
+
queryKey: _tanstack_react_query.DataTag<(SequenceMarketplace | "collectable" | "list" | UseListCollectiblesArgs)[], _tanstack_react_query.InfiniteData<ListCollectiblesReturn, unknown>>;
|
|
141
|
+
};
|
|
142
|
+
declare const useListCollectibles: (args: UseListCollectiblesArgs) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ListCollectiblesReturn, unknown>, Error>;
|
|
143
|
+
|
|
144
|
+
type UseListOffersForCollectibleArgs = ListOffersForCollectibleArgs & {
|
|
145
|
+
chainId: string;
|
|
146
|
+
};
|
|
147
|
+
type UseListOffersForCollectible = ReturnType<typeof fetchListOffersForCollectible>;
|
|
148
|
+
declare const fetchListOffersForCollectible: (config: SdkConfig, args: UseListOffersForCollectibleArgs, page: Page$1) => Promise<ListCollectibleOffersReturn>;
|
|
149
|
+
declare const listOffersForCollectibleOptions: (args: UseListOffersForCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<ListCollectibleOffersReturn, Error, _tanstack_react_query.InfiniteData<ListCollectibleOffersReturn, unknown>, ListCollectibleOffersReturn, ("offers" | "collectable" | SdkConfig | UseListOffersForCollectibleArgs)[], {
|
|
150
|
+
page: number;
|
|
151
|
+
pageSize: number;
|
|
152
|
+
}>, "queryFn"> & {
|
|
153
|
+
queryFn?: _tanstack_react_query.QueryFunction<ListCollectibleOffersReturn, ("offers" | "collectable" | SdkConfig | UseListOffersForCollectibleArgs)[], {
|
|
154
|
+
page: number;
|
|
155
|
+
pageSize: number;
|
|
156
|
+
}> | undefined;
|
|
157
|
+
} & {
|
|
158
|
+
queryKey: _tanstack_react_query.DataTag<("offers" | "collectable" | SdkConfig | UseListOffersForCollectibleArgs)[], _tanstack_react_query.InfiniteData<ListCollectibleOffersReturn, unknown>>;
|
|
159
|
+
};
|
|
160
|
+
declare const useListOffersForCollectible: (args: UseListOffersForCollectibleArgs) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ListCollectibleOffersReturn, unknown>, Error>;
|
|
161
|
+
|
|
162
|
+
type UseLowestListingArgs = Omit<GetCollectibleLowestListingArgs, 'contractAddress'> & {
|
|
163
|
+
collectionAddress: string;
|
|
164
|
+
chainId: ChainId;
|
|
165
|
+
} & QueryArg;
|
|
166
|
+
type UseLowestListingReturn = ReturnType<typeof fetchLowestListing>;
|
|
167
|
+
declare const fetchLowestListing: (args: UseLowestListingArgs, config: SdkConfig) => Promise<GetCollectibleLowestListingReturn>;
|
|
168
|
+
declare const lowestListingOptions: (args: UseLowestListingArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetCollectibleLowestListingReturn, Error, GetCollectibleLowestListingReturn, ("collectable" | "details" | "lowestListings" | SdkConfig | UseLowestListingArgs)[]>, "queryFn"> & {
|
|
169
|
+
queryFn?: _tanstack_react_query.QueryFunction<GetCollectibleLowestListingReturn, ("collectable" | "details" | "lowestListings" | SdkConfig | UseLowestListingArgs)[], never> | undefined;
|
|
170
|
+
} & {
|
|
171
|
+
queryKey: _tanstack_react_query.DataTag<("collectable" | "details" | "lowestListings" | SdkConfig | UseLowestListingArgs)[], GetCollectibleLowestListingReturn>;
|
|
172
|
+
};
|
|
173
|
+
declare const useLowestListing: (args: UseLowestListingArgs) => _tanstack_react_query.UseQueryResult<GetCollectibleLowestListingReturn, Error>;
|
|
174
|
+
|
|
175
|
+
declare const marketplaceConfigOptions: (config: Pick<SdkConfig, "projectId"> | SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<MarketplaceConfig, Error, MarketplaceConfig, string[]>, "queryFn"> & {
|
|
176
|
+
queryFn?: _tanstack_react_query.QueryFunction<MarketplaceConfig, string[], never> | undefined;
|
|
177
|
+
} & {
|
|
178
|
+
queryKey: _tanstack_react_query.DataTag<string[], MarketplaceConfig>;
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
declare const useMarketplaceConfig: () => _tanstack_react_query.UseQueryResult<MarketplaceConfig, Error>;
|
|
182
|
+
|
|
183
|
+
type UseRoyaletyPercentageArgs = {
|
|
184
|
+
chainId: ChainId;
|
|
185
|
+
collectionAddress: string;
|
|
186
|
+
collectibleId: string;
|
|
187
|
+
} & QueryArg;
|
|
188
|
+
declare const royaletyPercentageOptions: (args: UseRoyaletyPercentageArgs) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<bigint, Error, bigint, ("collectable" | "royaltyPercentage" | UseRoyaletyPercentageArgs)[]>, "queryFn"> & {
|
|
189
|
+
queryFn?: _tanstack_react_query.QueryFunction<bigint, ("collectable" | "royaltyPercentage" | UseRoyaletyPercentageArgs)[], never> | undefined;
|
|
190
|
+
} & {
|
|
191
|
+
queryKey: _tanstack_react_query.DataTag<("collectable" | "royaltyPercentage" | UseRoyaletyPercentageArgs)[], bigint>;
|
|
192
|
+
};
|
|
193
|
+
declare const useRoyaltyPercentage: (args: UseRoyaletyPercentageArgs) => _tanstack_react_query.UseQueryResult<bigint, Error>;
|
|
194
|
+
|
|
195
|
+
type UseGenerateListingTransactionArgs = {
|
|
196
|
+
chainId: ChainId;
|
|
197
|
+
onSuccess?: (data?: Step[]) => void;
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
type CreateReqWithDateExpiry$1 = Omit<CreateReq, 'expiry'> & {
|
|
201
|
+
expiry: Date;
|
|
202
|
+
};
|
|
203
|
+
type GenerateListingTransactionProps = Omit<GenerateListingTransactionArgs, 'listing'> & {
|
|
204
|
+
listing: CreateReqWithDateExpiry$1;
|
|
205
|
+
};
|
|
206
|
+
declare const generateListingTransaction: (params: GenerateListingTransactionProps, config: SdkConfig, chainId: ChainId) => Promise<Step[]>;
|
|
207
|
+
declare const useGenerateListingTransaction: (params: UseGenerateListingTransactionArgs) => {
|
|
208
|
+
generateListingTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateListingTransactionProps, unknown>;
|
|
209
|
+
generateListingTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateListingTransactionProps, unknown>;
|
|
210
|
+
data: undefined;
|
|
211
|
+
variables: undefined;
|
|
212
|
+
error: null;
|
|
213
|
+
isError: false;
|
|
214
|
+
isIdle: true;
|
|
215
|
+
isPending: false;
|
|
216
|
+
isSuccess: false;
|
|
217
|
+
status: "idle";
|
|
218
|
+
reset: () => void;
|
|
219
|
+
context: unknown;
|
|
220
|
+
failureCount: number;
|
|
221
|
+
failureReason: Error | null;
|
|
222
|
+
isPaused: boolean;
|
|
223
|
+
submittedAt: number;
|
|
224
|
+
} | {
|
|
225
|
+
generateListingTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateListingTransactionProps, unknown>;
|
|
226
|
+
generateListingTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateListingTransactionProps, unknown>;
|
|
227
|
+
data: undefined;
|
|
228
|
+
variables: GenerateListingTransactionProps;
|
|
229
|
+
error: null;
|
|
230
|
+
isError: false;
|
|
231
|
+
isIdle: false;
|
|
232
|
+
isPending: true;
|
|
233
|
+
isSuccess: false;
|
|
234
|
+
status: "pending";
|
|
235
|
+
reset: () => void;
|
|
236
|
+
context: unknown;
|
|
237
|
+
failureCount: number;
|
|
238
|
+
failureReason: Error | null;
|
|
239
|
+
isPaused: boolean;
|
|
240
|
+
submittedAt: number;
|
|
241
|
+
} | {
|
|
242
|
+
generateListingTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateListingTransactionProps, unknown>;
|
|
243
|
+
generateListingTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateListingTransactionProps, unknown>;
|
|
244
|
+
data: undefined;
|
|
245
|
+
error: Error;
|
|
246
|
+
variables: GenerateListingTransactionProps;
|
|
247
|
+
isError: true;
|
|
248
|
+
isIdle: false;
|
|
249
|
+
isPending: false;
|
|
250
|
+
isSuccess: false;
|
|
251
|
+
status: "error";
|
|
252
|
+
reset: () => void;
|
|
253
|
+
context: unknown;
|
|
254
|
+
failureCount: number;
|
|
255
|
+
failureReason: Error | null;
|
|
256
|
+
isPaused: boolean;
|
|
257
|
+
submittedAt: number;
|
|
258
|
+
} | {
|
|
259
|
+
generateListingTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateListingTransactionProps, unknown>;
|
|
260
|
+
generateListingTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateListingTransactionProps, unknown>;
|
|
261
|
+
data: Step[];
|
|
262
|
+
error: null;
|
|
263
|
+
variables: GenerateListingTransactionProps;
|
|
264
|
+
isError: false;
|
|
265
|
+
isIdle: false;
|
|
266
|
+
isPending: false;
|
|
267
|
+
isSuccess: true;
|
|
268
|
+
status: "success";
|
|
269
|
+
reset: () => void;
|
|
270
|
+
context: unknown;
|
|
271
|
+
failureCount: number;
|
|
272
|
+
failureReason: Error | null;
|
|
273
|
+
isPaused: boolean;
|
|
274
|
+
submittedAt: number;
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
type UseGenerateOfferTransactionArgs = {
|
|
278
|
+
chainId: ChainId;
|
|
279
|
+
onSuccess?: (data?: Step[]) => void;
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
type CreateReqWithDateExpiry = Omit<CreateReq, 'expiry'> & {
|
|
283
|
+
expiry: Date;
|
|
284
|
+
};
|
|
285
|
+
type GenerateOfferTransactionProps = Omit<GenerateOfferTransactionArgs, 'offer'> & {
|
|
286
|
+
offer: CreateReqWithDateExpiry;
|
|
287
|
+
};
|
|
288
|
+
declare const generateOfferTransaction: (params: GenerateOfferTransactionProps, config: SdkConfig, chainId: ChainId) => Promise<Step[]>;
|
|
289
|
+
declare const useGenerateOfferTransaction: (params: UseGenerateOfferTransactionArgs) => {
|
|
290
|
+
generateOfferTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateOfferTransactionProps, unknown>;
|
|
291
|
+
generateOfferTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateOfferTransactionProps, unknown>;
|
|
292
|
+
data: undefined;
|
|
293
|
+
variables: undefined;
|
|
294
|
+
error: null;
|
|
295
|
+
isError: false;
|
|
296
|
+
isIdle: true;
|
|
297
|
+
isPending: false;
|
|
298
|
+
isSuccess: false;
|
|
299
|
+
status: "idle";
|
|
300
|
+
reset: () => void;
|
|
301
|
+
context: unknown;
|
|
302
|
+
failureCount: number;
|
|
303
|
+
failureReason: Error | null;
|
|
304
|
+
isPaused: boolean;
|
|
305
|
+
submittedAt: number;
|
|
306
|
+
} | {
|
|
307
|
+
generateOfferTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateOfferTransactionProps, unknown>;
|
|
308
|
+
generateOfferTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateOfferTransactionProps, unknown>;
|
|
309
|
+
data: undefined;
|
|
310
|
+
variables: GenerateOfferTransactionProps;
|
|
311
|
+
error: null;
|
|
312
|
+
isError: false;
|
|
313
|
+
isIdle: false;
|
|
314
|
+
isPending: true;
|
|
315
|
+
isSuccess: false;
|
|
316
|
+
status: "pending";
|
|
317
|
+
reset: () => void;
|
|
318
|
+
context: unknown;
|
|
319
|
+
failureCount: number;
|
|
320
|
+
failureReason: Error | null;
|
|
321
|
+
isPaused: boolean;
|
|
322
|
+
submittedAt: number;
|
|
323
|
+
} | {
|
|
324
|
+
generateOfferTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateOfferTransactionProps, unknown>;
|
|
325
|
+
generateOfferTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateOfferTransactionProps, unknown>;
|
|
326
|
+
data: undefined;
|
|
327
|
+
error: Error;
|
|
328
|
+
variables: GenerateOfferTransactionProps;
|
|
329
|
+
isError: true;
|
|
330
|
+
isIdle: false;
|
|
331
|
+
isPending: false;
|
|
332
|
+
isSuccess: false;
|
|
333
|
+
status: "error";
|
|
334
|
+
reset: () => void;
|
|
335
|
+
context: unknown;
|
|
336
|
+
failureCount: number;
|
|
337
|
+
failureReason: Error | null;
|
|
338
|
+
isPaused: boolean;
|
|
339
|
+
submittedAt: number;
|
|
340
|
+
} | {
|
|
341
|
+
generateOfferTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateOfferTransactionProps, unknown>;
|
|
342
|
+
generateOfferTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateOfferTransactionProps, unknown>;
|
|
343
|
+
data: Step[];
|
|
344
|
+
error: null;
|
|
345
|
+
variables: GenerateOfferTransactionProps;
|
|
346
|
+
isError: false;
|
|
347
|
+
isIdle: false;
|
|
348
|
+
isPending: false;
|
|
349
|
+
isSuccess: true;
|
|
350
|
+
status: "success";
|
|
351
|
+
reset: () => void;
|
|
352
|
+
context: unknown;
|
|
353
|
+
failureCount: number;
|
|
354
|
+
failureReason: Error | null;
|
|
355
|
+
isPaused: boolean;
|
|
356
|
+
submittedAt: number;
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
interface BaseTransferParams {
|
|
360
|
+
chainId: ChainId;
|
|
361
|
+
collectionAddress: Hex;
|
|
362
|
+
tokenId: string;
|
|
363
|
+
receiverAddress: Address;
|
|
364
|
+
}
|
|
365
|
+
interface ERC721TransferParams extends BaseTransferParams {
|
|
366
|
+
contractType: ContractType.ERC721;
|
|
367
|
+
}
|
|
368
|
+
interface ERC1155TransferParams extends BaseTransferParams {
|
|
369
|
+
contractType: ContractType.ERC1155;
|
|
370
|
+
quantity: string;
|
|
371
|
+
}
|
|
372
|
+
type TransferTokensParams = ERC721TransferParams | ERC1155TransferParams;
|
|
373
|
+
declare const useTransferTokens: () => {
|
|
374
|
+
transferTokensAsync: (params: TransferTokensParams) => Promise<`0x${string}`>;
|
|
375
|
+
hash: `0x${string}` | undefined;
|
|
376
|
+
transferring: boolean;
|
|
377
|
+
transferFailed: boolean;
|
|
378
|
+
transferSuccess: boolean;
|
|
379
|
+
};
|
|
380
|
+
|
|
381
|
+
export { type CreateReqWithDateExpiry$1 as CreateReqWithDateExpiry, type GenerateListingTransactionProps, type GenerateOfferTransactionProps, type TransferTokensParams, type UseBalanceOfCollectibleArgs, type UseCollectibleArgs, type UseCollectibleReturn, type UseCollectionArgs, type UseCollectionReturn, type UseCurrenciesArgs, type UseCurrenciesReturn, type UseFetchTokenBalancesReturn, type UseFilterReturn, type UseFiltersArgs, type UseFloorOrder, type UseGenerateListingTransactionArgs, type UseGenerateOfferTransactionArgs, type UseHighestOfferArgs, type UseHighestOfferReturn, type UseListCollectiblesArgs, type UseListCollectiblesReturn, type UseListOffersForCollectible, type UseListOffersForCollectibleArgs, type UseLowestListingArgs, type UseLowestListingReturn, type UseTokenBalancesArgs, balanceOfCollectibleOptions, collectibleOptions, collectionOptions, currenciesOptions, fetchFilters, filtersOptions, floorOrderOptions, generateListingTransaction, generateOfferTransaction, highestOfferOptions, listCollectiblesOptions, listOffersForCollectibleOptions, lowestListingOptions, marketplaceConfigOptions, royaletyPercentageOptions, tokenBalancesOptions, useBalanceOfCollectible, useCollectible, useCollection, useConfig, useCurrencies, useFilters, useFloorOrder, useGenerateListingTransaction, useGenerateOfferTransaction, useHighestOffer, useListCollectibles, useListOffersForCollectible, useLowestListing, useMarketplaceConfig, useRoyaltyPercentage, useTokenBalances, useTransferTokens };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import {
|
|
3
|
+
balanceOfCollectibleOptions,
|
|
4
|
+
fetchFilters,
|
|
5
|
+
filtersOptions,
|
|
6
|
+
floorOrderOptions,
|
|
7
|
+
highestOfferOptions,
|
|
8
|
+
listCollectiblesOptions,
|
|
9
|
+
listOffersForCollectibleOptions,
|
|
10
|
+
useBalanceOfCollectible,
|
|
11
|
+
useFilters,
|
|
12
|
+
useFloorOrder,
|
|
13
|
+
useHighestOffer,
|
|
14
|
+
useListCollectibles,
|
|
15
|
+
useListOffersForCollectible
|
|
16
|
+
} from "../../chunk-VPGWEMWL.js";
|
|
17
|
+
import {
|
|
18
|
+
collectibleOptions,
|
|
19
|
+
collectionOptions,
|
|
20
|
+
currenciesOptions,
|
|
21
|
+
generateListingTransaction,
|
|
22
|
+
generateOfferTransaction,
|
|
23
|
+
lowestListingOptions,
|
|
24
|
+
marketplaceConfigOptions,
|
|
25
|
+
royaletyPercentageOptions,
|
|
26
|
+
tokenBalancesOptions,
|
|
27
|
+
useCollectible,
|
|
28
|
+
useCollection,
|
|
29
|
+
useConfig,
|
|
30
|
+
useCurrencies,
|
|
31
|
+
useGenerateListingTransaction,
|
|
32
|
+
useGenerateOfferTransaction,
|
|
33
|
+
useLowestListing,
|
|
34
|
+
useMarketplaceConfig,
|
|
35
|
+
useRoyaltyPercentage,
|
|
36
|
+
useTokenBalances,
|
|
37
|
+
useTransferTokens
|
|
38
|
+
} from "../../chunk-ZE2LNX65.js";
|
|
39
|
+
import "../../chunk-6S4FYXP6.js";
|
|
40
|
+
import "../../chunk-RNUHUVLC.js";
|
|
41
|
+
import "../../chunk-DBFOPEV6.js";
|
|
42
|
+
import "../../chunk-D7QQP6MS.js";
|
|
43
|
+
import "../../chunk-O5JXKTWP.js";
|
|
44
|
+
import "../../chunk-STO74F2I.js";
|
|
45
|
+
import "../../chunk-HGBEC3WX.js";
|
|
46
|
+
import "../../chunk-EDTC7UES.js";
|
|
47
|
+
export {
|
|
48
|
+
balanceOfCollectibleOptions,
|
|
49
|
+
collectibleOptions,
|
|
50
|
+
collectionOptions,
|
|
51
|
+
currenciesOptions,
|
|
52
|
+
fetchFilters,
|
|
53
|
+
filtersOptions,
|
|
54
|
+
floorOrderOptions,
|
|
55
|
+
generateListingTransaction,
|
|
56
|
+
generateOfferTransaction,
|
|
57
|
+
highestOfferOptions,
|
|
58
|
+
listCollectiblesOptions,
|
|
59
|
+
listOffersForCollectibleOptions,
|
|
60
|
+
lowestListingOptions,
|
|
61
|
+
marketplaceConfigOptions,
|
|
62
|
+
royaletyPercentageOptions,
|
|
63
|
+
tokenBalancesOptions,
|
|
64
|
+
useBalanceOfCollectible,
|
|
65
|
+
useCollectible,
|
|
66
|
+
useCollection,
|
|
67
|
+
useConfig,
|
|
68
|
+
useCurrencies,
|
|
69
|
+
useFilters,
|
|
70
|
+
useFloorOrder,
|
|
71
|
+
useGenerateListingTransaction,
|
|
72
|
+
useGenerateOfferTransaction,
|
|
73
|
+
useHighestOffer,
|
|
74
|
+
useListCollectibles,
|
|
75
|
+
useListOffersForCollectible,
|
|
76
|
+
useLowestListing,
|
|
77
|
+
useMarketplaceConfig,
|
|
78
|
+
useRoyaltyPercentage,
|
|
79
|
+
useTokenBalances,
|
|
80
|
+
useTransferTokens
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|