@0xsequence/marketplace-sdk 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.changeset/README.md +8 -0
- package/.changeset/config.json +11 -0
- package/.changeset/fuzzy-forks-smoke.md +5 -0
- package/CHANGELOG.md +7 -0
- package/dist/chunk-2MSBZYLW.js +128 -0
- package/dist/chunk-2MSBZYLW.js.map +1 -0
- package/dist/{chunk-MPBN3E54.js → chunk-2VHHJNXY.js} +3 -3
- package/dist/{chunk-FBUMNJQ4.js → chunk-3II5GLHE.js} +2 -2
- package/dist/chunk-3JU7SQVE.js +182 -0
- package/dist/chunk-3JU7SQVE.js.map +1 -0
- package/dist/{chunk-XNA64MZQ.js → chunk-BCO4CYE4.js} +2 -2
- package/dist/{chunk-4XK7XNJ7.js → chunk-BNAUZXPV.js} +73 -2
- package/dist/chunk-BNAUZXPV.js.map +1 -0
- package/dist/{chunk-Q5URKSC4.js → chunk-FMEEJFAF.js} +1 -1
- package/dist/{chunk-BBASZVT3.js → chunk-GBQVYNCD.js} +5 -6
- package/dist/chunk-GBQVYNCD.js.map +1 -0
- package/dist/{chunk-3AKOPSON.js → chunk-IZ44XPBH.js} +2 -9
- package/dist/chunk-IZ44XPBH.js.map +1 -0
- package/dist/{chunk-EAJ5K7QV.js → chunk-Q5RKAMYF.js} +3 -4
- package/dist/chunk-Q5RKAMYF.js.map +1 -0
- package/dist/{chunk-RBEPPVLT.js → chunk-QKGZXS4T.js} +147 -357
- package/dist/chunk-QKGZXS4T.js.map +1 -0
- package/dist/{chunk-HTFORA4Q.js → chunk-SBI52HTX.js} +1880 -1010
- package/dist/chunk-SBI52HTX.js.map +1 -0
- package/dist/{chunk-XTGMMNV5.js → chunk-WHFXVREI.js} +2 -2
- package/dist/{index-CzTANLaA.d.ts → index-CnaFSNE9.d.ts} +6 -7
- package/dist/index.css +113 -31
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +2 -4
- package/dist/index.js +9 -9
- package/dist/listCollectibles-B0tbqnRd.d.ts +155 -0
- package/dist/react/_internal/api/index.d.ts +28 -2
- package/dist/react/_internal/api/index.js +3 -1
- package/dist/react/_internal/databeat/index.js +11 -10
- package/dist/react/_internal/index.d.ts +2 -3
- package/dist/react/_internal/index.js +4 -4
- package/dist/react/_internal/wagmi/index.js +2 -2
- package/dist/react/hooks/index.d.ts +259 -674
- package/dist/react/hooks/index.js +10 -19
- package/dist/react/hooks/options/index.d.ts +1 -2
- package/dist/react/hooks/options/index.js +4 -4
- package/dist/react/index.d.ts +7 -7
- package/dist/react/index.js +14 -23
- package/dist/react/queries/index.d.ts +25 -0
- package/dist/react/queries/index.js +48 -0
- package/dist/react/queries/index.js.map +1 -0
- package/dist/react/ssr/index.js +3 -3
- package/dist/react/ui/components/collectible-card/index.d.ts +1 -6
- package/dist/react/ui/components/collectible-card/index.js +14 -13
- package/dist/react/ui/components/marketplace-logos/index.js +1 -1
- package/dist/react/ui/icons/index.js +7 -7
- package/dist/react/ui/index.d.ts +18 -22
- package/dist/react/ui/index.js +14 -13
- package/dist/react/ui/modals/_internal/components/actionModal/index.d.ts +6 -11
- package/dist/react/ui/modals/_internal/components/actionModal/index.js +11 -10
- package/dist/types/index.js +2 -2
- package/dist/{types-Ct1uCT3M.d.ts → types-o_pKUpQG.d.ts} +2 -5
- package/dist/utils/abi/index.js +5 -5
- package/dist/utils/index.d.ts +1 -5
- package/dist/utils/index.js +9 -9
- package/package.json +22 -16
- package/src/react/_internal/api/__mocks__/indexer.msw.ts +3 -1
- package/src/react/_internal/api/__mocks__/marketplace.msw.ts +1 -1
- package/src/react/_internal/api/__mocks__/metadata.msw.ts +14 -12
- package/src/react/_internal/api/index.ts +1 -0
- package/src/react/_internal/api/laos-api.ts +103 -0
- package/src/react/_internal/api/zod-schema.ts +3 -3
- package/src/react/_internal/types.ts +1 -10
- package/src/react/_internal/wallet/__tests__/wallet.test.ts +43 -0
- package/src/react/_internal/wallet/useWallet.ts +6 -3
- package/src/react/hooks/__tests__/useAutoSelectFeeOption.test.tsx +1 -1
- package/src/react/hooks/__tests__/useCancelOrder.test.tsx +1 -1
- package/src/react/hooks/__tests__/useCancelTransactionSteps.test.tsx +1 -1
- package/src/react/hooks/__tests__/useCollectible.test.tsx +2 -2
- package/src/react/hooks/__tests__/useCollection.test.tsx +2 -2
- package/src/react/hooks/__tests__/useComparePrices.test.tsx +1 -1
- package/src/react/hooks/__tests__/useConvertPriceToUSD.test.tsx +1 -1
- package/src/react/hooks/__tests__/useCountListingsForCollectible.test.tsx +1 -1
- package/src/react/hooks/__tests__/useCountOfCollectables.test.tsx +2 -2
- package/src/react/hooks/__tests__/useCountOffersForCollectible.test.tsx +1 -1
- package/src/react/hooks/__tests__/useCurrencies.test.tsx +2 -2
- package/src/react/hooks/__tests__/useCurrency.test.tsx +2 -2
- package/src/react/hooks/__tests__/useFilters.test.tsx +2 -2
- package/src/react/hooks/__tests__/useFloorOrder.test.tsx +2 -2
- package/src/react/hooks/__tests__/useGenerateCancelTransaction.test.tsx +1 -1
- package/src/react/hooks/__tests__/useGenerateListingTransaction.test.tsx +1 -1
- package/src/react/hooks/__tests__/useGenerateOfferTransaction.test.tsx +1 -1
- package/src/react/hooks/__tests__/useGenerateSellTransaction.test.tsx +1 -1
- package/src/react/hooks/__tests__/useListCollectibleActivities.test.tsx +2 -2
- package/src/react/hooks/__tests__/useListCollectibles.test.tsx +3 -2
- package/src/react/hooks/__tests__/useListCollectiblesPaginated.test.tsx +1 -1
- package/src/react/hooks/__tests__/useListCollectionActivities.test.tsx +1 -1
- package/src/react/hooks/__tests__/useListListingsForCollectible.test.tsx +1 -1
- package/src/react/hooks/__tests__/useListOffersForCollectible.test.tsx +1 -1
- package/src/react/hooks/__tests__/useLowestListing.test.tsx +1 -1
- package/src/react/hooks/__tests__/useRoyalty.test.tsx +1 -2
- package/src/react/hooks/index.ts +0 -1
- package/src/react/hooks/options/collectionOptions.ts +2 -3
- package/src/react/hooks/useAutoSelectFeeOption.tsx +1 -1
- package/src/react/hooks/useCancelOrder.tsx +3 -3
- package/src/react/hooks/useCancelTransactionSteps.tsx +1 -1
- package/src/react/hooks/useCheckoutOptions.tsx +1 -2
- package/src/react/hooks/useCollectible.tsx +2 -3
- package/src/react/hooks/useCollectionBalanceDetails.tsx +1 -2
- package/src/react/hooks/useComparePrices.tsx +2 -9
- package/src/react/hooks/useConvertPriceToUSD.tsx +1 -4
- package/src/react/hooks/useCountListingsForCollectible.tsx +1 -2
- package/src/react/hooks/useCountOfCollectables.tsx +1 -2
- package/src/react/hooks/useCountOffersForCollectible.tsx +1 -2
- package/src/react/hooks/useCurrencies.tsx +1 -4
- package/src/react/hooks/useCurrency.tsx +3 -8
- package/src/react/hooks/useFilters.tsx +5 -4
- package/src/react/hooks/useFloorOrder.tsx +1 -2
- package/src/react/hooks/useGenerateCancelTransaction.tsx +3 -6
- package/src/react/hooks/useGenerateListingTransaction.tsx +2 -3
- package/src/react/hooks/useGenerateOfferTransaction.tsx +2 -3
- package/src/react/hooks/useGenerateSellTransaction.tsx +3 -6
- package/src/react/hooks/useHighestOffer.tsx +1 -1
- package/src/react/hooks/useListCollectibles.tsx +33 -61
- package/src/react/hooks/useListCollectiblesPaginated.tsx +2 -6
- package/src/react/hooks/useListListingsForCollectible.tsx +1 -2
- package/src/react/hooks/useListOffersForCollectible.tsx +1 -2
- package/src/react/hooks/useLowestListing.tsx +1 -2
- package/src/react/hooks/useRoyalty.tsx +3 -8
- package/src/react/hooks/useTransferTokens.tsx +2 -2
- package/src/react/queries/balanceOfCollectible.ts +9 -32
- package/src/react/queries/getTokenSupplies.ts +38 -0
- package/src/react/queries/index.ts +5 -0
- package/src/react/queries/listCollectibles.ts +96 -0
- package/src/react/ui/components/_internals/action-button/ActionButton.tsx +1 -1
- package/src/react/ui/components/_internals/action-button/__tests__/ActionButton.test.tsx +1 -1
- package/src/react/ui/components/_internals/action-button/components/NonOwnerActions.tsx +4 -3
- package/src/react/ui/components/_internals/action-button/components/OwnerActions.tsx +1 -1
- package/src/react/ui/components/collectible-card/CollectibleCard.tsx +2 -3
- package/src/react/ui/components/collectible-card/__tests__/CollectibleCard.test.tsx +1 -1
- package/src/react/ui/modals/BuyModal/ERC1155QuantityModal.tsx +127 -0
- package/src/react/ui/modals/BuyModal/Modal.tsx +67 -85
- package/src/react/ui/modals/BuyModal/__tests__/Modal.test.tsx +85 -226
- package/src/react/ui/modals/BuyModal/__tests__/Modal1155.test.tsx +140 -0
- package/src/react/ui/modals/BuyModal/__tests__/store.test.ts +67 -76
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useCheckoutOptions.test.tsx +1 -60
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useFees.test.tsx +1 -1
- package/src/react/ui/modals/BuyModal/hooks/useCheckoutOptions.ts +29 -13
- package/src/react/ui/modals/BuyModal/hooks/useLoadData.ts +26 -21
- package/src/react/ui/modals/BuyModal/hooks/usePaymentModalParams.ts +200 -0
- package/src/react/ui/modals/BuyModal/index.tsx +4 -14
- package/src/react/ui/modals/BuyModal/store.ts +71 -76
- package/src/react/ui/modals/CreateListingModal/Modal.tsx +71 -7
- package/src/react/ui/modals/CreateListingModal/__tests__/Modal.test.tsx +2 -2
- package/src/react/ui/modals/CreateListingModal/hooks/useCreateListing.tsx +1 -1
- package/src/react/ui/modals/CreateListingModal/hooks/useGetTokenApproval.ts +1 -1
- package/src/react/ui/modals/CreateListingModal/hooks/useTransactionSteps.tsx +9 -5
- package/src/react/ui/modals/CreateListingModal/store.ts +7 -2
- package/src/react/ui/modals/MakeOfferModal/Modal.tsx +103 -6
- package/src/react/ui/modals/MakeOfferModal/__tests__/Modal.test.tsx +1 -1
- package/src/react/ui/modals/MakeOfferModal/hooks/useGetTokenApproval.tsx +1 -1
- package/src/react/ui/modals/MakeOfferModal/hooks/useMakeOffer.tsx +1 -1
- package/src/react/ui/modals/MakeOfferModal/hooks/useTransactionSteps.tsx +8 -4
- package/src/react/ui/modals/MakeOfferModal/store.ts +5 -3
- package/src/react/ui/modals/SellModal/Modal.tsx +76 -4
- package/src/react/ui/modals/SellModal/__tests__/Modal.test.tsx +1 -1
- package/src/react/ui/modals/SellModal/hooks/useGetTokenApproval.tsx +1 -1
- package/src/react/ui/modals/SellModal/hooks/useSell.tsx +1 -1
- package/src/react/ui/modals/SellModal/hooks/useTransactionSteps.tsx +16 -8
- package/src/react/ui/modals/SellModal/store.ts +5 -3
- package/src/react/ui/modals/TransferModal/_store.ts +15 -3
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/TokenQuantityInput.tsx +58 -0
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/TransferButton.tsx +56 -0
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/WalletAddressInput.tsx +50 -0
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/index.tsx +94 -66
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/useHandleTransfer.tsx +22 -14
- package/src/react/ui/modals/TransferModal/index.tsx +72 -38
- package/src/react/ui/modals/_internal/components/actionModal/ActionModal.tsx +43 -42
- package/src/react/ui/modals/_internal/components/actionModal/store.ts +1 -2
- package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +2 -2
- package/src/react/ui/modals/_internal/components/expirationDateSelect/index.tsx +9 -1
- package/src/react/ui/modals/_internal/components/floorPriceText/index.tsx +27 -12
- package/src/react/ui/modals/_internal/components/priceInput/__tests__/index.test.tsx +1 -1
- package/src/react/ui/modals/_internal/components/priceInput/index.tsx +19 -3
- package/src/react/ui/modals/_internal/components/quantityInput/index.tsx +3 -0
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/_components/ActionButtons.tsx +60 -0
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/_components/BalanceIndicator.tsx +30 -0
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/index.tsx +126 -0
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/store.ts +25 -0
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/useWaasFeeOptionManager.tsx +74 -0
- package/src/react/ui/modals/_internal/components/switchChainModal/index.tsx +1 -2
- package/src/react/ui/modals/_internal/components/switchChainModal/store.ts +1 -2
- package/src/react/ui/modals/_internal/components/tokenPreview/index.tsx +1 -1
- package/src/react/ui/modals/_internal/components/transaction-footer/index.tsx +4 -7
- package/src/react/ui/modals/_internal/components/transactionDetails/index.tsx +1 -1
- package/src/react/ui/modals/_internal/components/transactionPreview/index.tsx +1 -1
- package/src/react/ui/modals/_internal/components/transactionStatusModal/__tests__/TransactionStatusModal.test.tsx +1 -1
- package/src/react/ui/modals/_internal/components/transactionStatusModal/hooks/useTransactionStatus.ts +1 -1
- package/src/react/ui/modals/_internal/components/transactionStatusModal/index.tsx +6 -1
- package/src/react/ui/modals/_internal/components/transactionStatusModal/store.ts +2 -2
- package/src/react/ui/modals/_internal/components/waasFeeOptionsSelect/WaasFeeOptionsSelect.tsx +10 -31
- package/src/react/ui/modals/_internal/hooks/useSelectWaasFeeOptions.ts +53 -0
- package/src/react/ui/modals/_internal/types.ts +2 -1
- package/src/types/waas-types.ts +38 -0
- package/src/utils/network.ts +2 -4
- package/test/const.ts +1 -1
- package/test/setup.ts +10 -0
- package/test/test-utils.tsx +31 -5
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/chunk-3AKOPSON.js.map +0 -1
- package/dist/chunk-4XK7XNJ7.js.map +0 -1
- package/dist/chunk-BBASZVT3.js.map +0 -1
- package/dist/chunk-EAJ5K7QV.js.map +0 -1
- package/dist/chunk-HTFORA4Q.js.map +0 -1
- package/dist/chunk-OFY7OFTL.js +0 -458
- package/dist/chunk-OFY7OFTL.js.map +0 -1
- package/dist/chunk-RBEPPVLT.js.map +0 -1
- package/src/react/hooks/__tests__/useGenerateBuyTransaction.test.tsx +0 -172
- package/src/react/hooks/useGenerateBuyTransaction.tsx +0 -80
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useBuyCollectable.test.tsx +0 -349
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useLoadData.test.tsx +0 -185
- package/src/react/ui/modals/BuyModal/hooks/useBuyCollectable.ts +0 -170
- package/src/react/ui/modals/BuyModal/modals/CheckoutModal.tsx +0 -47
- package/src/react/ui/modals/BuyModal/modals/Modal1155.tsx +0 -140
- package/src/react/ui/modals/BuyModal/modals/__tests__/CheckoutModal.test.tsx +0 -162
- package/src/react/ui/modals/BuyModal/modals/__tests__/Modal1155.test.tsx +0 -327
- package/src/react/ui/modals/_internal/components/waasFeeOptionsBox/index.tsx +0 -124
- package/src/react/ui/modals/_internal/components/waasFeeOptionsBox/store.ts +0 -12
- /package/dist/{chunk-MPBN3E54.js.map → chunk-2VHHJNXY.js.map} +0 -0
- /package/dist/{chunk-FBUMNJQ4.js.map → chunk-3II5GLHE.js.map} +0 -0
- /package/dist/{chunk-XNA64MZQ.js.map → chunk-BCO4CYE4.js.map} +0 -0
- /package/dist/{chunk-Q5URKSC4.js.map → chunk-FMEEJFAF.js.map} +0 -0
- /package/dist/{chunk-XTGMMNV5.js.map → chunk-WHFXVREI.js.map} +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import * as _0xsequence_indexer from '@0xsequence/indexer';
|
|
3
|
-
import { GetTokenBalancesDetailsReturn
|
|
4
|
-
import
|
|
5
|
-
import { Hex, Address } from 'viem';
|
|
6
|
-
import { UseQueryParameters } from 'wagmi/query';
|
|
7
|
-
import * as _0xsequence_network from '@0xsequence/network';
|
|
3
|
+
import { GetTokenBalancesDetailsReturn } from '@0xsequence/indexer';
|
|
4
|
+
import { U as UseBalanceOfCollectibleArgs, O as Order, g as UseListBalancesArgs, a as UseListCollectiblesArgs } from '../../listCollectibles-B0tbqnRd.js';
|
|
8
5
|
import { z } from 'zod';
|
|
9
6
|
import { S as SdkConfig } from '../../sdk-config-DIzJk_tI.js';
|
|
10
|
-
import { P as PropertyType, M as MarketplaceKind, b as OrderSide, Z as CurrencyStatus, w as Currency, o as CollectibleOrder,
|
|
7
|
+
import { P as PropertyType, M as MarketplaceKind, b as OrderSide, Z as CurrencyStatus, w as Currency, o as CollectibleOrder, S as SortOrder, q as Activity, i as Page, b7 as ListCollectiblesReturn, aV as ListCollectibleOffersReturn, aJ as GetCountOfOffersForCollectibleReturn, aT as ListCollectibleListingsReturn, aH as GetCountOfListingsForCollectibleReturn, aP as GetCollectibleLowestListingReturn, z as Step, D as CreateReq, a_ as GenerateListingTransactionArgs, b0 as GenerateOfferTransactionArgs, aY as GenerateSellTransactionArgs, g as StepType, E as ExecuteType, b2 as GenerateCancelTransactionArgs, C as ContractType, bt as CheckoutOptionsMarketplaceReturn, r as Collection } from '../../marketplace.gen-BTHxxhG2.js';
|
|
11
8
|
import * as _0xsequence_metadata from '@0xsequence/metadata';
|
|
12
9
|
import { PropertyFilter } from '@0xsequence/metadata';
|
|
13
|
-
export { U as UseCollectionArgs, a as UseCollectionReturn, m as marketplaceConfigOptions, u as useCollection } from '../../index-
|
|
10
|
+
export { U as UseCollectionArgs, a as UseCollectionReturn, m as marketplaceConfigOptions, u as useCollection } from '../../index-CnaFSNE9.js';
|
|
14
11
|
import { c as getMarketplaceClient } from '../../services-ybGoDJd9.js';
|
|
15
12
|
import { g as MarketplaceConfig } from '../../builder-types-QlHwc9bI.js';
|
|
16
|
-
import
|
|
13
|
+
import * as viem from 'viem';
|
|
14
|
+
import { Hex, Address } from 'viem';
|
|
15
|
+
import { Q as QueryArgSchema } from '../../types-o_pKUpQG.js';
|
|
16
|
+
import 'wagmi/query';
|
|
17
17
|
|
|
18
18
|
type FeeOption = {
|
|
19
19
|
gasLimit: number;
|
|
@@ -122,15 +122,6 @@ declare function useAutoSelectFeeOption({ pendingFeeOptionConfirmation, }: UseAu
|
|
|
122
122
|
isLoading?: undefined;
|
|
123
123
|
}>;
|
|
124
124
|
|
|
125
|
-
type UseBalanceOfCollectibleArgs = {
|
|
126
|
-
collectionAddress: Hex;
|
|
127
|
-
collectableId: string;
|
|
128
|
-
userAddress: Hex | undefined;
|
|
129
|
-
chainId: number;
|
|
130
|
-
isLaos721?: boolean;
|
|
131
|
-
query?: UseQueryParameters;
|
|
132
|
-
};
|
|
133
|
-
|
|
134
125
|
/**
|
|
135
126
|
* Hook to fetch the balance of a specific collectible for a user
|
|
136
127
|
*
|
|
@@ -154,7 +145,7 @@ type UseBalanceOfCollectibleArgs = {
|
|
|
154
145
|
declare function useBalanceOfCollectible(args: UseBalanceOfCollectibleArgs): _tanstack_react_query.UseQueryResult<_0xsequence_indexer.TokenBalance, Error>;
|
|
155
146
|
|
|
156
147
|
declare const UseCountOfCollectableSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
157
|
-
chainId: z.
|
|
148
|
+
chainId: z.ZodNumber;
|
|
158
149
|
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
159
150
|
query: z.ZodOptional<z.ZodObject<{
|
|
160
151
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -240,9 +231,9 @@ declare const UseCountOfCollectableSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
240
231
|
ordersCreatedBy?: string[] | undefined;
|
|
241
232
|
ordersNotCreatedBy?: string[] | undefined;
|
|
242
233
|
};
|
|
243
|
-
chainId:
|
|
244
|
-
side: OrderSide;
|
|
234
|
+
chainId: number;
|
|
245
235
|
collectionAddress: `0x${string}`;
|
|
236
|
+
side: OrderSide;
|
|
246
237
|
query?: {
|
|
247
238
|
enabled?: boolean | undefined;
|
|
248
239
|
} | undefined;
|
|
@@ -263,14 +254,14 @@ declare const UseCountOfCollectableSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
263
254
|
ordersCreatedBy?: string[] | undefined;
|
|
264
255
|
ordersNotCreatedBy?: string[] | undefined;
|
|
265
256
|
};
|
|
266
|
-
chainId:
|
|
267
|
-
side: OrderSide;
|
|
257
|
+
chainId: number;
|
|
268
258
|
collectionAddress: string;
|
|
259
|
+
side: OrderSide;
|
|
269
260
|
query?: {
|
|
270
261
|
enabled?: boolean | undefined;
|
|
271
262
|
} | undefined;
|
|
272
263
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
273
|
-
chainId: z.
|
|
264
|
+
chainId: z.ZodNumber;
|
|
274
265
|
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
275
266
|
query: z.ZodOptional<z.ZodObject<{
|
|
276
267
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -283,21 +274,21 @@ declare const UseCountOfCollectableSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
283
274
|
filter: z.ZodUndefined;
|
|
284
275
|
side: z.ZodUndefined;
|
|
285
276
|
}>, "strip", z.ZodTypeAny, {
|
|
286
|
-
chainId:
|
|
277
|
+
chainId: number;
|
|
287
278
|
collectionAddress: `0x${string}`;
|
|
288
279
|
filter?: undefined;
|
|
289
|
-
side?: undefined;
|
|
290
280
|
query?: {
|
|
291
281
|
enabled?: boolean | undefined;
|
|
292
282
|
} | undefined;
|
|
283
|
+
side?: undefined;
|
|
293
284
|
}, {
|
|
294
|
-
chainId:
|
|
285
|
+
chainId: number;
|
|
295
286
|
collectionAddress: string;
|
|
296
287
|
filter?: undefined;
|
|
297
|
-
side?: undefined;
|
|
298
288
|
query?: {
|
|
299
289
|
enabled?: boolean | undefined;
|
|
300
290
|
} | undefined;
|
|
291
|
+
side?: undefined;
|
|
301
292
|
}>]>;
|
|
302
293
|
type UseCountOfCollectablesArgs = z.infer<typeof UseCountOfCollectableSchema>;
|
|
303
294
|
type UseContOfCollectableReturn = Awaited<ReturnType<typeof fetchCountOfCollectables>>;
|
|
@@ -319,20 +310,20 @@ declare const countOfCollectablesOptions: (args: UseCountOfCollectablesArgs, con
|
|
|
319
310
|
ordersCreatedBy?: string[] | undefined;
|
|
320
311
|
ordersNotCreatedBy?: string[] | undefined;
|
|
321
312
|
};
|
|
322
|
-
chainId:
|
|
323
|
-
side: OrderSide;
|
|
313
|
+
chainId: number;
|
|
324
314
|
collectionAddress: `0x${string}`;
|
|
315
|
+
side: OrderSide;
|
|
325
316
|
query?: {
|
|
326
317
|
enabled?: boolean | undefined;
|
|
327
318
|
} | undefined;
|
|
328
319
|
} | {
|
|
329
|
-
chainId:
|
|
320
|
+
chainId: number;
|
|
330
321
|
collectionAddress: `0x${string}`;
|
|
331
322
|
filter?: undefined;
|
|
332
|
-
side?: undefined;
|
|
333
323
|
query?: {
|
|
334
324
|
enabled?: boolean | undefined;
|
|
335
325
|
} | undefined;
|
|
326
|
+
side?: undefined;
|
|
336
327
|
})[]>, "queryFn"> & {
|
|
337
328
|
queryFn?: _tanstack_react_query.QueryFunction<number, ("collectable" | "counts" | {
|
|
338
329
|
filter: {
|
|
@@ -351,20 +342,20 @@ declare const countOfCollectablesOptions: (args: UseCountOfCollectablesArgs, con
|
|
|
351
342
|
ordersCreatedBy?: string[] | undefined;
|
|
352
343
|
ordersNotCreatedBy?: string[] | undefined;
|
|
353
344
|
};
|
|
354
|
-
chainId:
|
|
355
|
-
side: OrderSide;
|
|
345
|
+
chainId: number;
|
|
356
346
|
collectionAddress: `0x${string}`;
|
|
347
|
+
side: OrderSide;
|
|
357
348
|
query?: {
|
|
358
349
|
enabled?: boolean | undefined;
|
|
359
350
|
} | undefined;
|
|
360
351
|
} | {
|
|
361
|
-
chainId:
|
|
352
|
+
chainId: number;
|
|
362
353
|
collectionAddress: `0x${string}`;
|
|
363
354
|
filter?: undefined;
|
|
364
|
-
side?: undefined;
|
|
365
355
|
query?: {
|
|
366
356
|
enabled?: boolean | undefined;
|
|
367
357
|
} | undefined;
|
|
358
|
+
side?: undefined;
|
|
368
359
|
})[], never> | undefined;
|
|
369
360
|
} & {
|
|
370
361
|
queryKey: ("collectable" | "counts" | {
|
|
@@ -384,20 +375,20 @@ declare const countOfCollectablesOptions: (args: UseCountOfCollectablesArgs, con
|
|
|
384
375
|
ordersCreatedBy?: string[] | undefined;
|
|
385
376
|
ordersNotCreatedBy?: string[] | undefined;
|
|
386
377
|
};
|
|
387
|
-
chainId:
|
|
388
|
-
side: OrderSide;
|
|
378
|
+
chainId: number;
|
|
389
379
|
collectionAddress: `0x${string}`;
|
|
380
|
+
side: OrderSide;
|
|
390
381
|
query?: {
|
|
391
382
|
enabled?: boolean | undefined;
|
|
392
383
|
} | undefined;
|
|
393
384
|
} | {
|
|
394
|
-
chainId:
|
|
385
|
+
chainId: number;
|
|
395
386
|
collectionAddress: `0x${string}`;
|
|
396
387
|
filter?: undefined;
|
|
397
|
-
side?: undefined;
|
|
398
388
|
query?: {
|
|
399
389
|
enabled?: boolean | undefined;
|
|
400
390
|
} | undefined;
|
|
391
|
+
side?: undefined;
|
|
401
392
|
})[] & {
|
|
402
393
|
[dataTagSymbol]: number;
|
|
403
394
|
[dataTagErrorSymbol]: Error;
|
|
@@ -406,7 +397,7 @@ declare const countOfCollectablesOptions: (args: UseCountOfCollectablesArgs, con
|
|
|
406
397
|
declare const useCountOfCollectables: (args: UseCountOfCollectablesArgs) => _tanstack_react_query.UseQueryResult<number, Error>;
|
|
407
398
|
|
|
408
399
|
declare const UseCollectibleSchema: z.ZodObject<{
|
|
409
|
-
chainId: z.
|
|
400
|
+
chainId: z.ZodNumber;
|
|
410
401
|
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
411
402
|
collectibleId: z.ZodOptional<z.ZodString>;
|
|
412
403
|
query: z.ZodOptional<z.ZodObject<{
|
|
@@ -417,14 +408,14 @@ declare const UseCollectibleSchema: z.ZodObject<{
|
|
|
417
408
|
enabled?: boolean | undefined;
|
|
418
409
|
}>>;
|
|
419
410
|
}, "strip", z.ZodTypeAny, {
|
|
420
|
-
chainId:
|
|
411
|
+
chainId: number;
|
|
421
412
|
collectionAddress: `0x${string}`;
|
|
422
413
|
query?: {
|
|
423
414
|
enabled?: boolean | undefined;
|
|
424
415
|
} | undefined;
|
|
425
416
|
collectibleId?: string | undefined;
|
|
426
417
|
}, {
|
|
427
|
-
chainId:
|
|
418
|
+
chainId: number;
|
|
428
419
|
collectionAddress: string;
|
|
429
420
|
query?: {
|
|
430
421
|
enabled?: boolean | undefined;
|
|
@@ -435,7 +426,7 @@ type UseCollectibleArgs = z.infer<typeof UseCollectibleSchema>;
|
|
|
435
426
|
type UseCollectibleReturn = Awaited<ReturnType<typeof fetchCollectible>>;
|
|
436
427
|
declare const fetchCollectible: (args: UseCollectibleArgs, config: SdkConfig) => Promise<_0xsequence_metadata.TokenMetadata>;
|
|
437
428
|
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 | {
|
|
438
|
-
chainId:
|
|
429
|
+
chainId: number;
|
|
439
430
|
collectionAddress: `0x${string}`;
|
|
440
431
|
query?: {
|
|
441
432
|
enabled?: boolean | undefined;
|
|
@@ -443,7 +434,7 @@ declare const collectibleOptions: (args: UseCollectibleArgs, config: SdkConfig)
|
|
|
443
434
|
collectibleId?: string | undefined;
|
|
444
435
|
})[]>, "queryFn"> & {
|
|
445
436
|
queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_metadata.TokenMetadata, ("collectable" | "details" | SdkConfig | {
|
|
446
|
-
chainId:
|
|
437
|
+
chainId: number;
|
|
447
438
|
collectionAddress: `0x${string}`;
|
|
448
439
|
query?: {
|
|
449
440
|
enabled?: boolean | undefined;
|
|
@@ -452,7 +443,7 @@ declare const collectibleOptions: (args: UseCollectibleArgs, config: SdkConfig)
|
|
|
452
443
|
})[], never> | undefined;
|
|
453
444
|
} & {
|
|
454
445
|
queryKey: ("collectable" | "details" | SdkConfig | {
|
|
455
|
-
chainId:
|
|
446
|
+
chainId: number;
|
|
456
447
|
collectionAddress: `0x${string}`;
|
|
457
448
|
query?: {
|
|
458
449
|
enabled?: boolean | undefined;
|
|
@@ -479,7 +470,7 @@ declare const filterSchema: z.ZodObject<{
|
|
|
479
470
|
contractWhitelist?: string[] | undefined;
|
|
480
471
|
}>;
|
|
481
472
|
declare const useCollectionBalanceDetailsArgsSchema: z.ZodObject<{
|
|
482
|
-
chainId: z.
|
|
473
|
+
chainId: z.ZodNumber;
|
|
483
474
|
filter: z.ZodObject<{
|
|
484
475
|
accountAddresses: z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">;
|
|
485
476
|
contractWhitelist: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">>;
|
|
@@ -516,7 +507,7 @@ declare const useCollectionBalanceDetailsArgsSchema: z.ZodObject<{
|
|
|
516
507
|
omitNativeBalances: boolean;
|
|
517
508
|
contractWhitelist?: string[] | undefined;
|
|
518
509
|
};
|
|
519
|
-
chainId:
|
|
510
|
+
chainId: number;
|
|
520
511
|
query?: {
|
|
521
512
|
enabled?: boolean | undefined;
|
|
522
513
|
} | undefined;
|
|
@@ -529,7 +520,7 @@ declare const collectionBalanceDetailsOptions: (args: UseCollectionBalanceDetail
|
|
|
529
520
|
omitNativeBalances: boolean;
|
|
530
521
|
contractWhitelist?: string[] | undefined;
|
|
531
522
|
};
|
|
532
|
-
chainId:
|
|
523
|
+
chainId: number;
|
|
533
524
|
query?: {
|
|
534
525
|
enabled?: boolean | undefined;
|
|
535
526
|
} | undefined;
|
|
@@ -540,7 +531,7 @@ declare const collectionBalanceDetailsOptions: (args: UseCollectionBalanceDetail
|
|
|
540
531
|
omitNativeBalances: boolean;
|
|
541
532
|
contractWhitelist?: string[] | undefined;
|
|
542
533
|
};
|
|
543
|
-
chainId:
|
|
534
|
+
chainId: number;
|
|
544
535
|
query?: {
|
|
545
536
|
enabled?: boolean | undefined;
|
|
546
537
|
} | undefined;
|
|
@@ -552,7 +543,7 @@ declare const collectionBalanceDetailsOptions: (args: UseCollectionBalanceDetail
|
|
|
552
543
|
omitNativeBalances: boolean;
|
|
553
544
|
contractWhitelist?: string[] | undefined;
|
|
554
545
|
};
|
|
555
|
-
chainId:
|
|
546
|
+
chainId: number;
|
|
556
547
|
query?: {
|
|
557
548
|
enabled?: boolean | undefined;
|
|
558
549
|
} | undefined;
|
|
@@ -564,7 +555,7 @@ declare const collectionBalanceDetailsOptions: (args: UseCollectionBalanceDetail
|
|
|
564
555
|
declare const useCollectionBalanceDetails: (args: UseCollectionBalanceDetailsArgs) => _tanstack_react_query.UseQueryResult<GetTokenBalancesDetailsReturn, Error>;
|
|
565
556
|
|
|
566
557
|
declare const UseComparePricesArgsSchema: z.ZodObject<{
|
|
567
|
-
chainId: z.
|
|
558
|
+
chainId: z.ZodNumber;
|
|
568
559
|
priceAmountRaw: z.ZodString;
|
|
569
560
|
priceCurrencyAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
570
561
|
compareToPriceAmountRaw: z.ZodString;
|
|
@@ -577,7 +568,7 @@ declare const UseComparePricesArgsSchema: z.ZodObject<{
|
|
|
577
568
|
enabled?: boolean | undefined;
|
|
578
569
|
}>>;
|
|
579
570
|
}, "strip", z.ZodTypeAny, {
|
|
580
|
-
chainId:
|
|
571
|
+
chainId: number;
|
|
581
572
|
priceCurrencyAddress: `0x${string}`;
|
|
582
573
|
priceAmountRaw: string;
|
|
583
574
|
compareToPriceAmountRaw: string;
|
|
@@ -586,7 +577,7 @@ declare const UseComparePricesArgsSchema: z.ZodObject<{
|
|
|
586
577
|
enabled?: boolean | undefined;
|
|
587
578
|
} | undefined;
|
|
588
579
|
}, {
|
|
589
|
-
chainId:
|
|
580
|
+
chainId: number;
|
|
590
581
|
priceCurrencyAddress: string;
|
|
591
582
|
priceAmountRaw: string;
|
|
592
583
|
compareToPriceAmountRaw: string;
|
|
@@ -602,7 +593,7 @@ type UseComparePricesReturn = {
|
|
|
602
593
|
status: 'above' | 'same' | 'below';
|
|
603
594
|
};
|
|
604
595
|
declare const comparePricesOptions: (args: UseComparePricesArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<UseComparePricesReturn, Error, UseComparePricesReturn, (string | {
|
|
605
|
-
chainId:
|
|
596
|
+
chainId: number;
|
|
606
597
|
priceCurrencyAddress: string;
|
|
607
598
|
priceAmountRaw: string;
|
|
608
599
|
compareToPriceAmountRaw: string;
|
|
@@ -612,7 +603,7 @@ declare const comparePricesOptions: (args: UseComparePricesArgs, config: SdkConf
|
|
|
612
603
|
} | undefined;
|
|
613
604
|
})[]>, "queryFn"> & {
|
|
614
605
|
queryFn?: _tanstack_react_query.QueryFunction<UseComparePricesReturn, (string | {
|
|
615
|
-
chainId:
|
|
606
|
+
chainId: number;
|
|
616
607
|
priceCurrencyAddress: string;
|
|
617
608
|
priceAmountRaw: string;
|
|
618
609
|
compareToPriceAmountRaw: string;
|
|
@@ -623,7 +614,7 @@ declare const comparePricesOptions: (args: UseComparePricesArgs, config: SdkConf
|
|
|
623
614
|
})[], never> | undefined;
|
|
624
615
|
} & {
|
|
625
616
|
queryKey: (string | {
|
|
626
|
-
chainId:
|
|
617
|
+
chainId: number;
|
|
627
618
|
priceCurrencyAddress: string;
|
|
628
619
|
priceAmountRaw: string;
|
|
629
620
|
compareToPriceAmountRaw: string;
|
|
@@ -657,7 +648,7 @@ declare const useComparePrices: (args: UseComparePricesArgs) => _tanstack_react_
|
|
|
657
648
|
declare function useConfig(): SdkConfig;
|
|
658
649
|
|
|
659
650
|
declare const UseConvertPriceToUSDArgsSchema: z.ZodObject<{
|
|
660
|
-
chainId: z.
|
|
651
|
+
chainId: z.ZodNumber;
|
|
661
652
|
currencyAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
662
653
|
amountRaw: z.ZodString;
|
|
663
654
|
query: z.ZodOptional<z.ZodObject<{
|
|
@@ -668,14 +659,14 @@ declare const UseConvertPriceToUSDArgsSchema: z.ZodObject<{
|
|
|
668
659
|
enabled?: boolean | undefined;
|
|
669
660
|
}>>;
|
|
670
661
|
}, "strip", z.ZodTypeAny, {
|
|
671
|
-
chainId:
|
|
662
|
+
chainId: number;
|
|
672
663
|
currencyAddress: `0x${string}`;
|
|
673
664
|
amountRaw: string;
|
|
674
665
|
query?: {
|
|
675
666
|
enabled?: boolean | undefined;
|
|
676
667
|
} | undefined;
|
|
677
668
|
}, {
|
|
678
|
-
chainId:
|
|
669
|
+
chainId: number;
|
|
679
670
|
currencyAddress: string;
|
|
680
671
|
amountRaw: string;
|
|
681
672
|
query?: {
|
|
@@ -714,7 +705,7 @@ declare const convertPriceToUSDOptions: (args: UseConvertPriceToUSDArgs, config:
|
|
|
714
705
|
declare const useConvertPriceToUSD: (args: UseConvertPriceToUSDArgs) => _tanstack_react_query.UseQueryResult<UseConvertPriceToUSDReturn, Error>;
|
|
715
706
|
|
|
716
707
|
declare const UseCurrenciesArgsSchema: z.ZodObject<{
|
|
717
|
-
chainId: z.
|
|
708
|
+
chainId: z.ZodNumber;
|
|
718
709
|
includeNativeCurrency: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
719
710
|
collectionAddress: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
|
|
720
711
|
query: z.ZodOptional<z.ZodObject<{
|
|
@@ -725,14 +716,14 @@ declare const UseCurrenciesArgsSchema: z.ZodObject<{
|
|
|
725
716
|
enabled?: boolean | undefined;
|
|
726
717
|
}>>;
|
|
727
718
|
}, "strip", z.ZodTypeAny, {
|
|
728
|
-
chainId:
|
|
719
|
+
chainId: number;
|
|
729
720
|
includeNativeCurrency: boolean;
|
|
730
721
|
query?: {
|
|
731
722
|
enabled?: boolean | undefined;
|
|
732
723
|
} | undefined;
|
|
733
724
|
collectionAddress?: `0x${string}` | undefined;
|
|
734
725
|
}, {
|
|
735
|
-
chainId:
|
|
726
|
+
chainId: number;
|
|
736
727
|
query?: {
|
|
737
728
|
enabled?: boolean | undefined;
|
|
738
729
|
} | undefined;
|
|
@@ -785,7 +776,7 @@ declare const currenciesOptions: (args: UseCurrenciesArgs, config: SdkConfig) =>
|
|
|
785
776
|
updatedAt: string;
|
|
786
777
|
deletedAt?: string;
|
|
787
778
|
}[], ("currencies" | "list" | {
|
|
788
|
-
chainId:
|
|
779
|
+
chainId: number;
|
|
789
780
|
query?: {
|
|
790
781
|
enabled?: boolean | undefined;
|
|
791
782
|
} | undefined;
|
|
@@ -807,7 +798,7 @@ declare const currenciesOptions: (args: UseCurrenciesArgs, config: SdkConfig) =>
|
|
|
807
798
|
updatedAt: string;
|
|
808
799
|
deletedAt?: string;
|
|
809
800
|
}[], ("currencies" | "list" | {
|
|
810
|
-
chainId:
|
|
801
|
+
chainId: number;
|
|
811
802
|
query?: {
|
|
812
803
|
enabled?: boolean | undefined;
|
|
813
804
|
} | undefined;
|
|
@@ -816,7 +807,7 @@ declare const currenciesOptions: (args: UseCurrenciesArgs, config: SdkConfig) =>
|
|
|
816
807
|
})[], never> | undefined;
|
|
817
808
|
} & {
|
|
818
809
|
queryKey: ("currencies" | "list" | {
|
|
819
|
-
chainId:
|
|
810
|
+
chainId: number;
|
|
820
811
|
query?: {
|
|
821
812
|
enabled?: boolean | undefined;
|
|
822
813
|
} | undefined;
|
|
@@ -858,7 +849,7 @@ declare const useCurrencies: (args: UseCurrenciesArgs) => _tanstack_react_query.
|
|
|
858
849
|
}[], Error>;
|
|
859
850
|
|
|
860
851
|
declare const UseCurrencyArgsSchema: z.ZodObject<{
|
|
861
|
-
chainId: z.
|
|
852
|
+
chainId: z.ZodNumber;
|
|
862
853
|
currencyAddress: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
|
|
863
854
|
query: z.ZodOptional<z.ZodObject<{
|
|
864
855
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -868,13 +859,13 @@ declare const UseCurrencyArgsSchema: z.ZodObject<{
|
|
|
868
859
|
enabled?: boolean | undefined;
|
|
869
860
|
}>>;
|
|
870
861
|
}, "strip", z.ZodTypeAny, {
|
|
871
|
-
chainId:
|
|
862
|
+
chainId: number;
|
|
872
863
|
query?: {
|
|
873
864
|
enabled?: boolean | undefined;
|
|
874
865
|
} | undefined;
|
|
875
866
|
currencyAddress?: `0x${string}` | undefined;
|
|
876
867
|
}, {
|
|
877
|
-
chainId:
|
|
868
|
+
chainId: number;
|
|
878
869
|
query?: {
|
|
879
870
|
enabled?: boolean | undefined;
|
|
880
871
|
} | undefined;
|
|
@@ -893,7 +884,7 @@ declare const currencyOptions: (args: UseCurrencyArgs, config: SdkConfig) => _ta
|
|
|
893
884
|
declare const useCurrency: (args: UseCurrencyArgs) => _tanstack_react_query.UseQueryResult<Currency | undefined, Error>;
|
|
894
885
|
|
|
895
886
|
declare const UseFiltersSchema: z.ZodObject<{
|
|
896
|
-
chainId: z.
|
|
887
|
+
chainId: z.ZodNumber;
|
|
897
888
|
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
898
889
|
showAllFilters: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
899
890
|
query: z.ZodOptional<z.ZodObject<{
|
|
@@ -904,14 +895,14 @@ declare const UseFiltersSchema: z.ZodObject<{
|
|
|
904
895
|
enabled?: boolean | undefined;
|
|
905
896
|
}>>;
|
|
906
897
|
}, "strip", z.ZodTypeAny, {
|
|
907
|
-
chainId:
|
|
898
|
+
chainId: number;
|
|
908
899
|
collectionAddress: `0x${string}`;
|
|
909
900
|
query?: {
|
|
910
901
|
enabled?: boolean | undefined;
|
|
911
902
|
} | undefined;
|
|
912
903
|
showAllFilters?: boolean | undefined;
|
|
913
904
|
}, {
|
|
914
|
-
chainId:
|
|
905
|
+
chainId: number;
|
|
915
906
|
collectionAddress: string;
|
|
916
907
|
query?: {
|
|
917
908
|
enabled?: boolean | undefined;
|
|
@@ -922,7 +913,7 @@ type UseFiltersArgs = z.infer<typeof UseFiltersSchema>;
|
|
|
922
913
|
type UseFilterReturn = Awaited<ReturnType<typeof fetchFilters>>;
|
|
923
914
|
declare const fetchFilters: (args: UseFiltersArgs, config: SdkConfig) => Promise<PropertyFilter[]>;
|
|
924
915
|
declare const filtersOptions: (args: UseFiltersArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<PropertyFilter[], Error, PropertyFilter[], ("filter" | "collectable" | SdkConfig | {
|
|
925
|
-
chainId:
|
|
916
|
+
chainId: number;
|
|
926
917
|
collectionAddress: `0x${string}`;
|
|
927
918
|
query?: {
|
|
928
919
|
enabled?: boolean | undefined;
|
|
@@ -930,7 +921,7 @@ declare const filtersOptions: (args: UseFiltersArgs, config: SdkConfig) => _tans
|
|
|
930
921
|
showAllFilters?: boolean | undefined;
|
|
931
922
|
})[]>, "queryFn"> & {
|
|
932
923
|
queryFn?: _tanstack_react_query.QueryFunction<PropertyFilter[], ("filter" | "collectable" | SdkConfig | {
|
|
933
|
-
chainId:
|
|
924
|
+
chainId: number;
|
|
934
925
|
collectionAddress: `0x${string}`;
|
|
935
926
|
query?: {
|
|
936
927
|
enabled?: boolean | undefined;
|
|
@@ -939,7 +930,7 @@ declare const filtersOptions: (args: UseFiltersArgs, config: SdkConfig) => _tans
|
|
|
939
930
|
})[], never> | undefined;
|
|
940
931
|
} & {
|
|
941
932
|
queryKey: ("filter" | "collectable" | SdkConfig | {
|
|
942
|
-
chainId:
|
|
933
|
+
chainId: number;
|
|
943
934
|
collectionAddress: `0x${string}`;
|
|
944
935
|
query?: {
|
|
945
936
|
enabled?: boolean | undefined;
|
|
@@ -953,7 +944,7 @@ declare const filtersOptions: (args: UseFiltersArgs, config: SdkConfig) => _tans
|
|
|
953
944
|
declare const useFilters: (args: UseFiltersArgs) => _tanstack_react_query.UseQueryResult<PropertyFilter[], Error>;
|
|
954
945
|
|
|
955
946
|
declare const UseFloorOrderSchema: z.ZodObject<{
|
|
956
|
-
chainId: z.
|
|
947
|
+
chainId: z.ZodNumber;
|
|
957
948
|
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
958
949
|
query: z.ZodOptional<z.ZodObject<{
|
|
959
950
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -963,13 +954,13 @@ declare const UseFloorOrderSchema: z.ZodObject<{
|
|
|
963
954
|
enabled?: boolean | undefined;
|
|
964
955
|
}>>;
|
|
965
956
|
}, "strip", z.ZodTypeAny, {
|
|
966
|
-
chainId:
|
|
957
|
+
chainId: number;
|
|
967
958
|
collectionAddress: `0x${string}`;
|
|
968
959
|
query?: {
|
|
969
960
|
enabled?: boolean | undefined;
|
|
970
961
|
} | undefined;
|
|
971
962
|
}, {
|
|
972
|
-
chainId:
|
|
963
|
+
chainId: number;
|
|
973
964
|
collectionAddress: string;
|
|
974
965
|
query?: {
|
|
975
966
|
enabled?: boolean | undefined;
|
|
@@ -979,14 +970,14 @@ type UseFloorOrderArgs = z.infer<typeof UseFloorOrderSchema>;
|
|
|
979
970
|
type UseFloorOrderReturn = Awaited<ReturnType<typeof fetchFloorOrder>>;
|
|
980
971
|
declare const fetchFloorOrder: (args: UseFloorOrderArgs, config: SdkConfig) => Promise<CollectibleOrder>;
|
|
981
972
|
declare const floorOrderOptions: (args: UseFloorOrderArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<CollectibleOrder, Error, CollectibleOrder, ("collectable" | "floorOrders" | SdkConfig | {
|
|
982
|
-
chainId:
|
|
973
|
+
chainId: number;
|
|
983
974
|
collectionAddress: `0x${string}`;
|
|
984
975
|
query?: {
|
|
985
976
|
enabled?: boolean | undefined;
|
|
986
977
|
} | undefined;
|
|
987
978
|
})[]>, "queryFn"> & {
|
|
988
979
|
queryFn?: _tanstack_react_query.QueryFunction<CollectibleOrder, ("collectable" | "floorOrders" | SdkConfig | {
|
|
989
|
-
chainId:
|
|
980
|
+
chainId: number;
|
|
990
981
|
collectionAddress: `0x${string}`;
|
|
991
982
|
query?: {
|
|
992
983
|
enabled?: boolean | undefined;
|
|
@@ -994,7 +985,7 @@ declare const floorOrderOptions: (args: UseFloorOrderArgs, config: SdkConfig) =>
|
|
|
994
985
|
})[], never> | undefined;
|
|
995
986
|
} & {
|
|
996
987
|
queryKey: ("collectable" | "floorOrders" | SdkConfig | {
|
|
997
|
-
chainId:
|
|
988
|
+
chainId: number;
|
|
998
989
|
collectionAddress: `0x${string}`;
|
|
999
990
|
query?: {
|
|
1000
991
|
enabled?: boolean | undefined;
|
|
@@ -1006,11 +997,6 @@ declare const floorOrderOptions: (args: UseFloorOrderArgs, config: SdkConfig) =>
|
|
|
1006
997
|
};
|
|
1007
998
|
declare const useFloorOrder: (args: UseFloorOrderArgs) => _tanstack_react_query.UseQueryResult<CollectibleOrder, Error>;
|
|
1008
999
|
|
|
1009
|
-
type Order = Omit<Order$1, 'priceAmount' | 'priceAmountNet'> & {
|
|
1010
|
-
priceAmount: bigint;
|
|
1011
|
-
priceAmountNet: bigint;
|
|
1012
|
-
};
|
|
1013
|
-
|
|
1014
1000
|
/**
|
|
1015
1001
|
* Type for the highest offer hook parameters
|
|
1016
1002
|
* @property {string} collectionAddress - The contract address of the collection
|
|
@@ -1040,7 +1026,7 @@ type UseHighestOfferArgs = {
|
|
|
1040
1026
|
* const { data, isLoading, error } = useHighestOffer({
|
|
1041
1027
|
* collectionAddress: '0x123...',
|
|
1042
1028
|
* tokenId: '1',
|
|
1043
|
-
* chainId:
|
|
1029
|
+
* chainId: 1,
|
|
1044
1030
|
* query: {
|
|
1045
1031
|
* enabled: true,
|
|
1046
1032
|
* refetchInterval: 10000,
|
|
@@ -1050,25 +1036,6 @@ type UseHighestOfferArgs = {
|
|
|
1050
1036
|
*/
|
|
1051
1037
|
declare function useHighestOffer(args: UseHighestOfferArgs): _tanstack_react_query.UseQueryResult<Order | null, Error>;
|
|
1052
1038
|
|
|
1053
|
-
type UseListBalancesArgs = {
|
|
1054
|
-
chainId: number;
|
|
1055
|
-
accountAddress?: Hex;
|
|
1056
|
-
contractAddress?: Hex;
|
|
1057
|
-
tokenId?: string;
|
|
1058
|
-
includeMetadata?: boolean;
|
|
1059
|
-
metadataOptions?: {
|
|
1060
|
-
verifiedOnly?: boolean;
|
|
1061
|
-
unverifiedOnly?: boolean;
|
|
1062
|
-
includeContracts?: Hex[];
|
|
1063
|
-
};
|
|
1064
|
-
includeCollectionTokens?: boolean;
|
|
1065
|
-
page?: Page;
|
|
1066
|
-
isLaos721?: boolean;
|
|
1067
|
-
query?: {
|
|
1068
|
-
enabled?: boolean;
|
|
1069
|
-
};
|
|
1070
|
-
};
|
|
1071
|
-
|
|
1072
1039
|
/**
|
|
1073
1040
|
* Hook to fetch a list of token balances with pagination support
|
|
1074
1041
|
*
|
|
@@ -1091,7 +1058,7 @@ type UseListBalancesArgs = {
|
|
|
1091
1058
|
declare function useListBalances(args: UseListBalancesArgs): _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<_0xsequence_indexer.GetTokenBalancesReturn, unknown>, Error>;
|
|
1092
1059
|
|
|
1093
1060
|
declare const getListCollectibleActivitiesArgsSchema: z.ZodObject<{
|
|
1094
|
-
chainId: z.
|
|
1061
|
+
chainId: z.ZodNumber;
|
|
1095
1062
|
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
1096
1063
|
tokenId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodString>;
|
|
1097
1064
|
query: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -1130,9 +1097,9 @@ declare const getListCollectibleActivitiesArgsSchema: z.ZodObject<{
|
|
|
1130
1097
|
more?: boolean | undefined;
|
|
1131
1098
|
}>>;
|
|
1132
1099
|
}, "strip", z.ZodTypeAny, {
|
|
1133
|
-
chainId:
|
|
1134
|
-
tokenId: string;
|
|
1100
|
+
chainId: number;
|
|
1135
1101
|
collectionAddress: `0x${string}`;
|
|
1102
|
+
tokenId: string;
|
|
1136
1103
|
query?: {
|
|
1137
1104
|
page: number;
|
|
1138
1105
|
pageSize: number;
|
|
@@ -1144,9 +1111,9 @@ declare const getListCollectibleActivitiesArgsSchema: z.ZodObject<{
|
|
|
1144
1111
|
more?: boolean | undefined;
|
|
1145
1112
|
} | undefined;
|
|
1146
1113
|
}, {
|
|
1147
|
-
chainId:
|
|
1148
|
-
tokenId: string | number;
|
|
1114
|
+
chainId: number;
|
|
1149
1115
|
collectionAddress: string;
|
|
1116
|
+
tokenId: string | number;
|
|
1150
1117
|
query?: {
|
|
1151
1118
|
page: number;
|
|
1152
1119
|
pageSize: number;
|
|
@@ -1184,12 +1151,12 @@ declare const getListCollectibleActivitiesReturnSchema: z.ZodObject<{
|
|
|
1184
1151
|
}, "strip", z.ZodTypeAny, {
|
|
1185
1152
|
symbol: string;
|
|
1186
1153
|
chainId: number;
|
|
1154
|
+
contractAddress: string;
|
|
1187
1155
|
name: string;
|
|
1188
1156
|
nativeCurrency: boolean;
|
|
1189
|
-
contractAddress: string;
|
|
1190
|
-
decimals: number;
|
|
1191
1157
|
updatedAt: string;
|
|
1192
1158
|
createdAt: string;
|
|
1159
|
+
decimals: number;
|
|
1193
1160
|
imageUrl: string;
|
|
1194
1161
|
exchangeRate: number;
|
|
1195
1162
|
defaultChainCurrency: boolean;
|
|
@@ -1197,12 +1164,12 @@ declare const getListCollectibleActivitiesReturnSchema: z.ZodObject<{
|
|
|
1197
1164
|
}, {
|
|
1198
1165
|
symbol: string;
|
|
1199
1166
|
chainId: number;
|
|
1167
|
+
contractAddress: string;
|
|
1200
1168
|
name: string;
|
|
1201
1169
|
nativeCurrency: boolean;
|
|
1202
|
-
contractAddress: string;
|
|
1203
|
-
decimals: number;
|
|
1204
1170
|
updatedAt: string;
|
|
1205
1171
|
createdAt: string;
|
|
1172
|
+
decimals: number;
|
|
1206
1173
|
imageUrl: string;
|
|
1207
1174
|
exchangeRate: number;
|
|
1208
1175
|
defaultChainCurrency: boolean;
|
|
@@ -1220,12 +1187,12 @@ declare const getListCollectibleActivitiesReturnSchema: z.ZodObject<{
|
|
|
1220
1187
|
currency?: {
|
|
1221
1188
|
symbol: string;
|
|
1222
1189
|
chainId: number;
|
|
1190
|
+
contractAddress: string;
|
|
1223
1191
|
name: string;
|
|
1224
1192
|
nativeCurrency: boolean;
|
|
1225
|
-
contractAddress: string;
|
|
1226
|
-
decimals: number;
|
|
1227
1193
|
updatedAt: string;
|
|
1228
1194
|
createdAt: string;
|
|
1195
|
+
decimals: number;
|
|
1229
1196
|
imageUrl: string;
|
|
1230
1197
|
exchangeRate: number;
|
|
1231
1198
|
defaultChainCurrency: boolean;
|
|
@@ -1243,12 +1210,12 @@ declare const getListCollectibleActivitiesReturnSchema: z.ZodObject<{
|
|
|
1243
1210
|
currency?: {
|
|
1244
1211
|
symbol: string;
|
|
1245
1212
|
chainId: number;
|
|
1213
|
+
contractAddress: string;
|
|
1246
1214
|
name: string;
|
|
1247
1215
|
nativeCurrency: boolean;
|
|
1248
|
-
contractAddress: string;
|
|
1249
|
-
decimals: number;
|
|
1250
1216
|
updatedAt: string;
|
|
1251
1217
|
createdAt: string;
|
|
1218
|
+
decimals: number;
|
|
1252
1219
|
imageUrl: string;
|
|
1253
1220
|
exchangeRate: number;
|
|
1254
1221
|
defaultChainCurrency: boolean;
|
|
@@ -1299,12 +1266,12 @@ declare const getListCollectibleActivitiesReturnSchema: z.ZodObject<{
|
|
|
1299
1266
|
currency?: {
|
|
1300
1267
|
symbol: string;
|
|
1301
1268
|
chainId: number;
|
|
1269
|
+
contractAddress: string;
|
|
1302
1270
|
name: string;
|
|
1303
1271
|
nativeCurrency: boolean;
|
|
1304
|
-
contractAddress: string;
|
|
1305
|
-
decimals: number;
|
|
1306
1272
|
updatedAt: string;
|
|
1307
1273
|
createdAt: string;
|
|
1274
|
+
decimals: number;
|
|
1308
1275
|
imageUrl: string;
|
|
1309
1276
|
exchangeRate: number;
|
|
1310
1277
|
defaultChainCurrency: boolean;
|
|
@@ -1333,12 +1300,12 @@ declare const getListCollectibleActivitiesReturnSchema: z.ZodObject<{
|
|
|
1333
1300
|
currency?: {
|
|
1334
1301
|
symbol: string;
|
|
1335
1302
|
chainId: number;
|
|
1303
|
+
contractAddress: string;
|
|
1336
1304
|
name: string;
|
|
1337
1305
|
nativeCurrency: boolean;
|
|
1338
|
-
contractAddress: string;
|
|
1339
|
-
decimals: number;
|
|
1340
1306
|
updatedAt: string;
|
|
1341
1307
|
createdAt: string;
|
|
1308
|
+
decimals: number;
|
|
1342
1309
|
imageUrl: string;
|
|
1343
1310
|
exchangeRate: number;
|
|
1344
1311
|
defaultChainCurrency: boolean;
|
|
@@ -1356,7 +1323,7 @@ declare const getListCollectibleActivitiesReturnSchema: z.ZodObject<{
|
|
|
1356
1323
|
} | undefined;
|
|
1357
1324
|
}>;
|
|
1358
1325
|
declare const getListCollectionActivitiesArgsSchema: z.ZodObject<{
|
|
1359
|
-
chainId: z.
|
|
1326
|
+
chainId: z.ZodNumber;
|
|
1360
1327
|
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
1361
1328
|
query: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
1362
1329
|
page: z.ZodNumber;
|
|
@@ -1394,7 +1361,7 @@ declare const getListCollectionActivitiesArgsSchema: z.ZodObject<{
|
|
|
1394
1361
|
more?: boolean | undefined;
|
|
1395
1362
|
}>>;
|
|
1396
1363
|
}, "strip", z.ZodTypeAny, {
|
|
1397
|
-
chainId:
|
|
1364
|
+
chainId: number;
|
|
1398
1365
|
collectionAddress: `0x${string}`;
|
|
1399
1366
|
query?: {
|
|
1400
1367
|
page: number;
|
|
@@ -1407,7 +1374,7 @@ declare const getListCollectionActivitiesArgsSchema: z.ZodObject<{
|
|
|
1407
1374
|
more?: boolean | undefined;
|
|
1408
1375
|
} | undefined;
|
|
1409
1376
|
}, {
|
|
1410
|
-
chainId:
|
|
1377
|
+
chainId: number;
|
|
1411
1378
|
collectionAddress: string;
|
|
1412
1379
|
query?: {
|
|
1413
1380
|
page: number;
|
|
@@ -1446,12 +1413,12 @@ declare const getListCollectionActivitiesReturnSchema: z.ZodObject<{
|
|
|
1446
1413
|
}, "strip", z.ZodTypeAny, {
|
|
1447
1414
|
symbol: string;
|
|
1448
1415
|
chainId: number;
|
|
1416
|
+
contractAddress: string;
|
|
1449
1417
|
name: string;
|
|
1450
1418
|
nativeCurrency: boolean;
|
|
1451
|
-
contractAddress: string;
|
|
1452
|
-
decimals: number;
|
|
1453
1419
|
updatedAt: string;
|
|
1454
1420
|
createdAt: string;
|
|
1421
|
+
decimals: number;
|
|
1455
1422
|
imageUrl: string;
|
|
1456
1423
|
exchangeRate: number;
|
|
1457
1424
|
defaultChainCurrency: boolean;
|
|
@@ -1459,12 +1426,12 @@ declare const getListCollectionActivitiesReturnSchema: z.ZodObject<{
|
|
|
1459
1426
|
}, {
|
|
1460
1427
|
symbol: string;
|
|
1461
1428
|
chainId: number;
|
|
1429
|
+
contractAddress: string;
|
|
1462
1430
|
name: string;
|
|
1463
1431
|
nativeCurrency: boolean;
|
|
1464
|
-
contractAddress: string;
|
|
1465
|
-
decimals: number;
|
|
1466
1432
|
updatedAt: string;
|
|
1467
1433
|
createdAt: string;
|
|
1434
|
+
decimals: number;
|
|
1468
1435
|
imageUrl: string;
|
|
1469
1436
|
exchangeRate: number;
|
|
1470
1437
|
defaultChainCurrency: boolean;
|
|
@@ -1482,12 +1449,12 @@ declare const getListCollectionActivitiesReturnSchema: z.ZodObject<{
|
|
|
1482
1449
|
currency?: {
|
|
1483
1450
|
symbol: string;
|
|
1484
1451
|
chainId: number;
|
|
1452
|
+
contractAddress: string;
|
|
1485
1453
|
name: string;
|
|
1486
1454
|
nativeCurrency: boolean;
|
|
1487
|
-
contractAddress: string;
|
|
1488
|
-
decimals: number;
|
|
1489
1455
|
updatedAt: string;
|
|
1490
1456
|
createdAt: string;
|
|
1457
|
+
decimals: number;
|
|
1491
1458
|
imageUrl: string;
|
|
1492
1459
|
exchangeRate: number;
|
|
1493
1460
|
defaultChainCurrency: boolean;
|
|
@@ -1505,12 +1472,12 @@ declare const getListCollectionActivitiesReturnSchema: z.ZodObject<{
|
|
|
1505
1472
|
currency?: {
|
|
1506
1473
|
symbol: string;
|
|
1507
1474
|
chainId: number;
|
|
1475
|
+
contractAddress: string;
|
|
1508
1476
|
name: string;
|
|
1509
1477
|
nativeCurrency: boolean;
|
|
1510
|
-
contractAddress: string;
|
|
1511
|
-
decimals: number;
|
|
1512
1478
|
updatedAt: string;
|
|
1513
1479
|
createdAt: string;
|
|
1480
|
+
decimals: number;
|
|
1514
1481
|
imageUrl: string;
|
|
1515
1482
|
exchangeRate: number;
|
|
1516
1483
|
defaultChainCurrency: boolean;
|
|
@@ -1561,12 +1528,12 @@ declare const getListCollectionActivitiesReturnSchema: z.ZodObject<{
|
|
|
1561
1528
|
currency?: {
|
|
1562
1529
|
symbol: string;
|
|
1563
1530
|
chainId: number;
|
|
1531
|
+
contractAddress: string;
|
|
1564
1532
|
name: string;
|
|
1565
1533
|
nativeCurrency: boolean;
|
|
1566
|
-
contractAddress: string;
|
|
1567
|
-
decimals: number;
|
|
1568
1534
|
updatedAt: string;
|
|
1569
1535
|
createdAt: string;
|
|
1536
|
+
decimals: number;
|
|
1570
1537
|
imageUrl: string;
|
|
1571
1538
|
exchangeRate: number;
|
|
1572
1539
|
defaultChainCurrency: boolean;
|
|
@@ -1595,12 +1562,12 @@ declare const getListCollectionActivitiesReturnSchema: z.ZodObject<{
|
|
|
1595
1562
|
currency?: {
|
|
1596
1563
|
symbol: string;
|
|
1597
1564
|
chainId: number;
|
|
1565
|
+
contractAddress: string;
|
|
1598
1566
|
name: string;
|
|
1599
1567
|
nativeCurrency: boolean;
|
|
1600
|
-
contractAddress: string;
|
|
1601
|
-
decimals: number;
|
|
1602
1568
|
updatedAt: string;
|
|
1603
1569
|
createdAt: string;
|
|
1570
|
+
decimals: number;
|
|
1604
1571
|
imageUrl: string;
|
|
1605
1572
|
exchangeRate: number;
|
|
1606
1573
|
defaultChainCurrency: boolean;
|
|
@@ -1620,354 +1587,93 @@ declare const getListCollectionActivitiesReturnSchema: z.ZodObject<{
|
|
|
1620
1587
|
|
|
1621
1588
|
type UseListCollectibleActivitiesArgs = z.infer<typeof getListCollectibleActivitiesArgsSchema>;
|
|
1622
1589
|
type UseListCollectibleActivitiesReturn = z.infer<typeof getListCollectibleActivitiesReturnSchema>;
|
|
1623
|
-
declare const listCollectibleActivitiesOptions: (args: UseListCollectibleActivitiesArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
|
|
1624
|
-
activities: Activity[];
|
|
1625
|
-
page: Page
|
|
1626
|
-
}, Error, {
|
|
1627
|
-
activities: Activity[];
|
|
1628
|
-
page: Page
|
|
1629
|
-
}, ("collectable" | "collectibleActivities" | SdkConfig | {
|
|
1630
|
-
chainId:
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
query?: {
|
|
1634
|
-
page: number;
|
|
1635
|
-
pageSize: number;
|
|
1636
|
-
enabled?: boolean | undefined;
|
|
1637
|
-
sort?: {
|
|
1638
|
-
order: SortOrder;
|
|
1639
|
-
column: string;
|
|
1640
|
-
}[] | undefined;
|
|
1641
|
-
more?: boolean | undefined;
|
|
1642
|
-
} | undefined;
|
|
1643
|
-
})[]>, "queryFn"> & {
|
|
1644
|
-
queryFn?: _tanstack_react_query.QueryFunction<{
|
|
1645
|
-
activities: Activity[];
|
|
1646
|
-
page: Page$1 | undefined;
|
|
1647
|
-
}, ("collectable" | "collectibleActivities" | SdkConfig | {
|
|
1648
|
-
chainId: string;
|
|
1649
|
-
tokenId: string;
|
|
1650
|
-
collectionAddress: `0x${string}`;
|
|
1651
|
-
query?: {
|
|
1652
|
-
page: number;
|
|
1653
|
-
pageSize: number;
|
|
1654
|
-
enabled?: boolean | undefined;
|
|
1655
|
-
sort?: {
|
|
1656
|
-
order: SortOrder;
|
|
1657
|
-
column: string;
|
|
1658
|
-
}[] | undefined;
|
|
1659
|
-
more?: boolean | undefined;
|
|
1660
|
-
} | undefined;
|
|
1661
|
-
})[], never> | undefined;
|
|
1662
|
-
} & {
|
|
1663
|
-
queryKey: ("collectable" | "collectibleActivities" | SdkConfig | {
|
|
1664
|
-
chainId: string;
|
|
1665
|
-
tokenId: string;
|
|
1666
|
-
collectionAddress: `0x${string}`;
|
|
1667
|
-
query?: {
|
|
1668
|
-
page: number;
|
|
1669
|
-
pageSize: number;
|
|
1670
|
-
enabled?: boolean | undefined;
|
|
1671
|
-
sort?: {
|
|
1672
|
-
order: SortOrder;
|
|
1673
|
-
column: string;
|
|
1674
|
-
}[] | undefined;
|
|
1675
|
-
more?: boolean | undefined;
|
|
1676
|
-
} | undefined;
|
|
1677
|
-
})[] & {
|
|
1678
|
-
[dataTagSymbol]: {
|
|
1679
|
-
activities: Activity[];
|
|
1680
|
-
page: Page$1 | undefined;
|
|
1681
|
-
};
|
|
1682
|
-
[dataTagErrorSymbol]: Error;
|
|
1683
|
-
};
|
|
1684
|
-
};
|
|
1685
|
-
declare const useListCollectibleActivities: (args: UseListCollectibleActivitiesArgs) => _tanstack_react_query.UseQueryResult<{
|
|
1686
|
-
activities: Activity[];
|
|
1687
|
-
page: Page$1 | undefined;
|
|
1688
|
-
}, Error>;
|
|
1689
|
-
|
|
1690
|
-
declare const UseListCollectiblesArgsSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
1691
|
-
side: z.ZodNativeEnum<typeof OrderSide>;
|
|
1692
|
-
contractAddress: z.ZodString;
|
|
1693
|
-
filter: z.ZodOptional<z.ZodObject<{
|
|
1694
|
-
includeEmpty: z.ZodBoolean;
|
|
1695
|
-
searchText: z.ZodOptional<z.ZodString>;
|
|
1696
|
-
properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1697
|
-
name: z.ZodString;
|
|
1698
|
-
type: z.ZodNativeEnum<typeof PropertyType>;
|
|
1699
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
1700
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
1701
|
-
values: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
1702
|
-
}, "strip", z.ZodTypeAny, {
|
|
1703
|
-
type: PropertyType;
|
|
1704
|
-
name: string;
|
|
1705
|
-
values?: any[] | undefined;
|
|
1706
|
-
min?: number | undefined;
|
|
1707
|
-
max?: number | undefined;
|
|
1708
|
-
}, {
|
|
1709
|
-
type: PropertyType;
|
|
1710
|
-
name: string;
|
|
1711
|
-
values?: any[] | undefined;
|
|
1712
|
-
min?: number | undefined;
|
|
1713
|
-
max?: number | undefined;
|
|
1714
|
-
}>, "many">>;
|
|
1715
|
-
marketplaces: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof MarketplaceKind>, "many">>;
|
|
1716
|
-
inAccounts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1717
|
-
notInAccounts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1718
|
-
ordersCreatedBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1719
|
-
ordersNotCreatedBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1720
|
-
}, "strip", z.ZodTypeAny, {
|
|
1721
|
-
includeEmpty: boolean;
|
|
1722
|
-
searchText?: string | undefined;
|
|
1723
|
-
properties?: {
|
|
1724
|
-
type: PropertyType;
|
|
1725
|
-
name: string;
|
|
1726
|
-
values?: any[] | undefined;
|
|
1727
|
-
min?: number | undefined;
|
|
1728
|
-
max?: number | undefined;
|
|
1729
|
-
}[] | undefined;
|
|
1730
|
-
marketplaces?: MarketplaceKind[] | undefined;
|
|
1731
|
-
inAccounts?: string[] | undefined;
|
|
1732
|
-
notInAccounts?: string[] | undefined;
|
|
1733
|
-
ordersCreatedBy?: string[] | undefined;
|
|
1734
|
-
ordersNotCreatedBy?: string[] | undefined;
|
|
1735
|
-
}, {
|
|
1736
|
-
includeEmpty: boolean;
|
|
1737
|
-
searchText?: string | undefined;
|
|
1738
|
-
properties?: {
|
|
1739
|
-
type: PropertyType;
|
|
1740
|
-
name: string;
|
|
1741
|
-
values?: any[] | undefined;
|
|
1742
|
-
min?: number | undefined;
|
|
1743
|
-
max?: number | undefined;
|
|
1744
|
-
}[] | undefined;
|
|
1745
|
-
marketplaces?: MarketplaceKind[] | undefined;
|
|
1746
|
-
inAccounts?: string[] | undefined;
|
|
1747
|
-
notInAccounts?: string[] | undefined;
|
|
1748
|
-
ordersCreatedBy?: string[] | undefined;
|
|
1749
|
-
ordersNotCreatedBy?: string[] | undefined;
|
|
1750
|
-
}>>;
|
|
1751
|
-
page: z.ZodOptional<z.ZodObject<{
|
|
1752
|
-
page: z.ZodNumber;
|
|
1753
|
-
pageSize: z.ZodNumber;
|
|
1754
|
-
more: z.ZodOptional<z.ZodBoolean>;
|
|
1755
|
-
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1756
|
-
column: z.ZodString;
|
|
1757
|
-
order: z.ZodNativeEnum<typeof SortOrder>;
|
|
1758
|
-
}, "strip", z.ZodTypeAny, {
|
|
1759
|
-
order: SortOrder;
|
|
1760
|
-
column: string;
|
|
1761
|
-
}, {
|
|
1762
|
-
order: SortOrder;
|
|
1763
|
-
column: string;
|
|
1764
|
-
}>, "many">>;
|
|
1765
|
-
}, "strip", z.ZodTypeAny, {
|
|
1766
|
-
page: number;
|
|
1767
|
-
pageSize: number;
|
|
1768
|
-
sort?: {
|
|
1769
|
-
order: SortOrder;
|
|
1770
|
-
column: string;
|
|
1771
|
-
}[] | undefined;
|
|
1772
|
-
more?: boolean | undefined;
|
|
1773
|
-
}, {
|
|
1774
|
-
page: number;
|
|
1775
|
-
pageSize: number;
|
|
1776
|
-
sort?: {
|
|
1777
|
-
order: SortOrder;
|
|
1778
|
-
column: string;
|
|
1779
|
-
}[] | undefined;
|
|
1780
|
-
more?: boolean | undefined;
|
|
1781
|
-
}>>;
|
|
1782
|
-
}, "contractAddress">, {
|
|
1783
|
-
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
1784
|
-
chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
|
|
1785
|
-
query: z.ZodOptional<z.ZodObject<{
|
|
1786
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1787
|
-
}, "strip", z.ZodTypeAny, {
|
|
1788
|
-
enabled?: boolean | undefined;
|
|
1789
|
-
}, {
|
|
1790
|
-
enabled?: boolean | undefined;
|
|
1791
|
-
}>>;
|
|
1792
|
-
}>, "strip", z.ZodTypeAny, {
|
|
1793
|
-
chainId: string;
|
|
1794
|
-
side: OrderSide;
|
|
1795
|
-
collectionAddress: `0x${string}`;
|
|
1796
|
-
page?: {
|
|
1797
|
-
page: number;
|
|
1798
|
-
pageSize: number;
|
|
1799
|
-
sort?: {
|
|
1800
|
-
order: SortOrder;
|
|
1801
|
-
column: string;
|
|
1802
|
-
}[] | undefined;
|
|
1803
|
-
more?: boolean | undefined;
|
|
1804
|
-
} | undefined;
|
|
1805
|
-
filter?: {
|
|
1806
|
-
includeEmpty: boolean;
|
|
1807
|
-
searchText?: string | undefined;
|
|
1808
|
-
properties?: {
|
|
1809
|
-
type: PropertyType;
|
|
1810
|
-
name: string;
|
|
1811
|
-
values?: any[] | undefined;
|
|
1812
|
-
min?: number | undefined;
|
|
1813
|
-
max?: number | undefined;
|
|
1814
|
-
}[] | undefined;
|
|
1815
|
-
marketplaces?: MarketplaceKind[] | undefined;
|
|
1816
|
-
inAccounts?: string[] | undefined;
|
|
1817
|
-
notInAccounts?: string[] | undefined;
|
|
1818
|
-
ordersCreatedBy?: string[] | undefined;
|
|
1819
|
-
ordersNotCreatedBy?: string[] | undefined;
|
|
1820
|
-
} | undefined;
|
|
1821
|
-
query?: {
|
|
1822
|
-
enabled?: boolean | undefined;
|
|
1823
|
-
} | undefined;
|
|
1824
|
-
}, {
|
|
1825
|
-
chainId: string | number;
|
|
1826
|
-
side: OrderSide;
|
|
1827
|
-
collectionAddress: string;
|
|
1828
|
-
page?: {
|
|
1829
|
-
page: number;
|
|
1830
|
-
pageSize: number;
|
|
1831
|
-
sort?: {
|
|
1832
|
-
order: SortOrder;
|
|
1833
|
-
column: string;
|
|
1834
|
-
}[] | undefined;
|
|
1835
|
-
more?: boolean | undefined;
|
|
1836
|
-
} | undefined;
|
|
1837
|
-
filter?: {
|
|
1838
|
-
includeEmpty: boolean;
|
|
1839
|
-
searchText?: string | undefined;
|
|
1840
|
-
properties?: {
|
|
1841
|
-
type: PropertyType;
|
|
1842
|
-
name: string;
|
|
1843
|
-
values?: any[] | undefined;
|
|
1844
|
-
min?: number | undefined;
|
|
1845
|
-
max?: number | undefined;
|
|
1846
|
-
}[] | undefined;
|
|
1847
|
-
marketplaces?: MarketplaceKind[] | undefined;
|
|
1848
|
-
inAccounts?: string[] | undefined;
|
|
1849
|
-
notInAccounts?: string[] | undefined;
|
|
1850
|
-
ordersCreatedBy?: string[] | undefined;
|
|
1851
|
-
ordersNotCreatedBy?: string[] | undefined;
|
|
1852
|
-
} | undefined;
|
|
1853
|
-
query?: {
|
|
1854
|
-
enabled?: boolean | undefined;
|
|
1855
|
-
} | undefined;
|
|
1856
|
-
}>;
|
|
1857
|
-
type UseListCollectiblesArgs = z.infer<typeof UseListCollectiblesArgsSchema>;
|
|
1858
|
-
type UseListCollectiblesReturn = Awaited<ReturnType<typeof fetchCollectibles>>;
|
|
1859
|
-
declare const fetchCollectibles: (args: UseListCollectiblesArgs, marketplaceClient: Awaited<ReturnType<typeof getMarketplaceClient>>, page: Page$1) => Promise<ListCollectiblesReturn>;
|
|
1860
|
-
declare const listCollectiblesOptions: (args: UseListCollectiblesArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<ListCollectiblesReturn, Error, _tanstack_react_query.InfiniteData<ListCollectiblesReturn, unknown>, ListCollectiblesReturn, ("collectable" | "list" | {
|
|
1861
|
-
chainId: string;
|
|
1862
|
-
side: OrderSide;
|
|
1863
|
-
collectionAddress: `0x${string}`;
|
|
1864
|
-
page?: {
|
|
1865
|
-
page: number;
|
|
1866
|
-
pageSize: number;
|
|
1867
|
-
sort?: {
|
|
1868
|
-
order: SortOrder;
|
|
1869
|
-
column: string;
|
|
1870
|
-
}[] | undefined;
|
|
1871
|
-
more?: boolean | undefined;
|
|
1872
|
-
} | undefined;
|
|
1873
|
-
filter?: {
|
|
1874
|
-
includeEmpty: boolean;
|
|
1875
|
-
searchText?: string | undefined;
|
|
1876
|
-
properties?: {
|
|
1877
|
-
type: PropertyType;
|
|
1878
|
-
name: string;
|
|
1879
|
-
values?: any[] | undefined;
|
|
1880
|
-
min?: number | undefined;
|
|
1881
|
-
max?: number | undefined;
|
|
1882
|
-
}[] | undefined;
|
|
1883
|
-
marketplaces?: MarketplaceKind[] | undefined;
|
|
1884
|
-
inAccounts?: string[] | undefined;
|
|
1885
|
-
notInAccounts?: string[] | undefined;
|
|
1886
|
-
ordersCreatedBy?: string[] | undefined;
|
|
1887
|
-
ordersNotCreatedBy?: string[] | undefined;
|
|
1888
|
-
} | undefined;
|
|
1590
|
+
declare const listCollectibleActivitiesOptions: (args: UseListCollectibleActivitiesArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
|
|
1591
|
+
activities: Activity[];
|
|
1592
|
+
page: Page | undefined;
|
|
1593
|
+
}, Error, {
|
|
1594
|
+
activities: Activity[];
|
|
1595
|
+
page: Page | undefined;
|
|
1596
|
+
}, ("collectable" | "collectibleActivities" | SdkConfig | {
|
|
1597
|
+
chainId: number;
|
|
1598
|
+
collectionAddress: `0x${string}`;
|
|
1599
|
+
tokenId: string;
|
|
1889
1600
|
query?: {
|
|
1601
|
+
page: number;
|
|
1602
|
+
pageSize: number;
|
|
1890
1603
|
enabled?: boolean | undefined;
|
|
1604
|
+
sort?: {
|
|
1605
|
+
order: SortOrder;
|
|
1606
|
+
column: string;
|
|
1607
|
+
}[] | undefined;
|
|
1608
|
+
more?: boolean | undefined;
|
|
1891
1609
|
} | undefined;
|
|
1892
|
-
})[]
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
chainId:
|
|
1898
|
-
side: OrderSide;
|
|
1610
|
+
})[]>, "queryFn"> & {
|
|
1611
|
+
queryFn?: _tanstack_react_query.QueryFunction<{
|
|
1612
|
+
activities: Activity[];
|
|
1613
|
+
page: Page | undefined;
|
|
1614
|
+
}, ("collectable" | "collectibleActivities" | SdkConfig | {
|
|
1615
|
+
chainId: number;
|
|
1899
1616
|
collectionAddress: `0x${string}`;
|
|
1900
|
-
|
|
1617
|
+
tokenId: string;
|
|
1618
|
+
query?: {
|
|
1901
1619
|
page: number;
|
|
1902
1620
|
pageSize: number;
|
|
1621
|
+
enabled?: boolean | undefined;
|
|
1903
1622
|
sort?: {
|
|
1904
1623
|
order: SortOrder;
|
|
1905
1624
|
column: string;
|
|
1906
1625
|
}[] | undefined;
|
|
1907
1626
|
more?: boolean | undefined;
|
|
1908
1627
|
} | undefined;
|
|
1909
|
-
|
|
1910
|
-
includeEmpty: boolean;
|
|
1911
|
-
searchText?: string | undefined;
|
|
1912
|
-
properties?: {
|
|
1913
|
-
type: PropertyType;
|
|
1914
|
-
name: string;
|
|
1915
|
-
values?: any[] | undefined;
|
|
1916
|
-
min?: number | undefined;
|
|
1917
|
-
max?: number | undefined;
|
|
1918
|
-
}[] | undefined;
|
|
1919
|
-
marketplaces?: MarketplaceKind[] | undefined;
|
|
1920
|
-
inAccounts?: string[] | undefined;
|
|
1921
|
-
notInAccounts?: string[] | undefined;
|
|
1922
|
-
ordersCreatedBy?: string[] | undefined;
|
|
1923
|
-
ordersNotCreatedBy?: string[] | undefined;
|
|
1924
|
-
} | undefined;
|
|
1925
|
-
query?: {
|
|
1926
|
-
enabled?: boolean | undefined;
|
|
1927
|
-
} | undefined;
|
|
1928
|
-
})[], {
|
|
1929
|
-
page: number;
|
|
1930
|
-
pageSize: number;
|
|
1931
|
-
}> | undefined;
|
|
1628
|
+
})[], never> | undefined;
|
|
1932
1629
|
} & {
|
|
1933
|
-
queryKey: ("collectable" | "
|
|
1934
|
-
chainId:
|
|
1935
|
-
side: OrderSide;
|
|
1630
|
+
queryKey: ("collectable" | "collectibleActivities" | SdkConfig | {
|
|
1631
|
+
chainId: number;
|
|
1936
1632
|
collectionAddress: `0x${string}`;
|
|
1937
|
-
|
|
1633
|
+
tokenId: string;
|
|
1634
|
+
query?: {
|
|
1938
1635
|
page: number;
|
|
1939
1636
|
pageSize: number;
|
|
1637
|
+
enabled?: boolean | undefined;
|
|
1940
1638
|
sort?: {
|
|
1941
1639
|
order: SortOrder;
|
|
1942
1640
|
column: string;
|
|
1943
1641
|
}[] | undefined;
|
|
1944
1642
|
more?: boolean | undefined;
|
|
1945
1643
|
} | undefined;
|
|
1946
|
-
filter?: {
|
|
1947
|
-
includeEmpty: boolean;
|
|
1948
|
-
searchText?: string | undefined;
|
|
1949
|
-
properties?: {
|
|
1950
|
-
type: PropertyType;
|
|
1951
|
-
name: string;
|
|
1952
|
-
values?: any[] | undefined;
|
|
1953
|
-
min?: number | undefined;
|
|
1954
|
-
max?: number | undefined;
|
|
1955
|
-
}[] | undefined;
|
|
1956
|
-
marketplaces?: MarketplaceKind[] | undefined;
|
|
1957
|
-
inAccounts?: string[] | undefined;
|
|
1958
|
-
notInAccounts?: string[] | undefined;
|
|
1959
|
-
ordersCreatedBy?: string[] | undefined;
|
|
1960
|
-
ordersNotCreatedBy?: string[] | undefined;
|
|
1961
|
-
} | undefined;
|
|
1962
|
-
query?: {
|
|
1963
|
-
enabled?: boolean | undefined;
|
|
1964
|
-
} | undefined;
|
|
1965
1644
|
})[] & {
|
|
1966
|
-
[dataTagSymbol]:
|
|
1645
|
+
[dataTagSymbol]: {
|
|
1646
|
+
activities: Activity[];
|
|
1647
|
+
page: Page | undefined;
|
|
1648
|
+
};
|
|
1967
1649
|
[dataTagErrorSymbol]: Error;
|
|
1968
1650
|
};
|
|
1969
1651
|
};
|
|
1970
|
-
declare const
|
|
1652
|
+
declare const useListCollectibleActivities: (args: UseListCollectibleActivitiesArgs) => _tanstack_react_query.UseQueryResult<{
|
|
1653
|
+
activities: Activity[];
|
|
1654
|
+
page: Page | undefined;
|
|
1655
|
+
}, Error>;
|
|
1656
|
+
|
|
1657
|
+
/**
|
|
1658
|
+
* Hook to fetch a list of collectibles with pagination support
|
|
1659
|
+
*
|
|
1660
|
+
* @param args - The arguments for fetching the collectibles
|
|
1661
|
+
* @returns Infinite query result containing the collectibles data including orders
|
|
1662
|
+
*
|
|
1663
|
+
* @example
|
|
1664
|
+
* ```tsx
|
|
1665
|
+
* const { data, isLoading, error, fetchNextPage } = useListCollectibles({
|
|
1666
|
+
* chainId: 1,
|
|
1667
|
+
* collectionAddress: '0x123...',
|
|
1668
|
+
* includeMetadata: true,
|
|
1669
|
+
* query: {
|
|
1670
|
+
* enabled: true,
|
|
1671
|
+
* refetchInterval: 10000,
|
|
1672
|
+
* }
|
|
1673
|
+
* });
|
|
1674
|
+
* ```
|
|
1675
|
+
*/
|
|
1676
|
+
declare function useListCollectibles(args: UseListCollectiblesArgs): _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ListCollectiblesReturn, unknown>, Error>;
|
|
1971
1677
|
|
|
1972
1678
|
declare const UseListCollectiblesPaginatedArgsSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
1973
1679
|
side: z.ZodNativeEnum<typeof OrderSide>;
|
|
@@ -2063,7 +1769,7 @@ declare const UseListCollectiblesPaginatedArgsSchema: z.ZodObject<z.objectUtil.e
|
|
|
2063
1769
|
}>>;
|
|
2064
1770
|
}, "contractAddress">, {
|
|
2065
1771
|
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2066
|
-
chainId: z.
|
|
1772
|
+
chainId: z.ZodNumber;
|
|
2067
1773
|
query: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
2068
1774
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2069
1775
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -2078,14 +1784,14 @@ declare const UseListCollectiblesPaginatedArgsSchema: z.ZodObject<z.objectUtil.e
|
|
|
2078
1784
|
pageSize?: number | undefined;
|
|
2079
1785
|
}>>>;
|
|
2080
1786
|
}>, "strip", z.ZodTypeAny, {
|
|
2081
|
-
chainId:
|
|
2082
|
-
side: OrderSide;
|
|
1787
|
+
chainId: number;
|
|
2083
1788
|
query: {
|
|
2084
1789
|
page: number;
|
|
2085
1790
|
pageSize: number;
|
|
2086
1791
|
enabled?: boolean | undefined;
|
|
2087
1792
|
};
|
|
2088
1793
|
collectionAddress: `0x${string}`;
|
|
1794
|
+
side: OrderSide;
|
|
2089
1795
|
page?: {
|
|
2090
1796
|
page: number;
|
|
2091
1797
|
pageSize: number;
|
|
@@ -2112,9 +1818,9 @@ declare const UseListCollectiblesPaginatedArgsSchema: z.ZodObject<z.objectUtil.e
|
|
|
2112
1818
|
ordersNotCreatedBy?: string[] | undefined;
|
|
2113
1819
|
} | undefined;
|
|
2114
1820
|
}, {
|
|
2115
|
-
chainId:
|
|
2116
|
-
side: OrderSide;
|
|
1821
|
+
chainId: number;
|
|
2117
1822
|
collectionAddress: string;
|
|
1823
|
+
side: OrderSide;
|
|
2118
1824
|
page?: {
|
|
2119
1825
|
page: number;
|
|
2120
1826
|
pageSize: number;
|
|
@@ -2150,14 +1856,14 @@ type UseListCollectiblesPaginatedArgs = z.infer<typeof UseListCollectiblesPagina
|
|
|
2150
1856
|
type UseListCollectiblesPaginatedReturn = Awaited<ReturnType<typeof fetchCollectiblesPaginated>>;
|
|
2151
1857
|
declare const fetchCollectiblesPaginated: (args: UseListCollectiblesPaginatedArgs, marketplaceClient: Awaited<ReturnType<typeof getMarketplaceClient>>) => Promise<ListCollectiblesReturn>;
|
|
2152
1858
|
declare const listCollectiblesPaginatedOptions: (args: UseListCollectiblesPaginatedArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ListCollectiblesReturn, Error, ListCollectiblesReturn, (string | {
|
|
2153
|
-
chainId:
|
|
2154
|
-
side: OrderSide;
|
|
1859
|
+
chainId: number;
|
|
2155
1860
|
query: {
|
|
2156
1861
|
page: number;
|
|
2157
1862
|
pageSize: number;
|
|
2158
1863
|
enabled?: boolean | undefined;
|
|
2159
1864
|
};
|
|
2160
1865
|
collectionAddress: `0x${string}`;
|
|
1866
|
+
side: OrderSide;
|
|
2161
1867
|
page?: {
|
|
2162
1868
|
page: number;
|
|
2163
1869
|
pageSize: number;
|
|
@@ -2185,14 +1891,14 @@ declare const listCollectiblesPaginatedOptions: (args: UseListCollectiblesPagina
|
|
|
2185
1891
|
} | undefined;
|
|
2186
1892
|
})[]>, "queryFn"> & {
|
|
2187
1893
|
queryFn?: _tanstack_react_query.QueryFunction<ListCollectiblesReturn, (string | {
|
|
2188
|
-
chainId:
|
|
2189
|
-
side: OrderSide;
|
|
1894
|
+
chainId: number;
|
|
2190
1895
|
query: {
|
|
2191
1896
|
page: number;
|
|
2192
1897
|
pageSize: number;
|
|
2193
1898
|
enabled?: boolean | undefined;
|
|
2194
1899
|
};
|
|
2195
1900
|
collectionAddress: `0x${string}`;
|
|
1901
|
+
side: OrderSide;
|
|
2196
1902
|
page?: {
|
|
2197
1903
|
page: number;
|
|
2198
1904
|
pageSize: number;
|
|
@@ -2221,14 +1927,14 @@ declare const listCollectiblesPaginatedOptions: (args: UseListCollectiblesPagina
|
|
|
2221
1927
|
})[], never> | undefined;
|
|
2222
1928
|
} & {
|
|
2223
1929
|
queryKey: (string | {
|
|
2224
|
-
chainId:
|
|
2225
|
-
side: OrderSide;
|
|
1930
|
+
chainId: number;
|
|
2226
1931
|
query: {
|
|
2227
1932
|
page: number;
|
|
2228
1933
|
pageSize: number;
|
|
2229
1934
|
enabled?: boolean | undefined;
|
|
2230
1935
|
};
|
|
2231
1936
|
collectionAddress: `0x${string}`;
|
|
1937
|
+
side: OrderSide;
|
|
2232
1938
|
page?: {
|
|
2233
1939
|
page: number;
|
|
2234
1940
|
pageSize: number;
|
|
@@ -2265,12 +1971,12 @@ type UseListCollectionActivitiesArgs = z.infer<typeof getListCollectionActivitie
|
|
|
2265
1971
|
type UseListCollectionActivitiesReturn = z.infer<typeof getListCollectionActivitiesReturnSchema>;
|
|
2266
1972
|
declare const listCollectionActivitiesOptions: (args: UseListCollectionActivitiesArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
|
|
2267
1973
|
activities: Activity[];
|
|
2268
|
-
page: Page
|
|
1974
|
+
page: Page | undefined;
|
|
2269
1975
|
}, Error, {
|
|
2270
1976
|
activities: Activity[];
|
|
2271
|
-
page: Page
|
|
1977
|
+
page: Page | undefined;
|
|
2272
1978
|
}, ("collections" | "collectionActivities" | SdkConfig | {
|
|
2273
|
-
chainId:
|
|
1979
|
+
chainId: number;
|
|
2274
1980
|
collectionAddress: `0x${string}`;
|
|
2275
1981
|
query?: {
|
|
2276
1982
|
page: number;
|
|
@@ -2285,9 +1991,9 @@ declare const listCollectionActivitiesOptions: (args: UseListCollectionActivitie
|
|
|
2285
1991
|
})[]>, "queryFn"> & {
|
|
2286
1992
|
queryFn?: _tanstack_react_query.QueryFunction<{
|
|
2287
1993
|
activities: Activity[];
|
|
2288
|
-
page: Page
|
|
1994
|
+
page: Page | undefined;
|
|
2289
1995
|
}, ("collections" | "collectionActivities" | SdkConfig | {
|
|
2290
|
-
chainId:
|
|
1996
|
+
chainId: number;
|
|
2291
1997
|
collectionAddress: `0x${string}`;
|
|
2292
1998
|
query?: {
|
|
2293
1999
|
page: number;
|
|
@@ -2302,7 +2008,7 @@ declare const listCollectionActivitiesOptions: (args: UseListCollectionActivitie
|
|
|
2302
2008
|
})[], never> | undefined;
|
|
2303
2009
|
} & {
|
|
2304
2010
|
queryKey: ("collections" | "collectionActivities" | SdkConfig | {
|
|
2305
|
-
chainId:
|
|
2011
|
+
chainId: number;
|
|
2306
2012
|
collectionAddress: `0x${string}`;
|
|
2307
2013
|
query?: {
|
|
2308
2014
|
page: number;
|
|
@@ -2317,14 +2023,14 @@ declare const listCollectionActivitiesOptions: (args: UseListCollectionActivitie
|
|
|
2317
2023
|
})[] & {
|
|
2318
2024
|
[dataTagSymbol]: {
|
|
2319
2025
|
activities: Activity[];
|
|
2320
|
-
page: Page
|
|
2026
|
+
page: Page | undefined;
|
|
2321
2027
|
};
|
|
2322
2028
|
[dataTagErrorSymbol]: Error;
|
|
2323
2029
|
};
|
|
2324
2030
|
};
|
|
2325
2031
|
declare const useListCollectionActivities: (args: UseListCollectionActivitiesArgs) => _tanstack_react_query.UseQueryResult<{
|
|
2326
2032
|
activities: Activity[];
|
|
2327
|
-
page: Page
|
|
2033
|
+
page: Page | undefined;
|
|
2328
2034
|
}, Error>;
|
|
2329
2035
|
|
|
2330
2036
|
declare const UseListOffersForCollectibleArgsSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
@@ -2375,11 +2081,11 @@ declare const UseListOffersForCollectibleArgsSchema: z.ZodObject<Omit<z.objectUt
|
|
|
2375
2081
|
more?: boolean | undefined;
|
|
2376
2082
|
}>>;
|
|
2377
2083
|
}, {
|
|
2378
|
-
chainId: z.
|
|
2084
|
+
chainId: z.ZodNumber;
|
|
2379
2085
|
collectionAddress: z.ZodString;
|
|
2380
2086
|
collectibleId: z.ZodString;
|
|
2381
2087
|
}>, "contractAddress" | "tokenId">, "strip", z.ZodTypeAny, {
|
|
2382
|
-
chainId:
|
|
2088
|
+
chainId: number;
|
|
2383
2089
|
collectionAddress: string;
|
|
2384
2090
|
collectibleId: string;
|
|
2385
2091
|
page?: {
|
|
@@ -2397,7 +2103,7 @@ declare const UseListOffersForCollectibleArgsSchema: z.ZodObject<Omit<z.objectUt
|
|
|
2397
2103
|
createdBy?: string[] | undefined;
|
|
2398
2104
|
} | undefined;
|
|
2399
2105
|
}, {
|
|
2400
|
-
chainId:
|
|
2106
|
+
chainId: number;
|
|
2401
2107
|
collectionAddress: string;
|
|
2402
2108
|
collectibleId: string;
|
|
2403
2109
|
page?: {
|
|
@@ -2419,7 +2125,7 @@ type UseListOffersForCollectibleArgs = z.infer<typeof UseListOffersForCollectibl
|
|
|
2419
2125
|
type UseListOffersForCollectibleReturn = Awaited<ReturnType<typeof fetchListOffersForCollectible>>;
|
|
2420
2126
|
declare const fetchListOffersForCollectible: (config: SdkConfig, args: UseListOffersForCollectibleArgs) => Promise<ListCollectibleOffersReturn>;
|
|
2421
2127
|
declare const listOffersForCollectibleOptions: (args: UseListOffersForCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ListCollectibleOffersReturn, Error, ListCollectibleOffersReturn, ("offers" | "collectable" | SdkConfig | {
|
|
2422
|
-
chainId:
|
|
2128
|
+
chainId: number;
|
|
2423
2129
|
collectionAddress: string;
|
|
2424
2130
|
collectibleId: string;
|
|
2425
2131
|
page?: {
|
|
@@ -2438,7 +2144,7 @@ declare const listOffersForCollectibleOptions: (args: UseListOffersForCollectibl
|
|
|
2438
2144
|
} | undefined;
|
|
2439
2145
|
})[]>, "queryFn"> & {
|
|
2440
2146
|
queryFn?: _tanstack_react_query.QueryFunction<ListCollectibleOffersReturn, ("offers" | "collectable" | SdkConfig | {
|
|
2441
|
-
chainId:
|
|
2147
|
+
chainId: number;
|
|
2442
2148
|
collectionAddress: string;
|
|
2443
2149
|
collectibleId: string;
|
|
2444
2150
|
page?: {
|
|
@@ -2458,7 +2164,7 @@ declare const listOffersForCollectibleOptions: (args: UseListOffersForCollectibl
|
|
|
2458
2164
|
})[], never> | undefined;
|
|
2459
2165
|
} & {
|
|
2460
2166
|
queryKey: ("offers" | "collectable" | SdkConfig | {
|
|
2461
|
-
chainId:
|
|
2167
|
+
chainId: number;
|
|
2462
2168
|
collectionAddress: string;
|
|
2463
2169
|
collectibleId: string;
|
|
2464
2170
|
page?: {
|
|
@@ -2501,7 +2207,7 @@ declare const UseCountOffersForCollectibleArgsSchema: z.ZodObject<z.objectUtil.e
|
|
|
2501
2207
|
}, "contractAddress" | "tokenId">, {
|
|
2502
2208
|
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2503
2209
|
collectibleId: z.ZodString;
|
|
2504
|
-
chainId: z.
|
|
2210
|
+
chainId: z.ZodNumber;
|
|
2505
2211
|
query: z.ZodOptional<z.ZodObject<{
|
|
2506
2212
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2507
2213
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2510,7 +2216,7 @@ declare const UseCountOffersForCollectibleArgsSchema: z.ZodObject<z.objectUtil.e
|
|
|
2510
2216
|
enabled?: boolean | undefined;
|
|
2511
2217
|
}>>;
|
|
2512
2218
|
}>, "strip", z.ZodTypeAny, {
|
|
2513
|
-
chainId:
|
|
2219
|
+
chainId: number;
|
|
2514
2220
|
collectionAddress: `0x${string}`;
|
|
2515
2221
|
collectibleId: string;
|
|
2516
2222
|
filter?: {
|
|
@@ -2522,7 +2228,7 @@ declare const UseCountOffersForCollectibleArgsSchema: z.ZodObject<z.objectUtil.e
|
|
|
2522
2228
|
enabled?: boolean | undefined;
|
|
2523
2229
|
} | undefined;
|
|
2524
2230
|
}, {
|
|
2525
|
-
chainId:
|
|
2231
|
+
chainId: number;
|
|
2526
2232
|
collectionAddress: string;
|
|
2527
2233
|
collectibleId: string;
|
|
2528
2234
|
filter?: {
|
|
@@ -2538,7 +2244,7 @@ type UseCountOffersForCollectibleArgs = z.infer<typeof UseCountOffersForCollecti
|
|
|
2538
2244
|
type UseCountOffersForCollectibleReturn = Awaited<ReturnType<typeof fetchCountOffersForCollectible>>;
|
|
2539
2245
|
declare const fetchCountOffersForCollectible: (args: UseCountOffersForCollectibleArgs, config: SdkConfig) => Promise<GetCountOfOffersForCollectibleReturn>;
|
|
2540
2246
|
declare const countOffersForCollectibleOptions: (args: UseCountOffersForCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetCountOfOffersForCollectibleReturn, Error, GetCountOfOffersForCollectibleReturn, ("collectable" | "offersCount" | SdkConfig | {
|
|
2541
|
-
chainId:
|
|
2247
|
+
chainId: number;
|
|
2542
2248
|
collectionAddress: `0x${string}`;
|
|
2543
2249
|
collectibleId: string;
|
|
2544
2250
|
filter?: {
|
|
@@ -2551,7 +2257,7 @@ declare const countOffersForCollectibleOptions: (args: UseCountOffersForCollecti
|
|
|
2551
2257
|
} | undefined;
|
|
2552
2258
|
})[]>, "queryFn"> & {
|
|
2553
2259
|
queryFn?: _tanstack_react_query.QueryFunction<GetCountOfOffersForCollectibleReturn, ("collectable" | "offersCount" | SdkConfig | {
|
|
2554
|
-
chainId:
|
|
2260
|
+
chainId: number;
|
|
2555
2261
|
collectionAddress: `0x${string}`;
|
|
2556
2262
|
collectibleId: string;
|
|
2557
2263
|
filter?: {
|
|
@@ -2565,7 +2271,7 @@ declare const countOffersForCollectibleOptions: (args: UseCountOffersForCollecti
|
|
|
2565
2271
|
})[], never> | undefined;
|
|
2566
2272
|
} & {
|
|
2567
2273
|
queryKey: ("collectable" | "offersCount" | SdkConfig | {
|
|
2568
|
-
chainId:
|
|
2274
|
+
chainId: number;
|
|
2569
2275
|
collectionAddress: `0x${string}`;
|
|
2570
2276
|
collectibleId: string;
|
|
2571
2277
|
filter?: {
|
|
@@ -2631,11 +2337,11 @@ declare const UseListListingsForCollectibleArgsSchema: z.ZodObject<Omit<z.object
|
|
|
2631
2337
|
more?: boolean | undefined;
|
|
2632
2338
|
}>>;
|
|
2633
2339
|
}, {
|
|
2634
|
-
chainId: z.
|
|
2340
|
+
chainId: z.ZodNumber;
|
|
2635
2341
|
collectionAddress: z.ZodString;
|
|
2636
2342
|
collectibleId: z.ZodString;
|
|
2637
2343
|
}>, "contractAddress" | "tokenId">, "strip", z.ZodTypeAny, {
|
|
2638
|
-
chainId:
|
|
2344
|
+
chainId: number;
|
|
2639
2345
|
collectionAddress: string;
|
|
2640
2346
|
collectibleId: string;
|
|
2641
2347
|
page?: {
|
|
@@ -2653,7 +2359,7 @@ declare const UseListListingsForCollectibleArgsSchema: z.ZodObject<Omit<z.object
|
|
|
2653
2359
|
createdBy?: string[] | undefined;
|
|
2654
2360
|
} | undefined;
|
|
2655
2361
|
}, {
|
|
2656
|
-
chainId:
|
|
2362
|
+
chainId: number;
|
|
2657
2363
|
collectionAddress: string;
|
|
2658
2364
|
collectibleId: string;
|
|
2659
2365
|
page?: {
|
|
@@ -2675,7 +2381,7 @@ type UseListListingsForCollectibleArgs = z.infer<typeof UseListListingsForCollec
|
|
|
2675
2381
|
type UseListListingsForCollectibleReturn = Awaited<ReturnType<typeof fetchListListingsForCollectible>>;
|
|
2676
2382
|
declare const fetchListListingsForCollectible: (config: SdkConfig, args: UseListListingsForCollectibleArgs) => Promise<ListCollectibleListingsReturn>;
|
|
2677
2383
|
declare const listListingsForCollectibleOptions: (args: UseListListingsForCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ListCollectibleListingsReturn, Error, ListCollectibleListingsReturn, ("listings" | "collectable" | SdkConfig | {
|
|
2678
|
-
chainId:
|
|
2384
|
+
chainId: number;
|
|
2679
2385
|
collectionAddress: string;
|
|
2680
2386
|
collectibleId: string;
|
|
2681
2387
|
page?: {
|
|
@@ -2694,7 +2400,7 @@ declare const listListingsForCollectibleOptions: (args: UseListListingsForCollec
|
|
|
2694
2400
|
} | undefined;
|
|
2695
2401
|
})[]>, "queryFn"> & {
|
|
2696
2402
|
queryFn?: _tanstack_react_query.QueryFunction<ListCollectibleListingsReturn, ("listings" | "collectable" | SdkConfig | {
|
|
2697
|
-
chainId:
|
|
2403
|
+
chainId: number;
|
|
2698
2404
|
collectionAddress: string;
|
|
2699
2405
|
collectibleId: string;
|
|
2700
2406
|
page?: {
|
|
@@ -2714,7 +2420,7 @@ declare const listListingsForCollectibleOptions: (args: UseListListingsForCollec
|
|
|
2714
2420
|
})[], never> | undefined;
|
|
2715
2421
|
} & {
|
|
2716
2422
|
queryKey: ("listings" | "collectable" | SdkConfig | {
|
|
2717
|
-
chainId:
|
|
2423
|
+
chainId: number;
|
|
2718
2424
|
collectionAddress: string;
|
|
2719
2425
|
collectibleId: string;
|
|
2720
2426
|
page?: {
|
|
@@ -2757,7 +2463,7 @@ declare const UseCountListingsForCollectibleArgsSchema: z.ZodObject<z.objectUtil
|
|
|
2757
2463
|
}, "contractAddress" | "tokenId">, {
|
|
2758
2464
|
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2759
2465
|
collectibleId: z.ZodString;
|
|
2760
|
-
chainId: z.
|
|
2466
|
+
chainId: z.ZodNumber;
|
|
2761
2467
|
query: z.ZodOptional<z.ZodObject<{
|
|
2762
2468
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2763
2469
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2766,7 +2472,7 @@ declare const UseCountListingsForCollectibleArgsSchema: z.ZodObject<z.objectUtil
|
|
|
2766
2472
|
enabled?: boolean | undefined;
|
|
2767
2473
|
}>>;
|
|
2768
2474
|
}>, "strip", z.ZodTypeAny, {
|
|
2769
|
-
chainId:
|
|
2475
|
+
chainId: number;
|
|
2770
2476
|
collectionAddress: `0x${string}`;
|
|
2771
2477
|
collectibleId: string;
|
|
2772
2478
|
filter?: {
|
|
@@ -2778,7 +2484,7 @@ declare const UseCountListingsForCollectibleArgsSchema: z.ZodObject<z.objectUtil
|
|
|
2778
2484
|
enabled?: boolean | undefined;
|
|
2779
2485
|
} | undefined;
|
|
2780
2486
|
}, {
|
|
2781
|
-
chainId:
|
|
2487
|
+
chainId: number;
|
|
2782
2488
|
collectionAddress: string;
|
|
2783
2489
|
collectibleId: string;
|
|
2784
2490
|
filter?: {
|
|
@@ -2794,7 +2500,7 @@ type UseCountListingsForCollectibleArgs = z.infer<typeof UseCountListingsForColl
|
|
|
2794
2500
|
type UseCountListingsForCollectibleReturn = Awaited<ReturnType<typeof fetchCountListingsForCollectible>>;
|
|
2795
2501
|
declare const fetchCountListingsForCollectible: (args: UseCountListingsForCollectibleArgs, config: SdkConfig) => Promise<GetCountOfListingsForCollectibleReturn>;
|
|
2796
2502
|
declare const countListingsForCollectibleOptions: (args: UseCountListingsForCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetCountOfListingsForCollectibleReturn, Error, GetCountOfListingsForCollectibleReturn, ("collectable" | "listingsCount" | SdkConfig | {
|
|
2797
|
-
chainId:
|
|
2503
|
+
chainId: number;
|
|
2798
2504
|
collectionAddress: `0x${string}`;
|
|
2799
2505
|
collectibleId: string;
|
|
2800
2506
|
filter?: {
|
|
@@ -2807,7 +2513,7 @@ declare const countListingsForCollectibleOptions: (args: UseCountListingsForColl
|
|
|
2807
2513
|
} | undefined;
|
|
2808
2514
|
})[]>, "queryFn"> & {
|
|
2809
2515
|
queryFn?: _tanstack_react_query.QueryFunction<GetCountOfListingsForCollectibleReturn, ("collectable" | "listingsCount" | SdkConfig | {
|
|
2810
|
-
chainId:
|
|
2516
|
+
chainId: number;
|
|
2811
2517
|
collectionAddress: `0x${string}`;
|
|
2812
2518
|
collectibleId: string;
|
|
2813
2519
|
filter?: {
|
|
@@ -2821,7 +2527,7 @@ declare const countListingsForCollectibleOptions: (args: UseCountListingsForColl
|
|
|
2821
2527
|
})[], never> | undefined;
|
|
2822
2528
|
} & {
|
|
2823
2529
|
queryKey: ("collectable" | "listingsCount" | SdkConfig | {
|
|
2824
|
-
chainId:
|
|
2530
|
+
chainId: number;
|
|
2825
2531
|
collectionAddress: `0x${string}`;
|
|
2826
2532
|
collectibleId: string;
|
|
2827
2533
|
filter?: {
|
|
@@ -2857,7 +2563,7 @@ declare const UseLowestListingSchema: z.ZodObject<z.objectUtil.extendShape<Omit<
|
|
|
2857
2563
|
}>>;
|
|
2858
2564
|
}, "contractAddress">, {
|
|
2859
2565
|
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2860
|
-
chainId: z.
|
|
2566
|
+
chainId: z.ZodNumber;
|
|
2861
2567
|
query: z.ZodOptional<z.ZodObject<{
|
|
2862
2568
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2863
2569
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2866,9 +2572,9 @@ declare const UseLowestListingSchema: z.ZodObject<z.objectUtil.extendShape<Omit<
|
|
|
2866
2572
|
enabled?: boolean | undefined;
|
|
2867
2573
|
}>>;
|
|
2868
2574
|
}>, "strip", z.ZodTypeAny, {
|
|
2869
|
-
chainId:
|
|
2870
|
-
tokenId: string;
|
|
2575
|
+
chainId: number;
|
|
2871
2576
|
collectionAddress: `0x${string}`;
|
|
2577
|
+
tokenId: string;
|
|
2872
2578
|
query?: {
|
|
2873
2579
|
enabled?: boolean | undefined;
|
|
2874
2580
|
} | undefined;
|
|
@@ -2878,9 +2584,9 @@ declare const UseLowestListingSchema: z.ZodObject<z.objectUtil.extendShape<Omit<
|
|
|
2878
2584
|
createdBy?: string[] | undefined;
|
|
2879
2585
|
} | undefined;
|
|
2880
2586
|
}, {
|
|
2881
|
-
chainId:
|
|
2882
|
-
tokenId: string;
|
|
2587
|
+
chainId: number;
|
|
2883
2588
|
collectionAddress: string;
|
|
2589
|
+
tokenId: string;
|
|
2884
2590
|
query?: {
|
|
2885
2591
|
enabled?: boolean | undefined;
|
|
2886
2592
|
} | undefined;
|
|
@@ -2894,9 +2600,9 @@ type UseLowestListingArgs = z.infer<typeof UseLowestListingSchema>;
|
|
|
2894
2600
|
type UseLowestListingReturn = Awaited<ReturnType<typeof fetchLowestListing>>;
|
|
2895
2601
|
declare const fetchLowestListing: (args: UseLowestListingArgs, config: SdkConfig) => Promise<GetCollectibleLowestListingReturn>;
|
|
2896
2602
|
declare const lowestListingOptions: (args: UseLowestListingArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetCollectibleLowestListingReturn, Error, GetCollectibleLowestListingReturn, ("collectable" | "details" | "lowestListings" | SdkConfig | {
|
|
2897
|
-
chainId:
|
|
2898
|
-
tokenId: string;
|
|
2603
|
+
chainId: number;
|
|
2899
2604
|
collectionAddress: `0x${string}`;
|
|
2605
|
+
tokenId: string;
|
|
2900
2606
|
query?: {
|
|
2901
2607
|
enabled?: boolean | undefined;
|
|
2902
2608
|
} | undefined;
|
|
@@ -2907,9 +2613,9 @@ declare const lowestListingOptions: (args: UseLowestListingArgs, config: SdkConf
|
|
|
2907
2613
|
} | undefined;
|
|
2908
2614
|
})[]>, "queryFn"> & {
|
|
2909
2615
|
queryFn?: _tanstack_react_query.QueryFunction<GetCollectibleLowestListingReturn, ("collectable" | "details" | "lowestListings" | SdkConfig | {
|
|
2910
|
-
chainId:
|
|
2911
|
-
tokenId: string;
|
|
2616
|
+
chainId: number;
|
|
2912
2617
|
collectionAddress: `0x${string}`;
|
|
2618
|
+
tokenId: string;
|
|
2913
2619
|
query?: {
|
|
2914
2620
|
enabled?: boolean | undefined;
|
|
2915
2621
|
} | undefined;
|
|
@@ -2921,9 +2627,9 @@ declare const lowestListingOptions: (args: UseLowestListingArgs, config: SdkConf
|
|
|
2921
2627
|
})[], never> | undefined;
|
|
2922
2628
|
} & {
|
|
2923
2629
|
queryKey: ("collectable" | "details" | "lowestListings" | SdkConfig | {
|
|
2924
|
-
chainId:
|
|
2925
|
-
tokenId: string;
|
|
2630
|
+
chainId: number;
|
|
2926
2631
|
collectionAddress: `0x${string}`;
|
|
2632
|
+
tokenId: string;
|
|
2927
2633
|
query?: {
|
|
2928
2634
|
enabled?: boolean | undefined;
|
|
2929
2635
|
} | undefined;
|
|
@@ -2942,7 +2648,7 @@ declare const useLowestListing: (args: UseLowestListingArgs) => _tanstack_react_
|
|
|
2942
2648
|
declare const useMarketplaceConfig: () => _tanstack_react_query.UseQueryResult<MarketplaceConfig, Error>;
|
|
2943
2649
|
|
|
2944
2650
|
declare const UseRoyaltySchema: z.ZodObject<{
|
|
2945
|
-
chainId: z.
|
|
2651
|
+
chainId: z.ZodNumber;
|
|
2946
2652
|
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2947
2653
|
collectibleId: z.ZodString;
|
|
2948
2654
|
query: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
@@ -2953,14 +2659,14 @@ declare const UseRoyaltySchema: z.ZodObject<{
|
|
|
2953
2659
|
enabled?: boolean | undefined;
|
|
2954
2660
|
}>>>;
|
|
2955
2661
|
}, "strip", z.ZodTypeAny, {
|
|
2956
|
-
chainId:
|
|
2662
|
+
chainId: number;
|
|
2957
2663
|
collectionAddress: `0x${string}`;
|
|
2958
2664
|
collectibleId: string;
|
|
2959
2665
|
query?: {
|
|
2960
2666
|
enabled?: boolean | undefined;
|
|
2961
2667
|
} | undefined;
|
|
2962
2668
|
}, {
|
|
2963
|
-
chainId:
|
|
2669
|
+
chainId: number;
|
|
2964
2670
|
collectionAddress: string;
|
|
2965
2671
|
collectibleId: string;
|
|
2966
2672
|
query?: {
|
|
@@ -3151,7 +2857,7 @@ declare const useRoyalty: (args: UseRoyaltyArgs) => {
|
|
|
3151
2857
|
};
|
|
3152
2858
|
|
|
3153
2859
|
type UseGenerateListingTransactionArgs = {
|
|
3154
|
-
chainId:
|
|
2860
|
+
chainId: number;
|
|
3155
2861
|
onSuccess?: (data?: Step[]) => void;
|
|
3156
2862
|
};
|
|
3157
2863
|
|
|
@@ -3161,7 +2867,7 @@ type CreateReqWithDateExpiry$1 = Omit<CreateReq, 'expiry'> & {
|
|
|
3161
2867
|
type GenerateListingTransactionProps = Omit<GenerateListingTransactionArgs, 'listing'> & {
|
|
3162
2868
|
listing: CreateReqWithDateExpiry$1;
|
|
3163
2869
|
};
|
|
3164
|
-
declare const generateListingTransaction: (params: GenerateListingTransactionProps, config: SdkConfig, chainId:
|
|
2870
|
+
declare const generateListingTransaction: (params: GenerateListingTransactionProps, config: SdkConfig, chainId: number) => Promise<Step[]>;
|
|
3165
2871
|
declare const useGenerateListingTransaction: (params: UseGenerateListingTransactionArgs) => {
|
|
3166
2872
|
generateListingTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateListingTransactionProps, unknown>;
|
|
3167
2873
|
generateListingTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateListingTransactionProps, unknown>;
|
|
@@ -3233,7 +2939,7 @@ declare const useGenerateListingTransaction: (params: UseGenerateListingTransact
|
|
|
3233
2939
|
};
|
|
3234
2940
|
|
|
3235
2941
|
type UseGenerateOfferTransactionArgs = {
|
|
3236
|
-
chainId:
|
|
2942
|
+
chainId: number;
|
|
3237
2943
|
onSuccess?: (data?: Step[]) => void;
|
|
3238
2944
|
};
|
|
3239
2945
|
type CreateReqWithDateExpiry = Omit<CreateReq, 'expiry'> & {
|
|
@@ -3242,7 +2948,7 @@ type CreateReqWithDateExpiry = Omit<CreateReq, 'expiry'> & {
|
|
|
3242
2948
|
type GenerateOfferTransactionProps = Omit<GenerateOfferTransactionArgs, 'offer'> & {
|
|
3243
2949
|
offer: CreateReqWithDateExpiry;
|
|
3244
2950
|
};
|
|
3245
|
-
declare const generateOfferTransaction: (params: GenerateOfferTransactionProps, config: SdkConfig, chainId:
|
|
2951
|
+
declare const generateOfferTransaction: (params: GenerateOfferTransactionProps, config: SdkConfig, chainId: number) => Promise<Step[]>;
|
|
3246
2952
|
declare const useGenerateOfferTransaction: (params: UseGenerateOfferTransactionArgs) => {
|
|
3247
2953
|
generateOfferTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateOfferTransactionProps, unknown>;
|
|
3248
2954
|
generateOfferTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateOfferTransactionProps, unknown>;
|
|
@@ -3314,7 +3020,7 @@ declare const useGenerateOfferTransaction: (params: UseGenerateOfferTransactionA
|
|
|
3314
3020
|
};
|
|
3315
3021
|
|
|
3316
3022
|
declare const UserGeneratSellTransactionArgsSchema: z.ZodObject<{
|
|
3317
|
-
chainId: z.
|
|
3023
|
+
chainId: z.ZodNumber;
|
|
3318
3024
|
onSuccess: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3319
3025
|
id: z.ZodNativeEnum<typeof StepType>;
|
|
3320
3026
|
data: z.ZodString;
|
|
@@ -3327,13 +3033,13 @@ declare const UserGeneratSellTransactionArgsSchema: z.ZodObject<{
|
|
|
3327
3033
|
chainId: z.ZodNumber;
|
|
3328
3034
|
verifyingContract: z.ZodString;
|
|
3329
3035
|
}, "strip", z.ZodTypeAny, {
|
|
3330
|
-
version: string;
|
|
3331
3036
|
chainId: number;
|
|
3037
|
+
version: string;
|
|
3332
3038
|
name: string;
|
|
3333
3039
|
verifyingContract: string;
|
|
3334
3040
|
}, {
|
|
3335
|
-
version: string;
|
|
3336
3041
|
chainId: number;
|
|
3042
|
+
version: string;
|
|
3337
3043
|
name: string;
|
|
3338
3044
|
verifyingContract: string;
|
|
3339
3045
|
}>;
|
|
@@ -3342,8 +3048,8 @@ declare const UserGeneratSellTransactionArgsSchema: z.ZodObject<{
|
|
|
3342
3048
|
value: z.ZodAny;
|
|
3343
3049
|
}, "strip", z.ZodTypeAny, {
|
|
3344
3050
|
domain: {
|
|
3345
|
-
version: string;
|
|
3346
3051
|
chainId: number;
|
|
3052
|
+
version: string;
|
|
3347
3053
|
name: string;
|
|
3348
3054
|
verifyingContract: string;
|
|
3349
3055
|
};
|
|
@@ -3352,8 +3058,8 @@ declare const UserGeneratSellTransactionArgsSchema: z.ZodObject<{
|
|
|
3352
3058
|
types?: any;
|
|
3353
3059
|
}, {
|
|
3354
3060
|
domain: {
|
|
3355
|
-
version: string;
|
|
3356
3061
|
chainId: number;
|
|
3062
|
+
version: string;
|
|
3357
3063
|
name: string;
|
|
3358
3064
|
verifyingContract: string;
|
|
3359
3065
|
};
|
|
@@ -3382,8 +3088,8 @@ declare const UserGeneratSellTransactionArgsSchema: z.ZodObject<{
|
|
|
3382
3088
|
to: string;
|
|
3383
3089
|
signature?: {
|
|
3384
3090
|
domain: {
|
|
3385
|
-
version: string;
|
|
3386
3091
|
chainId: number;
|
|
3092
|
+
version: string;
|
|
3387
3093
|
name: string;
|
|
3388
3094
|
verifyingContract: string;
|
|
3389
3095
|
};
|
|
@@ -3404,8 +3110,8 @@ declare const UserGeneratSellTransactionArgsSchema: z.ZodObject<{
|
|
|
3404
3110
|
to: string;
|
|
3405
3111
|
signature?: {
|
|
3406
3112
|
domain: {
|
|
3407
|
-
version: string;
|
|
3408
3113
|
chainId: number;
|
|
3114
|
+
version: string;
|
|
3409
3115
|
name: string;
|
|
3410
3116
|
verifyingContract: string;
|
|
3411
3117
|
};
|
|
@@ -3421,7 +3127,7 @@ declare const UserGeneratSellTransactionArgsSchema: z.ZodObject<{
|
|
|
3421
3127
|
} | undefined;
|
|
3422
3128
|
}>, "many">>], z.ZodUnknown>, z.ZodUnknown>>;
|
|
3423
3129
|
}, "strip", z.ZodTypeAny, {
|
|
3424
|
-
chainId:
|
|
3130
|
+
chainId: number;
|
|
3425
3131
|
onSuccess?: ((args_0: {
|
|
3426
3132
|
value: string;
|
|
3427
3133
|
data: string;
|
|
@@ -3429,8 +3135,8 @@ declare const UserGeneratSellTransactionArgsSchema: z.ZodObject<{
|
|
|
3429
3135
|
to: string;
|
|
3430
3136
|
signature?: {
|
|
3431
3137
|
domain: {
|
|
3432
|
-
version: string;
|
|
3433
3138
|
chainId: number;
|
|
3139
|
+
version: string;
|
|
3434
3140
|
name: string;
|
|
3435
3141
|
verifyingContract: string;
|
|
3436
3142
|
};
|
|
@@ -3446,7 +3152,7 @@ declare const UserGeneratSellTransactionArgsSchema: z.ZodObject<{
|
|
|
3446
3152
|
} | undefined;
|
|
3447
3153
|
}[] | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
3448
3154
|
}, {
|
|
3449
|
-
chainId:
|
|
3155
|
+
chainId: number;
|
|
3450
3156
|
onSuccess?: ((args_0: {
|
|
3451
3157
|
value: string;
|
|
3452
3158
|
data: string;
|
|
@@ -3454,8 +3160,8 @@ declare const UserGeneratSellTransactionArgsSchema: z.ZodObject<{
|
|
|
3454
3160
|
to: string;
|
|
3455
3161
|
signature?: {
|
|
3456
3162
|
domain: {
|
|
3457
|
-
version: string;
|
|
3458
3163
|
chainId: number;
|
|
3164
|
+
version: string;
|
|
3459
3165
|
name: string;
|
|
3460
3166
|
verifyingContract: string;
|
|
3461
3167
|
};
|
|
@@ -3472,7 +3178,7 @@ declare const UserGeneratSellTransactionArgsSchema: z.ZodObject<{
|
|
|
3472
3178
|
}[] | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
3473
3179
|
}>;
|
|
3474
3180
|
type UseGenerateSellTransactionArgs = z.infer<typeof UserGeneratSellTransactionArgsSchema>;
|
|
3475
|
-
declare const generateSellTransaction: (args: GenerateSellTransactionArgs, config: SdkConfig, chainId:
|
|
3181
|
+
declare const generateSellTransaction: (args: GenerateSellTransactionArgs, config: SdkConfig, chainId: number) => Promise<Step[]>;
|
|
3476
3182
|
declare const useGenerateSellTransaction: (params: UseGenerateSellTransactionArgs) => {
|
|
3477
3183
|
generateSellTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateSellTransactionArgs, unknown>;
|
|
3478
3184
|
generateSellTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateSellTransactionArgs, unknown>;
|
|
@@ -3544,7 +3250,7 @@ declare const useGenerateSellTransaction: (params: UseGenerateSellTransactionArg
|
|
|
3544
3250
|
};
|
|
3545
3251
|
|
|
3546
3252
|
declare const UserGenerateCancelTransactionArgsSchema: z.ZodObject<{
|
|
3547
|
-
chainId: z.
|
|
3253
|
+
chainId: z.ZodNumber;
|
|
3548
3254
|
onSuccess: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3549
3255
|
id: z.ZodNativeEnum<typeof StepType>;
|
|
3550
3256
|
data: z.ZodString;
|
|
@@ -3557,13 +3263,13 @@ declare const UserGenerateCancelTransactionArgsSchema: z.ZodObject<{
|
|
|
3557
3263
|
chainId: z.ZodNumber;
|
|
3558
3264
|
verifyingContract: z.ZodString;
|
|
3559
3265
|
}, "strip", z.ZodTypeAny, {
|
|
3560
|
-
version: string;
|
|
3561
3266
|
chainId: number;
|
|
3267
|
+
version: string;
|
|
3562
3268
|
name: string;
|
|
3563
3269
|
verifyingContract: string;
|
|
3564
3270
|
}, {
|
|
3565
|
-
version: string;
|
|
3566
3271
|
chainId: number;
|
|
3272
|
+
version: string;
|
|
3567
3273
|
name: string;
|
|
3568
3274
|
verifyingContract: string;
|
|
3569
3275
|
}>;
|
|
@@ -3572,8 +3278,8 @@ declare const UserGenerateCancelTransactionArgsSchema: z.ZodObject<{
|
|
|
3572
3278
|
value: z.ZodAny;
|
|
3573
3279
|
}, "strip", z.ZodTypeAny, {
|
|
3574
3280
|
domain: {
|
|
3575
|
-
version: string;
|
|
3576
3281
|
chainId: number;
|
|
3282
|
+
version: string;
|
|
3577
3283
|
name: string;
|
|
3578
3284
|
verifyingContract: string;
|
|
3579
3285
|
};
|
|
@@ -3582,8 +3288,8 @@ declare const UserGenerateCancelTransactionArgsSchema: z.ZodObject<{
|
|
|
3582
3288
|
types?: any;
|
|
3583
3289
|
}, {
|
|
3584
3290
|
domain: {
|
|
3585
|
-
version: string;
|
|
3586
3291
|
chainId: number;
|
|
3292
|
+
version: string;
|
|
3587
3293
|
name: string;
|
|
3588
3294
|
verifyingContract: string;
|
|
3589
3295
|
};
|
|
@@ -3612,8 +3318,8 @@ declare const UserGenerateCancelTransactionArgsSchema: z.ZodObject<{
|
|
|
3612
3318
|
to: string;
|
|
3613
3319
|
signature?: {
|
|
3614
3320
|
domain: {
|
|
3615
|
-
version: string;
|
|
3616
3321
|
chainId: number;
|
|
3322
|
+
version: string;
|
|
3617
3323
|
name: string;
|
|
3618
3324
|
verifyingContract: string;
|
|
3619
3325
|
};
|
|
@@ -3634,8 +3340,8 @@ declare const UserGenerateCancelTransactionArgsSchema: z.ZodObject<{
|
|
|
3634
3340
|
to: string;
|
|
3635
3341
|
signature?: {
|
|
3636
3342
|
domain: {
|
|
3637
|
-
version: string;
|
|
3638
3343
|
chainId: number;
|
|
3344
|
+
version: string;
|
|
3639
3345
|
name: string;
|
|
3640
3346
|
verifyingContract: string;
|
|
3641
3347
|
};
|
|
@@ -3651,7 +3357,7 @@ declare const UserGenerateCancelTransactionArgsSchema: z.ZodObject<{
|
|
|
3651
3357
|
} | undefined;
|
|
3652
3358
|
}>, "many">>], z.ZodUnknown>, z.ZodUnknown>>;
|
|
3653
3359
|
}, "strip", z.ZodTypeAny, {
|
|
3654
|
-
chainId:
|
|
3360
|
+
chainId: number;
|
|
3655
3361
|
onSuccess?: ((args_0: {
|
|
3656
3362
|
value: string;
|
|
3657
3363
|
data: string;
|
|
@@ -3659,8 +3365,8 @@ declare const UserGenerateCancelTransactionArgsSchema: z.ZodObject<{
|
|
|
3659
3365
|
to: string;
|
|
3660
3366
|
signature?: {
|
|
3661
3367
|
domain: {
|
|
3662
|
-
version: string;
|
|
3663
3368
|
chainId: number;
|
|
3369
|
+
version: string;
|
|
3664
3370
|
name: string;
|
|
3665
3371
|
verifyingContract: string;
|
|
3666
3372
|
};
|
|
@@ -3676,7 +3382,7 @@ declare const UserGenerateCancelTransactionArgsSchema: z.ZodObject<{
|
|
|
3676
3382
|
} | undefined;
|
|
3677
3383
|
}[] | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
3678
3384
|
}, {
|
|
3679
|
-
chainId:
|
|
3385
|
+
chainId: number;
|
|
3680
3386
|
onSuccess?: ((args_0: {
|
|
3681
3387
|
value: string;
|
|
3682
3388
|
data: string;
|
|
@@ -3684,8 +3390,8 @@ declare const UserGenerateCancelTransactionArgsSchema: z.ZodObject<{
|
|
|
3684
3390
|
to: string;
|
|
3685
3391
|
signature?: {
|
|
3686
3392
|
domain: {
|
|
3687
|
-
version: string;
|
|
3688
3393
|
chainId: number;
|
|
3394
|
+
version: string;
|
|
3689
3395
|
name: string;
|
|
3690
3396
|
verifyingContract: string;
|
|
3691
3397
|
};
|
|
@@ -3702,7 +3408,7 @@ declare const UserGenerateCancelTransactionArgsSchema: z.ZodObject<{
|
|
|
3702
3408
|
}[] | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
3703
3409
|
}>;
|
|
3704
3410
|
type UseGenerateCancelTransactionArgs = z.infer<typeof UserGenerateCancelTransactionArgsSchema>;
|
|
3705
|
-
declare const generateCancelTransaction: (args: GenerateCancelTransactionArgs, config: SdkConfig, chainId:
|
|
3411
|
+
declare const generateCancelTransaction: (args: GenerateCancelTransactionArgs, config: SdkConfig, chainId: number) => Promise<Step[]>;
|
|
3706
3412
|
declare const useGenerateCancelTransaction: (params: UseGenerateCancelTransactionArgs) => {
|
|
3707
3413
|
generateCancelTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateCancelTransactionArgs, unknown>;
|
|
3708
3414
|
generateCancelTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateCancelTransactionArgs, unknown>;
|
|
@@ -3774,7 +3480,7 @@ declare const useGenerateCancelTransaction: (params: UseGenerateCancelTransactio
|
|
|
3774
3480
|
};
|
|
3775
3481
|
|
|
3776
3482
|
interface BaseTransferParams {
|
|
3777
|
-
chainId:
|
|
3483
|
+
chainId: number;
|
|
3778
3484
|
collectionAddress: Hex;
|
|
3779
3485
|
tokenId: string;
|
|
3780
3486
|
receiverAddress: Address;
|
|
@@ -3796,7 +3502,7 @@ declare const useTransferTokens: () => {
|
|
|
3796
3502
|
};
|
|
3797
3503
|
|
|
3798
3504
|
declare const UseCheckoutOptionsSchema: z.ZodObject<{
|
|
3799
|
-
chainId: z.
|
|
3505
|
+
chainId: z.ZodNumber;
|
|
3800
3506
|
orders: z.ZodArray<z.ZodObject<{
|
|
3801
3507
|
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
3802
3508
|
orderId: z.ZodString;
|
|
@@ -3823,7 +3529,7 @@ declare const UseCheckoutOptionsSchema: z.ZodObject<{
|
|
|
3823
3529
|
marketplace: MarketplaceKind;
|
|
3824
3530
|
collectionAddress: `0x${string}`;
|
|
3825
3531
|
}[];
|
|
3826
|
-
chainId:
|
|
3532
|
+
chainId: number;
|
|
3827
3533
|
query?: {
|
|
3828
3534
|
enabled?: boolean | undefined;
|
|
3829
3535
|
} | undefined;
|
|
@@ -3833,7 +3539,7 @@ declare const UseCheckoutOptionsSchema: z.ZodObject<{
|
|
|
3833
3539
|
marketplace: MarketplaceKind;
|
|
3834
3540
|
collectionAddress: string;
|
|
3835
3541
|
}[];
|
|
3836
|
-
chainId:
|
|
3542
|
+
chainId: number;
|
|
3837
3543
|
query?: {
|
|
3838
3544
|
enabled?: boolean | undefined;
|
|
3839
3545
|
} | undefined;
|
|
@@ -3851,7 +3557,7 @@ declare const checkoutOptionsOptions: (args: UseCheckoutOptionsArgs & {
|
|
|
3851
3557
|
marketplace: MarketplaceKind;
|
|
3852
3558
|
collectionAddress: `0x${string}`;
|
|
3853
3559
|
}[];
|
|
3854
|
-
chainId:
|
|
3560
|
+
chainId: number;
|
|
3855
3561
|
query?: {
|
|
3856
3562
|
enabled?: boolean | undefined;
|
|
3857
3563
|
} | undefined;
|
|
@@ -3864,7 +3570,7 @@ declare const checkoutOptionsOptions: (args: UseCheckoutOptionsArgs & {
|
|
|
3864
3570
|
marketplace: MarketplaceKind;
|
|
3865
3571
|
collectionAddress: `0x${string}`;
|
|
3866
3572
|
}[];
|
|
3867
|
-
chainId:
|
|
3573
|
+
chainId: number;
|
|
3868
3574
|
query?: {
|
|
3869
3575
|
enabled?: boolean | undefined;
|
|
3870
3576
|
} | undefined;
|
|
@@ -3878,7 +3584,7 @@ declare const checkoutOptionsOptions: (args: UseCheckoutOptionsArgs & {
|
|
|
3878
3584
|
marketplace: MarketplaceKind;
|
|
3879
3585
|
collectionAddress: `0x${string}`;
|
|
3880
3586
|
}[];
|
|
3881
|
-
chainId:
|
|
3587
|
+
chainId: number;
|
|
3882
3588
|
query?: {
|
|
3883
3589
|
enabled?: boolean | undefined;
|
|
3884
3590
|
} | undefined;
|
|
@@ -3925,130 +3631,9 @@ declare const listCollectionsOptions: (args: FetchListCollectionsArgs, config: S
|
|
|
3925
3631
|
};
|
|
3926
3632
|
declare const useListCollections: (args?: UseListCollectionsArgs) => _tanstack_react_query.UseQueryResult<_0xsequence_metadata.ContractInfo[], Error>;
|
|
3927
3633
|
|
|
3928
|
-
declare const UseGenerateBuyTransactionArgsSchema: z.ZodObject<{
|
|
3929
|
-
chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
|
|
3930
|
-
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
3931
|
-
marketplace: z.ZodNativeEnum<typeof MarketplaceKind>;
|
|
3932
|
-
ordersData: z.ZodArray<z.ZodObject<{
|
|
3933
|
-
orderId: z.ZodString;
|
|
3934
|
-
quantity: z.ZodString;
|
|
3935
|
-
marketplace: z.ZodString;
|
|
3936
|
-
tokenId: z.ZodOptional<z.ZodString>;
|
|
3937
|
-
}, "strip", z.ZodTypeAny, {
|
|
3938
|
-
orderId: string;
|
|
3939
|
-
marketplace: string;
|
|
3940
|
-
quantity: string;
|
|
3941
|
-
tokenId?: string | undefined;
|
|
3942
|
-
}, {
|
|
3943
|
-
orderId: string;
|
|
3944
|
-
marketplace: string;
|
|
3945
|
-
quantity: string;
|
|
3946
|
-
tokenId?: string | undefined;
|
|
3947
|
-
}>, "many">;
|
|
3948
|
-
walletType: z.ZodOptional<z.ZodNativeEnum<typeof WalletKind>>;
|
|
3949
|
-
query: z.ZodOptional<z.ZodObject<{
|
|
3950
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
3951
|
-
}, "strip", z.ZodTypeAny, {
|
|
3952
|
-
enabled?: boolean | undefined;
|
|
3953
|
-
}, {
|
|
3954
|
-
enabled?: boolean | undefined;
|
|
3955
|
-
}>>;
|
|
3956
|
-
}, "strip", z.ZodTypeAny, {
|
|
3957
|
-
marketplace: MarketplaceKind;
|
|
3958
|
-
chainId: string;
|
|
3959
|
-
collectionAddress: `0x${string}`;
|
|
3960
|
-
ordersData: {
|
|
3961
|
-
orderId: string;
|
|
3962
|
-
marketplace: string;
|
|
3963
|
-
quantity: string;
|
|
3964
|
-
tokenId?: string | undefined;
|
|
3965
|
-
}[];
|
|
3966
|
-
walletType?: WalletKind | undefined;
|
|
3967
|
-
query?: {
|
|
3968
|
-
enabled?: boolean | undefined;
|
|
3969
|
-
} | undefined;
|
|
3970
|
-
}, {
|
|
3971
|
-
marketplace: MarketplaceKind;
|
|
3972
|
-
chainId: string | number;
|
|
3973
|
-
collectionAddress: string;
|
|
3974
|
-
ordersData: {
|
|
3975
|
-
orderId: string;
|
|
3976
|
-
marketplace: string;
|
|
3977
|
-
quantity: string;
|
|
3978
|
-
tokenId?: string | undefined;
|
|
3979
|
-
}[];
|
|
3980
|
-
walletType?: WalletKind | undefined;
|
|
3981
|
-
query?: {
|
|
3982
|
-
enabled?: boolean | undefined;
|
|
3983
|
-
} | undefined;
|
|
3984
|
-
}>;
|
|
3985
|
-
type UseGenerateBuyTransactionArgs = z.infer<typeof UseGenerateBuyTransactionArgsSchema>;
|
|
3986
|
-
declare const fetchGenerateBuyTransaction: (args: UseGenerateBuyTransactionArgs & {
|
|
3987
|
-
buyer: Hex;
|
|
3988
|
-
}, config: SdkConfig) => Promise<Step[]>;
|
|
3989
|
-
declare const generateBuyTransactionOptions: (args: UseGenerateBuyTransactionArgs & {
|
|
3990
|
-
buyer: Hex;
|
|
3991
|
-
}, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Step[], Error, Step[], (string | ({
|
|
3992
|
-
marketplace: MarketplaceKind;
|
|
3993
|
-
chainId: string;
|
|
3994
|
-
collectionAddress: `0x${string}`;
|
|
3995
|
-
ordersData: {
|
|
3996
|
-
orderId: string;
|
|
3997
|
-
marketplace: string;
|
|
3998
|
-
quantity: string;
|
|
3999
|
-
tokenId?: string | undefined;
|
|
4000
|
-
}[];
|
|
4001
|
-
walletType?: WalletKind | undefined;
|
|
4002
|
-
query?: {
|
|
4003
|
-
enabled?: boolean | undefined;
|
|
4004
|
-
} | undefined;
|
|
4005
|
-
} & {
|
|
4006
|
-
buyer: Hex;
|
|
4007
|
-
}))[]>, "queryFn"> & {
|
|
4008
|
-
queryFn?: _tanstack_react_query.QueryFunction<Step[], (string | ({
|
|
4009
|
-
marketplace: MarketplaceKind;
|
|
4010
|
-
chainId: string;
|
|
4011
|
-
collectionAddress: `0x${string}`;
|
|
4012
|
-
ordersData: {
|
|
4013
|
-
orderId: string;
|
|
4014
|
-
marketplace: string;
|
|
4015
|
-
quantity: string;
|
|
4016
|
-
tokenId?: string | undefined;
|
|
4017
|
-
}[];
|
|
4018
|
-
walletType?: WalletKind | undefined;
|
|
4019
|
-
query?: {
|
|
4020
|
-
enabled?: boolean | undefined;
|
|
4021
|
-
} | undefined;
|
|
4022
|
-
} & {
|
|
4023
|
-
buyer: Hex;
|
|
4024
|
-
}))[], never> | undefined;
|
|
4025
|
-
} & {
|
|
4026
|
-
queryKey: (string | ({
|
|
4027
|
-
marketplace: MarketplaceKind;
|
|
4028
|
-
chainId: string;
|
|
4029
|
-
collectionAddress: `0x${string}`;
|
|
4030
|
-
ordersData: {
|
|
4031
|
-
orderId: string;
|
|
4032
|
-
marketplace: string;
|
|
4033
|
-
quantity: string;
|
|
4034
|
-
tokenId?: string | undefined;
|
|
4035
|
-
}[];
|
|
4036
|
-
walletType?: WalletKind | undefined;
|
|
4037
|
-
query?: {
|
|
4038
|
-
enabled?: boolean | undefined;
|
|
4039
|
-
} | undefined;
|
|
4040
|
-
} & {
|
|
4041
|
-
buyer: Hex;
|
|
4042
|
-
}))[] & {
|
|
4043
|
-
[dataTagSymbol]: Step[];
|
|
4044
|
-
[dataTagErrorSymbol]: Error;
|
|
4045
|
-
};
|
|
4046
|
-
};
|
|
4047
|
-
declare const useGenerateBuyTransaction: (args: UseGenerateBuyTransactionArgs) => _tanstack_react_query.UseQueryResult<Step[], Error>;
|
|
4048
|
-
|
|
4049
3634
|
interface UseCancelOrderArgs {
|
|
4050
3635
|
collectionAddress: string;
|
|
4051
|
-
chainId:
|
|
3636
|
+
chainId: number;
|
|
4052
3637
|
onSuccess?: ({ hash, orderId }: {
|
|
4053
3638
|
hash?: string;
|
|
4054
3639
|
orderId?: string;
|
|
@@ -4106,4 +3691,4 @@ declare const collectionDetailsPollingOptions: (args: UseCollectionDetailsPollin
|
|
|
4106
3691
|
};
|
|
4107
3692
|
declare const useCollectionDetailsPolling: (args: UseCollectionDetailsPolling) => _tanstack_react_query.UseQueryResult<Collection, Error>;
|
|
4108
3693
|
|
|
4109
|
-
export { type CollectionBalanceFilter, type CreateReqWithDateExpiry$1 as CreateReqWithDateExpiry, type GenerateListingTransactionProps, type GenerateOfferTransactionProps, type TransactionStep, type TransferTokensParams, type UseCheckoutOptionsArgs, type UseCheckoutOptionsReturn, type UseCollectibleArgs, type UseCollectibleReturn, type UseCollectionBalanceDetailsArgs, type UseComparePricesReturn, type UseContOfCollectableReturn, type UseConvertPriceToUSDArgs, type UseConvertPriceToUSDReturn, type UseCountListingsForCollectibleArgs, type UseCountListingsForCollectibleReturn, type UseCountOfCollectablesArgs, type UseCountOffersForCollectibleArgs, type UseCountOffersForCollectibleReturn, type UseCurrenciesReturn, type UseCurrencyReturn, type UseFilterReturn, type UseFiltersArgs, type UseFloorOrderArgs, type UseFloorOrderReturn,
|
|
3694
|
+
export { type CollectionBalanceFilter, type CreateReqWithDateExpiry$1 as CreateReqWithDateExpiry, type GenerateListingTransactionProps, type GenerateOfferTransactionProps, type TransactionStep, type TransferTokensParams, type UseCheckoutOptionsArgs, type UseCheckoutOptionsReturn, type UseCollectibleArgs, type UseCollectibleReturn, type UseCollectionBalanceDetailsArgs, type UseComparePricesReturn, type UseContOfCollectableReturn, type UseConvertPriceToUSDArgs, type UseConvertPriceToUSDReturn, type UseCountListingsForCollectibleArgs, type UseCountListingsForCollectibleReturn, type UseCountOfCollectablesArgs, type UseCountOffersForCollectibleArgs, type UseCountOffersForCollectibleReturn, type UseCurrenciesReturn, type UseCurrencyReturn, type UseFilterReturn, type UseFiltersArgs, type UseFloorOrderArgs, type UseFloorOrderReturn, type UseGenerateListingTransactionArgs, type UseGenerateOfferTransactionArgs, type UseHighestOfferArgs, type UseListCollectibleActivitiesArgs, type UseListCollectibleActivitiesReturn, type UseListCollectiblesPaginatedArgs, type UseListCollectiblesPaginatedReturn, type UseListCollectionActivitiesArgs, type UseListCollectionActivitiesReturn, type UseListCollectionsArgs, type UseListCollectionsReturn, type UseListListingsForCollectibleReturn, type UseListOffersForCollectibleReturn, type UseLowestListingArgs, type UseLowestListingReturn, checkoutOptionsOptions, collectibleOptions, collectionBalanceDetailsOptions, collectionDetailsOptions, collectionDetailsPollingOptions, comparePricesOptions, convertPriceToUSD, convertPriceToUSDOptions, countListingsForCollectibleOptions, countOfCollectablesOptions, countOffersForCollectibleOptions, currenciesOptions, currencyOptions, fetchFilters, filtersOptions, floorOrderOptions, generateCancelTransaction, generateListingTransaction, generateOfferTransaction, generateSellTransaction, listCollectibleActivitiesOptions, listCollectiblesPaginatedOptions, listCollectionActivitiesOptions, listCollectionsOptions, listListingsForCollectibleOptions, listOffersForCollectibleOptions, lowestListingOptions, useAutoSelectFeeOption, useBalanceOfCollectible, useCancelOrder, useCheckoutOptions, useCollectible, useCollectionBalanceDetails, useCollectionDetails, useCollectionDetailsPolling, useComparePrices, useConfig, useConvertPriceToUSD, useCountListingsForCollectible, useCountOfCollectables, useCountOffersForCollectible, useCurrencies, useCurrency, useFilters, useFloorOrder, useGenerateCancelTransaction, useGenerateListingTransaction, useGenerateOfferTransaction, useGenerateSellTransaction, useHighestOffer, useListBalances, useListCollectibleActivities, useListCollectibles, useListCollectiblesPaginated, useListCollectionActivities, useListCollections, useListListingsForCollectible, useListOffersForCollectible, useLowestListing, useMarketplaceConfig, useRoyalty, useTransferTokens };
|