@0xsequence/marketplace-sdk 0.0.1 → 0.1.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.
Files changed (93) hide show
  1. package/dist/chunk-7CL54NCX.js +41 -0
  2. package/dist/chunk-7CL54NCX.js.map +1 -0
  3. package/dist/{chunk-G3D572BT.js → chunk-G3YU4NQ2.js} +24 -1
  4. package/dist/chunk-G3YU4NQ2.js.map +1 -0
  5. package/dist/{chunk-SM7V6ZWI.js → chunk-GNB736ZE.js} +226 -208
  6. package/dist/chunk-GNB736ZE.js.map +1 -0
  7. package/dist/chunk-ITJEOCDV.js +1006 -0
  8. package/dist/chunk-ITJEOCDV.js.map +1 -0
  9. package/dist/{chunk-QOJXWHRZ.js → chunk-LFQB477Y.js} +3 -1
  10. package/dist/chunk-LFQB477Y.js.map +1 -0
  11. package/dist/{chunk-VPGWEMWL.js → chunk-M4MXVMAM.js} +134 -25
  12. package/dist/chunk-M4MXVMAM.js.map +1 -0
  13. package/dist/{chunk-4PFMUVE4.js → chunk-SNOEEUPZ.js} +2 -2
  14. package/dist/{create-config-Dz0gCiQ0.d.ts → create-config-Cto2ehcz.d.ts} +1 -1
  15. package/dist/index.css +4 -1
  16. package/dist/index.d.ts +3 -2
  17. package/dist/index.js +1 -1
  18. package/dist/{marketplace-config-DZbtyrma.d.ts → marketplace-config-Bbxl-uKX.d.ts} +2 -1
  19. package/dist/react/_internal/index.d.ts +4 -3
  20. package/dist/react/_internal/index.js +9 -1
  21. package/dist/react/_internal/wagmi/index.d.ts +2 -2
  22. package/dist/react/hooks/index.d.ts +1363 -101
  23. package/dist/react/hooks/index.js +13 -7
  24. package/dist/react/index.css +4 -1
  25. package/dist/react/index.css.map +1 -1
  26. package/dist/react/index.d.ts +6 -5
  27. package/dist/react/index.js +28 -22
  28. package/dist/react/ssr/index.d.ts +2 -1
  29. package/dist/react/ssr/index.js +23 -0
  30. package/dist/react/ssr/index.js.map +1 -1
  31. package/dist/react/ui/index.css +4 -1
  32. package/dist/react/ui/index.css.map +1 -1
  33. package/dist/react/ui/index.d.ts +4 -4
  34. package/dist/react/ui/index.js +5 -5
  35. package/dist/react/ui/modals/_internal/components/actionModal/index.js +2 -2
  36. package/dist/styles/index.css +4 -1
  37. package/dist/styles/index.css.map +1 -1
  38. package/dist/styles/index.d.ts +2 -1
  39. package/dist/styles/index.js +3 -4972
  40. package/dist/styles/index.js.map +1 -1
  41. package/dist/types/index.d.ts +2 -1
  42. package/dist/types/index.js +1 -1
  43. package/dist/types-BzZVURNL.d.ts +19 -0
  44. package/dist/utils/index.d.ts +2 -1
  45. package/dist/utils/index.js +1 -1
  46. package/package.json +3 -2
  47. package/src/react/_internal/api/zod-schema.ts +636 -0
  48. package/src/react/_internal/types.ts +32 -8
  49. package/src/react/hooks/index.ts +1 -0
  50. package/src/react/hooks/useBalanceOfCollectible.tsx +43 -18
  51. package/src/react/hooks/useCollectible.tsx +17 -11
  52. package/src/react/hooks/useCollection.tsx +35 -29
  53. package/src/react/hooks/useCountOfCollectables.tsx +77 -0
  54. package/src/react/hooks/useCurrencies.tsx +23 -12
  55. package/src/react/hooks/useFilters.tsx +15 -9
  56. package/src/react/hooks/useFloorOrder.tsx +23 -8
  57. package/src/react/hooks/useGenerateSellTransaction.tsx +16 -9
  58. package/src/react/hooks/useHighestOffer.tsx +23 -13
  59. package/src/react/hooks/useListBalances.tsx +57 -26
  60. package/src/react/hooks/useListCollectibles.tsx +25 -12
  61. package/src/react/hooks/useListOffersForCollectible.tsx +13 -5
  62. package/src/react/hooks/useLowestListing.tsx +23 -14
  63. package/src/react/hooks/useRoyaltyPercentage.tsx +18 -8
  64. package/src/react/hooks/useTransferTokens.tsx +3 -3
  65. package/src/react/ui/modals/CreateListingModal/_store.ts +5 -5
  66. package/src/react/ui/modals/CreateListingModal/index.tsx +5 -4
  67. package/src/react/ui/modals/MakeOfferModal/_store.ts +6 -9
  68. package/src/react/ui/modals/MakeOfferModal/index.tsx +15 -25
  69. package/src/react/ui/modals/SellModal/_store.ts +28 -23
  70. package/src/react/ui/modals/SellModal/index.tsx +11 -10
  71. package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/index.tsx +8 -7
  72. package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +2 -1
  73. package/src/react/ui/modals/_internal/components/floorPriceText/index.tsx +3 -2
  74. package/src/react/ui/modals/_internal/components/priceInput/index.tsx +55 -12
  75. package/src/react/ui/modals/_internal/components/priceInput/styles.css.ts +4 -0
  76. package/src/react/ui/modals/_internal/components/quantityInput/index.tsx +2 -1
  77. package/src/react/ui/modals/_internal/components/tokenPreview/index.tsx +2 -1
  78. package/src/react/ui/modals/_internal/components/transactionDetails/index.tsx +2 -2
  79. package/src/react/ui/modals/_internal/components/transactionPreview/index.tsx +4 -4
  80. package/src/react/ui/modals/_internal/components/transactionStatusModal/index.tsx +14 -14
  81. package/src/react/ui/modals/_internal/components/transactionStatusModal/store.ts +5 -5
  82. package/src/types/marketplace-config.ts +2 -1
  83. package/dist/chunk-G3D572BT.js.map +0 -1
  84. package/dist/chunk-QOJXWHRZ.js.map +0 -1
  85. package/dist/chunk-SM7V6ZWI.js.map +0 -1
  86. package/dist/chunk-STO74F2I.js +0 -14
  87. package/dist/chunk-STO74F2I.js.map +0 -1
  88. package/dist/chunk-VPGWEMWL.js.map +0 -1
  89. package/dist/chunk-ZE2LNX65.js +0 -394
  90. package/dist/chunk-ZE2LNX65.js.map +0 -1
  91. package/dist/types-BrAQ8-w4.d.ts +0 -12
  92. package/src/react/hooks/useCollectionCounts.tsx +0 -61
  93. /package/dist/{chunk-4PFMUVE4.js.map → chunk-SNOEEUPZ.js.map} +0 -0
@@ -1,174 +1,1393 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import * as _0xsequence_indexer from '@0xsequence/indexer';
3
- import { MetadataOptions, Page } from '@0xsequence/indexer';
4
- import { C as ChainId, Q as QueryArg } from '../../types-BrAQ8-w4.js';
3
+ import { Page, SortOrder } from '@0xsequence/indexer';
4
+ import * as _0xsequence_network from '@0xsequence/network';
5
+ import { Q as QueryArgSchema, c as ChainId } from '../../types-BzZVURNL.js';
5
6
  import { S as SdkConfig } from '../../sdk-config-xWkdBdrL.js';
7
+ import { Hex, Address } from 'viem';
8
+ import { z } from 'zod';
9
+ import { P as PropertyType, M as MarketplaceKind, b as OrderSide, w as Currency, o as CollectibleOrder, aC as GetCollectibleHighestOfferReturn, i as Page$1, aW as ListCollectiblesReturn, S as SortOrder$1, aK as ListCollectibleOffersReturn, aE as GetCollectibleLowestListingReturn, z as Step, D as CreateReq, aP as GenerateListingTransactionArgs, aR as GenerateOfferTransactionArgs, C as ContractType } from '../../marketplace.gen-Ceofb9Cs.js';
6
10
  import * as _0xsequence_metadata from '@0xsequence/metadata';
7
- import { w as Currency, o as CollectibleOrder, aB as GetCollectibleHighestOfferArgs, aC as GetCollectibleHighestOfferReturn, aV as ListCollectiblesArgs, i as Page$1, aW as ListCollectiblesReturn, ax as ListOffersForCollectibleArgs, aK as ListCollectibleOffersReturn, aD as GetCollectibleLowestListingArgs, aE as GetCollectibleLowestListingReturn, z as Step, D as CreateReq, aP as GenerateListingTransactionArgs, aR as GenerateOfferTransactionArgs, C as ContractType } from '../../marketplace.gen-Ceofb9Cs.js';
8
11
  import { c as getMarketplaceClient, S as SequenceMarketplace } from '../../services-BIwQ1C1c.js';
9
- import { M as MarketplaceConfig } from '../../marketplace-config-DZbtyrma.js';
10
- import { Hex, Address } from 'viem';
11
- import '@0xsequence/network';
12
+ import { M as MarketplaceConfig } from '../../marketplace-config-Bbxl-uKX.js';
12
13
 
13
- type UseBalanceOfCollectibleArgs = {
14
+ declare const fetchBalanceOfCollectibleSchema: z.ZodObject<{
15
+ collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
16
+ collectableId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodString>;
17
+ userAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
18
+ chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodNumber>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ chainId: number;
21
+ collectionAddress: `0x${string}`;
22
+ collectableId: string;
23
+ userAddress: `0x${string}`;
24
+ }, {
25
+ chainId: string | number;
14
26
  collectionAddress: string;
27
+ collectableId: string | number;
15
28
  userAddress: string;
16
- tokenId: string;
17
- chainId: ChainId;
18
- } & QueryArg;
19
- declare const balanceOfCollectibleOptions: (args: UseBalanceOfCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<_0xsequence_indexer.TokenBalance, Error, _0xsequence_indexer.TokenBalance, ("collectable" | "details" | "userBalances" | SdkConfig | UseBalanceOfCollectibleArgs)[]>, "queryFn"> & {
20
- queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_indexer.TokenBalance, ("collectable" | "details" | "userBalances" | SdkConfig | UseBalanceOfCollectibleArgs)[], never> | undefined;
29
+ }>;
30
+ type FetchBalanceOfCollectibleArgs = z.input<typeof fetchBalanceOfCollectibleSchema>;
31
+ interface BalanceOfCollectibleOptions extends Omit<FetchBalanceOfCollectibleArgs, 'userAddress'> {
32
+ userAddress?: Hex;
33
+ query?: z.infer<typeof QueryArgSchema>;
34
+ }
35
+ declare const balanceOfCollectibleOptions: (args: BalanceOfCollectibleOptions, config: SdkConfig) => _tanstack_react_query.UseQueryOptions<_0xsequence_indexer.TokenBalance, Error, _0xsequence_indexer.TokenBalance, ("collectable" | "details" | "userBalances" | SdkConfig | BalanceOfCollectibleOptions)[]> & {
36
+ initialData?: _0xsequence_indexer.TokenBalance | _tanstack_react_query.InitialDataFunction<_0xsequence_indexer.TokenBalance> | undefined;
21
37
  } & {
22
- queryKey: _tanstack_react_query.DataTag<("collectable" | "details" | "userBalances" | SdkConfig | UseBalanceOfCollectibleArgs)[], _0xsequence_indexer.TokenBalance>;
38
+ queryKey: _tanstack_react_query.DataTag<("collectable" | "details" | "userBalances" | SdkConfig | BalanceOfCollectibleOptions)[], _0xsequence_indexer.TokenBalance>;
23
39
  };
24
- declare const useBalanceOfCollectible: (args: UseBalanceOfCollectibleArgs) => _tanstack_react_query.UseQueryResult<_0xsequence_indexer.TokenBalance, Error>;
40
+ declare const useBalanceOfCollectible: (args: BalanceOfCollectibleOptions) => _tanstack_react_query.UseQueryResult<_0xsequence_indexer.TokenBalance, Error>;
25
41
 
26
- type UseCollectibleArgs = {
27
- chainId: ChainId;
42
+ declare const UseCountOfCollectableSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
43
+ chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
44
+ collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
45
+ query: z.ZodOptional<z.ZodObject<{
46
+ enabled: z.ZodOptional<z.ZodBoolean>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ enabled?: boolean | undefined;
49
+ }, {
50
+ enabled?: boolean | undefined;
51
+ }>>;
52
+ }, {
53
+ filter: z.ZodObject<{
54
+ includeEmpty: z.ZodBoolean;
55
+ searchText: z.ZodOptional<z.ZodString>;
56
+ properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
57
+ name: z.ZodString;
58
+ type: z.ZodNativeEnum<typeof PropertyType>;
59
+ min: z.ZodOptional<z.ZodNumber>;
60
+ max: z.ZodOptional<z.ZodNumber>;
61
+ values: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
62
+ }, "strip", z.ZodTypeAny, {
63
+ type: PropertyType;
64
+ name: string;
65
+ values?: any[] | undefined;
66
+ min?: number | undefined;
67
+ max?: number | undefined;
68
+ }, {
69
+ type: PropertyType;
70
+ name: string;
71
+ values?: any[] | undefined;
72
+ min?: number | undefined;
73
+ max?: number | undefined;
74
+ }>, "many">>;
75
+ marketplaces: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof MarketplaceKind>, "many">>;
76
+ inAccounts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
77
+ notInAccounts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
78
+ ordersCreatedBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
79
+ ordersNotCreatedBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
80
+ }, "strip", z.ZodTypeAny, {
81
+ includeEmpty: boolean;
82
+ searchText?: string | undefined;
83
+ properties?: {
84
+ type: PropertyType;
85
+ name: string;
86
+ values?: any[] | undefined;
87
+ min?: number | undefined;
88
+ max?: number | undefined;
89
+ }[] | undefined;
90
+ marketplaces?: MarketplaceKind[] | undefined;
91
+ inAccounts?: string[] | undefined;
92
+ notInAccounts?: string[] | undefined;
93
+ ordersCreatedBy?: string[] | undefined;
94
+ ordersNotCreatedBy?: string[] | undefined;
95
+ }, {
96
+ includeEmpty: boolean;
97
+ searchText?: string | undefined;
98
+ properties?: {
99
+ type: PropertyType;
100
+ name: string;
101
+ values?: any[] | undefined;
102
+ min?: number | undefined;
103
+ max?: number | undefined;
104
+ }[] | undefined;
105
+ marketplaces?: MarketplaceKind[] | undefined;
106
+ inAccounts?: string[] | undefined;
107
+ notInAccounts?: string[] | undefined;
108
+ ordersCreatedBy?: string[] | undefined;
109
+ ordersNotCreatedBy?: string[] | undefined;
110
+ }>;
111
+ side: z.ZodNativeEnum<typeof OrderSide>;
112
+ }>, "strip", z.ZodTypeAny, {
113
+ filter: {
114
+ includeEmpty: boolean;
115
+ searchText?: string | undefined;
116
+ properties?: {
117
+ type: PropertyType;
118
+ name: string;
119
+ values?: any[] | undefined;
120
+ min?: number | undefined;
121
+ max?: number | undefined;
122
+ }[] | undefined;
123
+ marketplaces?: MarketplaceKind[] | undefined;
124
+ inAccounts?: string[] | undefined;
125
+ notInAccounts?: string[] | undefined;
126
+ ordersCreatedBy?: string[] | undefined;
127
+ ordersNotCreatedBy?: string[] | undefined;
128
+ };
129
+ chainId: string;
130
+ collectionAddress: `0x${string}`;
131
+ side: OrderSide;
132
+ query?: {
133
+ enabled?: boolean | undefined;
134
+ } | undefined;
135
+ }, {
136
+ filter: {
137
+ includeEmpty: boolean;
138
+ searchText?: string | undefined;
139
+ properties?: {
140
+ type: PropertyType;
141
+ name: string;
142
+ values?: any[] | undefined;
143
+ min?: number | undefined;
144
+ max?: number | undefined;
145
+ }[] | undefined;
146
+ marketplaces?: MarketplaceKind[] | undefined;
147
+ inAccounts?: string[] | undefined;
148
+ notInAccounts?: string[] | undefined;
149
+ ordersCreatedBy?: string[] | undefined;
150
+ ordersNotCreatedBy?: string[] | undefined;
151
+ };
152
+ chainId: string | number;
153
+ collectionAddress: string;
154
+ side: OrderSide;
155
+ query?: {
156
+ enabled?: boolean | undefined;
157
+ } | undefined;
158
+ }>, z.ZodObject<z.objectUtil.extendShape<{
159
+ chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
160
+ collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
161
+ query: z.ZodOptional<z.ZodObject<{
162
+ enabled: z.ZodOptional<z.ZodBoolean>;
163
+ }, "strip", z.ZodTypeAny, {
164
+ enabled?: boolean | undefined;
165
+ }, {
166
+ enabled?: boolean | undefined;
167
+ }>>;
168
+ }, {
169
+ filter: z.ZodUndefined;
170
+ side: z.ZodUndefined;
171
+ }>, "strip", z.ZodTypeAny, {
172
+ chainId: string;
173
+ collectionAddress: `0x${string}`;
174
+ filter?: undefined;
175
+ side?: undefined;
176
+ query?: {
177
+ enabled?: boolean | undefined;
178
+ } | undefined;
179
+ }, {
180
+ chainId: string | number;
181
+ collectionAddress: string;
182
+ filter?: undefined;
183
+ side?: undefined;
184
+ query?: {
185
+ enabled?: boolean | undefined;
186
+ } | undefined;
187
+ }>]>;
188
+ type UseCountOfCollectablesArgs = z.infer<typeof UseCountOfCollectableSchema>;
189
+ type UseContOfCollectableReturn = Awaited<ReturnType<typeof fetchCountOfCollectables>>;
190
+ declare const fetchCountOfCollectables: (args: UseCountOfCollectablesArgs, config: SdkConfig) => Promise<number>;
191
+ declare const countOfCollectablesOptions: (args: UseCountOfCollectablesArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<number, Error, number, ("collectable" | "counts" | {
192
+ filter: {
193
+ includeEmpty: boolean;
194
+ searchText?: string | undefined;
195
+ properties?: {
196
+ type: PropertyType;
197
+ name: string;
198
+ values?: any[] | undefined;
199
+ min?: number | undefined;
200
+ max?: number | undefined;
201
+ }[] | undefined;
202
+ marketplaces?: MarketplaceKind[] | undefined;
203
+ inAccounts?: string[] | undefined;
204
+ notInAccounts?: string[] | undefined;
205
+ ordersCreatedBy?: string[] | undefined;
206
+ ordersNotCreatedBy?: string[] | undefined;
207
+ };
208
+ chainId: string;
209
+ collectionAddress: `0x${string}`;
210
+ side: OrderSide;
211
+ query?: {
212
+ enabled?: boolean | undefined;
213
+ } | undefined;
214
+ } | {
215
+ chainId: string;
216
+ collectionAddress: `0x${string}`;
217
+ filter?: undefined;
218
+ side?: undefined;
219
+ query?: {
220
+ enabled?: boolean | undefined;
221
+ } | undefined;
222
+ })[]>, "queryFn"> & {
223
+ queryFn?: _tanstack_react_query.QueryFunction<number, ("collectable" | "counts" | {
224
+ filter: {
225
+ includeEmpty: boolean;
226
+ searchText?: string | undefined;
227
+ properties?: {
228
+ type: PropertyType;
229
+ name: string;
230
+ values?: any[] | undefined;
231
+ min?: number | undefined;
232
+ max?: number | undefined;
233
+ }[] | undefined;
234
+ marketplaces?: MarketplaceKind[] | undefined;
235
+ inAccounts?: string[] | undefined;
236
+ notInAccounts?: string[] | undefined;
237
+ ordersCreatedBy?: string[] | undefined;
238
+ ordersNotCreatedBy?: string[] | undefined;
239
+ };
240
+ chainId: string;
241
+ collectionAddress: `0x${string}`;
242
+ side: OrderSide;
243
+ query?: {
244
+ enabled?: boolean | undefined;
245
+ } | undefined;
246
+ } | {
247
+ chainId: string;
248
+ collectionAddress: `0x${string}`;
249
+ filter?: undefined;
250
+ side?: undefined;
251
+ query?: {
252
+ enabled?: boolean | undefined;
253
+ } | undefined;
254
+ })[], never> | undefined;
255
+ } & {
256
+ queryKey: _tanstack_react_query.DataTag<("collectable" | "counts" | {
257
+ filter: {
258
+ includeEmpty: boolean;
259
+ searchText?: string | undefined;
260
+ properties?: {
261
+ type: PropertyType;
262
+ name: string;
263
+ values?: any[] | undefined;
264
+ min?: number | undefined;
265
+ max?: number | undefined;
266
+ }[] | undefined;
267
+ marketplaces?: MarketplaceKind[] | undefined;
268
+ inAccounts?: string[] | undefined;
269
+ notInAccounts?: string[] | undefined;
270
+ ordersCreatedBy?: string[] | undefined;
271
+ ordersNotCreatedBy?: string[] | undefined;
272
+ };
273
+ chainId: string;
274
+ collectionAddress: `0x${string}`;
275
+ side: OrderSide;
276
+ query?: {
277
+ enabled?: boolean | undefined;
278
+ } | undefined;
279
+ } | {
280
+ chainId: string;
281
+ collectionAddress: `0x${string}`;
282
+ filter?: undefined;
283
+ side?: undefined;
284
+ query?: {
285
+ enabled?: boolean | undefined;
286
+ } | undefined;
287
+ })[], number>;
288
+ };
289
+ declare const useCountOfCollectables: (args: UseCountOfCollectablesArgs) => _tanstack_react_query.UseQueryResult<number, Error>;
290
+
291
+ declare const UseCollectibleSchema: z.ZodObject<{
292
+ chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
293
+ collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
294
+ collectibleId: z.ZodString;
295
+ query: z.ZodOptional<z.ZodObject<{
296
+ enabled: z.ZodOptional<z.ZodBoolean>;
297
+ }, "strip", z.ZodTypeAny, {
298
+ enabled?: boolean | undefined;
299
+ }, {
300
+ enabled?: boolean | undefined;
301
+ }>>;
302
+ }, "strip", z.ZodTypeAny, {
303
+ chainId: string;
304
+ collectionAddress: `0x${string}`;
305
+ collectibleId: string;
306
+ query?: {
307
+ enabled?: boolean | undefined;
308
+ } | undefined;
309
+ }, {
310
+ chainId: string | number;
28
311
  collectionAddress: string;
29
312
  collectibleId: string;
30
- } & QueryArg;
31
- type UseCollectibleReturn = ReturnType<typeof fetchCollectible>;
313
+ query?: {
314
+ enabled?: boolean | undefined;
315
+ } | undefined;
316
+ }>;
317
+ type UseCollectibleArgs = z.infer<typeof UseCollectibleSchema>;
318
+ type UseCollectibleReturn = Awaited<ReturnType<typeof fetchCollectible>>;
32
319
  declare const fetchCollectible: (args: UseCollectibleArgs, config: SdkConfig) => Promise<_0xsequence_metadata.TokenMetadata>;
33
- declare const collectibleOptions: (args: UseCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<_0xsequence_metadata.TokenMetadata, Error, _0xsequence_metadata.TokenMetadata, ("collectable" | "details" | SdkConfig | UseCollectibleArgs)[]>, "queryFn"> & {
34
- queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_metadata.TokenMetadata, ("collectable" | "details" | SdkConfig | UseCollectibleArgs)[], never> | undefined;
320
+ 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 | {
321
+ chainId: string;
322
+ collectionAddress: `0x${string}`;
323
+ collectibleId: string;
324
+ query?: {
325
+ enabled?: boolean | undefined;
326
+ } | undefined;
327
+ })[]>, "queryFn"> & {
328
+ queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_metadata.TokenMetadata, ("collectable" | "details" | SdkConfig | {
329
+ chainId: string;
330
+ collectionAddress: `0x${string}`;
331
+ collectibleId: string;
332
+ query?: {
333
+ enabled?: boolean | undefined;
334
+ } | undefined;
335
+ })[], never> | undefined;
35
336
  } & {
36
- queryKey: _tanstack_react_query.DataTag<("collectable" | "details" | SdkConfig | UseCollectibleArgs)[], _0xsequence_metadata.TokenMetadata>;
337
+ queryKey: _tanstack_react_query.DataTag<("collectable" | "details" | SdkConfig | {
338
+ chainId: string;
339
+ collectionAddress: `0x${string}`;
340
+ collectibleId: string;
341
+ query?: {
342
+ enabled?: boolean | undefined;
343
+ } | undefined;
344
+ })[], _0xsequence_metadata.TokenMetadata>;
37
345
  };
38
346
  declare const useCollectible: (args: UseCollectibleArgs) => _tanstack_react_query.UseQueryResult<_0xsequence_metadata.TokenMetadata, Error>;
39
347
 
40
- type UseCollectionArgs = {
41
- chainId: ChainId;
348
+ declare const UseCollectionSchema: z.ZodObject<{
349
+ chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
350
+ collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
351
+ query: z.ZodOptional<z.ZodObject<{
352
+ enabled: z.ZodOptional<z.ZodBoolean>;
353
+ }, "strip", z.ZodTypeAny, {
354
+ enabled?: boolean | undefined;
355
+ }, {
356
+ enabled?: boolean | undefined;
357
+ }>>;
358
+ }, "strip", z.ZodTypeAny, {
359
+ chainId: string;
360
+ collectionAddress: `0x${string}`;
361
+ query?: {
362
+ enabled?: boolean | undefined;
363
+ } | undefined;
364
+ }, {
365
+ chainId: string | number;
42
366
  collectionAddress: string;
43
- } & QueryArg;
44
- type UseCollectionReturn = ReturnType<typeof fetchCollection>;
367
+ query?: {
368
+ enabled?: boolean | undefined;
369
+ } | undefined;
370
+ }>;
371
+ type UseCollectionArgs = z.input<typeof UseCollectionSchema>;
372
+ type UseCollectionReturn = Awaited<ReturnType<typeof fetchCollection>>;
45
373
  declare const fetchCollection: (args: UseCollectionArgs, config: SdkConfig) => Promise<_0xsequence_metadata.ContractInfo>;
46
- declare const collectionOptions: (args: UseCollectionArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<_0xsequence_metadata.ContractInfo, Error, _0xsequence_metadata.ContractInfo, ("collections" | "detail" | SdkConfig | UseCollectionArgs)[]>, "queryFn"> & {
47
- queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_metadata.ContractInfo, ("collections" | "detail" | SdkConfig | UseCollectionArgs)[], never> | undefined;
374
+ declare const collectionOptions: (args: UseCollectionArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<_0xsequence_metadata.ContractInfo, Error, _0xsequence_metadata.ContractInfo, ("collections" | "detail" | SdkConfig | {
375
+ chainId: string | number;
376
+ collectionAddress: string;
377
+ query?: {
378
+ enabled?: boolean | undefined;
379
+ } | undefined;
380
+ })[]>, "queryFn"> & {
381
+ queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_metadata.ContractInfo, ("collections" | "detail" | SdkConfig | {
382
+ chainId: string | number;
383
+ collectionAddress: string;
384
+ query?: {
385
+ enabled?: boolean | undefined;
386
+ } | undefined;
387
+ })[], never> | undefined;
48
388
  } & {
49
- queryKey: _tanstack_react_query.DataTag<("collections" | "detail" | SdkConfig | UseCollectionArgs)[], _0xsequence_metadata.ContractInfo>;
389
+ queryKey: _tanstack_react_query.DataTag<("collections" | "detail" | SdkConfig | {
390
+ chainId: string | number;
391
+ collectionAddress: string;
392
+ query?: {
393
+ enabled?: boolean | undefined;
394
+ } | undefined;
395
+ })[], _0xsequence_metadata.ContractInfo>;
50
396
  };
51
397
  declare const useCollection: (args: UseCollectionArgs) => _tanstack_react_query.UseQueryResult<_0xsequence_metadata.ContractInfo, Error>;
52
398
 
53
399
  declare function useConfig(): SdkConfig;
54
400
 
55
- type UseCurrenciesArgs = {
56
- chainId: ChainId;
57
- collectionAddress?: string;
58
- includeNativeCurrency?: boolean;
59
- } & QueryArg;
60
- type UseCurrenciesReturn = ReturnType<typeof fetchCurrencies>;
401
+ declare const UseCurrenciesArgsSchema: z.ZodObject<{
402
+ chainId: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, string, string | number>;
403
+ collectionAddress: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
404
+ includeNativeCurrency: z.ZodOptional<z.ZodBoolean>;
405
+ query: z.ZodOptional<z.ZodObject<{
406
+ enabled: z.ZodOptional<z.ZodBoolean>;
407
+ }, "strip", z.ZodTypeAny, {
408
+ enabled?: boolean | undefined;
409
+ }, {
410
+ enabled?: boolean | undefined;
411
+ }>>;
412
+ }, "strip", z.ZodTypeAny, {
413
+ chainId: string;
414
+ collectionAddress?: `0x${string}` | undefined;
415
+ query?: {
416
+ enabled?: boolean | undefined;
417
+ } | undefined;
418
+ includeNativeCurrency?: boolean | undefined;
419
+ }, {
420
+ chainId: string | number;
421
+ collectionAddress?: string | undefined;
422
+ query?: {
423
+ enabled?: boolean | undefined;
424
+ } | undefined;
425
+ includeNativeCurrency?: boolean | undefined;
426
+ }>;
427
+ type UseCurrenciesArgs = z.input<typeof UseCurrenciesArgsSchema>;
428
+ type UseCurrenciesReturn = Awaited<ReturnType<typeof fetchCurrencies>>;
61
429
  declare const fetchCurrencies: (chainId: ChainId, config: SdkConfig) => Promise<Currency[]>;
62
- declare const currenciesOptions: (args: UseCurrenciesArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Currency[], Error, Currency[], ChainId[]>, "queryFn"> & {
63
- queryFn?: _tanstack_react_query.QueryFunction<Currency[], ChainId[], never> | undefined;
430
+ declare const currenciesOptions: (args: UseCurrenciesArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Currency[], Error, Currency[], (string | number)[]>, "queryFn"> & {
431
+ queryFn?: _tanstack_react_query.QueryFunction<Currency[], (string | number)[], never> | undefined;
64
432
  } & {
65
- queryKey: _tanstack_react_query.DataTag<ChainId[], Currency[]>;
433
+ queryKey: _tanstack_react_query.DataTag<(string | number)[], Currency[]>;
66
434
  };
67
435
  declare const useCurrencies: (args: UseCurrenciesArgs) => _tanstack_react_query.UseQueryResult<Currency[], Error>;
68
436
 
69
- type UseFiltersArgs = {
70
- chainId: ChainId;
437
+ declare const UseFiltersSchema: z.ZodObject<{
438
+ chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
439
+ collectionAddress: 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
+ collectionAddress: `0x${string}`;
450
+ query?: {
451
+ enabled?: boolean | undefined;
452
+ } | undefined;
453
+ }, {
454
+ chainId: string | number;
71
455
  collectionAddress: string;
72
- } & QueryArg;
73
- type UseFilterReturn = ReturnType<typeof fetchFilters>;
456
+ query?: {
457
+ enabled?: boolean | undefined;
458
+ } | undefined;
459
+ }>;
460
+ type UseFiltersArgs = z.infer<typeof UseFiltersSchema>;
461
+ type UseFilterReturn = Awaited<ReturnType<typeof fetchFilters>>;
74
462
  declare const fetchFilters: (args: UseFiltersArgs, config: SdkConfig) => Promise<_0xsequence_metadata.PropertyFilter[]>;
75
- declare const filtersOptions: (args: UseFiltersArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<_0xsequence_metadata.PropertyFilter[], Error, _0xsequence_metadata.PropertyFilter[], ("filter" | "collectable" | SdkConfig | UseFiltersArgs)[]>, "queryFn"> & {
76
- queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_metadata.PropertyFilter[], ("filter" | "collectable" | SdkConfig | UseFiltersArgs)[], never> | undefined;
463
+ declare const filtersOptions: (args: UseFiltersArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<_0xsequence_metadata.PropertyFilter[], Error, _0xsequence_metadata.PropertyFilter[], ("filter" | "collectable" | SdkConfig | {
464
+ chainId: string;
465
+ collectionAddress: `0x${string}`;
466
+ query?: {
467
+ enabled?: boolean | undefined;
468
+ } | undefined;
469
+ })[]>, "queryFn"> & {
470
+ queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_metadata.PropertyFilter[], ("filter" | "collectable" | SdkConfig | {
471
+ chainId: string;
472
+ collectionAddress: `0x${string}`;
473
+ query?: {
474
+ enabled?: boolean | undefined;
475
+ } | undefined;
476
+ })[], never> | undefined;
77
477
  } & {
78
- queryKey: _tanstack_react_query.DataTag<("filter" | "collectable" | SdkConfig | UseFiltersArgs)[], _0xsequence_metadata.PropertyFilter[]>;
478
+ queryKey: _tanstack_react_query.DataTag<("filter" | "collectable" | SdkConfig | {
479
+ chainId: string;
480
+ collectionAddress: `0x${string}`;
481
+ query?: {
482
+ enabled?: boolean | undefined;
483
+ } | undefined;
484
+ })[], _0xsequence_metadata.PropertyFilter[]>;
79
485
  };
80
486
  declare const useFilters: (args: UseFiltersArgs) => _tanstack_react_query.UseQueryResult<_0xsequence_metadata.PropertyFilter[], Error>;
81
487
 
82
- type UseFloorOrder = {
488
+ declare const UseFloorOrderSchema: z.ZodObject<{
489
+ chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
490
+ collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
491
+ query: z.ZodOptional<z.ZodObject<{
492
+ enabled: z.ZodOptional<z.ZodBoolean>;
493
+ }, "strip", z.ZodTypeAny, {
494
+ enabled?: boolean | undefined;
495
+ }, {
496
+ enabled?: boolean | undefined;
497
+ }>>;
498
+ }, "strip", z.ZodTypeAny, {
83
499
  chainId: string;
500
+ collectionAddress: `0x${string}`;
501
+ query?: {
502
+ enabled?: boolean | undefined;
503
+ } | undefined;
504
+ }, {
505
+ chainId: string | number;
84
506
  collectionAddress: string;
85
- };
86
- declare const floorOrderOptions: (args: UseFloorOrder, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<CollectibleOrder, Error, CollectibleOrder, ("collectable" | "floorOrders" | SdkConfig | UseFloorOrder)[]>, "queryFn"> & {
87
- queryFn?: _tanstack_react_query.QueryFunction<CollectibleOrder, ("collectable" | "floorOrders" | SdkConfig | UseFloorOrder)[], never> | undefined;
507
+ query?: {
508
+ enabled?: boolean | undefined;
509
+ } | undefined;
510
+ }>;
511
+ type UseFloorOrderArgs = z.infer<typeof UseFloorOrderSchema>;
512
+ type UseFloorOrderReturn = Awaited<ReturnType<typeof fetchFloorOrder>>;
513
+ declare const fetchFloorOrder: (args: UseFloorOrderArgs, config: SdkConfig) => Promise<CollectibleOrder>;
514
+ declare const floorOrderOptions: (args: UseFloorOrderArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<CollectibleOrder, Error, CollectibleOrder, ("collectable" | "floorOrders" | SdkConfig | {
515
+ chainId: string;
516
+ collectionAddress: `0x${string}`;
517
+ query?: {
518
+ enabled?: boolean | undefined;
519
+ } | undefined;
520
+ })[]>, "queryFn"> & {
521
+ queryFn?: _tanstack_react_query.QueryFunction<CollectibleOrder, ("collectable" | "floorOrders" | SdkConfig | {
522
+ chainId: string;
523
+ collectionAddress: `0x${string}`;
524
+ query?: {
525
+ enabled?: boolean | undefined;
526
+ } | undefined;
527
+ })[], never> | undefined;
88
528
  } & {
89
- queryKey: _tanstack_react_query.DataTag<("collectable" | "floorOrders" | SdkConfig | UseFloorOrder)[], CollectibleOrder>;
529
+ queryKey: _tanstack_react_query.DataTag<("collectable" | "floorOrders" | SdkConfig | {
530
+ chainId: string;
531
+ collectionAddress: `0x${string}`;
532
+ query?: {
533
+ enabled?: boolean | undefined;
534
+ } | undefined;
535
+ })[], CollectibleOrder>;
90
536
  };
91
- declare const useFloorOrder: (args: UseFloorOrder) => _tanstack_react_query.UseQueryResult<CollectibleOrder, Error>;
537
+ declare const useFloorOrder: (args: UseFloorOrderArgs) => _tanstack_react_query.UseQueryResult<CollectibleOrder, Error>;
92
538
 
93
- type UseHighestOfferArgs = Omit<GetCollectibleHighestOfferArgs, 'contractAddress'> & {
94
- collectionAddress: string;
539
+ declare const UseHighestOfferArgsSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
540
+ contractAddress: z.ZodString;
541
+ tokenId: z.ZodString;
542
+ filter: z.ZodOptional<z.ZodObject<{
543
+ createdBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
544
+ marketplace: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof MarketplaceKind>, "many">>;
545
+ currencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
546
+ }, "strip", z.ZodTypeAny, {
547
+ currencies?: string[] | undefined;
548
+ marketplace?: MarketplaceKind[] | undefined;
549
+ createdBy?: string[] | undefined;
550
+ }, {
551
+ currencies?: string[] | undefined;
552
+ marketplace?: MarketplaceKind[] | undefined;
553
+ createdBy?: string[] | undefined;
554
+ }>>;
555
+ }, "contractAddress">, {
556
+ collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
557
+ chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
558
+ query: z.ZodOptional<z.ZodObject<{
559
+ enabled: z.ZodOptional<z.ZodBoolean>;
560
+ }, "strip", z.ZodTypeAny, {
561
+ enabled?: boolean | undefined;
562
+ }, {
563
+ enabled?: boolean | undefined;
564
+ }>>;
565
+ }>, "strip", z.ZodTypeAny, {
95
566
  chainId: string;
96
- } & QueryArg;
97
- type UseHighestOfferReturn = ReturnType<typeof fetchHighestOffer>;
567
+ collectionAddress: `0x${string}`;
568
+ tokenId: string;
569
+ filter?: {
570
+ currencies?: string[] | undefined;
571
+ marketplace?: MarketplaceKind[] | undefined;
572
+ createdBy?: string[] | undefined;
573
+ } | undefined;
574
+ query?: {
575
+ enabled?: boolean | undefined;
576
+ } | undefined;
577
+ }, {
578
+ chainId: string | number;
579
+ collectionAddress: string;
580
+ tokenId: string;
581
+ filter?: {
582
+ currencies?: string[] | undefined;
583
+ marketplace?: MarketplaceKind[] | undefined;
584
+ createdBy?: string[] | undefined;
585
+ } | undefined;
586
+ query?: {
587
+ enabled?: boolean | undefined;
588
+ } | undefined;
589
+ }>;
590
+ type UseHighestOfferArgs = z.infer<typeof UseHighestOfferArgsSchema>;
591
+ type UseHighestOfferReturn = Awaited<ReturnType<typeof fetchHighestOffer>>;
98
592
  declare const fetchHighestOffer: (args: UseHighestOfferArgs, config: SdkConfig) => Promise<GetCollectibleHighestOfferReturn>;
99
- declare const highestOfferOptions: (args: UseHighestOfferArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetCollectibleHighestOfferReturn, Error, GetCollectibleHighestOfferReturn, ("collectable" | "details" | "highestOffers" | SdkConfig | UseHighestOfferArgs)[]>, "queryFn"> & {
100
- queryFn?: _tanstack_react_query.QueryFunction<GetCollectibleHighestOfferReturn, ("collectable" | "details" | "highestOffers" | SdkConfig | UseHighestOfferArgs)[], never> | undefined;
593
+ declare const highestOfferOptions: (args: UseHighestOfferArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetCollectibleHighestOfferReturn, Error, GetCollectibleHighestOfferReturn, ("collectable" | "details" | "highestOffers" | SdkConfig | {
594
+ chainId: string;
595
+ collectionAddress: `0x${string}`;
596
+ tokenId: string;
597
+ filter?: {
598
+ currencies?: string[] | undefined;
599
+ marketplace?: MarketplaceKind[] | undefined;
600
+ createdBy?: string[] | undefined;
601
+ } | undefined;
602
+ query?: {
603
+ enabled?: boolean | undefined;
604
+ } | undefined;
605
+ })[]>, "queryFn"> & {
606
+ queryFn?: _tanstack_react_query.QueryFunction<GetCollectibleHighestOfferReturn, ("collectable" | "details" | "highestOffers" | SdkConfig | {
607
+ chainId: string;
608
+ collectionAddress: `0x${string}`;
609
+ tokenId: string;
610
+ filter?: {
611
+ currencies?: string[] | undefined;
612
+ marketplace?: MarketplaceKind[] | undefined;
613
+ createdBy?: string[] | undefined;
614
+ } | undefined;
615
+ query?: {
616
+ enabled?: boolean | undefined;
617
+ } | undefined;
618
+ })[], never> | undefined;
101
619
  } & {
102
- queryKey: _tanstack_react_query.DataTag<("collectable" | "details" | "highestOffers" | SdkConfig | UseHighestOfferArgs)[], GetCollectibleHighestOfferReturn>;
620
+ queryKey: _tanstack_react_query.DataTag<("collectable" | "details" | "highestOffers" | SdkConfig | {
621
+ chainId: string;
622
+ collectionAddress: `0x${string}`;
623
+ tokenId: string;
624
+ filter?: {
625
+ currencies?: string[] | undefined;
626
+ marketplace?: MarketplaceKind[] | undefined;
627
+ createdBy?: string[] | undefined;
628
+ } | undefined;
629
+ query?: {
630
+ enabled?: boolean | undefined;
631
+ } | undefined;
632
+ })[], GetCollectibleHighestOfferReturn>;
103
633
  };
104
634
  declare const useHighestOffer: (args: UseHighestOfferArgs) => _tanstack_react_query.UseQueryResult<GetCollectibleHighestOfferReturn, Error>;
105
635
 
106
- type UseTokenBalancesArgs = {
107
- chainId: ChainId;
108
- accountAddress?: string;
109
- contractAddress?: string;
110
- tokenId?: string;
111
- includeMetadata?: boolean;
112
- metadataOptions?: MetadataOptions;
113
- includeCollectionTokens?: boolean;
114
- page?: Page;
115
- } & QueryArg;
116
- type UseFetchTokenBalancesReturn = ReturnType<typeof fetchTokenBalances>;
117
- declare const fetchTokenBalances: (args: UseTokenBalancesArgs, page: Page, config: SdkConfig) => Promise<_0xsequence_indexer.GetTokenBalancesReturn>;
118
- declare const tokenBalancesOptions: (args: UseTokenBalancesArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<_0xsequence_indexer.GetTokenBalancesReturn, Error, _tanstack_react_query.InfiniteData<_0xsequence_indexer.GetTokenBalancesReturn, unknown>, _0xsequence_indexer.GetTokenBalancesReturn, ("balances" | "tokenBalances" | SdkConfig | UseTokenBalancesArgs)[], any>, "queryFn"> & {
119
- queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_indexer.GetTokenBalancesReturn, ("balances" | "tokenBalances" | SdkConfig | UseTokenBalancesArgs)[], any> | undefined;
636
+ declare const metadataOptionsSchema: z.ZodObject<{
637
+ verifiedOnly: z.ZodOptional<z.ZodBoolean>;
638
+ unverifiedOnly: z.ZodOptional<z.ZodBoolean>;
639
+ includeContracts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
640
+ }, "strip", z.ZodTypeAny, {
641
+ verifiedOnly?: boolean | undefined;
642
+ unverifiedOnly?: boolean | undefined;
643
+ includeContracts?: string[] | undefined;
644
+ }, {
645
+ verifiedOnly?: boolean | undefined;
646
+ unverifiedOnly?: boolean | undefined;
647
+ includeContracts?: string[] | undefined;
648
+ }>;
649
+ declare const useListBalancesArgsSchema: z.ZodObject<{
650
+ chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodNumber>;
651
+ accountAddress: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
652
+ contractAddress: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>;
653
+ tokenId: z.ZodOptional<z.ZodString>;
654
+ includeMetadata: z.ZodOptional<z.ZodBoolean>;
655
+ metadataOptions: z.ZodOptional<z.ZodObject<{
656
+ verifiedOnly: z.ZodOptional<z.ZodBoolean>;
657
+ unverifiedOnly: z.ZodOptional<z.ZodBoolean>;
658
+ includeContracts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
659
+ }, "strip", z.ZodTypeAny, {
660
+ verifiedOnly?: boolean | undefined;
661
+ unverifiedOnly?: boolean | undefined;
662
+ includeContracts?: string[] | undefined;
663
+ }, {
664
+ verifiedOnly?: boolean | undefined;
665
+ unverifiedOnly?: boolean | undefined;
666
+ includeContracts?: string[] | undefined;
667
+ }>>;
668
+ includeCollectionTokens: z.ZodOptional<z.ZodBoolean>;
669
+ page: z.ZodOptional<z.ZodObject<{
670
+ page: z.ZodOptional<z.ZodNumber>;
671
+ column: z.ZodOptional<z.ZodString>;
672
+ before: z.ZodOptional<z.ZodAny>;
673
+ after: z.ZodOptional<z.ZodAny>;
674
+ sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
675
+ column: z.ZodString;
676
+ order: z.ZodNativeEnum<typeof SortOrder>;
677
+ }, "strip", z.ZodTypeAny, {
678
+ order: SortOrder;
679
+ column: string;
680
+ }, {
681
+ order: SortOrder;
682
+ column: string;
683
+ }>, "many">>;
684
+ pageSize: z.ZodOptional<z.ZodNumber>;
685
+ more: z.ZodOptional<z.ZodBoolean>;
686
+ }, "strip", z.ZodTypeAny, {
687
+ sort?: {
688
+ order: SortOrder;
689
+ column: string;
690
+ }[] | undefined;
691
+ page?: number | undefined;
692
+ column?: string | undefined;
693
+ pageSize?: number | undefined;
694
+ more?: boolean | undefined;
695
+ before?: any;
696
+ after?: any;
697
+ }, {
698
+ sort?: {
699
+ order: SortOrder;
700
+ column: string;
701
+ }[] | undefined;
702
+ page?: number | undefined;
703
+ column?: string | undefined;
704
+ pageSize?: number | undefined;
705
+ more?: boolean | undefined;
706
+ before?: any;
707
+ after?: any;
708
+ }>>;
709
+ query: z.ZodOptional<z.ZodObject<{
710
+ enabled: z.ZodOptional<z.ZodBoolean>;
711
+ }, "strip", z.ZodTypeAny, {
712
+ enabled?: boolean | undefined;
713
+ }, {
714
+ enabled?: boolean | undefined;
715
+ }>>;
716
+ }, "strip", z.ZodTypeAny, {
717
+ chainId: number;
718
+ page?: {
719
+ sort?: {
720
+ order: SortOrder;
721
+ column: string;
722
+ }[] | undefined;
723
+ page?: number | undefined;
724
+ column?: string | undefined;
725
+ pageSize?: number | undefined;
726
+ more?: boolean | undefined;
727
+ before?: any;
728
+ after?: any;
729
+ } | undefined;
730
+ tokenId?: string | undefined;
731
+ contractAddress?: `0x${string}` | undefined;
732
+ query?: {
733
+ enabled?: boolean | undefined;
734
+ } | undefined;
735
+ accountAddress?: `0x${string}` | undefined;
736
+ includeMetadata?: boolean | undefined;
737
+ metadataOptions?: {
738
+ verifiedOnly?: boolean | undefined;
739
+ unverifiedOnly?: boolean | undefined;
740
+ includeContracts?: string[] | undefined;
741
+ } | undefined;
742
+ includeCollectionTokens?: boolean | undefined;
743
+ }, {
744
+ chainId: string | number;
745
+ page?: {
746
+ sort?: {
747
+ order: SortOrder;
748
+ column: string;
749
+ }[] | undefined;
750
+ page?: number | undefined;
751
+ column?: string | undefined;
752
+ pageSize?: number | undefined;
753
+ more?: boolean | undefined;
754
+ before?: any;
755
+ after?: any;
756
+ } | undefined;
757
+ tokenId?: string | undefined;
758
+ contractAddress?: string | undefined;
759
+ query?: {
760
+ enabled?: boolean | undefined;
761
+ } | undefined;
762
+ accountAddress?: string | undefined;
763
+ includeMetadata?: boolean | undefined;
764
+ metadataOptions?: {
765
+ verifiedOnly?: boolean | undefined;
766
+ unverifiedOnly?: boolean | undefined;
767
+ includeContracts?: string[] | undefined;
768
+ } | undefined;
769
+ includeCollectionTokens?: boolean | undefined;
770
+ }>;
771
+ type UseFetchTokenBalancesReturn = Awaited<ReturnType<typeof fetchBalances>>;
772
+ type UseListBalancesArgs = z.input<typeof useListBalancesArgsSchema>;
773
+ declare const fetchBalances: (args: UseListBalancesArgs, page: Page, config: SdkConfig) => Promise<_0xsequence_indexer.GetTokenBalancesReturn>;
774
+ 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
+ chainId: string | number;
776
+ page?: {
777
+ sort?: {
778
+ order: SortOrder;
779
+ column: string;
780
+ }[] | undefined;
781
+ page?: number | undefined;
782
+ column?: string | undefined;
783
+ pageSize?: number | undefined;
784
+ more?: boolean | undefined;
785
+ before?: any;
786
+ after?: any;
787
+ } | undefined;
788
+ tokenId?: string | undefined;
789
+ contractAddress?: string | undefined;
790
+ query?: {
791
+ enabled?: boolean | undefined;
792
+ } | undefined;
793
+ accountAddress?: string | undefined;
794
+ includeMetadata?: boolean | undefined;
795
+ metadataOptions?: {
796
+ verifiedOnly?: boolean | undefined;
797
+ unverifiedOnly?: boolean | undefined;
798
+ includeContracts?: string[] | undefined;
799
+ } | undefined;
800
+ includeCollectionTokens?: boolean | undefined;
801
+ })[], any>, "queryFn"> & {
802
+ queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_indexer.GetTokenBalancesReturn, ("balances" | "tokenBalances" | SdkConfig | {
803
+ chainId: string | number;
804
+ page?: {
805
+ sort?: {
806
+ order: SortOrder;
807
+ column: string;
808
+ }[] | undefined;
809
+ page?: number | undefined;
810
+ column?: string | undefined;
811
+ pageSize?: number | undefined;
812
+ more?: boolean | undefined;
813
+ before?: any;
814
+ after?: any;
815
+ } | undefined;
816
+ tokenId?: string | undefined;
817
+ contractAddress?: string | undefined;
818
+ query?: {
819
+ enabled?: boolean | undefined;
820
+ } | undefined;
821
+ accountAddress?: string | undefined;
822
+ includeMetadata?: boolean | undefined;
823
+ metadataOptions?: {
824
+ verifiedOnly?: boolean | undefined;
825
+ unverifiedOnly?: boolean | undefined;
826
+ includeContracts?: string[] | undefined;
827
+ } | undefined;
828
+ includeCollectionTokens?: boolean | undefined;
829
+ })[], any> | undefined;
120
830
  } & {
121
- queryKey: _tanstack_react_query.DataTag<("balances" | "tokenBalances" | SdkConfig | UseTokenBalancesArgs)[], _tanstack_react_query.InfiniteData<_0xsequence_indexer.GetTokenBalancesReturn, unknown>>;
831
+ queryKey: _tanstack_react_query.DataTag<("balances" | "tokenBalances" | SdkConfig | {
832
+ chainId: string | number;
833
+ page?: {
834
+ sort?: {
835
+ order: SortOrder;
836
+ column: string;
837
+ }[] | undefined;
838
+ page?: number | undefined;
839
+ column?: string | undefined;
840
+ pageSize?: number | undefined;
841
+ more?: boolean | undefined;
842
+ before?: any;
843
+ after?: any;
844
+ } | undefined;
845
+ tokenId?: string | undefined;
846
+ contractAddress?: string | undefined;
847
+ query?: {
848
+ enabled?: boolean | undefined;
849
+ } | undefined;
850
+ accountAddress?: string | undefined;
851
+ includeMetadata?: boolean | undefined;
852
+ metadataOptions?: {
853
+ verifiedOnly?: boolean | undefined;
854
+ unverifiedOnly?: boolean | undefined;
855
+ includeContracts?: string[] | undefined;
856
+ } | undefined;
857
+ includeCollectionTokens?: boolean | undefined;
858
+ })[], _tanstack_react_query.InfiniteData<_0xsequence_indexer.GetTokenBalancesReturn, unknown>>;
122
859
  };
123
- declare const useTokenBalances: (args: UseTokenBalancesArgs) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<_0xsequence_indexer.GetTokenBalancesReturn, unknown>, Error>;
860
+ declare const useListBalances: (args: UseListBalancesArgs) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<_0xsequence_indexer.GetTokenBalancesReturn, unknown>, Error>;
124
861
 
125
- type UseListCollectiblesArgs = Omit<ListCollectiblesArgs, 'contractAddress'> & {
862
+ declare const UseListCollectiblesArgsSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
863
+ side: z.ZodNativeEnum<typeof OrderSide>;
864
+ contractAddress: z.ZodString;
865
+ filter: z.ZodOptional<z.ZodObject<{
866
+ includeEmpty: z.ZodBoolean;
867
+ searchText: z.ZodOptional<z.ZodString>;
868
+ properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
869
+ name: z.ZodString;
870
+ type: z.ZodNativeEnum<typeof PropertyType>;
871
+ min: z.ZodOptional<z.ZodNumber>;
872
+ max: z.ZodOptional<z.ZodNumber>;
873
+ values: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
874
+ }, "strip", z.ZodTypeAny, {
875
+ type: PropertyType;
876
+ name: string;
877
+ values?: any[] | undefined;
878
+ min?: number | undefined;
879
+ max?: number | undefined;
880
+ }, {
881
+ type: PropertyType;
882
+ name: string;
883
+ values?: any[] | undefined;
884
+ min?: number | undefined;
885
+ max?: number | undefined;
886
+ }>, "many">>;
887
+ marketplaces: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof MarketplaceKind>, "many">>;
888
+ inAccounts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
889
+ notInAccounts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
890
+ ordersCreatedBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
891
+ ordersNotCreatedBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
892
+ }, "strip", z.ZodTypeAny, {
893
+ includeEmpty: boolean;
894
+ searchText?: string | undefined;
895
+ properties?: {
896
+ type: PropertyType;
897
+ name: string;
898
+ values?: any[] | undefined;
899
+ min?: number | undefined;
900
+ max?: number | undefined;
901
+ }[] | undefined;
902
+ marketplaces?: MarketplaceKind[] | undefined;
903
+ inAccounts?: string[] | undefined;
904
+ notInAccounts?: string[] | undefined;
905
+ ordersCreatedBy?: string[] | undefined;
906
+ ordersNotCreatedBy?: string[] | undefined;
907
+ }, {
908
+ includeEmpty: boolean;
909
+ searchText?: string | undefined;
910
+ properties?: {
911
+ type: PropertyType;
912
+ name: string;
913
+ values?: any[] | undefined;
914
+ min?: number | undefined;
915
+ max?: number | undefined;
916
+ }[] | undefined;
917
+ marketplaces?: MarketplaceKind[] | undefined;
918
+ inAccounts?: string[] | undefined;
919
+ notInAccounts?: string[] | undefined;
920
+ ordersCreatedBy?: string[] | undefined;
921
+ ordersNotCreatedBy?: string[] | undefined;
922
+ }>>;
923
+ page: z.ZodOptional<z.ZodObject<{
924
+ page: z.ZodNumber;
925
+ pageSize: z.ZodNumber;
926
+ more: z.ZodOptional<z.ZodBoolean>;
927
+ sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
928
+ column: z.ZodString;
929
+ order: z.ZodNativeEnum<typeof SortOrder$1>;
930
+ }, "strip", z.ZodTypeAny, {
931
+ order: SortOrder$1;
932
+ column: string;
933
+ }, {
934
+ order: SortOrder$1;
935
+ column: string;
936
+ }>, "many">>;
937
+ }, "strip", z.ZodTypeAny, {
938
+ page: number;
939
+ pageSize: number;
940
+ sort?: {
941
+ order: SortOrder$1;
942
+ column: string;
943
+ }[] | undefined;
944
+ more?: boolean | undefined;
945
+ }, {
946
+ page: number;
947
+ pageSize: number;
948
+ sort?: {
949
+ order: SortOrder$1;
950
+ column: string;
951
+ }[] | undefined;
952
+ more?: boolean | undefined;
953
+ }>>;
954
+ }, "contractAddress">, {
955
+ collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
956
+ chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
957
+ query: z.ZodOptional<z.ZodObject<{
958
+ enabled: z.ZodOptional<z.ZodBoolean>;
959
+ }, "strip", z.ZodTypeAny, {
960
+ enabled?: boolean | undefined;
961
+ }, {
962
+ enabled?: boolean | undefined;
963
+ }>>;
964
+ }>, "strip", z.ZodTypeAny, {
965
+ chainId: string;
966
+ collectionAddress: `0x${string}`;
967
+ side: OrderSide;
968
+ filter?: {
969
+ includeEmpty: boolean;
970
+ searchText?: string | undefined;
971
+ properties?: {
972
+ type: PropertyType;
973
+ name: string;
974
+ values?: any[] | undefined;
975
+ min?: number | undefined;
976
+ max?: number | undefined;
977
+ }[] | undefined;
978
+ marketplaces?: MarketplaceKind[] | undefined;
979
+ inAccounts?: string[] | undefined;
980
+ notInAccounts?: string[] | undefined;
981
+ ordersCreatedBy?: string[] | undefined;
982
+ ordersNotCreatedBy?: string[] | undefined;
983
+ } | undefined;
984
+ page?: {
985
+ page: number;
986
+ pageSize: number;
987
+ sort?: {
988
+ order: SortOrder$1;
989
+ column: string;
990
+ }[] | undefined;
991
+ more?: boolean | undefined;
992
+ } | undefined;
993
+ query?: {
994
+ enabled?: boolean | undefined;
995
+ } | undefined;
996
+ }, {
997
+ chainId: string | number;
126
998
  collectionAddress: string;
127
- chainId: ChainId;
128
- };
129
- type UseListCollectiblesReturn = ReturnType<typeof fetchCollectibles>;
130
- declare const fetchCollectibles: (args: UseListCollectiblesArgs, page: Page$1, marketplaceClient: ReturnType<typeof getMarketplaceClient>) => Promise<ListCollectiblesReturn>;
131
- declare const listCollectiblesOptions: (args: UseListCollectiblesArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<ListCollectiblesReturn, Error, _tanstack_react_query.InfiniteData<ListCollectiblesReturn, unknown>, ListCollectiblesReturn, (SequenceMarketplace | "collectable" | "list" | UseListCollectiblesArgs)[], {
999
+ side: OrderSide;
1000
+ filter?: {
1001
+ includeEmpty: boolean;
1002
+ searchText?: string | undefined;
1003
+ properties?: {
1004
+ type: PropertyType;
1005
+ name: string;
1006
+ values?: any[] | undefined;
1007
+ min?: number | undefined;
1008
+ max?: number | undefined;
1009
+ }[] | undefined;
1010
+ marketplaces?: MarketplaceKind[] | undefined;
1011
+ inAccounts?: string[] | undefined;
1012
+ notInAccounts?: string[] | undefined;
1013
+ ordersCreatedBy?: string[] | undefined;
1014
+ ordersNotCreatedBy?: string[] | undefined;
1015
+ } | undefined;
1016
+ page?: {
1017
+ page: number;
1018
+ pageSize: number;
1019
+ sort?: {
1020
+ order: SortOrder$1;
1021
+ column: string;
1022
+ }[] | undefined;
1023
+ more?: boolean | undefined;
1024
+ } | undefined;
1025
+ query?: {
1026
+ enabled?: boolean | undefined;
1027
+ } | undefined;
1028
+ }>;
1029
+ type UseListCollectiblesArgs = z.infer<typeof UseListCollectiblesArgsSchema>;
1030
+ type UseListCollectiblesReturn = Awaited<ReturnType<typeof fetchCollectibles>>;
1031
+ declare const fetchCollectibles: (args: UseListCollectiblesArgs, page: Page$1, marketplaceClient: Awaited<ReturnType<typeof getMarketplaceClient>>) => Promise<ListCollectiblesReturn>;
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, (SequenceMarketplace | "collectable" | "list" | {
1033
+ chainId: string;
1034
+ collectionAddress: `0x${string}`;
1035
+ side: OrderSide;
1036
+ filter?: {
1037
+ includeEmpty: boolean;
1038
+ searchText?: string | undefined;
1039
+ properties?: {
1040
+ type: PropertyType;
1041
+ name: string;
1042
+ values?: any[] | undefined;
1043
+ min?: number | undefined;
1044
+ max?: number | undefined;
1045
+ }[] | undefined;
1046
+ marketplaces?: MarketplaceKind[] | undefined;
1047
+ inAccounts?: string[] | undefined;
1048
+ notInAccounts?: string[] | undefined;
1049
+ ordersCreatedBy?: string[] | undefined;
1050
+ ordersNotCreatedBy?: string[] | undefined;
1051
+ } | undefined;
1052
+ page?: {
1053
+ page: number;
1054
+ pageSize: number;
1055
+ sort?: {
1056
+ order: SortOrder$1;
1057
+ column: string;
1058
+ }[] | undefined;
1059
+ more?: boolean | undefined;
1060
+ } | undefined;
1061
+ query?: {
1062
+ enabled?: boolean | undefined;
1063
+ } | undefined;
1064
+ })[], {
132
1065
  page: number;
133
1066
  pageSize: number;
134
1067
  }>, "queryFn"> & {
135
- queryFn?: _tanstack_react_query.QueryFunction<ListCollectiblesReturn, (SequenceMarketplace | "collectable" | "list" | UseListCollectiblesArgs)[], {
1068
+ queryFn?: _tanstack_react_query.QueryFunction<ListCollectiblesReturn, (SequenceMarketplace | "collectable" | "list" | {
1069
+ chainId: string;
1070
+ collectionAddress: `0x${string}`;
1071
+ side: OrderSide;
1072
+ filter?: {
1073
+ includeEmpty: boolean;
1074
+ searchText?: string | undefined;
1075
+ properties?: {
1076
+ type: PropertyType;
1077
+ name: string;
1078
+ values?: any[] | undefined;
1079
+ min?: number | undefined;
1080
+ max?: number | undefined;
1081
+ }[] | undefined;
1082
+ marketplaces?: MarketplaceKind[] | undefined;
1083
+ inAccounts?: string[] | undefined;
1084
+ notInAccounts?: string[] | undefined;
1085
+ ordersCreatedBy?: string[] | undefined;
1086
+ ordersNotCreatedBy?: string[] | undefined;
1087
+ } | undefined;
1088
+ page?: {
1089
+ page: number;
1090
+ pageSize: number;
1091
+ sort?: {
1092
+ order: SortOrder$1;
1093
+ column: string;
1094
+ }[] | undefined;
1095
+ more?: boolean | undefined;
1096
+ } | undefined;
1097
+ query?: {
1098
+ enabled?: boolean | undefined;
1099
+ } | undefined;
1100
+ })[], {
136
1101
  page: number;
137
1102
  pageSize: number;
138
1103
  }> | undefined;
139
1104
  } & {
140
- queryKey: _tanstack_react_query.DataTag<(SequenceMarketplace | "collectable" | "list" | UseListCollectiblesArgs)[], _tanstack_react_query.InfiniteData<ListCollectiblesReturn, unknown>>;
1105
+ queryKey: _tanstack_react_query.DataTag<(SequenceMarketplace | "collectable" | "list" | {
1106
+ chainId: string;
1107
+ collectionAddress: `0x${string}`;
1108
+ side: OrderSide;
1109
+ filter?: {
1110
+ includeEmpty: boolean;
1111
+ searchText?: string | undefined;
1112
+ properties?: {
1113
+ type: PropertyType;
1114
+ name: string;
1115
+ values?: any[] | undefined;
1116
+ min?: number | undefined;
1117
+ max?: number | undefined;
1118
+ }[] | undefined;
1119
+ marketplaces?: MarketplaceKind[] | undefined;
1120
+ inAccounts?: string[] | undefined;
1121
+ notInAccounts?: string[] | undefined;
1122
+ ordersCreatedBy?: string[] | undefined;
1123
+ ordersNotCreatedBy?: string[] | undefined;
1124
+ } | undefined;
1125
+ page?: {
1126
+ page: number;
1127
+ pageSize: number;
1128
+ sort?: {
1129
+ order: SortOrder$1;
1130
+ column: string;
1131
+ }[] | undefined;
1132
+ more?: boolean | undefined;
1133
+ } | undefined;
1134
+ query?: {
1135
+ enabled?: boolean | undefined;
1136
+ } | undefined;
1137
+ })[], _tanstack_react_query.InfiniteData<ListCollectiblesReturn, unknown>>;
141
1138
  };
142
1139
  declare const useListCollectibles: (args: UseListCollectiblesArgs) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ListCollectiblesReturn, unknown>, Error>;
143
1140
 
144
- type UseListOffersForCollectibleArgs = ListOffersForCollectibleArgs & {
1141
+ declare const UseListOffersForCollectibleArgsSchema: z.ZodObject<z.objectUtil.extendShape<{
1142
+ contractAddress: z.ZodString;
1143
+ tokenId: z.ZodString;
1144
+ filter: z.ZodOptional<z.ZodObject<{
1145
+ createdBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1146
+ marketplace: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof MarketplaceKind>, "many">>;
1147
+ currencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1148
+ }, "strip", z.ZodTypeAny, {
1149
+ currencies?: string[] | undefined;
1150
+ marketplace?: MarketplaceKind[] | undefined;
1151
+ createdBy?: string[] | undefined;
1152
+ }, {
1153
+ currencies?: string[] | undefined;
1154
+ marketplace?: MarketplaceKind[] | undefined;
1155
+ createdBy?: string[] | undefined;
1156
+ }>>;
1157
+ page: z.ZodOptional<z.ZodObject<{
1158
+ page: z.ZodNumber;
1159
+ pageSize: z.ZodNumber;
1160
+ more: z.ZodOptional<z.ZodBoolean>;
1161
+ sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
1162
+ column: z.ZodString;
1163
+ order: z.ZodNativeEnum<typeof SortOrder$1>;
1164
+ }, "strip", z.ZodTypeAny, {
1165
+ order: SortOrder$1;
1166
+ column: string;
1167
+ }, {
1168
+ order: SortOrder$1;
1169
+ column: string;
1170
+ }>, "many">>;
1171
+ }, "strip", z.ZodTypeAny, {
1172
+ page: number;
1173
+ pageSize: number;
1174
+ sort?: {
1175
+ order: SortOrder$1;
1176
+ column: string;
1177
+ }[] | undefined;
1178
+ more?: boolean | undefined;
1179
+ }, {
1180
+ page: number;
1181
+ pageSize: number;
1182
+ sort?: {
1183
+ order: SortOrder$1;
1184
+ column: string;
1185
+ }[] | undefined;
1186
+ more?: boolean | undefined;
1187
+ }>>;
1188
+ }, {
1189
+ chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
1190
+ }>, "strip", z.ZodTypeAny, {
145
1191
  chainId: string;
146
- };
147
- type UseListOffersForCollectible = ReturnType<typeof fetchListOffersForCollectible>;
1192
+ tokenId: string;
1193
+ contractAddress: string;
1194
+ filter?: {
1195
+ currencies?: string[] | undefined;
1196
+ marketplace?: MarketplaceKind[] | undefined;
1197
+ createdBy?: string[] | undefined;
1198
+ } | undefined;
1199
+ page?: {
1200
+ page: number;
1201
+ pageSize: number;
1202
+ sort?: {
1203
+ order: SortOrder$1;
1204
+ column: string;
1205
+ }[] | undefined;
1206
+ more?: boolean | undefined;
1207
+ } | undefined;
1208
+ }, {
1209
+ chainId: string | number;
1210
+ tokenId: string;
1211
+ contractAddress: string;
1212
+ filter?: {
1213
+ currencies?: string[] | undefined;
1214
+ marketplace?: MarketplaceKind[] | undefined;
1215
+ createdBy?: string[] | undefined;
1216
+ } | undefined;
1217
+ page?: {
1218
+ page: number;
1219
+ pageSize: number;
1220
+ sort?: {
1221
+ order: SortOrder$1;
1222
+ column: string;
1223
+ }[] | undefined;
1224
+ more?: boolean | undefined;
1225
+ } | undefined;
1226
+ }>;
1227
+ type UseListOffersForCollectibleArgs = z.infer<typeof UseListOffersForCollectibleArgsSchema>;
1228
+ type UseListOffersForCollectibleReturn = Awaited<ReturnType<typeof fetchListOffersForCollectible>>;
148
1229
  declare const fetchListOffersForCollectible: (config: SdkConfig, args: UseListOffersForCollectibleArgs, page: Page$1) => Promise<ListCollectibleOffersReturn>;
149
- declare const listOffersForCollectibleOptions: (args: UseListOffersForCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<ListCollectibleOffersReturn, Error, _tanstack_react_query.InfiniteData<ListCollectibleOffersReturn, unknown>, ListCollectibleOffersReturn, ("offers" | "collectable" | SdkConfig | UseListOffersForCollectibleArgs)[], {
1230
+ declare const listOffersForCollectibleOptions: (args: UseListOffersForCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<ListCollectibleOffersReturn, Error, _tanstack_react_query.InfiniteData<ListCollectibleOffersReturn, unknown>, ListCollectibleOffersReturn, ("offers" | "collectable" | SdkConfig | {
1231
+ chainId: string;
1232
+ tokenId: string;
1233
+ contractAddress: string;
1234
+ filter?: {
1235
+ currencies?: string[] | undefined;
1236
+ marketplace?: MarketplaceKind[] | undefined;
1237
+ createdBy?: string[] | undefined;
1238
+ } | undefined;
1239
+ page?: {
1240
+ page: number;
1241
+ pageSize: number;
1242
+ sort?: {
1243
+ order: SortOrder$1;
1244
+ column: string;
1245
+ }[] | undefined;
1246
+ more?: boolean | undefined;
1247
+ } | undefined;
1248
+ })[], {
150
1249
  page: number;
151
1250
  pageSize: number;
152
1251
  }>, "queryFn"> & {
153
- queryFn?: _tanstack_react_query.QueryFunction<ListCollectibleOffersReturn, ("offers" | "collectable" | SdkConfig | UseListOffersForCollectibleArgs)[], {
1252
+ queryFn?: _tanstack_react_query.QueryFunction<ListCollectibleOffersReturn, ("offers" | "collectable" | SdkConfig | {
1253
+ chainId: string;
1254
+ tokenId: string;
1255
+ contractAddress: string;
1256
+ filter?: {
1257
+ currencies?: string[] | undefined;
1258
+ marketplace?: MarketplaceKind[] | undefined;
1259
+ createdBy?: string[] | undefined;
1260
+ } | undefined;
1261
+ page?: {
1262
+ page: number;
1263
+ pageSize: number;
1264
+ sort?: {
1265
+ order: SortOrder$1;
1266
+ column: string;
1267
+ }[] | undefined;
1268
+ more?: boolean | undefined;
1269
+ } | undefined;
1270
+ })[], {
154
1271
  page: number;
155
1272
  pageSize: number;
156
1273
  }> | undefined;
157
1274
  } & {
158
- queryKey: _tanstack_react_query.DataTag<("offers" | "collectable" | SdkConfig | UseListOffersForCollectibleArgs)[], _tanstack_react_query.InfiniteData<ListCollectibleOffersReturn, unknown>>;
1275
+ queryKey: _tanstack_react_query.DataTag<("offers" | "collectable" | SdkConfig | {
1276
+ chainId: string;
1277
+ tokenId: string;
1278
+ contractAddress: string;
1279
+ filter?: {
1280
+ currencies?: string[] | undefined;
1281
+ marketplace?: MarketplaceKind[] | undefined;
1282
+ createdBy?: string[] | undefined;
1283
+ } | undefined;
1284
+ page?: {
1285
+ page: number;
1286
+ pageSize: number;
1287
+ sort?: {
1288
+ order: SortOrder$1;
1289
+ column: string;
1290
+ }[] | undefined;
1291
+ more?: boolean | undefined;
1292
+ } | undefined;
1293
+ })[], _tanstack_react_query.InfiniteData<ListCollectibleOffersReturn, unknown>>;
159
1294
  };
160
1295
  declare const useListOffersForCollectible: (args: UseListOffersForCollectibleArgs) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ListCollectibleOffersReturn, unknown>, Error>;
161
1296
 
162
- type UseLowestListingArgs = Omit<GetCollectibleLowestListingArgs, 'contractAddress'> & {
1297
+ declare const UseLowestListingSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
1298
+ contractAddress: z.ZodString;
1299
+ tokenId: z.ZodString;
1300
+ filters: z.ZodOptional<z.ZodObject<{
1301
+ createdBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1302
+ marketplace: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof MarketplaceKind>, "many">>;
1303
+ currencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1304
+ }, "strip", z.ZodTypeAny, {
1305
+ currencies?: string[] | undefined;
1306
+ marketplace?: MarketplaceKind[] | undefined;
1307
+ createdBy?: string[] | undefined;
1308
+ }, {
1309
+ currencies?: string[] | undefined;
1310
+ marketplace?: MarketplaceKind[] | undefined;
1311
+ createdBy?: string[] | undefined;
1312
+ }>>;
1313
+ }, "contractAddress">, {
1314
+ collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
1315
+ chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
1316
+ query: z.ZodOptional<z.ZodObject<{
1317
+ enabled: z.ZodOptional<z.ZodBoolean>;
1318
+ }, "strip", z.ZodTypeAny, {
1319
+ enabled?: boolean | undefined;
1320
+ }, {
1321
+ enabled?: boolean | undefined;
1322
+ }>>;
1323
+ }>, "strip", z.ZodTypeAny, {
1324
+ chainId: string;
1325
+ collectionAddress: `0x${string}`;
1326
+ tokenId: string;
1327
+ filters?: {
1328
+ currencies?: string[] | undefined;
1329
+ marketplace?: MarketplaceKind[] | undefined;
1330
+ createdBy?: string[] | undefined;
1331
+ } | undefined;
1332
+ query?: {
1333
+ enabled?: boolean | undefined;
1334
+ } | undefined;
1335
+ }, {
1336
+ chainId: string | number;
163
1337
  collectionAddress: string;
164
- chainId: ChainId;
165
- } & QueryArg;
166
- type UseLowestListingReturn = ReturnType<typeof fetchLowestListing>;
1338
+ tokenId: string;
1339
+ filters?: {
1340
+ currencies?: string[] | undefined;
1341
+ marketplace?: MarketplaceKind[] | undefined;
1342
+ createdBy?: string[] | undefined;
1343
+ } | undefined;
1344
+ query?: {
1345
+ enabled?: boolean | undefined;
1346
+ } | undefined;
1347
+ }>;
1348
+ type UseLowestListingArgs = z.infer<typeof UseLowestListingSchema>;
1349
+ type UseLowestListingReturn = Awaited<ReturnType<typeof fetchLowestListing>>;
167
1350
  declare const fetchLowestListing: (args: UseLowestListingArgs, config: SdkConfig) => Promise<GetCollectibleLowestListingReturn>;
168
- declare const lowestListingOptions: (args: UseLowestListingArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetCollectibleLowestListingReturn, Error, GetCollectibleLowestListingReturn, ("collectable" | "details" | "lowestListings" | SdkConfig | UseLowestListingArgs)[]>, "queryFn"> & {
169
- queryFn?: _tanstack_react_query.QueryFunction<GetCollectibleLowestListingReturn, ("collectable" | "details" | "lowestListings" | SdkConfig | UseLowestListingArgs)[], never> | undefined;
1351
+ declare const lowestListingOptions: (args: UseLowestListingArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetCollectibleLowestListingReturn, Error, GetCollectibleLowestListingReturn, ("collectable" | "details" | "lowestListings" | SdkConfig | {
1352
+ chainId: string;
1353
+ collectionAddress: `0x${string}`;
1354
+ tokenId: string;
1355
+ filters?: {
1356
+ currencies?: string[] | undefined;
1357
+ marketplace?: MarketplaceKind[] | undefined;
1358
+ createdBy?: string[] | undefined;
1359
+ } | undefined;
1360
+ query?: {
1361
+ enabled?: boolean | undefined;
1362
+ } | undefined;
1363
+ })[]>, "queryFn"> & {
1364
+ queryFn?: _tanstack_react_query.QueryFunction<GetCollectibleLowestListingReturn, ("collectable" | "details" | "lowestListings" | SdkConfig | {
1365
+ chainId: string;
1366
+ collectionAddress: `0x${string}`;
1367
+ tokenId: string;
1368
+ filters?: {
1369
+ currencies?: string[] | undefined;
1370
+ marketplace?: MarketplaceKind[] | undefined;
1371
+ createdBy?: string[] | undefined;
1372
+ } | undefined;
1373
+ query?: {
1374
+ enabled?: boolean | undefined;
1375
+ } | undefined;
1376
+ })[], never> | undefined;
170
1377
  } & {
171
- queryKey: _tanstack_react_query.DataTag<("collectable" | "details" | "lowestListings" | SdkConfig | UseLowestListingArgs)[], GetCollectibleLowestListingReturn>;
1378
+ queryKey: _tanstack_react_query.DataTag<("collectable" | "details" | "lowestListings" | SdkConfig | {
1379
+ chainId: string;
1380
+ collectionAddress: `0x${string}`;
1381
+ tokenId: string;
1382
+ filters?: {
1383
+ currencies?: string[] | undefined;
1384
+ marketplace?: MarketplaceKind[] | undefined;
1385
+ createdBy?: string[] | undefined;
1386
+ } | undefined;
1387
+ query?: {
1388
+ enabled?: boolean | undefined;
1389
+ } | undefined;
1390
+ })[], GetCollectibleLowestListingReturn>;
172
1391
  };
173
1392
  declare const useLowestListing: (args: UseLowestListingArgs) => _tanstack_react_query.UseQueryResult<GetCollectibleLowestListingReturn, Error>;
174
1393
 
@@ -180,15 +1399,58 @@ declare const marketplaceConfigOptions: (config: Pick<SdkConfig, "projectId"> |
180
1399
 
181
1400
  declare const useMarketplaceConfig: () => _tanstack_react_query.UseQueryResult<MarketplaceConfig, Error>;
182
1401
 
183
- type UseRoyaletyPercentageArgs = {
184
- chainId: ChainId;
1402
+ declare const UseRoyaletyPercentageSchema: z.ZodObject<{
1403
+ chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
1404
+ collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
1405
+ collectibleId: z.ZodString;
1406
+ query: z.ZodOptional<z.ZodObject<{
1407
+ enabled: z.ZodOptional<z.ZodBoolean>;
1408
+ }, "strip", z.ZodTypeAny, {
1409
+ enabled?: boolean | undefined;
1410
+ }, {
1411
+ enabled?: boolean | undefined;
1412
+ }>>;
1413
+ }, "strip", z.ZodTypeAny, {
1414
+ chainId: string;
1415
+ collectionAddress: `0x${string}`;
1416
+ collectibleId: string;
1417
+ query?: {
1418
+ enabled?: boolean | undefined;
1419
+ } | undefined;
1420
+ }, {
1421
+ chainId: string | number;
185
1422
  collectionAddress: string;
186
1423
  collectibleId: string;
187
- } & QueryArg;
188
- declare const royaletyPercentageOptions: (args: UseRoyaletyPercentageArgs) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<bigint, Error, bigint, ("collectable" | "royaltyPercentage" | UseRoyaletyPercentageArgs)[]>, "queryFn"> & {
189
- queryFn?: _tanstack_react_query.QueryFunction<bigint, ("collectable" | "royaltyPercentage" | UseRoyaletyPercentageArgs)[], never> | undefined;
1424
+ query?: {
1425
+ enabled?: boolean | undefined;
1426
+ } | undefined;
1427
+ }>;
1428
+ type UseRoyaletyPercentageArgs = z.infer<typeof UseRoyaletyPercentageSchema>;
1429
+ declare const royaletyPercentageOptions: (args: UseRoyaletyPercentageArgs) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<bigint, Error, bigint, ("collectable" | "royaltyPercentage" | {
1430
+ chainId: string;
1431
+ collectionAddress: `0x${string}`;
1432
+ collectibleId: string;
1433
+ query?: {
1434
+ enabled?: boolean | undefined;
1435
+ } | undefined;
1436
+ })[]>, "queryFn"> & {
1437
+ queryFn?: _tanstack_react_query.QueryFunction<bigint, ("collectable" | "royaltyPercentage" | {
1438
+ chainId: string;
1439
+ collectionAddress: `0x${string}`;
1440
+ collectibleId: string;
1441
+ query?: {
1442
+ enabled?: boolean | undefined;
1443
+ } | undefined;
1444
+ })[], never> | undefined;
190
1445
  } & {
191
- queryKey: _tanstack_react_query.DataTag<("collectable" | "royaltyPercentage" | UseRoyaletyPercentageArgs)[], bigint>;
1446
+ queryKey: _tanstack_react_query.DataTag<("collectable" | "royaltyPercentage" | {
1447
+ chainId: string;
1448
+ collectionAddress: `0x${string}`;
1449
+ collectibleId: string;
1450
+ query?: {
1451
+ enabled?: boolean | undefined;
1452
+ } | undefined;
1453
+ })[], bigint>;
192
1454
  };
193
1455
  declare const useRoyaltyPercentage: (args: UseRoyaletyPercentageArgs) => _tanstack_react_query.UseQueryResult<bigint, Error>;
194
1456
 
@@ -378,4 +1640,4 @@ declare const useTransferTokens: () => {
378
1640
  transferSuccess: boolean;
379
1641
  };
380
1642
 
381
- export { type CreateReqWithDateExpiry$1 as CreateReqWithDateExpiry, type GenerateListingTransactionProps, type GenerateOfferTransactionProps, type TransferTokensParams, type UseBalanceOfCollectibleArgs, type UseCollectibleArgs, type UseCollectibleReturn, type UseCollectionArgs, type UseCollectionReturn, type UseCurrenciesArgs, type UseCurrenciesReturn, type UseFetchTokenBalancesReturn, type UseFilterReturn, type UseFiltersArgs, type UseFloorOrder, type UseGenerateListingTransactionArgs, type UseGenerateOfferTransactionArgs, type UseHighestOfferArgs, type UseHighestOfferReturn, type UseListCollectiblesArgs, type UseListCollectiblesReturn, type UseListOffersForCollectible, type UseListOffersForCollectibleArgs, type UseLowestListingArgs, type UseLowestListingReturn, type UseTokenBalancesArgs, balanceOfCollectibleOptions, collectibleOptions, collectionOptions, currenciesOptions, fetchFilters, filtersOptions, floorOrderOptions, generateListingTransaction, generateOfferTransaction, highestOfferOptions, listCollectiblesOptions, listOffersForCollectibleOptions, lowestListingOptions, marketplaceConfigOptions, royaletyPercentageOptions, tokenBalancesOptions, useBalanceOfCollectible, useCollectible, useCollection, useConfig, useCurrencies, useFilters, useFloorOrder, useGenerateListingTransaction, useGenerateOfferTransaction, useHighestOffer, useListCollectibles, useListOffersForCollectible, useLowestListing, useMarketplaceConfig, useRoyaltyPercentage, useTokenBalances, useTransferTokens };
1643
+ export { type CreateReqWithDateExpiry$1 as CreateReqWithDateExpiry, type GenerateListingTransactionProps, type GenerateOfferTransactionProps, type TransferTokensParams, type UseCollectibleArgs, type UseCollectibleReturn, type UseCollectionArgs, type UseCollectionReturn, type UseContOfCollectableReturn, type UseCountOfCollectablesArgs, type UseCurrenciesReturn, 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 UseListOffersForCollectibleReturn, type UseLowestListingArgs, type UseLowestListingReturn, balanceOfCollectibleOptions, collectibleOptions, collectionOptions, countOfCollectablesOptions, currenciesOptions, fetchFilters, filtersOptions, floorOrderOptions, generateListingTransaction, generateOfferTransaction, highestOfferOptions, listBalancesOptions, listCollectiblesOptions, listOffersForCollectibleOptions, lowestListingOptions, marketplaceConfigOptions, metadataOptionsSchema, royaletyPercentageOptions, useBalanceOfCollectible, useCollectible, useCollection, useConfig, useCountOfCollectables, useCurrencies, useFilters, useFloorOrder, useGenerateListingTransaction, useGenerateOfferTransaction, useHighestOffer, useListBalances, useListCollectibles, useListOffersForCollectible, useLowestListing, useMarketplaceConfig, useRoyaltyPercentage, useTransferTokens };