@0xsequence/marketplace-sdk 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/dist/{chunk-P3EQRM7K.js → chunk-5GDO4ZBC.js} +5 -4
  2. package/dist/{chunk-P3EQRM7K.js.map → chunk-5GDO4ZBC.js.map} +1 -1
  3. package/dist/{chunk-QTQH5I2E.js → chunk-EVRILXOH.js} +2 -2
  4. package/dist/chunk-EVRILXOH.js.map +1 -0
  5. package/dist/{chunk-GVDLVCR5.js → chunk-GSDUAHL3.js} +1 -1
  6. package/dist/chunk-GSDUAHL3.js.map +1 -0
  7. package/dist/{chunk-6HEMV2OR.js → chunk-IOTKCWOB.js} +890 -644
  8. package/dist/chunk-IOTKCWOB.js.map +1 -0
  9. package/dist/{chunk-AY2MZHZN.js → chunk-KNX2LER4.js} +5 -6
  10. package/dist/{chunk-PAHT6PTD.js.map → chunk-KNX2LER4.js.map} +1 -1
  11. package/dist/{chunk-SBVLWSRZ.js → chunk-LF44FCG5.js} +2 -2
  12. package/dist/{chunk-SBVLWSRZ.js.map → chunk-LF44FCG5.js.map} +1 -1
  13. package/dist/{chunk-PAHT6PTD.js → chunk-LSMQVX77.js} +5 -6
  14. package/dist/{chunk-AY2MZHZN.js.map → chunk-LSMQVX77.js.map} +1 -1
  15. package/dist/{chunk-6AYHE7ZA.js → chunk-MIYMMP2K.js} +79 -33
  16. package/dist/chunk-MIYMMP2K.js.map +1 -0
  17. package/dist/{chunk-EK5ZSW4M.js → chunk-QMO2CUNM.js} +2 -2
  18. package/dist/{chunk-L6GSYPCR.js → chunk-RZSZNVEH.js} +5 -5
  19. package/dist/{chunk-L6GSYPCR.js.map → chunk-RZSZNVEH.js.map} +1 -1
  20. package/dist/chunk-T5T6JNB2.js +171 -0
  21. package/dist/chunk-T5T6JNB2.js.map +1 -0
  22. package/dist/chunk-UPLTM63S.js +435 -0
  23. package/dist/chunk-UPLTM63S.js.map +1 -0
  24. package/dist/{chunk-Y7YO5TLE.js → chunk-XXML5K3X.js} +5 -2
  25. package/dist/chunk-XXML5K3X.js.map +1 -0
  26. package/dist/{create-config-CgtmCzvb.d.ts → create-config-8sffBvlt.d.ts} +1 -1
  27. package/dist/index.js +4 -4
  28. package/dist/react/_internal/api/index.js +2 -2
  29. package/dist/react/_internal/index.d.ts +1 -1
  30. package/dist/react/_internal/index.js +3 -3
  31. package/dist/react/_internal/wagmi/index.d.ts +1 -1
  32. package/dist/react/_internal/wagmi/index.js +2 -2
  33. package/dist/react/hooks/index.d.ts +663 -74
  34. package/dist/react/hooks/index.js +7 -7
  35. package/dist/react/index.css +17 -0
  36. package/dist/react/index.css.map +1 -1
  37. package/dist/react/index.d.ts +1 -1
  38. package/dist/react/index.js +11 -11
  39. package/dist/react/ssr/index.js +1 -1
  40. package/dist/react/ssr/index.js.map +1 -1
  41. package/dist/react/ui/components/index.css +17 -0
  42. package/dist/react/ui/components/index.css.map +1 -1
  43. package/dist/react/ui/components/index.js +11 -11
  44. package/dist/react/ui/icons/index.js +4 -4
  45. package/dist/react/ui/icons/index.js.map +1 -1
  46. package/dist/react/ui/index.css +17 -0
  47. package/dist/react/ui/index.css.map +1 -1
  48. package/dist/react/ui/index.js +11 -11
  49. package/dist/react/ui/modals/_internal/components/actionModal/index.css +22 -0
  50. package/dist/react/ui/modals/_internal/components/actionModal/index.css.map +1 -1
  51. package/dist/react/ui/modals/_internal/components/actionModal/index.d.ts +17 -9
  52. package/dist/react/ui/modals/_internal/components/actionModal/index.js +8 -4
  53. package/dist/react/ui/styles/index.d.ts +1 -1
  54. package/dist/styles/index.d.ts +1 -1
  55. package/dist/styles/index.js +2 -2
  56. package/dist/types/index.js +3 -3
  57. package/dist/utils/index.js +2 -2
  58. package/package.json +25 -25
  59. package/src/react/_internal/api/marketplace-api.ts +3 -2
  60. package/src/react/_internal/transaction-machine/execute-transaction.ts +28 -12
  61. package/src/react/_internal/transaction-machine/useTransactionMachine.ts +43 -8
  62. package/src/react/hooks/useBuyCollectable.tsx +13 -6
  63. package/src/react/hooks/useCancelOrder.tsx +14 -7
  64. package/src/react/hooks/useCreateListing.tsx +74 -10
  65. package/src/react/hooks/useCurrencies.tsx +1 -1
  66. package/src/react/hooks/useCurrencyBalance.tsx +1 -1
  67. package/src/react/hooks/useCurrencyOptions.tsx +1 -1
  68. package/src/react/hooks/useMakeOffer.tsx +73 -11
  69. package/src/react/hooks/useSell.tsx +72 -11
  70. package/src/react/ui/components/_internals/action-button/ActionButton.tsx +1 -7
  71. package/src/react/ui/components/_internals/action-button/types.ts +7 -0
  72. package/src/react/ui/components/_internals/custom-select/CustomSelect.tsx +18 -15
  73. package/src/react/ui/components/collectible-card/CollectibleCard.tsx +5 -7
  74. package/src/react/ui/components/collectible-card/Footer.tsx +5 -7
  75. package/src/react/ui/components/collectible-card/styles.css.ts +1 -1
  76. package/src/react/ui/icons/ArrowUp.tsx +3 -0
  77. package/src/react/ui/icons/Bell.tsx +3 -0
  78. package/src/react/ui/icons/CalendarIcon.tsx +3 -0
  79. package/src/react/ui/icons/DiamondEye.tsx +3 -0
  80. package/src/react/ui/icons/InfoIcon.tsx +3 -0
  81. package/src/react/ui/icons/InventoryIcon.tsx +3 -0
  82. package/src/react/ui/icons/MinusIcon.tsx +3 -0
  83. package/src/react/ui/icons/PlusIcon.tsx +3 -0
  84. package/src/react/ui/icons/PositiveCircleIcon.tsx +3 -0
  85. package/src/react/ui/modals/BuyModal/index.tsx +25 -8
  86. package/src/react/ui/modals/CreateListingModal/_store.ts +5 -2
  87. package/src/react/ui/modals/CreateListingModal/index.tsx +62 -23
  88. package/src/react/ui/modals/MakeOfferModal/_store.ts +5 -2
  89. package/src/react/ui/modals/MakeOfferModal/index.tsx +83 -65
  90. package/src/react/ui/modals/SellModal/index.tsx +107 -57
  91. package/src/react/ui/modals/TransferModal/_store.ts +1 -1
  92. package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/index.tsx +4 -2
  93. package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/useHandleTransfer.tsx +5 -5
  94. package/src/react/ui/modals/TransferModal/index.tsx +1 -1
  95. package/src/react/ui/modals/_internal/components/actionModal/ActionModal.tsx +29 -8
  96. package/src/react/ui/modals/_internal/components/actionModal/ErrorModal.tsx +15 -5
  97. package/src/react/ui/modals/_internal/components/actionModal/LoadingModal.tsx +15 -5
  98. package/src/react/ui/modals/_internal/components/actionModal/store.ts +6 -0
  99. package/src/react/ui/modals/_internal/components/calendar/index.tsx +1 -1
  100. package/src/react/ui/modals/_internal/components/currencyImage/index.tsx +3 -3
  101. package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +11 -10
  102. package/src/react/ui/modals/_internal/components/expirationDateSelect/index.tsx +14 -19
  103. package/src/react/ui/modals/_internal/components/priceInput/index.tsx +34 -12
  104. package/src/react/ui/modals/_internal/components/quantityInput/index.tsx +3 -3
  105. package/src/react/ui/modals/_internal/components/switchChainModal/index.tsx +7 -4
  106. package/src/react/ui/modals/_internal/components/tokenPreview/index.tsx +1 -0
  107. package/src/react/ui/modals/_internal/components/transaction-footer/index.tsx +3 -3
  108. package/src/react/ui/modals/_internal/components/transactionDetails/index.tsx +9 -5
  109. package/src/react/ui/modals/_internal/components/transactionPreview/index.tsx +4 -4
  110. package/src/react/ui/modals/_internal/components/transactionPreview/useTransactionPreviewTitle.tsx +1 -1
  111. package/src/react/ui/modals/_internal/components/transactionStatusModal/index.tsx +51 -29
  112. package/src/react/ui/modals/_internal/components/transactionStatusModal/store.ts +2 -2
  113. package/src/react/ui/modals/_internal/components/transactionStatusModal/util/getFormattedType.ts +1 -1
  114. package/src/react/ui/modals/_internal/components/transactionStatusModal/util/getMessage.ts +2 -2
  115. package/src/react/ui/modals/_internal/components/transactionStatusModal/util/getTitle.ts +6 -3
  116. package/src/react/ui/modals/_internal/components/waasFeeOptionsBox/index.tsx +146 -0
  117. package/src/react/ui/modals/_internal/components/waasFeeOptionsBox/store.ts +12 -0
  118. package/src/react/ui/modals/_internal/components/waasFeeOptionsBox/styles.css.ts +53 -0
  119. package/src/react/ui/modals/_internal/components/waasFeeOptionsSelect/WaasFeeOptionsSelect.tsx +117 -0
  120. package/src/utils/_internal/error/transaction.ts +2 -2
  121. package/src/utils/price.ts +3 -4
  122. package/tsconfig.json +1 -21
  123. package/tsconfig.tsbuildinfo +1 -1
  124. package/dist/chunk-6AYHE7ZA.js.map +0 -1
  125. package/dist/chunk-6HEMV2OR.js.map +0 -1
  126. package/dist/chunk-FFCNYF3S.js +0 -153
  127. package/dist/chunk-FFCNYF3S.js.map +0 -1
  128. package/dist/chunk-GVDLVCR5.js.map +0 -1
  129. package/dist/chunk-NMCGA2TB.js +0 -98
  130. package/dist/chunk-NMCGA2TB.js.map +0 -1
  131. package/dist/chunk-QTQH5I2E.js.map +0 -1
  132. package/dist/chunk-Y7YO5TLE.js.map +0 -1
  133. /package/dist/{chunk-EK5ZSW4M.js.map → chunk-QMO2CUNM.js.map} +0 -0
@@ -35,7 +35,10 @@ interface BalanceOfCollectibleOptions extends Omit<FetchBalanceOfCollectibleArgs
35
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" | BalanceOfCollectibleOptions)[], _0xsequence_indexer.TokenBalance>;
38
+ queryKey: ("collectable" | "details" | "userBalances" | BalanceOfCollectibleOptions)[] & {
39
+ [dataTagSymbol]: _0xsequence_indexer.TokenBalance;
40
+ [dataTagErrorSymbol]: Error;
41
+ };
39
42
  };
40
43
  declare const useBalanceOfCollectible: (args: BalanceOfCollectibleOptions) => _tanstack_react_query.UseQueryResult<_0xsequence_indexer.TokenBalance, Error>;
41
44
 
@@ -188,10 +191,106 @@ declare const UseCountOfCollectableSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
188
191
  type UseCountOfCollectablesArgs = z.infer<typeof UseCountOfCollectableSchema>;
189
192
  type UseContOfCollectableReturn = Awaited<ReturnType<typeof fetchCountOfCollectables>>;
190
193
  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, _tanstack_react_query.QueryKey>, "queryFn"> & {
192
- queryFn?: _tanstack_react_query.QueryFunction<number, _tanstack_react_query.QueryKey, never> | undefined;
194
+ declare const countOfCollectablesOptions: (args: UseCountOfCollectablesArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<number, Error, number, ("collectable" | "counts" | {
195
+ filter: {
196
+ includeEmpty: boolean;
197
+ searchText?: string | undefined;
198
+ properties?: {
199
+ type: PropertyType;
200
+ name: string;
201
+ values?: any[] | undefined;
202
+ min?: number | undefined;
203
+ max?: number | undefined;
204
+ }[] | undefined;
205
+ marketplaces?: MarketplaceKind[] | undefined;
206
+ inAccounts?: string[] | undefined;
207
+ notInAccounts?: string[] | undefined;
208
+ ordersCreatedBy?: string[] | undefined;
209
+ ordersNotCreatedBy?: string[] | undefined;
210
+ };
211
+ chainId: string;
212
+ collectionAddress: `0x${string}`;
213
+ side: OrderSide;
214
+ query?: {
215
+ enabled?: boolean | undefined;
216
+ } | undefined;
217
+ } | {
218
+ chainId: string;
219
+ collectionAddress: `0x${string}`;
220
+ filter?: undefined;
221
+ side?: undefined;
222
+ query?: {
223
+ enabled?: boolean | undefined;
224
+ } | undefined;
225
+ })[]>, "queryFn"> & {
226
+ queryFn?: _tanstack_react_query.QueryFunction<number, ("collectable" | "counts" | {
227
+ filter: {
228
+ includeEmpty: boolean;
229
+ searchText?: string | undefined;
230
+ properties?: {
231
+ type: PropertyType;
232
+ name: string;
233
+ values?: any[] | undefined;
234
+ min?: number | undefined;
235
+ max?: number | undefined;
236
+ }[] | undefined;
237
+ marketplaces?: MarketplaceKind[] | undefined;
238
+ inAccounts?: string[] | undefined;
239
+ notInAccounts?: string[] | undefined;
240
+ ordersCreatedBy?: string[] | undefined;
241
+ ordersNotCreatedBy?: string[] | undefined;
242
+ };
243
+ chainId: string;
244
+ collectionAddress: `0x${string}`;
245
+ side: OrderSide;
246
+ query?: {
247
+ enabled?: boolean | undefined;
248
+ } | undefined;
249
+ } | {
250
+ chainId: string;
251
+ collectionAddress: `0x${string}`;
252
+ filter?: undefined;
253
+ side?: undefined;
254
+ query?: {
255
+ enabled?: boolean | undefined;
256
+ } | undefined;
257
+ })[], never> | undefined;
193
258
  } & {
194
- queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, number>;
259
+ queryKey: ("collectable" | "counts" | {
260
+ filter: {
261
+ includeEmpty: boolean;
262
+ searchText?: string | undefined;
263
+ properties?: {
264
+ type: PropertyType;
265
+ name: string;
266
+ values?: any[] | undefined;
267
+ min?: number | undefined;
268
+ max?: number | undefined;
269
+ }[] | undefined;
270
+ marketplaces?: MarketplaceKind[] | undefined;
271
+ inAccounts?: string[] | undefined;
272
+ notInAccounts?: string[] | undefined;
273
+ ordersCreatedBy?: string[] | undefined;
274
+ ordersNotCreatedBy?: string[] | undefined;
275
+ };
276
+ chainId: string;
277
+ collectionAddress: `0x${string}`;
278
+ side: OrderSide;
279
+ query?: {
280
+ enabled?: boolean | undefined;
281
+ } | undefined;
282
+ } | {
283
+ chainId: string;
284
+ collectionAddress: `0x${string}`;
285
+ filter?: undefined;
286
+ side?: undefined;
287
+ query?: {
288
+ enabled?: boolean | undefined;
289
+ } | undefined;
290
+ })[] & {
291
+ [dataTagSymbol]: number;
292
+ [dataTagErrorSymbol]: Error;
293
+ };
195
294
  };
196
295
  declare const useCountOfCollectables: (args: UseCountOfCollectablesArgs) => _tanstack_react_query.UseQueryResult<number, Error>;
197
296
 
@@ -224,10 +323,34 @@ declare const UseCollectibleSchema: z.ZodObject<{
224
323
  type UseCollectibleArgs = z.infer<typeof UseCollectibleSchema>;
225
324
  type UseCollectibleReturn = Awaited<ReturnType<typeof fetchCollectible>>;
226
325
  declare const fetchCollectible: (args: UseCollectibleArgs, config: SdkConfig) => Promise<_0xsequence_metadata.TokenMetadata>;
227
- declare const collectibleOptions: (args: UseCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<_0xsequence_metadata.TokenMetadata, Error, _0xsequence_metadata.TokenMetadata, _tanstack_react_query.QueryKey>, "queryFn"> & {
228
- queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_metadata.TokenMetadata, _tanstack_react_query.QueryKey, never> | undefined;
326
+ 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 | {
327
+ chainId: string;
328
+ collectionAddress: `0x${string}`;
329
+ collectibleId: string;
330
+ query?: {
331
+ enabled?: boolean | undefined;
332
+ } | undefined;
333
+ })[]>, "queryFn"> & {
334
+ queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_metadata.TokenMetadata, ("collectable" | "details" | SdkConfig | {
335
+ chainId: string;
336
+ collectionAddress: `0x${string}`;
337
+ collectibleId: string;
338
+ query?: {
339
+ enabled?: boolean | undefined;
340
+ } | undefined;
341
+ })[], never> | undefined;
229
342
  } & {
230
- queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, _0xsequence_metadata.TokenMetadata>;
343
+ queryKey: ("collectable" | "details" | SdkConfig | {
344
+ chainId: string;
345
+ collectionAddress: `0x${string}`;
346
+ collectibleId: string;
347
+ query?: {
348
+ enabled?: boolean | undefined;
349
+ } | undefined;
350
+ })[] & {
351
+ [dataTagSymbol]: _0xsequence_metadata.TokenMetadata;
352
+ [dataTagErrorSymbol]: Error;
353
+ };
231
354
  };
232
355
  declare const useCollectible: (args: UseCollectibleArgs) => _tanstack_react_query.UseQueryResult<_0xsequence_metadata.TokenMetadata, Error>;
233
356
 
@@ -257,10 +380,31 @@ declare const UseCollectionSchema: z.ZodObject<{
257
380
  type UseCollectionArgs = z.input<typeof UseCollectionSchema>;
258
381
  type UseCollectionReturn = Awaited<ReturnType<typeof fetchCollection>>;
259
382
  declare const fetchCollection: (args: UseCollectionArgs, config: SdkConfig) => Promise<_0xsequence_metadata.ContractInfo>;
260
- declare const collectionOptions: (args: UseCollectionArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<_0xsequence_metadata.ContractInfo, Error, _0xsequence_metadata.ContractInfo, _tanstack_react_query.QueryKey>, "queryFn"> & {
261
- queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_metadata.ContractInfo, _tanstack_react_query.QueryKey, never> | undefined;
383
+ 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 | {
384
+ chainId: string | number;
385
+ collectionAddress: string;
386
+ query?: {
387
+ enabled?: boolean | undefined;
388
+ } | undefined;
389
+ })[]>, "queryFn"> & {
390
+ queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_metadata.ContractInfo, ("collections" | "detail" | SdkConfig | {
391
+ chainId: string | number;
392
+ collectionAddress: string;
393
+ query?: {
394
+ enabled?: boolean | undefined;
395
+ } | undefined;
396
+ })[], never> | undefined;
262
397
  } & {
263
- queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, _0xsequence_metadata.ContractInfo>;
398
+ queryKey: ("collections" | "detail" | SdkConfig | {
399
+ chainId: string | number;
400
+ collectionAddress: string;
401
+ query?: {
402
+ enabled?: boolean | undefined;
403
+ } | undefined;
404
+ })[] & {
405
+ [dataTagSymbol]: _0xsequence_metadata.ContractInfo;
406
+ [dataTagErrorSymbol]: Error;
407
+ };
264
408
  };
265
409
  declare const useCollection: (args: UseCollectionArgs) => _tanstack_react_query.UseQueryResult<_0xsequence_metadata.ContractInfo, Error>;
266
410
 
@@ -321,7 +465,7 @@ declare const currenciesOptions: (args: UseCurrenciesArgs, config: SdkConfig) =>
321
465
  createdAt: string;
322
466
  updatedAt: string;
323
467
  deletedAt?: string;
324
- }[], Error, Currency[], _tanstack_react_query.QueryKey>, "queryFn"> & {
468
+ }[], Error, Currency[], (string | number)[]>, "queryFn"> & {
325
469
  queryFn?: _tanstack_react_query.QueryFunction<{
326
470
  contractAddress: string;
327
471
  chainId: number;
@@ -335,22 +479,25 @@ declare const currenciesOptions: (args: UseCurrenciesArgs, config: SdkConfig) =>
335
479
  createdAt: string;
336
480
  updatedAt: string;
337
481
  deletedAt?: string;
338
- }[], _tanstack_react_query.QueryKey, never> | undefined;
482
+ }[], (string | number)[], never> | undefined;
339
483
  } & {
340
- queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, {
341
- contractAddress: string;
342
- chainId: number;
343
- name: string;
344
- symbol: string;
345
- decimals: number;
346
- imageUrl: string;
347
- exchangeRate: number;
348
- defaultChainCurrency: boolean;
349
- nativeCurrency: boolean;
350
- createdAt: string;
351
- updatedAt: string;
352
- deletedAt?: string;
353
- }[]>;
484
+ queryKey: (string | number)[] & {
485
+ [dataTagSymbol]: {
486
+ contractAddress: string;
487
+ chainId: number;
488
+ name: string;
489
+ symbol: string;
490
+ decimals: number;
491
+ imageUrl: string;
492
+ exchangeRate: number;
493
+ defaultChainCurrency: boolean;
494
+ nativeCurrency: boolean;
495
+ createdAt: string;
496
+ updatedAt: string;
497
+ deletedAt?: string;
498
+ }[];
499
+ [dataTagErrorSymbol]: Error;
500
+ };
354
501
  };
355
502
  declare const useCurrencies: (args: UseCurrenciesArgs) => _tanstack_react_query.UseQueryResult<Currency[], Error>;
356
503
 
@@ -383,10 +530,13 @@ declare const UseCurrencyArgsSchema: z.ZodObject<{
383
530
  }>;
384
531
  type UseCurrencyArgs = z.input<typeof UseCurrencyArgsSchema>;
385
532
  type UseCurrencyReturn = Currency | undefined;
386
- declare const currencyOptions: (args: UseCurrencyArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Currency | undefined, Error, Currency | undefined, _tanstack_react_query.QueryKey>, "queryFn"> & {
387
- queryFn?: _tanstack_react_query.QueryFunction<Currency | undefined, _tanstack_react_query.QueryKey, never> | undefined;
533
+ declare const currencyOptions: (args: UseCurrencyArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Currency | undefined, Error, Currency | undefined, (string | number)[]>, "queryFn"> & {
534
+ queryFn?: _tanstack_react_query.QueryFunction<Currency | undefined, (string | number)[], never> | undefined;
388
535
  } & {
389
- queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, Currency | undefined>;
536
+ queryKey: (string | number)[] & {
537
+ [dataTagSymbol]: Currency | undefined;
538
+ [dataTagErrorSymbol]: Error;
539
+ };
390
540
  };
391
541
  declare const useCurrency: (args: UseCurrencyArgs) => _tanstack_react_query.UseQueryResult<Currency | undefined, Error>;
392
542
 
@@ -416,10 +566,31 @@ declare const UseFiltersSchema: z.ZodObject<{
416
566
  type UseFiltersArgs = z.infer<typeof UseFiltersSchema>;
417
567
  type UseFilterReturn = Awaited<ReturnType<typeof fetchFilters>>;
418
568
  declare const fetchFilters: (args: UseFiltersArgs, config: SdkConfig) => Promise<_0xsequence_metadata.PropertyFilter[]>;
419
- declare const filtersOptions: (args: UseFiltersArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<_0xsequence_metadata.PropertyFilter[], Error, _0xsequence_metadata.PropertyFilter[], _tanstack_react_query.QueryKey>, "queryFn"> & {
420
- queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_metadata.PropertyFilter[], _tanstack_react_query.QueryKey, never> | undefined;
569
+ 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 | {
570
+ chainId: string;
571
+ collectionAddress: `0x${string}`;
572
+ query?: {
573
+ enabled?: boolean | undefined;
574
+ } | undefined;
575
+ })[]>, "queryFn"> & {
576
+ queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_metadata.PropertyFilter[], ("filter" | "collectable" | SdkConfig | {
577
+ chainId: string;
578
+ collectionAddress: `0x${string}`;
579
+ query?: {
580
+ enabled?: boolean | undefined;
581
+ } | undefined;
582
+ })[], never> | undefined;
421
583
  } & {
422
- queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, _0xsequence_metadata.PropertyFilter[]>;
584
+ queryKey: ("filter" | "collectable" | SdkConfig | {
585
+ chainId: string;
586
+ collectionAddress: `0x${string}`;
587
+ query?: {
588
+ enabled?: boolean | undefined;
589
+ } | undefined;
590
+ })[] & {
591
+ [dataTagSymbol]: _0xsequence_metadata.PropertyFilter[];
592
+ [dataTagErrorSymbol]: Error;
593
+ };
423
594
  };
424
595
  declare const useFilters: (args: UseFiltersArgs) => _tanstack_react_query.UseQueryResult<_0xsequence_metadata.PropertyFilter[], Error>;
425
596
 
@@ -449,10 +620,31 @@ declare const UseFloorOrderSchema: z.ZodObject<{
449
620
  type UseFloorOrderArgs = z.infer<typeof UseFloorOrderSchema>;
450
621
  type UseFloorOrderReturn = Awaited<ReturnType<typeof fetchFloorOrder>>;
451
622
  declare const fetchFloorOrder: (args: UseFloorOrderArgs, config: SdkConfig) => Promise<CollectibleOrder>;
452
- declare const floorOrderOptions: (args: UseFloorOrderArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<CollectibleOrder, Error, CollectibleOrder, _tanstack_react_query.QueryKey>, "queryFn"> & {
453
- queryFn?: _tanstack_react_query.QueryFunction<CollectibleOrder, _tanstack_react_query.QueryKey, never> | undefined;
623
+ declare const floorOrderOptions: (args: UseFloorOrderArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<CollectibleOrder, Error, CollectibleOrder, ("collectable" | "floorOrders" | SdkConfig | {
624
+ chainId: string;
625
+ collectionAddress: `0x${string}`;
626
+ query?: {
627
+ enabled?: boolean | undefined;
628
+ } | undefined;
629
+ })[]>, "queryFn"> & {
630
+ queryFn?: _tanstack_react_query.QueryFunction<CollectibleOrder, ("collectable" | "floorOrders" | SdkConfig | {
631
+ chainId: string;
632
+ collectionAddress: `0x${string}`;
633
+ query?: {
634
+ enabled?: boolean | undefined;
635
+ } | undefined;
636
+ })[], never> | undefined;
454
637
  } & {
455
- queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, CollectibleOrder>;
638
+ queryKey: ("collectable" | "floorOrders" | SdkConfig | {
639
+ chainId: string;
640
+ collectionAddress: `0x${string}`;
641
+ query?: {
642
+ enabled?: boolean | undefined;
643
+ } | undefined;
644
+ })[] & {
645
+ [dataTagSymbol]: CollectibleOrder;
646
+ [dataTagErrorSymbol]: Error;
647
+ };
456
648
  };
457
649
  declare const useFloorOrder: (args: UseFloorOrderArgs) => _tanstack_react_query.UseQueryResult<CollectibleOrder, Error>;
458
650
 
@@ -510,10 +702,49 @@ declare const UseHighestOfferArgsSchema: z.ZodObject<z.objectUtil.extendShape<Om
510
702
  type UseHighestOfferArgs = z.infer<typeof UseHighestOfferArgsSchema>;
511
703
  type UseHighestOfferReturn = Awaited<ReturnType<typeof fetchHighestOffer>>;
512
704
  declare const fetchHighestOffer: (args: UseHighestOfferArgs, config: SdkConfig) => Promise<GetCollectibleHighestOfferReturn>;
513
- declare const highestOfferOptions: (args: UseHighestOfferArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetCollectibleHighestOfferReturn, Error, GetCollectibleHighestOfferReturn, _tanstack_react_query.QueryKey>, "queryFn"> & {
514
- queryFn?: _tanstack_react_query.QueryFunction<GetCollectibleHighestOfferReturn, _tanstack_react_query.QueryKey, never> | undefined;
705
+ declare const highestOfferOptions: (args: UseHighestOfferArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetCollectibleHighestOfferReturn, Error, GetCollectibleHighestOfferReturn, ("collectable" | "details" | "highestOffers" | SdkConfig | {
706
+ chainId: string;
707
+ collectionAddress: `0x${string}`;
708
+ tokenId: string;
709
+ filter?: {
710
+ currencies?: string[] | undefined;
711
+ marketplace?: MarketplaceKind[] | undefined;
712
+ createdBy?: string[] | undefined;
713
+ } | undefined;
714
+ query?: {
715
+ enabled?: boolean | undefined;
716
+ } | undefined;
717
+ })[]>, "queryFn"> & {
718
+ queryFn?: _tanstack_react_query.QueryFunction<GetCollectibleHighestOfferReturn, ("collectable" | "details" | "highestOffers" | SdkConfig | {
719
+ chainId: string;
720
+ collectionAddress: `0x${string}`;
721
+ tokenId: string;
722
+ filter?: {
723
+ currencies?: string[] | undefined;
724
+ marketplace?: MarketplaceKind[] | undefined;
725
+ createdBy?: string[] | undefined;
726
+ } | undefined;
727
+ query?: {
728
+ enabled?: boolean | undefined;
729
+ } | undefined;
730
+ })[], never> | undefined;
515
731
  } & {
516
- queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, GetCollectibleHighestOfferReturn>;
732
+ queryKey: ("collectable" | "details" | "highestOffers" | SdkConfig | {
733
+ chainId: string;
734
+ collectionAddress: `0x${string}`;
735
+ tokenId: string;
736
+ filter?: {
737
+ currencies?: string[] | undefined;
738
+ marketplace?: MarketplaceKind[] | undefined;
739
+ createdBy?: string[] | undefined;
740
+ } | undefined;
741
+ query?: {
742
+ enabled?: boolean | undefined;
743
+ } | undefined;
744
+ })[] & {
745
+ [dataTagSymbol]: GetCollectibleHighestOfferReturn;
746
+ [dataTagErrorSymbol]: Error;
747
+ };
517
748
  };
518
749
  declare const useHighestOffer: (args: UseHighestOfferArgs) => _tanstack_react_query.UseQueryResult<GetCollectibleHighestOfferReturn, Error>;
519
750
 
@@ -712,7 +943,7 @@ declare const listBalancesOptions: (args: UseListBalancesArgs, config: SdkConfig
712
943
  includeCollectionTokens?: boolean | undefined;
713
944
  })[], any> | undefined;
714
945
  } & {
715
- queryKey: _tanstack_react_query.DataTag<("balances" | "tokenBalances" | SdkConfig | {
946
+ queryKey: ("balances" | "tokenBalances" | SdkConfig | {
716
947
  chainId: string | number;
717
948
  page?: {
718
949
  sort?: {
@@ -739,7 +970,10 @@ declare const listBalancesOptions: (args: UseListBalancesArgs, config: SdkConfig
739
970
  includeContracts?: string[] | undefined;
740
971
  } | undefined;
741
972
  includeCollectionTokens?: boolean | undefined;
742
- })[], _tanstack_react_query.InfiniteData<_0xsequence_indexer.GetTokenBalancesReturn, unknown>>;
973
+ })[] & {
974
+ [dataTagSymbol]: _tanstack_react_query.InfiniteData<_0xsequence_indexer.GetTokenBalancesReturn, unknown>;
975
+ [dataTagErrorSymbol]: Error;
976
+ };
743
977
  };
744
978
  declare const useListBalances: (args: UseListBalancesArgs) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<_0xsequence_indexer.GetTokenBalancesReturn, unknown>, Error>;
745
979
 
@@ -986,7 +1220,7 @@ declare const listCollectiblesOptions: (args: UseListCollectiblesArgs, config: S
986
1220
  pageSize: number;
987
1221
  }> | undefined;
988
1222
  } & {
989
- queryKey: _tanstack_react_query.DataTag<("collectable" | "list" | {
1223
+ queryKey: ("collectable" | "list" | {
990
1224
  chainId: string;
991
1225
  collectionAddress: `0x${string}`;
992
1226
  side: OrderSide;
@@ -1018,7 +1252,10 @@ declare const listCollectiblesOptions: (args: UseListCollectiblesArgs, config: S
1018
1252
  query?: {
1019
1253
  enabled?: boolean | undefined;
1020
1254
  } | undefined;
1021
- })[], _tanstack_react_query.InfiniteData<ListCollectiblesReturn, unknown>>;
1255
+ })[] & {
1256
+ [dataTagSymbol]: _tanstack_react_query.InfiniteData<ListCollectiblesReturn, unknown>;
1257
+ [dataTagErrorSymbol]: Error;
1258
+ };
1022
1259
  };
1023
1260
  declare const useListCollectibles: (args: UseListCollectiblesArgs) => _tanstack_react_query.UseInfiniteQueryResult<_tanstack_react_query.InfiniteData<ListCollectiblesReturn, unknown>, Error>;
1024
1261
 
@@ -1113,10 +1350,67 @@ declare const UseListOffersForCollectibleArgsSchema: z.ZodObject<Omit<z.objectUt
1113
1350
  type UseListOffersForCollectibleArgs = z.infer<typeof UseListOffersForCollectibleArgsSchema>;
1114
1351
  type UseListOffersForCollectibleReturn = Awaited<ReturnType<typeof fetchListOffersForCollectible>>;
1115
1352
  declare const fetchListOffersForCollectible: (config: SdkConfig, args: UseListOffersForCollectibleArgs) => Promise<ListCollectibleOffersReturn>;
1116
- declare const listOffersForCollectibleOptions: (args: UseListOffersForCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ListCollectibleOffersReturn, Error, ListCollectibleOffersReturn, _tanstack_react_query.QueryKey>, "queryFn"> & {
1117
- queryFn?: _tanstack_react_query.QueryFunction<ListCollectibleOffersReturn, _tanstack_react_query.QueryKey, never> | undefined;
1353
+ declare const listOffersForCollectibleOptions: (args: UseListOffersForCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ListCollectibleOffersReturn, Error, ListCollectibleOffersReturn, ("offers" | "collectable" | SdkConfig | {
1354
+ chainId: string;
1355
+ collectionAddress: string;
1356
+ collectibleId: string;
1357
+ filter?: {
1358
+ currencies?: string[] | undefined;
1359
+ marketplace?: MarketplaceKind[] | undefined;
1360
+ createdBy?: string[] | undefined;
1361
+ } | undefined;
1362
+ page?: {
1363
+ page: number;
1364
+ pageSize: number;
1365
+ sort?: {
1366
+ order: SortOrder$1;
1367
+ column: string;
1368
+ }[] | undefined;
1369
+ more?: boolean | undefined;
1370
+ } | undefined;
1371
+ })[]>, "queryFn"> & {
1372
+ queryFn?: _tanstack_react_query.QueryFunction<ListCollectibleOffersReturn, ("offers" | "collectable" | SdkConfig | {
1373
+ chainId: string;
1374
+ collectionAddress: string;
1375
+ collectibleId: string;
1376
+ filter?: {
1377
+ currencies?: string[] | undefined;
1378
+ marketplace?: MarketplaceKind[] | undefined;
1379
+ createdBy?: string[] | undefined;
1380
+ } | undefined;
1381
+ page?: {
1382
+ page: number;
1383
+ pageSize: number;
1384
+ sort?: {
1385
+ order: SortOrder$1;
1386
+ column: string;
1387
+ }[] | undefined;
1388
+ more?: boolean | undefined;
1389
+ } | undefined;
1390
+ })[], never> | undefined;
1118
1391
  } & {
1119
- queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, ListCollectibleOffersReturn>;
1392
+ queryKey: ("offers" | "collectable" | SdkConfig | {
1393
+ chainId: string;
1394
+ collectionAddress: string;
1395
+ collectibleId: string;
1396
+ filter?: {
1397
+ currencies?: string[] | undefined;
1398
+ marketplace?: MarketplaceKind[] | undefined;
1399
+ createdBy?: string[] | undefined;
1400
+ } | undefined;
1401
+ page?: {
1402
+ page: number;
1403
+ pageSize: number;
1404
+ sort?: {
1405
+ order: SortOrder$1;
1406
+ column: string;
1407
+ }[] | undefined;
1408
+ more?: boolean | undefined;
1409
+ } | undefined;
1410
+ })[] & {
1411
+ [dataTagSymbol]: ListCollectibleOffersReturn;
1412
+ [dataTagErrorSymbol]: Error;
1413
+ };
1120
1414
  };
1121
1415
  declare const useListOffersForCollectible: (args: UseListOffersForCollectibleArgs) => _tanstack_react_query.UseQueryResult<ListCollectibleOffersReturn, Error>;
1122
1416
 
@@ -1175,10 +1469,49 @@ declare const UseCountOffersForCollectibleArgsSchema: z.ZodObject<z.objectUtil.e
1175
1469
  type UseCountOffersForCollectibleArgs = z.infer<typeof UseCountOffersForCollectibleArgsSchema>;
1176
1470
  type UseCountOffersForCollectibleReturn = Awaited<ReturnType<typeof fetchCountOffersForCollectible>>;
1177
1471
  declare const fetchCountOffersForCollectible: (args: UseCountOffersForCollectibleArgs, config: SdkConfig) => Promise<GetCountOfOffersForCollectibleReturn>;
1178
- declare const countOffersForCollectibleOptions: (args: UseCountOffersForCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetCountOfOffersForCollectibleReturn, Error, GetCountOfOffersForCollectibleReturn, _tanstack_react_query.QueryKey>, "queryFn"> & {
1179
- queryFn?: _tanstack_react_query.QueryFunction<GetCountOfOffersForCollectibleReturn, _tanstack_react_query.QueryKey, never> | undefined;
1472
+ declare const countOffersForCollectibleOptions: (args: UseCountOffersForCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetCountOfOffersForCollectibleReturn, Error, GetCountOfOffersForCollectibleReturn, ("collectable" | "offersCount" | SdkConfig | {
1473
+ chainId: string;
1474
+ collectionAddress: `0x${string}`;
1475
+ collectibleId: string;
1476
+ filter?: {
1477
+ currencies?: string[] | undefined;
1478
+ marketplace?: MarketplaceKind[] | undefined;
1479
+ createdBy?: string[] | undefined;
1480
+ } | undefined;
1481
+ query?: {
1482
+ enabled?: boolean | undefined;
1483
+ } | undefined;
1484
+ })[]>, "queryFn"> & {
1485
+ queryFn?: _tanstack_react_query.QueryFunction<GetCountOfOffersForCollectibleReturn, ("collectable" | "offersCount" | SdkConfig | {
1486
+ chainId: string;
1487
+ collectionAddress: `0x${string}`;
1488
+ collectibleId: string;
1489
+ filter?: {
1490
+ currencies?: string[] | undefined;
1491
+ marketplace?: MarketplaceKind[] | undefined;
1492
+ createdBy?: string[] | undefined;
1493
+ } | undefined;
1494
+ query?: {
1495
+ enabled?: boolean | undefined;
1496
+ } | undefined;
1497
+ })[], never> | undefined;
1180
1498
  } & {
1181
- queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, GetCountOfOffersForCollectibleReturn>;
1499
+ queryKey: ("collectable" | "offersCount" | SdkConfig | {
1500
+ chainId: string;
1501
+ collectionAddress: `0x${string}`;
1502
+ collectibleId: string;
1503
+ filter?: {
1504
+ currencies?: string[] | undefined;
1505
+ marketplace?: MarketplaceKind[] | undefined;
1506
+ createdBy?: string[] | undefined;
1507
+ } | undefined;
1508
+ query?: {
1509
+ enabled?: boolean | undefined;
1510
+ } | undefined;
1511
+ })[] & {
1512
+ [dataTagSymbol]: GetCountOfOffersForCollectibleReturn;
1513
+ [dataTagErrorSymbol]: Error;
1514
+ };
1182
1515
  };
1183
1516
  declare const useCountOffersForCollectible: (args: UseCountOffersForCollectibleArgs) => _tanstack_react_query.UseQueryResult<GetCountOfOffersForCollectibleReturn, Error>;
1184
1517
 
@@ -1273,10 +1606,67 @@ declare const UseListListingsForCollectibleArgsSchema: z.ZodObject<Omit<z.object
1273
1606
  type UseListListingsForCollectibleArgs = z.infer<typeof UseListListingsForCollectibleArgsSchema>;
1274
1607
  type UseListListingsForCollectibleReturn = Awaited<ReturnType<typeof fetchListListingsForCollectible>>;
1275
1608
  declare const fetchListListingsForCollectible: (config: SdkConfig, args: UseListListingsForCollectibleArgs) => Promise<ListCollectibleListingsReturn>;
1276
- declare const listListingsForCollectibleOptions: (args: UseListListingsForCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ListCollectibleListingsReturn, Error, ListCollectibleListingsReturn, _tanstack_react_query.QueryKey>, "queryFn"> & {
1277
- queryFn?: _tanstack_react_query.QueryFunction<ListCollectibleListingsReturn, _tanstack_react_query.QueryKey, never> | undefined;
1609
+ declare const listListingsForCollectibleOptions: (args: UseListListingsForCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ListCollectibleListingsReturn, Error, ListCollectibleListingsReturn, ("listings" | "collectable" | SdkConfig | {
1610
+ chainId: string;
1611
+ collectionAddress: string;
1612
+ collectibleId: string;
1613
+ filter?: {
1614
+ currencies?: string[] | undefined;
1615
+ marketplace?: MarketplaceKind[] | undefined;
1616
+ createdBy?: string[] | undefined;
1617
+ } | undefined;
1618
+ page?: {
1619
+ page: number;
1620
+ pageSize: number;
1621
+ sort?: {
1622
+ order: SortOrder$1;
1623
+ column: string;
1624
+ }[] | undefined;
1625
+ more?: boolean | undefined;
1626
+ } | undefined;
1627
+ })[]>, "queryFn"> & {
1628
+ queryFn?: _tanstack_react_query.QueryFunction<ListCollectibleListingsReturn, ("listings" | "collectable" | SdkConfig | {
1629
+ chainId: string;
1630
+ collectionAddress: string;
1631
+ collectibleId: string;
1632
+ filter?: {
1633
+ currencies?: string[] | undefined;
1634
+ marketplace?: MarketplaceKind[] | undefined;
1635
+ createdBy?: string[] | undefined;
1636
+ } | undefined;
1637
+ page?: {
1638
+ page: number;
1639
+ pageSize: number;
1640
+ sort?: {
1641
+ order: SortOrder$1;
1642
+ column: string;
1643
+ }[] | undefined;
1644
+ more?: boolean | undefined;
1645
+ } | undefined;
1646
+ })[], never> | undefined;
1278
1647
  } & {
1279
- queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, ListCollectibleListingsReturn>;
1648
+ queryKey: ("listings" | "collectable" | SdkConfig | {
1649
+ chainId: string;
1650
+ collectionAddress: string;
1651
+ collectibleId: string;
1652
+ filter?: {
1653
+ currencies?: string[] | undefined;
1654
+ marketplace?: MarketplaceKind[] | undefined;
1655
+ createdBy?: string[] | undefined;
1656
+ } | undefined;
1657
+ page?: {
1658
+ page: number;
1659
+ pageSize: number;
1660
+ sort?: {
1661
+ order: SortOrder$1;
1662
+ column: string;
1663
+ }[] | undefined;
1664
+ more?: boolean | undefined;
1665
+ } | undefined;
1666
+ })[] & {
1667
+ [dataTagSymbol]: ListCollectibleListingsReturn;
1668
+ [dataTagErrorSymbol]: Error;
1669
+ };
1280
1670
  };
1281
1671
  declare const useListListingsForCollectible: (args: UseListListingsForCollectibleArgs) => _tanstack_react_query.UseQueryResult<ListCollectibleListingsReturn, Error>;
1282
1672
 
@@ -1335,10 +1725,49 @@ declare const UseCountListingsForCollectibleArgsSchema: z.ZodObject<z.objectUtil
1335
1725
  type UseCountListingsForCollectibleArgs = z.infer<typeof UseCountListingsForCollectibleArgsSchema>;
1336
1726
  type UseCountListingsForCollectibleReturn = Awaited<ReturnType<typeof fetchCountListingsForCollectible>>;
1337
1727
  declare const fetchCountListingsForCollectible: (args: UseCountListingsForCollectibleArgs, config: SdkConfig) => Promise<GetCountOfListingsForCollectibleReturn>;
1338
- declare const countListingsForCollectibleOptions: (args: UseCountListingsForCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetCountOfListingsForCollectibleReturn, Error, GetCountOfListingsForCollectibleReturn, _tanstack_react_query.QueryKey>, "queryFn"> & {
1339
- queryFn?: _tanstack_react_query.QueryFunction<GetCountOfListingsForCollectibleReturn, _tanstack_react_query.QueryKey, never> | undefined;
1728
+ declare const countListingsForCollectibleOptions: (args: UseCountListingsForCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetCountOfListingsForCollectibleReturn, Error, GetCountOfListingsForCollectibleReturn, ("collectable" | "listingsCount" | SdkConfig | {
1729
+ chainId: string;
1730
+ collectionAddress: `0x${string}`;
1731
+ collectibleId: string;
1732
+ filter?: {
1733
+ currencies?: string[] | undefined;
1734
+ marketplace?: MarketplaceKind[] | undefined;
1735
+ createdBy?: string[] | undefined;
1736
+ } | undefined;
1737
+ query?: {
1738
+ enabled?: boolean | undefined;
1739
+ } | undefined;
1740
+ })[]>, "queryFn"> & {
1741
+ queryFn?: _tanstack_react_query.QueryFunction<GetCountOfListingsForCollectibleReturn, ("collectable" | "listingsCount" | SdkConfig | {
1742
+ chainId: string;
1743
+ collectionAddress: `0x${string}`;
1744
+ collectibleId: string;
1745
+ filter?: {
1746
+ currencies?: string[] | undefined;
1747
+ marketplace?: MarketplaceKind[] | undefined;
1748
+ createdBy?: string[] | undefined;
1749
+ } | undefined;
1750
+ query?: {
1751
+ enabled?: boolean | undefined;
1752
+ } | undefined;
1753
+ })[], never> | undefined;
1340
1754
  } & {
1341
- queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, GetCountOfListingsForCollectibleReturn>;
1755
+ queryKey: ("collectable" | "listingsCount" | SdkConfig | {
1756
+ chainId: string;
1757
+ collectionAddress: `0x${string}`;
1758
+ collectibleId: string;
1759
+ filter?: {
1760
+ currencies?: string[] | undefined;
1761
+ marketplace?: MarketplaceKind[] | undefined;
1762
+ createdBy?: string[] | undefined;
1763
+ } | undefined;
1764
+ query?: {
1765
+ enabled?: boolean | undefined;
1766
+ } | undefined;
1767
+ })[] & {
1768
+ [dataTagSymbol]: GetCountOfListingsForCollectibleReturn;
1769
+ [dataTagErrorSymbol]: Error;
1770
+ };
1342
1771
  };
1343
1772
  declare const useCountListingsForCollectible: (args: UseCountListingsForCollectibleArgs) => _tanstack_react_query.UseQueryResult<GetCountOfListingsForCollectibleReturn, Error>;
1344
1773
 
@@ -1396,17 +1825,59 @@ declare const UseLowestListingSchema: z.ZodObject<z.objectUtil.extendShape<Omit<
1396
1825
  type UseLowestListingArgs = z.infer<typeof UseLowestListingSchema>;
1397
1826
  type UseLowestListingReturn = Awaited<ReturnType<typeof fetchLowestListing>>;
1398
1827
  declare const fetchLowestListing: (args: UseLowestListingArgs, config: SdkConfig) => Promise<GetCollectibleLowestListingReturn>;
1399
- declare const lowestListingOptions: (args: UseLowestListingArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetCollectibleLowestListingReturn, Error, GetCollectibleLowestListingReturn, _tanstack_react_query.QueryKey>, "queryFn"> & {
1400
- queryFn?: _tanstack_react_query.QueryFunction<GetCollectibleLowestListingReturn, _tanstack_react_query.QueryKey, never> | undefined;
1828
+ declare const lowestListingOptions: (args: UseLowestListingArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetCollectibleLowestListingReturn, Error, GetCollectibleLowestListingReturn, ("collectable" | "details" | "lowestListings" | SdkConfig | {
1829
+ chainId: string;
1830
+ collectionAddress: `0x${string}`;
1831
+ tokenId: string;
1832
+ filters?: {
1833
+ currencies?: string[] | undefined;
1834
+ marketplace?: MarketplaceKind[] | undefined;
1835
+ createdBy?: string[] | undefined;
1836
+ } | undefined;
1837
+ query?: {
1838
+ enabled?: boolean | undefined;
1839
+ } | undefined;
1840
+ })[]>, "queryFn"> & {
1841
+ queryFn?: _tanstack_react_query.QueryFunction<GetCollectibleLowestListingReturn, ("collectable" | "details" | "lowestListings" | SdkConfig | {
1842
+ chainId: string;
1843
+ collectionAddress: `0x${string}`;
1844
+ tokenId: string;
1845
+ filters?: {
1846
+ currencies?: string[] | undefined;
1847
+ marketplace?: MarketplaceKind[] | undefined;
1848
+ createdBy?: string[] | undefined;
1849
+ } | undefined;
1850
+ query?: {
1851
+ enabled?: boolean | undefined;
1852
+ } | undefined;
1853
+ })[], never> | undefined;
1401
1854
  } & {
1402
- queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, GetCollectibleLowestListingReturn>;
1855
+ queryKey: ("collectable" | "details" | "lowestListings" | SdkConfig | {
1856
+ chainId: string;
1857
+ collectionAddress: `0x${string}`;
1858
+ tokenId: string;
1859
+ filters?: {
1860
+ currencies?: string[] | undefined;
1861
+ marketplace?: MarketplaceKind[] | undefined;
1862
+ createdBy?: string[] | undefined;
1863
+ } | undefined;
1864
+ query?: {
1865
+ enabled?: boolean | undefined;
1866
+ } | undefined;
1867
+ })[] & {
1868
+ [dataTagSymbol]: GetCollectibleLowestListingReturn;
1869
+ [dataTagErrorSymbol]: Error;
1870
+ };
1403
1871
  };
1404
1872
  declare const useLowestListing: (args: UseLowestListingArgs) => _tanstack_react_query.UseQueryResult<GetCollectibleLowestListingReturn, Error>;
1405
1873
 
1406
- declare const marketplaceConfigOptions: (config: Pick<SdkConfig, "projectId"> | SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<MarketplaceConfig, Error, MarketplaceConfig, _tanstack_react_query.QueryKey>, "queryFn"> & {
1407
- queryFn?: _tanstack_react_query.QueryFunction<MarketplaceConfig, _tanstack_react_query.QueryKey, never> | undefined;
1874
+ declare const marketplaceConfigOptions: (config: Pick<SdkConfig, "projectId"> | SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<MarketplaceConfig, Error, MarketplaceConfig, string[]>, "queryFn"> & {
1875
+ queryFn?: _tanstack_react_query.QueryFunction<MarketplaceConfig, string[], never> | undefined;
1408
1876
  } & {
1409
- queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, MarketplaceConfig>;
1877
+ queryKey: string[] & {
1878
+ [dataTagSymbol]: MarketplaceConfig;
1879
+ [dataTagErrorSymbol]: Error;
1880
+ };
1410
1881
  };
1411
1882
 
1412
1883
  declare const useMarketplaceConfig: () => _tanstack_react_query.UseQueryResult<MarketplaceConfig, Error>;
@@ -1438,10 +1909,34 @@ declare const UseRoyaletyPercentageSchema: z.ZodObject<{
1438
1909
  } | undefined;
1439
1910
  }>;
1440
1911
  type UseRoyaletyPercentageArgs = z.infer<typeof UseRoyaletyPercentageSchema>;
1441
- declare const royaletyPercentageOptions: (args: UseRoyaletyPercentageArgs) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<bigint, Error, bigint, _tanstack_react_query.QueryKey>, "queryFn"> & {
1442
- queryFn?: _tanstack_react_query.QueryFunction<bigint, _tanstack_react_query.QueryKey, never> | undefined;
1912
+ declare const royaletyPercentageOptions: (args: UseRoyaletyPercentageArgs) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<bigint, Error, bigint, ("collectable" | "royaltyPercentage" | {
1913
+ chainId: string;
1914
+ collectionAddress: `0x${string}`;
1915
+ collectibleId: string;
1916
+ query?: {
1917
+ enabled?: boolean | undefined;
1918
+ } | undefined;
1919
+ })[]>, "queryFn"> & {
1920
+ queryFn?: _tanstack_react_query.QueryFunction<bigint, ("collectable" | "royaltyPercentage" | {
1921
+ chainId: string;
1922
+ collectionAddress: `0x${string}`;
1923
+ collectibleId: string;
1924
+ query?: {
1925
+ enabled?: boolean | undefined;
1926
+ } | undefined;
1927
+ })[], never> | undefined;
1443
1928
  } & {
1444
- queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, bigint>;
1929
+ queryKey: ("collectable" | "royaltyPercentage" | {
1930
+ chainId: string;
1931
+ collectionAddress: `0x${string}`;
1932
+ collectibleId: string;
1933
+ query?: {
1934
+ enabled?: boolean | undefined;
1935
+ } | undefined;
1936
+ })[] & {
1937
+ [dataTagSymbol]: bigint;
1938
+ [dataTagErrorSymbol]: Error;
1939
+ };
1445
1940
  };
1446
1941
  declare const useRoyaltyPercentage: (args: UseRoyaletyPercentageArgs) => _tanstack_react_query.UseQueryResult<bigint, Error>;
1447
1942
 
@@ -2140,10 +2635,49 @@ declare const fetchCheckoutOptions: (args: UseCheckoutOptionsArgs & {
2140
2635
  }, config: SdkConfig) => Promise<CheckoutOptionsMarketplaceReturn>;
2141
2636
  declare const checkoutOptionsOptions: (args: UseCheckoutOptionsArgs & {
2142
2637
  walletAddress: Hex;
2143
- }, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<CheckoutOptionsMarketplaceReturn, Error, CheckoutOptionsMarketplaceReturn, _tanstack_react_query.QueryKey>, "queryFn"> & {
2144
- queryFn?: _tanstack_react_query.QueryFunction<CheckoutOptionsMarketplaceReturn, _tanstack_react_query.QueryKey, never> | undefined;
2638
+ }, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<CheckoutOptionsMarketplaceReturn, Error, CheckoutOptionsMarketplaceReturn, (string | ({
2639
+ orders: {
2640
+ orderId: string;
2641
+ marketplace: MarketplaceKind;
2642
+ collectionAddress: `0x${string}`;
2643
+ }[];
2644
+ chainId: string;
2645
+ query?: {
2646
+ enabled?: boolean | undefined;
2647
+ } | undefined;
2648
+ } & {
2649
+ walletAddress: Hex;
2650
+ }))[]>, "queryFn"> & {
2651
+ queryFn?: _tanstack_react_query.QueryFunction<CheckoutOptionsMarketplaceReturn, (string | ({
2652
+ orders: {
2653
+ orderId: string;
2654
+ marketplace: MarketplaceKind;
2655
+ collectionAddress: `0x${string}`;
2656
+ }[];
2657
+ chainId: string;
2658
+ query?: {
2659
+ enabled?: boolean | undefined;
2660
+ } | undefined;
2661
+ } & {
2662
+ walletAddress: Hex;
2663
+ }))[], never> | undefined;
2145
2664
  } & {
2146
- queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, CheckoutOptionsMarketplaceReturn>;
2665
+ queryKey: (string | ({
2666
+ orders: {
2667
+ orderId: string;
2668
+ marketplace: MarketplaceKind;
2669
+ collectionAddress: `0x${string}`;
2670
+ }[];
2671
+ chainId: string;
2672
+ query?: {
2673
+ enabled?: boolean | undefined;
2674
+ } | undefined;
2675
+ } & {
2676
+ walletAddress: Hex;
2677
+ }))[] & {
2678
+ [dataTagSymbol]: CheckoutOptionsMarketplaceReturn;
2679
+ [dataTagErrorSymbol]: Error;
2680
+ };
2147
2681
  };
2148
2682
  declare const useCheckoutOptions: (args: UseCheckoutOptionsArgs) => _tanstack_react_query.UseQueryResult<CheckoutOptionsMarketplaceReturn, Error>;
2149
2683
 
@@ -2171,10 +2705,13 @@ type FetchListCollectionsArgs = {
2171
2705
  query?: z.infer<typeof QueryArgSchema>;
2172
2706
  };
2173
2707
  declare const fetchListCollections: ({ marketplaceConfig }: FetchListCollectionsArgs, config: SdkConfig) => Promise<_0xsequence_metadata.ContractInfo[]>;
2174
- declare const listCollectionsOptions: (args: FetchListCollectionsArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<_0xsequence_metadata.ContractInfo[], Error, _0xsequence_metadata.ContractInfo[], _tanstack_react_query.QueryKey>, "queryFn"> & {
2175
- queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_metadata.ContractInfo[], _tanstack_react_query.QueryKey, never> | undefined;
2708
+ 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"> & {
2709
+ queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_metadata.ContractInfo[], ("collections" | "list")[], never> | undefined;
2176
2710
  } & {
2177
- queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, _0xsequence_metadata.ContractInfo[]>;
2711
+ queryKey: ("collections" | "list")[] & {
2712
+ [dataTagSymbol]: _0xsequence_metadata.ContractInfo[];
2713
+ [dataTagErrorSymbol]: Error;
2714
+ };
2178
2715
  };
2179
2716
  declare const useListCollections: (args?: UseListCollectionsArgs) => _tanstack_react_query.UseQueryResult<_0xsequence_metadata.ContractInfo[], Error>;
2180
2717
 
@@ -2236,10 +2773,58 @@ declare const fetchGenerateBuyTransaction: (args: UseGenerateBuyTransactionArgs
2236
2773
  }, config: SdkConfig) => Promise<Step[]>;
2237
2774
  declare const generateBuyTransactionOptions: (args: UseGenerateBuyTransactionArgs & {
2238
2775
  buyer: Hex;
2239
- }, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Step[], Error, Step[], _tanstack_react_query.QueryKey>, "queryFn"> & {
2240
- queryFn?: _tanstack_react_query.QueryFunction<Step[], _tanstack_react_query.QueryKey, never> | undefined;
2776
+ }, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Step[], Error, Step[], (string | ({
2777
+ marketplace: MarketplaceKind;
2778
+ chainId: string;
2779
+ collectionAddress: `0x${string}`;
2780
+ ordersData: {
2781
+ orderId: string;
2782
+ marketplace: string;
2783
+ quantity: string;
2784
+ }[];
2785
+ walletType?: WalletKind | undefined;
2786
+ query?: {
2787
+ enabled?: boolean | undefined;
2788
+ } | undefined;
2789
+ } & {
2790
+ buyer: Hex;
2791
+ }))[]>, "queryFn"> & {
2792
+ queryFn?: _tanstack_react_query.QueryFunction<Step[], (string | ({
2793
+ marketplace: MarketplaceKind;
2794
+ chainId: string;
2795
+ collectionAddress: `0x${string}`;
2796
+ ordersData: {
2797
+ orderId: string;
2798
+ marketplace: string;
2799
+ quantity: string;
2800
+ }[];
2801
+ walletType?: WalletKind | undefined;
2802
+ query?: {
2803
+ enabled?: boolean | undefined;
2804
+ } | undefined;
2805
+ } & {
2806
+ buyer: Hex;
2807
+ }))[], never> | undefined;
2241
2808
  } & {
2242
- queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, Step[]>;
2809
+ queryKey: (string | ({
2810
+ marketplace: MarketplaceKind;
2811
+ chainId: string;
2812
+ collectionAddress: `0x${string}`;
2813
+ ordersData: {
2814
+ orderId: string;
2815
+ marketplace: string;
2816
+ quantity: string;
2817
+ }[];
2818
+ walletType?: WalletKind | undefined;
2819
+ query?: {
2820
+ enabled?: boolean | undefined;
2821
+ } | undefined;
2822
+ } & {
2823
+ buyer: Hex;
2824
+ }))[] & {
2825
+ [dataTagSymbol]: Step[];
2826
+ [dataTagErrorSymbol]: Error;
2827
+ };
2243
2828
  };
2244
2829
  declare const useGenerateBuyTransaction: (args: UseGenerateBuyTransactionArgs) => _tanstack_react_query.UseQueryResult<Step[], Error>;
2245
2830
 
@@ -2431,8 +3016,10 @@ interface UseCancelOrderArgs extends Omit<UseTransactionMachineConfig, 'type' |
2431
3016
  onSuccess?: (hash: string) => void;
2432
3017
  onError?: (error: Error) => void;
2433
3018
  onTransactionSent?: (hash?: Hex) => void;
3019
+ onSwitchChainRefused: () => void;
3020
+ enabled: boolean;
2434
3021
  }
2435
- declare const useCancelOrder: ({ onSuccess, onError, onTransactionSent, ...config }: UseCancelOrderArgs) => {
3022
+ declare const useCancelOrder: ({ onSuccess, onError, onTransactionSent, onSwitchChainRefused, enabled, ...config }: UseCancelOrderArgs) => {
2436
3023
  cancel: (props: CancelInput) => Promise<void> | undefined;
2437
3024
  onError: ((error: Error) => void) | undefined;
2438
3025
  onSuccess: ((hash: string) => void) | undefined;
@@ -2445,8 +3032,10 @@ interface UseBuyOrderArgs extends Omit<UseTransactionMachineConfig, 'type' | 'or
2445
3032
  onSuccess?: (hash: Hash) => void;
2446
3033
  onError?: (error: UseBuyOrderError) => void;
2447
3034
  onTransactionSent?: (hash?: Hex) => void;
3035
+ onSwitchChainRefused: () => void;
3036
+ enabled: boolean;
2448
3037
  }
2449
- declare const useBuyCollectable: ({ onSuccess, onError, onTransactionSent, ...config }: UseBuyOrderArgs) => {
3038
+ declare const useBuyCollectable: ({ onSuccess, onError, onTransactionSent, onSwitchChainRefused, enabled, ...config }: UseBuyOrderArgs) => {
2450
3039
  buy: (props: BuyInput) => void;
2451
3040
  isLoading: boolean | undefined;
2452
3041
  error: TransactionError | null;