@0xsequence/marketplace-sdk 0.1.0 → 0.3.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/.ctirc +32 -0
- package/dist/chess-tile-6BS5MQT5.png +0 -0
- package/dist/{chunk-RNUHUVLC.js → chunk-6JWGELXL.js} +1 -1
- package/dist/chunk-6JWGELXL.js.map +1 -0
- package/dist/chunk-BJE7AG6V.js +1441 -0
- package/dist/chunk-BJE7AG6V.js.map +1 -0
- package/dist/{chunk-SNOEEUPZ.js → chunk-CSN7YD5Q.js} +2 -2
- package/dist/chunk-CSN7YD5Q.js.map +1 -0
- package/dist/{chunk-G3YU4NQ2.js → chunk-G33554LK.js} +4 -1
- package/dist/chunk-G33554LK.js.map +1 -0
- package/dist/{chunk-HGBEC3WX.js → chunk-GZG2QO64.js} +22 -6
- package/dist/chunk-GZG2QO64.js.map +1 -0
- package/dist/{chunk-TZGLKJRF.js → chunk-MQR6SHXZ.js} +94 -94
- package/dist/chunk-MQR6SHXZ.js.map +1 -0
- package/dist/{chunk-EDTC7UES.js → chunk-NII6JJGH.js} +9 -4
- package/dist/chunk-NII6JJGH.js.map +1 -0
- package/dist/{chunk-LFQB477Y.js → chunk-OUWB3FHZ.js} +17 -17
- package/dist/chunk-OUWB3FHZ.js.map +1 -0
- package/dist/{chunk-BBB3XUB4.js → chunk-PE2LLUTJ.js} +1 -1
- package/dist/chunk-PE2LLUTJ.js.map +1 -0
- package/dist/{chunk-7CL54NCX.js → chunk-Q2BVDQ3G.js} +1 -1
- package/dist/chunk-Q2BVDQ3G.js.map +1 -0
- package/dist/{chunk-GNB736ZE.js → chunk-QXLZPSSR.js} +1667 -1109
- package/dist/chunk-QXLZPSSR.js.map +1 -0
- package/dist/{chunk-3TYUQEFM.js → chunk-VEX7FDL6.js} +2 -2
- package/dist/chunk-VEX7FDL6.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -7
- package/dist/{marketplace.gen-Ceofb9Cs.d.ts → marketplace.gen-BLP7822q.d.ts} +17 -5
- package/dist/react/_internal/api/index.d.ts +4 -2
- package/dist/react/_internal/api/index.js +1 -1
- package/dist/react/_internal/index.d.ts +4 -4
- package/dist/react/_internal/index.js +3 -3
- package/dist/react/_internal/wagmi/index.d.ts +2 -2
- package/dist/react/_internal/wagmi/index.js +1 -1
- package/dist/react/hooks/index.d.ts +574 -37
- package/dist/react/hooks/index.js +39 -21
- package/dist/react/index.css +66 -26
- package/dist/react/index.css.map +1 -1
- package/dist/react/index.d.ts +7 -6
- package/dist/react/index.js +48 -28
- package/dist/react/ssr/index.d.ts +24 -24
- package/dist/react/ssr/index.js +15 -7
- package/dist/react/ssr/index.js.map +1 -1
- package/dist/react/ui/components/index.css +276 -0
- package/dist/react/ui/components/index.css.map +1 -0
- package/dist/react/ui/components/index.d.ts +17 -0
- package/dist/react/ui/components/index.js +24 -0
- package/dist/react/ui/components/index.js.map +1 -0
- package/dist/react/ui/icons/index.js +2 -2
- package/dist/react/ui/index.css +66 -26
- package/dist/react/ui/index.css.map +1 -1
- package/dist/react/ui/index.d.ts +48 -40
- package/dist/react/ui/index.js +13 -11
- package/dist/react/ui/modals/_internal/components/actionModal/index.js +4 -4
- package/dist/{services-BIwQ1C1c.d.ts → services-C9-lvWcC.d.ts} +2 -2
- package/dist/styles/index.js +4 -4
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +3 -3
- package/dist/{types-BzZVURNL.d.ts → types-QqXjNuUP.d.ts} +1 -1
- package/dist/utils/abi/clients/index.js +1 -1
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +4 -4
- package/package.json +18 -25
- package/src/react/_internal/api/get-query-client.ts +3 -3
- package/src/react/_internal/api/marketplace.gen.ts +33 -6
- package/src/react/_internal/api/query-keys.ts +8 -0
- package/src/react/_internal/types.ts +1 -1
- package/src/react/_internal/wagmi/create-config.ts +9 -3
- package/src/react/_internal/wagmi/embedded.ts +1 -1
- package/src/react/_internal/wagmi/universal.ts +1 -1
- package/src/react/hooks/index.ts +5 -0
- package/src/react/hooks/options/marketplaceConfigOptions.ts +2 -2
- package/src/react/hooks/useBalanceOfCollectible.tsx +10 -9
- package/src/react/hooks/useCheckoutOptions.tsx +63 -0
- package/src/react/hooks/useCollectible.tsx +4 -4
- package/src/react/hooks/useCollection.tsx +30 -30
- package/src/react/hooks/useCountOfCollectables.tsx +4 -4
- package/src/react/hooks/useCurrencies.tsx +10 -10
- package/src/react/hooks/useCurrency.tsx +64 -0
- package/src/react/hooks/useFilters.tsx +4 -4
- package/src/react/hooks/useFloorOrder.tsx +4 -4
- package/src/react/hooks/useGenerateCancleTransaction.tsx +50 -0
- package/src/react/hooks/useGenerateListingTransaction.tsx +8 -7
- package/src/react/hooks/useGenerateOfferTransaction.tsx +5 -5
- package/src/react/hooks/useGenerateSellTransaction.tsx +4 -4
- package/src/react/hooks/useHighestOffer.tsx +4 -4
- package/src/react/hooks/useListBalances.tsx +6 -7
- package/src/react/hooks/useListCollectibles.tsx +8 -9
- package/src/react/hooks/useListCollections.tsx +88 -0
- package/src/react/hooks/useListListingsForCollectible.tsx +61 -0
- package/src/react/hooks/useListOffersForCollectible.tsx +17 -18
- package/src/react/hooks/useLowestListing.tsx +4 -4
- package/src/react/hooks/useRoyaltyPercentage.tsx +6 -6
- package/src/react/hooks/useTransferTokens.tsx +1 -1
- package/src/react/provider.tsx +1 -1
- package/src/react/ssr/create-ssr-client.ts +1 -1
- package/src/react/ui/components/_internals/action-button/ActionButton.tsx +164 -0
- package/src/react/ui/components/_internals/custom-network-image/CustomNetworkImage.tsx +27 -0
- package/src/react/ui/components/_internals/custom-network-image/styles.css.ts +51 -0
- package/src/react/ui/components/_internals/pill/Pill.tsx +20 -0
- package/src/react/ui/components/collectible-card/CollectibleCard.tsx +194 -0
- package/src/react/ui/components/collectible-card/Footer.tsx +121 -0
- package/src/react/ui/components/collectible-card/styles.css.ts +62 -0
- package/src/react/ui/components/index.ts +1 -0
- package/src/react/ui/icons/Bell.tsx +31 -0
- package/src/react/ui/icons/DiamondEye.tsx +31 -0
- package/src/react/ui/images/chess-tile.png +0 -0
- package/src/react/ui/index.ts +3 -0
- package/src/react/ui/modals/CreateListingModal/_store.ts +37 -38
- package/src/react/ui/modals/CreateListingModal/index.tsx +25 -4
- package/src/react/ui/modals/MakeOfferModal/_store.ts +35 -37
- package/src/react/ui/modals/MakeOfferModal/index.tsx +25 -4
- package/src/react/ui/modals/SellModal/_store.ts +48 -51
- package/src/react/ui/modals/SellModal/index.tsx +27 -7
- package/src/react/ui/modals/SuccessfulPurchaseModal/_store.ts +1 -1
- package/src/react/ui/modals/SuccessfulPurchaseModal/index.tsx +14 -14
- package/src/react/ui/modals/TransferModal/_store.ts +11 -11
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/index.tsx +7 -5
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/useHandleTransfer.tsx +114 -0
- package/src/react/ui/modals/TransferModal/_views/followWalletInstructions/index.tsx +0 -96
- package/src/react/ui/modals/TransferModal/index.tsx +24 -3
- package/src/react/ui/modals/_internal/components/actionModal/ActionModal.tsx +1 -1
- package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +2 -3
- package/src/react/ui/modals/_internal/components/floorPriceText/index.tsx +2 -2
- package/src/react/ui/modals/_internal/components/priceInput/index.tsx +4 -4
- package/src/react/ui/modals/_internal/components/quantityInput/index.tsx +1 -1
- package/src/react/ui/modals/_internal/components/switchChainModal/index.tsx +4 -4
- package/src/react/ui/modals/_internal/components/switchChainModal/store.ts +4 -4
- package/src/react/ui/modals/_internal/components/tokenPreview/index.tsx +1 -1
- package/src/react/ui/modals/_internal/components/transactionDetails/index.tsx +5 -3
- package/src/react/ui/modals/_internal/components/transactionPreview/index.tsx +3 -3
- package/src/react/ui/modals/_internal/components/transactionStatusModal/index.tsx +35 -2
- package/src/react/ui/modals/_internal/components/transactionStatusModal/store.ts +10 -2
- package/src/react/ui/modals/modal-provider.tsx +2 -3
- package/src/types/api-types.ts +2 -2
- package/src/types/callbacks.ts +51 -0
- package/src/types/custom.d.ts +1 -0
- package/src/types/types.ts +1 -1
- package/src/utils/get-public-rpc-client.ts +1 -1
- package/tsconfig.json +24 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/tsup.config.ts +35 -0
- package/README.md +0 -8
- package/dist/chunk-3TYUQEFM.js.map +0 -1
- package/dist/chunk-7CL54NCX.js.map +0 -1
- package/dist/chunk-BBB3XUB4.js.map +0 -1
- package/dist/chunk-EDTC7UES.js.map +0 -1
- package/dist/chunk-G3YU4NQ2.js.map +0 -1
- package/dist/chunk-GNB736ZE.js.map +0 -1
- package/dist/chunk-HGBEC3WX.js.map +0 -1
- package/dist/chunk-ITJEOCDV.js +0 -1006
- package/dist/chunk-ITJEOCDV.js.map +0 -1
- package/dist/chunk-LFQB477Y.js.map +0 -1
- package/dist/chunk-M4MXVMAM.js +0 -271
- package/dist/chunk-M4MXVMAM.js.map +0 -1
- package/dist/chunk-RNUHUVLC.js.map +0 -1
- package/dist/chunk-SNOEEUPZ.js.map +0 -1
- package/dist/chunk-TZGLKJRF.js.map +0 -1
- package/dist/{create-config-Cto2ehcz.d.ts → create-config-CgtmCzvb.d.ts} +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import * as _0xsequence_indexer from '@0xsequence/indexer';
|
|
3
|
-
import {
|
|
3
|
+
import { SortOrder, Page } from '@0xsequence/indexer';
|
|
4
4
|
import * as _0xsequence_network from '@0xsequence/network';
|
|
5
|
-
import { Q as QueryArgSchema, c as ChainId } from '../../types-BzZVURNL.js';
|
|
6
|
-
import { S as SdkConfig } from '../../sdk-config-xWkdBdrL.js';
|
|
7
5
|
import { Hex, Address } from 'viem';
|
|
8
6
|
import { z } from 'zod';
|
|
9
|
-
import {
|
|
7
|
+
import { Q as QueryArgSchema, c as ChainId } from '../../types-QqXjNuUP.js';
|
|
8
|
+
import { S as SdkConfig } from '../../sdk-config-xWkdBdrL.js';
|
|
9
|
+
import { P as PropertyType, M as MarketplaceKind, b as OrderSide, w as Currency, o as CollectibleOrder, aC as GetCollectibleHighestOfferReturn, S as SortOrder$1, i as Page$1, aY as ListCollectiblesReturn, aK as ListCollectibleOffersReturn, aI as ListCollectibleListingsReturn, aE as GetCollectibleLowestListingReturn, z as Step, D as CreateReq, aP as GenerateListingTransactionArgs, aR as GenerateOfferTransactionArgs, aN as GenerateSellTransactionArgs, g as StepType, E as ExecuteType, C as ContractType, be as CheckoutOptionsMarketplaceReturn } from '../../marketplace.gen-BLP7822q.js';
|
|
10
10
|
import * as _0xsequence_metadata from '@0xsequence/metadata';
|
|
11
|
-
import { c as getMarketplaceClient
|
|
11
|
+
import { c as getMarketplaceClient } from '../../services-C9-lvWcC.js';
|
|
12
12
|
import { M as MarketplaceConfig } from '../../marketplace-config-Bbxl-uKX.js';
|
|
13
13
|
|
|
14
14
|
declare const fetchBalanceOfCollectibleSchema: z.ZodObject<{
|
|
@@ -29,13 +29,13 @@ declare const fetchBalanceOfCollectibleSchema: z.ZodObject<{
|
|
|
29
29
|
}>;
|
|
30
30
|
type FetchBalanceOfCollectibleArgs = z.input<typeof fetchBalanceOfCollectibleSchema>;
|
|
31
31
|
interface BalanceOfCollectibleOptions extends Omit<FetchBalanceOfCollectibleArgs, 'userAddress'> {
|
|
32
|
-
userAddress
|
|
32
|
+
userAddress: Hex | undefined;
|
|
33
33
|
query?: z.infer<typeof QueryArgSchema>;
|
|
34
34
|
}
|
|
35
|
-
declare const balanceOfCollectibleOptions: (args: BalanceOfCollectibleOptions, config: SdkConfig) => _tanstack_react_query.UseQueryOptions<_0xsequence_indexer.TokenBalance, Error, _0xsequence_indexer.TokenBalance, ("collectable" | "details" | "userBalances" |
|
|
35
|
+
declare const balanceOfCollectibleOptions: (args: BalanceOfCollectibleOptions, config: SdkConfig) => _tanstack_react_query.UseQueryOptions<_0xsequence_indexer.TokenBalance, Error, _0xsequence_indexer.TokenBalance, ("collectable" | "details" | "userBalances" | BalanceOfCollectibleOptions)[]> & {
|
|
36
36
|
initialData?: _0xsequence_indexer.TokenBalance | _tanstack_react_query.InitialDataFunction<_0xsequence_indexer.TokenBalance> | undefined;
|
|
37
37
|
} & {
|
|
38
|
-
queryKey: _tanstack_react_query.DataTag<("collectable" | "details" | "userBalances" |
|
|
38
|
+
queryKey: _tanstack_react_query.DataTag<("collectable" | "details" | "userBalances" | BalanceOfCollectibleOptions)[], _0xsequence_indexer.TokenBalance>;
|
|
39
39
|
};
|
|
40
40
|
declare const useBalanceOfCollectible: (args: BalanceOfCollectibleOptions) => _tanstack_react_query.UseQueryResult<_0xsequence_indexer.TokenBalance, Error>;
|
|
41
41
|
|
|
@@ -434,6 +434,38 @@ declare const currenciesOptions: (args: UseCurrenciesArgs, config: SdkConfig) =>
|
|
|
434
434
|
};
|
|
435
435
|
declare const useCurrencies: (args: UseCurrenciesArgs) => _tanstack_react_query.UseQueryResult<Currency[], Error>;
|
|
436
436
|
|
|
437
|
+
declare const UseCurrencyArgsSchema: z.ZodObject<{
|
|
438
|
+
chainId: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, string, string | number>;
|
|
439
|
+
currencyAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
440
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
441
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
442
|
+
}, "strip", z.ZodTypeAny, {
|
|
443
|
+
enabled?: boolean | undefined;
|
|
444
|
+
}, {
|
|
445
|
+
enabled?: boolean | undefined;
|
|
446
|
+
}>>;
|
|
447
|
+
}, "strip", z.ZodTypeAny, {
|
|
448
|
+
chainId: string;
|
|
449
|
+
currencyAddress: `0x${string}`;
|
|
450
|
+
query?: {
|
|
451
|
+
enabled?: boolean | undefined;
|
|
452
|
+
} | undefined;
|
|
453
|
+
}, {
|
|
454
|
+
chainId: string | number;
|
|
455
|
+
currencyAddress: string;
|
|
456
|
+
query?: {
|
|
457
|
+
enabled?: boolean | undefined;
|
|
458
|
+
} | undefined;
|
|
459
|
+
}>;
|
|
460
|
+
type UseCurrencyArgs = z.input<typeof UseCurrencyArgsSchema>;
|
|
461
|
+
type UseCurrencyReturn = Currency | undefined;
|
|
462
|
+
declare const currencyOptions: (args: UseCurrencyArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Currency | undefined, Error, Currency | undefined, (string | number)[]>, "queryFn"> & {
|
|
463
|
+
queryFn?: _tanstack_react_query.QueryFunction<Currency | undefined, (string | number)[], never> | undefined;
|
|
464
|
+
} & {
|
|
465
|
+
queryKey: _tanstack_react_query.DataTag<(string | number)[], Currency | undefined>;
|
|
466
|
+
};
|
|
467
|
+
declare const useCurrency: (args: UseCurrencyArgs) => _tanstack_react_query.UseQueryResult<Currency | undefined, Error>;
|
|
468
|
+
|
|
437
469
|
declare const UseFiltersSchema: z.ZodObject<{
|
|
438
470
|
chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
|
|
439
471
|
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
@@ -770,7 +802,7 @@ declare const useListBalancesArgsSchema: z.ZodObject<{
|
|
|
770
802
|
}>;
|
|
771
803
|
type UseFetchTokenBalancesReturn = Awaited<ReturnType<typeof fetchBalances>>;
|
|
772
804
|
type UseListBalancesArgs = z.input<typeof useListBalancesArgsSchema>;
|
|
773
|
-
declare const fetchBalances: (args: UseListBalancesArgs,
|
|
805
|
+
declare const fetchBalances: (args: UseListBalancesArgs, config: SdkConfig, page: Page) => Promise<_0xsequence_indexer.GetTokenBalancesReturn>;
|
|
774
806
|
declare const listBalancesOptions: (args: UseListBalancesArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<_0xsequence_indexer.GetTokenBalancesReturn, Error, _tanstack_react_query.InfiniteData<_0xsequence_indexer.GetTokenBalancesReturn, unknown>, _0xsequence_indexer.GetTokenBalancesReturn, ("balances" | "tokenBalances" | SdkConfig | {
|
|
775
807
|
chainId: string | number;
|
|
776
808
|
page?: {
|
|
@@ -1028,8 +1060,8 @@ declare const UseListCollectiblesArgsSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1028
1060
|
}>;
|
|
1029
1061
|
type UseListCollectiblesArgs = z.infer<typeof UseListCollectiblesArgsSchema>;
|
|
1030
1062
|
type UseListCollectiblesReturn = Awaited<ReturnType<typeof fetchCollectibles>>;
|
|
1031
|
-
declare const fetchCollectibles: (args: UseListCollectiblesArgs,
|
|
1032
|
-
declare const listCollectiblesOptions: (args: UseListCollectiblesArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<ListCollectiblesReturn, Error, _tanstack_react_query.InfiniteData<ListCollectiblesReturn, unknown>, ListCollectiblesReturn, (
|
|
1063
|
+
declare const fetchCollectibles: (args: UseListCollectiblesArgs, marketplaceClient: Awaited<ReturnType<typeof getMarketplaceClient>>, page: Page$1) => Promise<ListCollectiblesReturn>;
|
|
1064
|
+
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" | {
|
|
1033
1065
|
chainId: string;
|
|
1034
1066
|
collectionAddress: `0x${string}`;
|
|
1035
1067
|
side: OrderSide;
|
|
@@ -1065,7 +1097,7 @@ declare const listCollectiblesOptions: (args: UseListCollectiblesArgs, config: S
|
|
|
1065
1097
|
page: number;
|
|
1066
1098
|
pageSize: number;
|
|
1067
1099
|
}>, "queryFn"> & {
|
|
1068
|
-
queryFn?: _tanstack_react_query.QueryFunction<ListCollectiblesReturn, (
|
|
1100
|
+
queryFn?: _tanstack_react_query.QueryFunction<ListCollectiblesReturn, ("collectable" | "list" | {
|
|
1069
1101
|
chainId: string;
|
|
1070
1102
|
collectionAddress: `0x${string}`;
|
|
1071
1103
|
side: OrderSide;
|
|
@@ -1102,7 +1134,7 @@ declare const listCollectiblesOptions: (args: UseListCollectiblesArgs, config: S
|
|
|
1102
1134
|
pageSize: number;
|
|
1103
1135
|
}> | undefined;
|
|
1104
1136
|
} & {
|
|
1105
|
-
queryKey: _tanstack_react_query.DataTag<(
|
|
1137
|
+
queryKey: _tanstack_react_query.DataTag<("collectable" | "list" | {
|
|
1106
1138
|
chainId: string;
|
|
1107
1139
|
collectionAddress: `0x${string}`;
|
|
1108
1140
|
side: OrderSide;
|
|
@@ -1138,7 +1170,7 @@ declare const listCollectiblesOptions: (args: UseListCollectiblesArgs, config: S
|
|
|
1138
1170
|
};
|
|
1139
1171
|
declare const useListCollectibles: (args: UseListCollectiblesArgs) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ListCollectiblesReturn, unknown>, Error>;
|
|
1140
1172
|
|
|
1141
|
-
declare const UseListOffersForCollectibleArgsSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
1173
|
+
declare const UseListOffersForCollectibleArgsSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
1142
1174
|
contractAddress: z.ZodString;
|
|
1143
1175
|
tokenId: z.ZodString;
|
|
1144
1176
|
filter: z.ZodOptional<z.ZodObject<{
|
|
@@ -1187,10 +1219,12 @@ declare const UseListOffersForCollectibleArgsSchema: z.ZodObject<z.objectUtil.ex
|
|
|
1187
1219
|
}>>;
|
|
1188
1220
|
}, {
|
|
1189
1221
|
chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
|
|
1190
|
-
|
|
1222
|
+
collectionAddress: z.ZodString;
|
|
1223
|
+
collectibleId: z.ZodString;
|
|
1224
|
+
}>, "tokenId" | "contractAddress">, "strip", z.ZodTypeAny, {
|
|
1191
1225
|
chainId: string;
|
|
1192
|
-
|
|
1193
|
-
|
|
1226
|
+
collectionAddress: string;
|
|
1227
|
+
collectibleId: string;
|
|
1194
1228
|
filter?: {
|
|
1195
1229
|
currencies?: string[] | undefined;
|
|
1196
1230
|
marketplace?: MarketplaceKind[] | undefined;
|
|
@@ -1207,8 +1241,8 @@ declare const UseListOffersForCollectibleArgsSchema: z.ZodObject<z.objectUtil.ex
|
|
|
1207
1241
|
} | undefined;
|
|
1208
1242
|
}, {
|
|
1209
1243
|
chainId: string | number;
|
|
1210
|
-
|
|
1211
|
-
|
|
1244
|
+
collectionAddress: string;
|
|
1245
|
+
collectibleId: string;
|
|
1212
1246
|
filter?: {
|
|
1213
1247
|
currencies?: string[] | undefined;
|
|
1214
1248
|
marketplace?: MarketplaceKind[] | undefined;
|
|
@@ -1226,11 +1260,11 @@ declare const UseListOffersForCollectibleArgsSchema: z.ZodObject<z.objectUtil.ex
|
|
|
1226
1260
|
}>;
|
|
1227
1261
|
type UseListOffersForCollectibleArgs = z.infer<typeof UseListOffersForCollectibleArgsSchema>;
|
|
1228
1262
|
type UseListOffersForCollectibleReturn = Awaited<ReturnType<typeof fetchListOffersForCollectible>>;
|
|
1229
|
-
declare const fetchListOffersForCollectible: (config: SdkConfig, args: UseListOffersForCollectibleArgs
|
|
1230
|
-
declare const listOffersForCollectibleOptions: (args: UseListOffersForCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.
|
|
1263
|
+
declare const fetchListOffersForCollectible: (config: SdkConfig, args: UseListOffersForCollectibleArgs) => Promise<ListCollectibleOffersReturn>;
|
|
1264
|
+
declare const listOffersForCollectibleOptions: (args: UseListOffersForCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ListCollectibleOffersReturn, Error, ListCollectibleOffersReturn, ("offers" | "collectable" | SdkConfig | {
|
|
1231
1265
|
chainId: string;
|
|
1232
|
-
|
|
1233
|
-
|
|
1266
|
+
collectionAddress: string;
|
|
1267
|
+
collectibleId: string;
|
|
1234
1268
|
filter?: {
|
|
1235
1269
|
currencies?: string[] | undefined;
|
|
1236
1270
|
marketplace?: MarketplaceKind[] | undefined;
|
|
@@ -1245,14 +1279,11 @@ declare const listOffersForCollectibleOptions: (args: UseListOffersForCollectibl
|
|
|
1245
1279
|
}[] | undefined;
|
|
1246
1280
|
more?: boolean | undefined;
|
|
1247
1281
|
} | undefined;
|
|
1248
|
-
})[]
|
|
1249
|
-
page: number;
|
|
1250
|
-
pageSize: number;
|
|
1251
|
-
}>, "queryFn"> & {
|
|
1282
|
+
})[]>, "queryFn"> & {
|
|
1252
1283
|
queryFn?: _tanstack_react_query.QueryFunction<ListCollectibleOffersReturn, ("offers" | "collectable" | SdkConfig | {
|
|
1253
1284
|
chainId: string;
|
|
1254
|
-
|
|
1255
|
-
|
|
1285
|
+
collectionAddress: string;
|
|
1286
|
+
collectibleId: string;
|
|
1256
1287
|
filter?: {
|
|
1257
1288
|
currencies?: string[] | undefined;
|
|
1258
1289
|
marketplace?: MarketplaceKind[] | undefined;
|
|
@@ -1267,15 +1298,164 @@ declare const listOffersForCollectibleOptions: (args: UseListOffersForCollectibl
|
|
|
1267
1298
|
}[] | undefined;
|
|
1268
1299
|
more?: boolean | undefined;
|
|
1269
1300
|
} | undefined;
|
|
1270
|
-
})[],
|
|
1301
|
+
})[], never> | undefined;
|
|
1302
|
+
} & {
|
|
1303
|
+
queryKey: _tanstack_react_query.DataTag<("offers" | "collectable" | SdkConfig | {
|
|
1304
|
+
chainId: string;
|
|
1305
|
+
collectionAddress: string;
|
|
1306
|
+
collectibleId: string;
|
|
1307
|
+
filter?: {
|
|
1308
|
+
currencies?: string[] | undefined;
|
|
1309
|
+
marketplace?: MarketplaceKind[] | undefined;
|
|
1310
|
+
createdBy?: string[] | undefined;
|
|
1311
|
+
} | undefined;
|
|
1312
|
+
page?: {
|
|
1313
|
+
page: number;
|
|
1314
|
+
pageSize: number;
|
|
1315
|
+
sort?: {
|
|
1316
|
+
order: SortOrder$1;
|
|
1317
|
+
column: string;
|
|
1318
|
+
}[] | undefined;
|
|
1319
|
+
more?: boolean | undefined;
|
|
1320
|
+
} | undefined;
|
|
1321
|
+
})[], ListCollectibleOffersReturn>;
|
|
1322
|
+
};
|
|
1323
|
+
declare const useListOffersForCollectible: (args: UseListOffersForCollectibleArgs) => _tanstack_react_query.UseQueryResult<ListCollectibleOffersReturn, Error>;
|
|
1324
|
+
|
|
1325
|
+
declare const UseListListingsForCollectibleArgsSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
1326
|
+
contractAddress: z.ZodString;
|
|
1327
|
+
tokenId: z.ZodString;
|
|
1328
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
1329
|
+
createdBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1330
|
+
marketplace: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof MarketplaceKind>, "many">>;
|
|
1331
|
+
currencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1332
|
+
}, "strip", z.ZodTypeAny, {
|
|
1333
|
+
currencies?: string[] | undefined;
|
|
1334
|
+
marketplace?: MarketplaceKind[] | undefined;
|
|
1335
|
+
createdBy?: string[] | undefined;
|
|
1336
|
+
}, {
|
|
1337
|
+
currencies?: string[] | undefined;
|
|
1338
|
+
marketplace?: MarketplaceKind[] | undefined;
|
|
1339
|
+
createdBy?: string[] | undefined;
|
|
1340
|
+
}>>;
|
|
1341
|
+
page: z.ZodOptional<z.ZodObject<{
|
|
1342
|
+
page: z.ZodNumber;
|
|
1343
|
+
pageSize: z.ZodNumber;
|
|
1344
|
+
more: z.ZodOptional<z.ZodBoolean>;
|
|
1345
|
+
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1346
|
+
column: z.ZodString;
|
|
1347
|
+
order: z.ZodNativeEnum<typeof SortOrder$1>;
|
|
1348
|
+
}, "strip", z.ZodTypeAny, {
|
|
1349
|
+
order: SortOrder$1;
|
|
1350
|
+
column: string;
|
|
1351
|
+
}, {
|
|
1352
|
+
order: SortOrder$1;
|
|
1353
|
+
column: string;
|
|
1354
|
+
}>, "many">>;
|
|
1355
|
+
}, "strip", z.ZodTypeAny, {
|
|
1271
1356
|
page: number;
|
|
1272
1357
|
pageSize: number;
|
|
1273
|
-
|
|
1358
|
+
sort?: {
|
|
1359
|
+
order: SortOrder$1;
|
|
1360
|
+
column: string;
|
|
1361
|
+
}[] | undefined;
|
|
1362
|
+
more?: boolean | undefined;
|
|
1363
|
+
}, {
|
|
1364
|
+
page: number;
|
|
1365
|
+
pageSize: number;
|
|
1366
|
+
sort?: {
|
|
1367
|
+
order: SortOrder$1;
|
|
1368
|
+
column: string;
|
|
1369
|
+
}[] | undefined;
|
|
1370
|
+
more?: boolean | undefined;
|
|
1371
|
+
}>>;
|
|
1372
|
+
}, {
|
|
1373
|
+
chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
|
|
1374
|
+
collectionAddress: z.ZodString;
|
|
1375
|
+
collectibleId: z.ZodString;
|
|
1376
|
+
}>, "tokenId" | "contractAddress">, "strip", z.ZodTypeAny, {
|
|
1377
|
+
chainId: string;
|
|
1378
|
+
collectionAddress: string;
|
|
1379
|
+
collectibleId: string;
|
|
1380
|
+
filter?: {
|
|
1381
|
+
currencies?: string[] | undefined;
|
|
1382
|
+
marketplace?: MarketplaceKind[] | undefined;
|
|
1383
|
+
createdBy?: string[] | undefined;
|
|
1384
|
+
} | undefined;
|
|
1385
|
+
page?: {
|
|
1386
|
+
page: number;
|
|
1387
|
+
pageSize: number;
|
|
1388
|
+
sort?: {
|
|
1389
|
+
order: SortOrder$1;
|
|
1390
|
+
column: string;
|
|
1391
|
+
}[] | undefined;
|
|
1392
|
+
more?: boolean | undefined;
|
|
1393
|
+
} | undefined;
|
|
1394
|
+
}, {
|
|
1395
|
+
chainId: string | number;
|
|
1396
|
+
collectionAddress: string;
|
|
1397
|
+
collectibleId: string;
|
|
1398
|
+
filter?: {
|
|
1399
|
+
currencies?: string[] | undefined;
|
|
1400
|
+
marketplace?: MarketplaceKind[] | undefined;
|
|
1401
|
+
createdBy?: string[] | undefined;
|
|
1402
|
+
} | undefined;
|
|
1403
|
+
page?: {
|
|
1404
|
+
page: number;
|
|
1405
|
+
pageSize: number;
|
|
1406
|
+
sort?: {
|
|
1407
|
+
order: SortOrder$1;
|
|
1408
|
+
column: string;
|
|
1409
|
+
}[] | undefined;
|
|
1410
|
+
more?: boolean | undefined;
|
|
1411
|
+
} | undefined;
|
|
1412
|
+
}>;
|
|
1413
|
+
type UseListListingsForCollectibleArgs = z.infer<typeof UseListListingsForCollectibleArgsSchema>;
|
|
1414
|
+
type UseListListingsForCollectibleReturn = Awaited<ReturnType<typeof fetchListListingsForCollectible>>;
|
|
1415
|
+
declare const fetchListListingsForCollectible: (config: SdkConfig, args: UseListListingsForCollectibleArgs) => Promise<ListCollectibleListingsReturn>;
|
|
1416
|
+
declare const listListingsForCollectibleOptions: (args: UseListListingsForCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ListCollectibleListingsReturn, Error, ListCollectibleListingsReturn, ("offers" | "collectable" | SdkConfig | {
|
|
1417
|
+
chainId: string;
|
|
1418
|
+
collectionAddress: string;
|
|
1419
|
+
collectibleId: string;
|
|
1420
|
+
filter?: {
|
|
1421
|
+
currencies?: string[] | undefined;
|
|
1422
|
+
marketplace?: MarketplaceKind[] | undefined;
|
|
1423
|
+
createdBy?: string[] | undefined;
|
|
1424
|
+
} | undefined;
|
|
1425
|
+
page?: {
|
|
1426
|
+
page: number;
|
|
1427
|
+
pageSize: number;
|
|
1428
|
+
sort?: {
|
|
1429
|
+
order: SortOrder$1;
|
|
1430
|
+
column: string;
|
|
1431
|
+
}[] | undefined;
|
|
1432
|
+
more?: boolean | undefined;
|
|
1433
|
+
} | undefined;
|
|
1434
|
+
})[]>, "queryFn"> & {
|
|
1435
|
+
queryFn?: _tanstack_react_query.QueryFunction<ListCollectibleListingsReturn, ("offers" | "collectable" | SdkConfig | {
|
|
1436
|
+
chainId: string;
|
|
1437
|
+
collectionAddress: string;
|
|
1438
|
+
collectibleId: string;
|
|
1439
|
+
filter?: {
|
|
1440
|
+
currencies?: string[] | undefined;
|
|
1441
|
+
marketplace?: MarketplaceKind[] | undefined;
|
|
1442
|
+
createdBy?: string[] | undefined;
|
|
1443
|
+
} | undefined;
|
|
1444
|
+
page?: {
|
|
1445
|
+
page: number;
|
|
1446
|
+
pageSize: number;
|
|
1447
|
+
sort?: {
|
|
1448
|
+
order: SortOrder$1;
|
|
1449
|
+
column: string;
|
|
1450
|
+
}[] | undefined;
|
|
1451
|
+
more?: boolean | undefined;
|
|
1452
|
+
} | undefined;
|
|
1453
|
+
})[], never> | undefined;
|
|
1274
1454
|
} & {
|
|
1275
1455
|
queryKey: _tanstack_react_query.DataTag<("offers" | "collectable" | SdkConfig | {
|
|
1276
1456
|
chainId: string;
|
|
1277
|
-
|
|
1278
|
-
|
|
1457
|
+
collectionAddress: string;
|
|
1458
|
+
collectibleId: string;
|
|
1279
1459
|
filter?: {
|
|
1280
1460
|
currencies?: string[] | undefined;
|
|
1281
1461
|
marketplace?: MarketplaceKind[] | undefined;
|
|
@@ -1290,9 +1470,9 @@ declare const listOffersForCollectibleOptions: (args: UseListOffersForCollectibl
|
|
|
1290
1470
|
}[] | undefined;
|
|
1291
1471
|
more?: boolean | undefined;
|
|
1292
1472
|
} | undefined;
|
|
1293
|
-
})[],
|
|
1473
|
+
})[], ListCollectibleListingsReturn>;
|
|
1294
1474
|
};
|
|
1295
|
-
declare const
|
|
1475
|
+
declare const useListListingsForCollectible: (args: UseListListingsForCollectibleArgs) => _tanstack_react_query.UseQueryResult<ListCollectibleListingsReturn, Error>;
|
|
1296
1476
|
|
|
1297
1477
|
declare const UseLowestListingSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
1298
1478
|
contractAddress: z.ZodString;
|
|
@@ -1540,7 +1720,6 @@ type UseGenerateOfferTransactionArgs = {
|
|
|
1540
1720
|
chainId: ChainId;
|
|
1541
1721
|
onSuccess?: (data?: Step[]) => void;
|
|
1542
1722
|
};
|
|
1543
|
-
|
|
1544
1723
|
type CreateReqWithDateExpiry = Omit<CreateReq, 'expiry'> & {
|
|
1545
1724
|
expiry: Date;
|
|
1546
1725
|
};
|
|
@@ -1618,6 +1797,236 @@ declare const useGenerateOfferTransaction: (params: UseGenerateOfferTransactionA
|
|
|
1618
1797
|
submittedAt: number;
|
|
1619
1798
|
};
|
|
1620
1799
|
|
|
1800
|
+
declare const UserGeneratSellTransactionArgsSchema: z.ZodObject<{
|
|
1801
|
+
chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
|
|
1802
|
+
onSuccess: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1803
|
+
id: z.ZodNativeEnum<typeof StepType>;
|
|
1804
|
+
data: z.ZodString;
|
|
1805
|
+
to: z.ZodString;
|
|
1806
|
+
value: z.ZodString;
|
|
1807
|
+
signature: z.ZodOptional<z.ZodObject<{
|
|
1808
|
+
domain: z.ZodObject<{
|
|
1809
|
+
name: z.ZodString;
|
|
1810
|
+
version: z.ZodString;
|
|
1811
|
+
chainId: z.ZodNumber;
|
|
1812
|
+
verifyingContract: z.ZodString;
|
|
1813
|
+
}, "strip", z.ZodTypeAny, {
|
|
1814
|
+
version: string;
|
|
1815
|
+
chainId: number;
|
|
1816
|
+
name: string;
|
|
1817
|
+
verifyingContract: string;
|
|
1818
|
+
}, {
|
|
1819
|
+
version: string;
|
|
1820
|
+
chainId: number;
|
|
1821
|
+
name: string;
|
|
1822
|
+
verifyingContract: string;
|
|
1823
|
+
}>;
|
|
1824
|
+
types: z.ZodAny;
|
|
1825
|
+
primaryType: z.ZodString;
|
|
1826
|
+
value: z.ZodAny;
|
|
1827
|
+
}, "strip", z.ZodTypeAny, {
|
|
1828
|
+
domain: {
|
|
1829
|
+
version: string;
|
|
1830
|
+
chainId: number;
|
|
1831
|
+
name: string;
|
|
1832
|
+
verifyingContract: string;
|
|
1833
|
+
};
|
|
1834
|
+
primaryType: string;
|
|
1835
|
+
value?: any;
|
|
1836
|
+
types?: any;
|
|
1837
|
+
}, {
|
|
1838
|
+
domain: {
|
|
1839
|
+
version: string;
|
|
1840
|
+
chainId: number;
|
|
1841
|
+
name: string;
|
|
1842
|
+
verifyingContract: string;
|
|
1843
|
+
};
|
|
1844
|
+
primaryType: string;
|
|
1845
|
+
value?: any;
|
|
1846
|
+
types?: any;
|
|
1847
|
+
}>>;
|
|
1848
|
+
post: z.ZodOptional<z.ZodObject<{
|
|
1849
|
+
endpoint: z.ZodString;
|
|
1850
|
+
method: z.ZodString;
|
|
1851
|
+
body: z.ZodAny;
|
|
1852
|
+
}, "strip", z.ZodTypeAny, {
|
|
1853
|
+
method: string;
|
|
1854
|
+
endpoint: string;
|
|
1855
|
+
body?: any;
|
|
1856
|
+
}, {
|
|
1857
|
+
method: string;
|
|
1858
|
+
endpoint: string;
|
|
1859
|
+
body?: any;
|
|
1860
|
+
}>>;
|
|
1861
|
+
executeType: z.ZodOptional<z.ZodNativeEnum<typeof ExecuteType>>;
|
|
1862
|
+
}, "strip", z.ZodTypeAny, {
|
|
1863
|
+
value: string;
|
|
1864
|
+
id: StepType;
|
|
1865
|
+
to: string;
|
|
1866
|
+
data: string;
|
|
1867
|
+
signature?: {
|
|
1868
|
+
domain: {
|
|
1869
|
+
version: string;
|
|
1870
|
+
chainId: number;
|
|
1871
|
+
name: string;
|
|
1872
|
+
verifyingContract: string;
|
|
1873
|
+
};
|
|
1874
|
+
primaryType: string;
|
|
1875
|
+
value?: any;
|
|
1876
|
+
types?: any;
|
|
1877
|
+
} | undefined;
|
|
1878
|
+
executeType?: ExecuteType | undefined;
|
|
1879
|
+
post?: {
|
|
1880
|
+
method: string;
|
|
1881
|
+
endpoint: string;
|
|
1882
|
+
body?: any;
|
|
1883
|
+
} | undefined;
|
|
1884
|
+
}, {
|
|
1885
|
+
value: string;
|
|
1886
|
+
id: StepType;
|
|
1887
|
+
to: string;
|
|
1888
|
+
data: string;
|
|
1889
|
+
signature?: {
|
|
1890
|
+
domain: {
|
|
1891
|
+
version: string;
|
|
1892
|
+
chainId: number;
|
|
1893
|
+
name: string;
|
|
1894
|
+
verifyingContract: string;
|
|
1895
|
+
};
|
|
1896
|
+
primaryType: string;
|
|
1897
|
+
value?: any;
|
|
1898
|
+
types?: any;
|
|
1899
|
+
} | undefined;
|
|
1900
|
+
executeType?: ExecuteType | undefined;
|
|
1901
|
+
post?: {
|
|
1902
|
+
method: string;
|
|
1903
|
+
endpoint: string;
|
|
1904
|
+
body?: any;
|
|
1905
|
+
} | undefined;
|
|
1906
|
+
}>, "many">>], z.ZodUnknown>, z.ZodUnknown>>;
|
|
1907
|
+
}, "strip", z.ZodTypeAny, {
|
|
1908
|
+
chainId: string;
|
|
1909
|
+
onSuccess?: ((args_0: {
|
|
1910
|
+
value: string;
|
|
1911
|
+
id: StepType;
|
|
1912
|
+
to: string;
|
|
1913
|
+
data: string;
|
|
1914
|
+
signature?: {
|
|
1915
|
+
domain: {
|
|
1916
|
+
version: string;
|
|
1917
|
+
chainId: number;
|
|
1918
|
+
name: string;
|
|
1919
|
+
verifyingContract: string;
|
|
1920
|
+
};
|
|
1921
|
+
primaryType: string;
|
|
1922
|
+
value?: any;
|
|
1923
|
+
types?: any;
|
|
1924
|
+
} | undefined;
|
|
1925
|
+
executeType?: ExecuteType | undefined;
|
|
1926
|
+
post?: {
|
|
1927
|
+
method: string;
|
|
1928
|
+
endpoint: string;
|
|
1929
|
+
body?: any;
|
|
1930
|
+
} | undefined;
|
|
1931
|
+
}[] | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
1932
|
+
}, {
|
|
1933
|
+
chainId: string | number;
|
|
1934
|
+
onSuccess?: ((args_0: {
|
|
1935
|
+
value: string;
|
|
1936
|
+
id: StepType;
|
|
1937
|
+
to: string;
|
|
1938
|
+
data: string;
|
|
1939
|
+
signature?: {
|
|
1940
|
+
domain: {
|
|
1941
|
+
version: string;
|
|
1942
|
+
chainId: number;
|
|
1943
|
+
name: string;
|
|
1944
|
+
verifyingContract: string;
|
|
1945
|
+
};
|
|
1946
|
+
primaryType: string;
|
|
1947
|
+
value?: any;
|
|
1948
|
+
types?: any;
|
|
1949
|
+
} | undefined;
|
|
1950
|
+
executeType?: ExecuteType | undefined;
|
|
1951
|
+
post?: {
|
|
1952
|
+
method: string;
|
|
1953
|
+
endpoint: string;
|
|
1954
|
+
body?: any;
|
|
1955
|
+
} | undefined;
|
|
1956
|
+
}[] | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
1957
|
+
}>;
|
|
1958
|
+
type UseGenerateSellTransactionArgs = z.infer<typeof UserGeneratSellTransactionArgsSchema>;
|
|
1959
|
+
declare const generateSellTransaction: (args: GenerateSellTransactionArgs, config: SdkConfig, chainId: ChainId) => Promise<Step[]>;
|
|
1960
|
+
declare const useGenerateSellTransaction: (params: UseGenerateSellTransactionArgs) => {
|
|
1961
|
+
generateSellTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateSellTransactionArgs, unknown>;
|
|
1962
|
+
generateSellTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateSellTransactionArgs, unknown>;
|
|
1963
|
+
data: undefined;
|
|
1964
|
+
variables: undefined;
|
|
1965
|
+
error: null;
|
|
1966
|
+
isError: false;
|
|
1967
|
+
isIdle: true;
|
|
1968
|
+
isPending: false;
|
|
1969
|
+
isSuccess: false;
|
|
1970
|
+
status: "idle";
|
|
1971
|
+
reset: () => void;
|
|
1972
|
+
context: unknown;
|
|
1973
|
+
failureCount: number;
|
|
1974
|
+
failureReason: Error | null;
|
|
1975
|
+
isPaused: boolean;
|
|
1976
|
+
submittedAt: number;
|
|
1977
|
+
} | {
|
|
1978
|
+
generateSellTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateSellTransactionArgs, unknown>;
|
|
1979
|
+
generateSellTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateSellTransactionArgs, unknown>;
|
|
1980
|
+
data: undefined;
|
|
1981
|
+
variables: GenerateSellTransactionArgs;
|
|
1982
|
+
error: null;
|
|
1983
|
+
isError: false;
|
|
1984
|
+
isIdle: false;
|
|
1985
|
+
isPending: true;
|
|
1986
|
+
isSuccess: false;
|
|
1987
|
+
status: "pending";
|
|
1988
|
+
reset: () => void;
|
|
1989
|
+
context: unknown;
|
|
1990
|
+
failureCount: number;
|
|
1991
|
+
failureReason: Error | null;
|
|
1992
|
+
isPaused: boolean;
|
|
1993
|
+
submittedAt: number;
|
|
1994
|
+
} | {
|
|
1995
|
+
generateSellTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateSellTransactionArgs, unknown>;
|
|
1996
|
+
generateSellTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateSellTransactionArgs, unknown>;
|
|
1997
|
+
data: undefined;
|
|
1998
|
+
error: Error;
|
|
1999
|
+
variables: GenerateSellTransactionArgs;
|
|
2000
|
+
isError: true;
|
|
2001
|
+
isIdle: false;
|
|
2002
|
+
isPending: false;
|
|
2003
|
+
isSuccess: false;
|
|
2004
|
+
status: "error";
|
|
2005
|
+
reset: () => void;
|
|
2006
|
+
context: unknown;
|
|
2007
|
+
failureCount: number;
|
|
2008
|
+
failureReason: Error | null;
|
|
2009
|
+
isPaused: boolean;
|
|
2010
|
+
submittedAt: number;
|
|
2011
|
+
} | {
|
|
2012
|
+
generateSellTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateSellTransactionArgs, unknown>;
|
|
2013
|
+
generateSellTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateSellTransactionArgs, unknown>;
|
|
2014
|
+
data: Step[];
|
|
2015
|
+
error: null;
|
|
2016
|
+
variables: GenerateSellTransactionArgs;
|
|
2017
|
+
isError: false;
|
|
2018
|
+
isIdle: false;
|
|
2019
|
+
isPending: false;
|
|
2020
|
+
isSuccess: true;
|
|
2021
|
+
status: "success";
|
|
2022
|
+
reset: () => void;
|
|
2023
|
+
context: unknown;
|
|
2024
|
+
failureCount: number;
|
|
2025
|
+
failureReason: Error | null;
|
|
2026
|
+
isPaused: boolean;
|
|
2027
|
+
submittedAt: number;
|
|
2028
|
+
};
|
|
2029
|
+
|
|
1621
2030
|
interface BaseTransferParams {
|
|
1622
2031
|
chainId: ChainId;
|
|
1623
2032
|
collectionAddress: Hex;
|
|
@@ -1640,4 +2049,132 @@ declare const useTransferTokens: () => {
|
|
|
1640
2049
|
transferSuccess: boolean;
|
|
1641
2050
|
};
|
|
1642
2051
|
|
|
1643
|
-
|
|
2052
|
+
declare const UseCheckoutOptionsSchema: z.ZodObject<{
|
|
2053
|
+
chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
|
|
2054
|
+
walletAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2055
|
+
orders: z.ZodArray<z.ZodObject<{
|
|
2056
|
+
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2057
|
+
orderId: z.ZodString;
|
|
2058
|
+
quantity: z.ZodNumber;
|
|
2059
|
+
marketplace: z.ZodNativeEnum<typeof MarketplaceKind>;
|
|
2060
|
+
}, "strip", z.ZodTypeAny, {
|
|
2061
|
+
orderId: string;
|
|
2062
|
+
marketplace: MarketplaceKind;
|
|
2063
|
+
collectionAddress: `0x${string}`;
|
|
2064
|
+
quantity: number;
|
|
2065
|
+
}, {
|
|
2066
|
+
orderId: string;
|
|
2067
|
+
marketplace: MarketplaceKind;
|
|
2068
|
+
collectionAddress: string;
|
|
2069
|
+
quantity: number;
|
|
2070
|
+
}>, "many">;
|
|
2071
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
2072
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2073
|
+
}, "strip", z.ZodTypeAny, {
|
|
2074
|
+
enabled?: boolean | undefined;
|
|
2075
|
+
}, {
|
|
2076
|
+
enabled?: boolean | undefined;
|
|
2077
|
+
}>>;
|
|
2078
|
+
}, "strip", z.ZodTypeAny, {
|
|
2079
|
+
orders: {
|
|
2080
|
+
orderId: string;
|
|
2081
|
+
marketplace: MarketplaceKind;
|
|
2082
|
+
collectionAddress: `0x${string}`;
|
|
2083
|
+
quantity: number;
|
|
2084
|
+
}[];
|
|
2085
|
+
chainId: string;
|
|
2086
|
+
walletAddress: `0x${string}`;
|
|
2087
|
+
query?: {
|
|
2088
|
+
enabled?: boolean | undefined;
|
|
2089
|
+
} | undefined;
|
|
2090
|
+
}, {
|
|
2091
|
+
orders: {
|
|
2092
|
+
orderId: string;
|
|
2093
|
+
marketplace: MarketplaceKind;
|
|
2094
|
+
collectionAddress: string;
|
|
2095
|
+
quantity: number;
|
|
2096
|
+
}[];
|
|
2097
|
+
chainId: string | number;
|
|
2098
|
+
walletAddress: string;
|
|
2099
|
+
query?: {
|
|
2100
|
+
enabled?: boolean | undefined;
|
|
2101
|
+
} | undefined;
|
|
2102
|
+
}>;
|
|
2103
|
+
type UseCheckoutOptionsArgs = z.infer<typeof UseCheckoutOptionsSchema>;
|
|
2104
|
+
type UseCheckoutOptionsReturn = Awaited<ReturnType<typeof fetchCheckoutOptions>>;
|
|
2105
|
+
declare const fetchCheckoutOptions: (args: UseCheckoutOptionsArgs, config: SdkConfig) => Promise<CheckoutOptionsMarketplaceReturn>;
|
|
2106
|
+
declare const checkoutOptionsOptions: (args: UseCheckoutOptionsArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<CheckoutOptionsMarketplaceReturn, Error, CheckoutOptionsMarketplaceReturn, (string | {
|
|
2107
|
+
orders: {
|
|
2108
|
+
orderId: string;
|
|
2109
|
+
marketplace: MarketplaceKind;
|
|
2110
|
+
collectionAddress: `0x${string}`;
|
|
2111
|
+
quantity: number;
|
|
2112
|
+
}[];
|
|
2113
|
+
chainId: string;
|
|
2114
|
+
walletAddress: `0x${string}`;
|
|
2115
|
+
query?: {
|
|
2116
|
+
enabled?: boolean | undefined;
|
|
2117
|
+
} | undefined;
|
|
2118
|
+
})[]>, "queryFn"> & {
|
|
2119
|
+
queryFn?: _tanstack_react_query.QueryFunction<CheckoutOptionsMarketplaceReturn, (string | {
|
|
2120
|
+
orders: {
|
|
2121
|
+
orderId: string;
|
|
2122
|
+
marketplace: MarketplaceKind;
|
|
2123
|
+
collectionAddress: `0x${string}`;
|
|
2124
|
+
quantity: number;
|
|
2125
|
+
}[];
|
|
2126
|
+
chainId: string;
|
|
2127
|
+
walletAddress: `0x${string}`;
|
|
2128
|
+
query?: {
|
|
2129
|
+
enabled?: boolean | undefined;
|
|
2130
|
+
} | undefined;
|
|
2131
|
+
})[], never> | undefined;
|
|
2132
|
+
} & {
|
|
2133
|
+
queryKey: _tanstack_react_query.DataTag<(string | {
|
|
2134
|
+
orders: {
|
|
2135
|
+
orderId: string;
|
|
2136
|
+
marketplace: MarketplaceKind;
|
|
2137
|
+
collectionAddress: `0x${string}`;
|
|
2138
|
+
quantity: number;
|
|
2139
|
+
}[];
|
|
2140
|
+
chainId: string;
|
|
2141
|
+
walletAddress: `0x${string}`;
|
|
2142
|
+
query?: {
|
|
2143
|
+
enabled?: boolean | undefined;
|
|
2144
|
+
} | undefined;
|
|
2145
|
+
})[], CheckoutOptionsMarketplaceReturn>;
|
|
2146
|
+
};
|
|
2147
|
+
declare const useCheckoutOptions: (args: UseCheckoutOptionsArgs) => _tanstack_react_query.UseQueryResult<CheckoutOptionsMarketplaceReturn, Error>;
|
|
2148
|
+
|
|
2149
|
+
declare const UseListCollectionsSchema: z.ZodObject<{
|
|
2150
|
+
query: z.ZodDefault<z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2151
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2152
|
+
}, "strip", z.ZodTypeAny, {
|
|
2153
|
+
enabled?: boolean | undefined;
|
|
2154
|
+
}, {
|
|
2155
|
+
enabled?: boolean | undefined;
|
|
2156
|
+
}>>>>;
|
|
2157
|
+
}, "strip", z.ZodTypeAny, {
|
|
2158
|
+
query: {
|
|
2159
|
+
enabled?: boolean | undefined;
|
|
2160
|
+
};
|
|
2161
|
+
}, {
|
|
2162
|
+
query?: {
|
|
2163
|
+
enabled?: boolean | undefined;
|
|
2164
|
+
} | undefined;
|
|
2165
|
+
}>;
|
|
2166
|
+
type UseListCollectionsArgs = z.input<typeof UseListCollectionsSchema>;
|
|
2167
|
+
type UseListCollectionsReturn = Awaited<ReturnType<typeof fetchListCollections>>;
|
|
2168
|
+
type FetchListCollectionsArgs = {
|
|
2169
|
+
marketplaceConfig: MarketplaceConfig;
|
|
2170
|
+
query?: z.infer<typeof QueryArgSchema>;
|
|
2171
|
+
};
|
|
2172
|
+
declare const fetchListCollections: ({ marketplaceConfig }: FetchListCollectionsArgs, config: SdkConfig) => Promise<_0xsequence_metadata.ContractInfo[]>;
|
|
2173
|
+
declare const listCollectionsOptions: (args: FetchListCollectionsArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<_0xsequence_metadata.ContractInfo[], Error, _0xsequence_metadata.ContractInfo[], ("collections" | "list")[]>, "queryFn"> & {
|
|
2174
|
+
queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_metadata.ContractInfo[], ("collections" | "list")[], never> | undefined;
|
|
2175
|
+
} & {
|
|
2176
|
+
queryKey: _tanstack_react_query.DataTag<("collections" | "list")[], _0xsequence_metadata.ContractInfo[]>;
|
|
2177
|
+
};
|
|
2178
|
+
declare const useListCollections: (args?: UseListCollectionsArgs) => _tanstack_react_query.UseQueryResult<_0xsequence_metadata.ContractInfo[], Error>;
|
|
2179
|
+
|
|
2180
|
+
export { type CreateReqWithDateExpiry$1 as CreateReqWithDateExpiry, type GenerateListingTransactionProps, type GenerateOfferTransactionProps, type TransferTokensParams, type UseCheckoutOptionsArgs, type UseCheckoutOptionsReturn, type UseCollectibleArgs, type UseCollectibleReturn, type UseCollectionArgs, type UseCollectionReturn, type UseContOfCollectableReturn, type UseCountOfCollectablesArgs, type UseCurrenciesReturn, type UseCurrencyReturn, type UseFetchTokenBalancesReturn, type UseFilterReturn, type UseFiltersArgs, type UseFloorOrderArgs, type UseFloorOrderReturn, type UseGenerateListingTransactionArgs, type UseGenerateOfferTransactionArgs, type UseHighestOfferArgs, type UseHighestOfferReturn, type UseListBalancesArgs, type UseListCollectiblesArgs, type UseListCollectiblesReturn, type UseListCollectionsArgs, type UseListCollectionsReturn, type UseListListingsForCollectibleReturn, type UseListOffersForCollectibleReturn, type UseLowestListingArgs, type UseLowestListingReturn, balanceOfCollectibleOptions, checkoutOptionsOptions, collectibleOptions, collectionOptions, countOfCollectablesOptions, currenciesOptions, currencyOptions, fetchFilters, filtersOptions, floorOrderOptions, generateListingTransaction, generateOfferTransaction, generateSellTransaction, highestOfferOptions, listBalancesOptions, listCollectiblesOptions, listCollectionsOptions, listListingsForCollectibleOptions, listOffersForCollectibleOptions, lowestListingOptions, marketplaceConfigOptions, metadataOptionsSchema, royaletyPercentageOptions, useBalanceOfCollectible, useCheckoutOptions, useCollectible, useCollection, useConfig, useCountOfCollectables, useCurrencies, useCurrency, useFilters, useFloorOrder, useGenerateListingTransaction, useGenerateOfferTransaction, useGenerateSellTransaction, useHighestOffer, useListBalances, useListCollectibles, useListCollections, useListListingsForCollectible, useListOffersForCollectible, useLowestListing, useMarketplaceConfig, useRoyaltyPercentage, useTransferTokens };
|