@0xsequence/marketplace-sdk 0.3.0 → 0.3.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 (166) hide show
  1. package/dist/chunk-22NLQ3AS.js +3078 -0
  2. package/dist/chunk-22NLQ3AS.js.map +1 -0
  3. package/dist/chunk-3OHM45R3.js +1294 -0
  4. package/dist/chunk-3OHM45R3.js.map +1 -0
  5. package/dist/{chunk-MQR6SHXZ.js → chunk-4YU2UPYH.js} +58 -103
  6. package/dist/chunk-4YU2UPYH.js.map +1 -0
  7. package/dist/chunk-7NJETFMF.js +21 -0
  8. package/dist/chunk-7NJETFMF.js.map +1 -0
  9. package/dist/{chunk-UYRQ5MJQ.js → chunk-FUM4OGOQ.js} +4 -4
  10. package/dist/chunk-FUM4OGOQ.js.map +1 -0
  11. package/dist/{chunk-7OO74L2K.js → chunk-GJAKQ5Q3.js} +40 -1
  12. package/dist/chunk-GJAKQ5Q3.js.map +1 -0
  13. package/dist/chunk-MCI3KOSQ.js +2 -0
  14. package/dist/{chunk-BJE7AG6V.js → chunk-O7UQGT43.js} +698 -23
  15. package/dist/chunk-O7UQGT43.js.map +1 -0
  16. package/dist/{chunk-CSN7YD5Q.js → chunk-Q57TEA3Z.js} +20 -2
  17. package/dist/chunk-Q57TEA3Z.js.map +1 -0
  18. package/dist/{chunk-VEX7FDL6.js → chunk-SBVLWSRZ.js} +2 -2
  19. package/dist/{chunk-VEX7FDL6.js.map → chunk-SBVLWSRZ.js.map} +1 -1
  20. package/dist/{chunk-6S4FYXP6.js → chunk-SPW24Y7I.js} +40 -1
  21. package/dist/chunk-SPW24Y7I.js.map +1 -0
  22. package/dist/chunk-UISBTKFF.js +1 -0
  23. package/dist/{chunk-OUWB3FHZ.js → chunk-WA433WAJ.js} +9 -33
  24. package/dist/chunk-WA433WAJ.js.map +1 -0
  25. package/dist/{chunk-O5JXKTWP.js → chunk-WFE6OCYF.js} +4 -4
  26. package/dist/chunk-WFE6OCYF.js.map +1 -0
  27. package/dist/chunk-XX4EVWBF.js +1292 -0
  28. package/dist/chunk-XX4EVWBF.js.map +1 -0
  29. package/dist/chunk-Y7YO5TLE.js +53 -0
  30. package/dist/chunk-Y7YO5TLE.js.map +1 -0
  31. package/dist/index.css +1 -50
  32. package/dist/index.d.ts +3 -5
  33. package/dist/index.js +158 -73
  34. package/dist/index.js.map +1 -1
  35. package/dist/react/hooks/index.css +82 -0
  36. package/dist/react/hooks/index.css.map +1 -0
  37. package/dist/react/hooks/index.d.ts +401 -462
  38. package/dist/react/hooks/index.js +26 -6
  39. package/dist/react/index.css +56 -91
  40. package/dist/react/index.css.map +1 -1
  41. package/dist/react/index.d.ts +2 -2
  42. package/dist/react/index.js +32 -13
  43. package/dist/react/ui/components/index.css +86 -121
  44. package/dist/react/ui/components/index.css.map +1 -1
  45. package/dist/react/ui/components/index.d.ts +10 -4
  46. package/dist/react/ui/components/index.js +12 -11
  47. package/dist/react/ui/icons/index.js +3 -2
  48. package/dist/react/ui/icons/index.js.map +1 -1
  49. package/dist/react/ui/index.css +56 -91
  50. package/dist/react/ui/index.css.map +1 -1
  51. package/dist/react/ui/index.d.ts +29 -31
  52. package/dist/react/ui/index.js +14 -11
  53. package/dist/react/ui/modals/_internal/components/actionModal/index.js +5 -16
  54. package/dist/react/ui/modals/_internal/components/actionModal/index.js.map +1 -1
  55. package/dist/react/ui/styles/index.d.ts +1 -1
  56. package/dist/styles/index.css +1 -50
  57. package/dist/styles/index.css.map +1 -1
  58. package/dist/styles/index.d.ts +1 -5
  59. package/dist/styles/index.js +8 -10
  60. package/dist/utils/abi/index.d.ts +2 -0
  61. package/dist/utils/abi/index.js +21 -0
  62. package/dist/utils/abi/marketplace/index.d.ts +805 -0
  63. package/dist/utils/abi/marketplace/index.js +12 -0
  64. package/dist/utils/abi/{abi/token → token}/index.js +1 -2
  65. package/dist/utils/index.d.ts +5 -5
  66. package/dist/utils/index.js +12 -14
  67. package/package.json +17 -15
  68. package/src/react/_internal/transaction-machine/execute-transaction.ts +592 -0
  69. package/src/react/_internal/transaction-machine/useTransactionMachine.ts +66 -0
  70. package/src/react/hooks/index.ts +4 -0
  71. package/src/react/hooks/useBuyCollectable.tsx +38 -0
  72. package/src/react/hooks/useCancelOrder.tsx +38 -0
  73. package/src/react/hooks/useCheckoutOptions.tsx +9 -6
  74. package/src/react/hooks/useCreateListing.tsx +65 -0
  75. package/src/react/hooks/useGenerateBuyTransaction.tsx +71 -0
  76. package/src/react/hooks/useListListingsForCollectible.tsx +1 -1
  77. package/src/react/hooks/useMakeOffer.tsx +62 -0
  78. package/src/react/hooks/useRoyaltyPercentage.tsx +1 -1
  79. package/src/react/hooks/useSell.tsx +62 -0
  80. package/src/react/ui/components/_internals/action-button/ActionButton.tsx +107 -115
  81. package/src/react/ui/components/_internals/custom-select/CustomSelect.tsx +63 -0
  82. package/src/react/ui/components/_internals/custom-select/styles.css.ts +64 -0
  83. package/src/react/ui/components/collectible-card/CollectibleCard.tsx +127 -130
  84. package/src/react/ui/components/collectible-card/Footer.tsx +65 -58
  85. package/src/react/ui/icons/Bell.tsx +2 -2
  86. package/src/react/ui/index.ts +1 -0
  87. package/src/react/ui/modals/BuyModal/_store.ts +53 -0
  88. package/src/react/ui/modals/BuyModal/index.tsx +119 -0
  89. package/src/react/ui/modals/CreateListingModal/_store.ts +35 -312
  90. package/src/react/ui/modals/CreateListingModal/index.tsx +185 -126
  91. package/src/react/ui/modals/MakeOfferModal/_store.ts +34 -276
  92. package/src/react/ui/modals/MakeOfferModal/index.tsx +195 -136
  93. package/src/react/ui/modals/SellModal/_store.ts +29 -262
  94. package/src/react/ui/modals/SellModal/index.tsx +156 -121
  95. package/src/react/ui/modals/SuccessfulPurchaseModal/_store.ts +17 -3
  96. package/src/react/ui/modals/SuccessfulPurchaseModal/index.tsx +3 -2
  97. package/src/react/ui/modals/TransferModal/index.tsx +9 -16
  98. package/src/react/ui/modals/_internal/components/actionModal/ActionModal.tsx +1 -0
  99. package/src/react/ui/modals/_internal/components/actionModal/ErrorModal.tsx +18 -0
  100. package/src/react/ui/modals/_internal/components/actionModal/LoadingModal.tsx +18 -0
  101. package/src/react/ui/modals/_internal/components/calendarPopover/index.tsx +1 -0
  102. package/src/react/ui/modals/_internal/components/calendarPopover/overrides.css +8 -0
  103. package/src/react/ui/modals/_internal/components/calendarPopover/styles.css.ts +10 -4
  104. package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +10 -13
  105. package/src/react/ui/modals/_internal/components/expirationDateSelect/index.tsx +23 -9
  106. package/src/react/ui/modals/_internal/components/priceInput/index.tsx +7 -18
  107. package/src/react/ui/modals/_internal/components/switchChainModal/index.tsx +17 -44
  108. package/src/react/ui/modals/_internal/components/switchChainModal/store.ts +10 -8
  109. package/src/react/ui/modals/_internal/components/tokenPreview/index.tsx +14 -3
  110. package/src/react/ui/modals/_internal/components/transactionDetails/index.tsx +4 -2
  111. package/src/react/ui/modals/_internal/components/transactionHeader/index.tsx +4 -4
  112. package/src/react/ui/modals/_internal/components/transactionPreview/index.tsx +4 -2
  113. package/src/react/ui/modals/_internal/components/transactionStatusModal/index.tsx +13 -10
  114. package/src/react/ui/modals/_internal/types.ts +13 -0
  115. package/src/react/ui/modals/modal-provider.tsx +4 -2
  116. package/src/styles/index.ts +0 -2
  117. package/src/utils/abi/index.ts +2 -0
  118. package/src/utils/abi/marketplace/index.ts +3 -0
  119. package/src/utils/abi/marketplace/sequence-marketplace-v1.ts +463 -0
  120. package/src/utils/abi/marketplace/sequence-marketplace-v2.ts +802 -0
  121. package/src/utils/index.ts +2 -3
  122. package/src/utils/network.ts +4 -2
  123. package/tsconfig.tsbuildinfo +1 -1
  124. package/dist/chunk-6JWGELXL.js +0 -214
  125. package/dist/chunk-6JWGELXL.js.map +0 -1
  126. package/dist/chunk-6S4FYXP6.js.map +0 -1
  127. package/dist/chunk-7OO74L2K.js.map +0 -1
  128. package/dist/chunk-BCNFYVAL.js +0 -1
  129. package/dist/chunk-BJE7AG6V.js.map +0 -1
  130. package/dist/chunk-CSN7YD5Q.js.map +0 -1
  131. package/dist/chunk-D7QQP6MS.js +0 -2
  132. package/dist/chunk-DBFOPEV6.js +0 -23
  133. package/dist/chunk-DBFOPEV6.js.map +0 -1
  134. package/dist/chunk-MQR6SHXZ.js.map +0 -1
  135. package/dist/chunk-O5JXKTWP.js.map +0 -1
  136. package/dist/chunk-OUWB3FHZ.js.map +0 -1
  137. package/dist/chunk-PE2LLUTJ.js +0 -213
  138. package/dist/chunk-PE2LLUTJ.js.map +0 -1
  139. package/dist/chunk-QVFMD6S2.js +0 -21
  140. package/dist/chunk-QVFMD6S2.js.map +0 -1
  141. package/dist/chunk-QXLZPSSR.js +0 -3316
  142. package/dist/chunk-QXLZPSSR.js.map +0 -1
  143. package/dist/chunk-UYRQ5MJQ.js.map +0 -1
  144. package/dist/utils/abi/abi/standard/index.d.ts +0 -25
  145. package/dist/utils/abi/abi/standard/index.js +0 -8
  146. package/dist/utils/abi/clients/index.d.ts +0 -27
  147. package/dist/utils/abi/clients/index.js +0 -13
  148. package/src/react/ui/modals/_internal/components/currencyOptionsSelect/styles.css.ts +0 -33
  149. package/src/react/ui/modals/_internal/components/expirationDateSelect/styles.css.ts +0 -25
  150. package/src/utils/abi/abi/standard/index.ts +0 -1
  151. package/src/utils/abi/clients/ERC1155.ts +0 -82
  152. package/src/utils/abi/clients/ERC20.ts +0 -101
  153. package/src/utils/abi/clients/ERC721.ts +0 -97
  154. package/src/utils/abi/clients/index.ts +0 -3
  155. /package/dist/{chunk-BCNFYVAL.js.map → chunk-MCI3KOSQ.js.map} +0 -0
  156. /package/dist/{chunk-D7QQP6MS.js.map → chunk-UISBTKFF.js.map} +0 -0
  157. /package/dist/utils/abi/{abi/standard/index.js.map → index.js.map} +0 -0
  158. /package/dist/utils/abi/{abi/token → marketplace}/index.js.map +0 -0
  159. /package/dist/utils/abi/{abi/token → token}/index.d.ts +0 -0
  160. /package/dist/utils/abi/{clients → token}/index.js.map +0 -0
  161. /package/src/react/hooks/{useGenerateCancleTransaction.tsx → useGenerateCancelTransaction.tsx} +0 -0
  162. /package/src/utils/abi/{abi/standard → marketplace}/EIP2981.ts +0 -0
  163. /package/src/utils/abi/{abi/token → token}/ERC1155.ts +0 -0
  164. /package/src/utils/abi/{abi/token → token}/ERC20.ts +0 -0
  165. /package/src/utils/abi/{abi/token → token}/ERC721.ts +0 -0
  166. /package/src/utils/abi/{abi/token → token}/index.ts +0 -0
@@ -2,11 +2,11 @@ import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import * as _0xsequence_indexer from '@0xsequence/indexer';
3
3
  import { SortOrder, Page } from '@0xsequence/indexer';
4
4
  import * as _0xsequence_network from '@0xsequence/network';
5
- import { Hex, Address } from 'viem';
5
+ import { Hex, Address, Chain } from 'viem';
6
6
  import { z } from 'zod';
7
7
  import { Q as QueryArgSchema, c as ChainId } from '../../types-QqXjNuUP.js';
8
8
  import { S as SdkConfig } from '../../sdk-config-xWkdBdrL.js';
9
- import { P as PropertyType, M as MarketplaceKind, b as OrderSide, w as Currency, o as CollectibleOrder, aC as GetCollectibleHighestOfferReturn, S as SortOrder$1, i as Page$1, aY as ListCollectiblesReturn, aK as ListCollectibleOffersReturn, aI as ListCollectibleListingsReturn, aE as GetCollectibleLowestListingReturn, z as Step, D as CreateReq, aP as GenerateListingTransactionArgs, aR as GenerateOfferTransactionArgs, aN as GenerateSellTransactionArgs, g as StepType, E as ExecuteType, C as ContractType, be as CheckoutOptionsMarketplaceReturn } from '../../marketplace.gen-BLP7822q.js';
9
+ import { P as PropertyType, M as MarketplaceKind, b as OrderSide, w as Currency, o as CollectibleOrder, aC as GetCollectibleHighestOfferReturn, S as SortOrder$1, i as Page$1, aY as ListCollectiblesReturn, aK as ListCollectibleOffersReturn, aI as ListCollectibleListingsReturn, aE as GetCollectibleLowestListingReturn, z as Step, D as CreateReq, aP as GenerateListingTransactionArgs, aR as GenerateOfferTransactionArgs, aN as GenerateSellTransactionArgs, g as StepType, E as ExecuteType, aT as GenerateCancelTransactionArgs, C as ContractType, be as CheckoutOptionsMarketplaceReturn, W as WalletKind } from '../../marketplace.gen-BLP7822q.js';
10
10
  import * as _0xsequence_metadata from '@0xsequence/metadata';
11
11
  import { c as getMarketplaceClient } from '../../services-C9-lvWcC.js';
12
12
  import { M as MarketplaceConfig } from '../../marketplace-config-Bbxl-uKX.js';
@@ -188,103 +188,10 @@ declare const UseCountOfCollectableSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
188
188
  type UseCountOfCollectablesArgs = z.infer<typeof UseCountOfCollectableSchema>;
189
189
  type UseContOfCollectableReturn = Awaited<ReturnType<typeof fetchCountOfCollectables>>;
190
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;
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;
255
193
  } & {
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>;
194
+ queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, number>;
288
195
  };
289
196
  declare const useCountOfCollectables: (args: UseCountOfCollectablesArgs) => _tanstack_react_query.UseQueryResult<number, Error>;
290
197
 
@@ -317,31 +224,10 @@ declare const UseCollectibleSchema: z.ZodObject<{
317
224
  type UseCollectibleArgs = z.infer<typeof UseCollectibleSchema>;
318
225
  type UseCollectibleReturn = Awaited<ReturnType<typeof fetchCollectible>>;
319
226
  declare const fetchCollectible: (args: UseCollectibleArgs, config: SdkConfig) => Promise<_0xsequence_metadata.TokenMetadata>;
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;
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;
336
229
  } & {
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>;
230
+ queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, _0xsequence_metadata.TokenMetadata>;
345
231
  };
346
232
  declare const useCollectible: (args: UseCollectibleArgs) => _tanstack_react_query.UseQueryResult<_0xsequence_metadata.TokenMetadata, Error>;
347
233
 
@@ -371,28 +257,10 @@ declare const UseCollectionSchema: z.ZodObject<{
371
257
  type UseCollectionArgs = z.input<typeof UseCollectionSchema>;
372
258
  type UseCollectionReturn = Awaited<ReturnType<typeof fetchCollection>>;
373
259
  declare const fetchCollection: (args: UseCollectionArgs, config: SdkConfig) => Promise<_0xsequence_metadata.ContractInfo>;
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;
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;
388
262
  } & {
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>;
263
+ queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, _0xsequence_metadata.ContractInfo>;
396
264
  };
397
265
  declare const useCollection: (args: UseCollectionArgs) => _tanstack_react_query.UseQueryResult<_0xsequence_metadata.ContractInfo, Error>;
398
266
 
@@ -427,10 +295,10 @@ declare const UseCurrenciesArgsSchema: z.ZodObject<{
427
295
  type UseCurrenciesArgs = z.input<typeof UseCurrenciesArgsSchema>;
428
296
  type UseCurrenciesReturn = Awaited<ReturnType<typeof fetchCurrencies>>;
429
297
  declare const fetchCurrencies: (chainId: ChainId, config: SdkConfig) => Promise<Currency[]>;
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;
298
+ declare const currenciesOptions: (args: UseCurrenciesArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Currency[], Error, Currency[], _tanstack_react_query.QueryKey>, "queryFn"> & {
299
+ queryFn?: _tanstack_react_query.QueryFunction<Currency[], _tanstack_react_query.QueryKey, never> | undefined;
432
300
  } & {
433
- queryKey: _tanstack_react_query.DataTag<(string | number)[], Currency[]>;
301
+ queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, Currency[]>;
434
302
  };
435
303
  declare const useCurrencies: (args: UseCurrenciesArgs) => _tanstack_react_query.UseQueryResult<Currency[], Error>;
436
304
 
@@ -459,10 +327,10 @@ declare const UseCurrencyArgsSchema: z.ZodObject<{
459
327
  }>;
460
328
  type UseCurrencyArgs = z.input<typeof UseCurrencyArgsSchema>;
461
329
  type UseCurrencyReturn = Currency | undefined;
462
- declare const currencyOptions: (args: UseCurrencyArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Currency | undefined, Error, Currency | undefined, (string | number)[]>, "queryFn"> & {
463
- queryFn?: _tanstack_react_query.QueryFunction<Currency | undefined, (string | number)[], never> | undefined;
330
+ 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"> & {
331
+ queryFn?: _tanstack_react_query.QueryFunction<Currency | undefined, _tanstack_react_query.QueryKey, never> | undefined;
464
332
  } & {
465
- queryKey: _tanstack_react_query.DataTag<(string | number)[], Currency | undefined>;
333
+ queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, Currency | undefined>;
466
334
  };
467
335
  declare const useCurrency: (args: UseCurrencyArgs) => _tanstack_react_query.UseQueryResult<Currency | undefined, Error>;
468
336
 
@@ -492,28 +360,10 @@ declare const UseFiltersSchema: z.ZodObject<{
492
360
  type UseFiltersArgs = z.infer<typeof UseFiltersSchema>;
493
361
  type UseFilterReturn = Awaited<ReturnType<typeof fetchFilters>>;
494
362
  declare const fetchFilters: (args: UseFiltersArgs, config: SdkConfig) => Promise<_0xsequence_metadata.PropertyFilter[]>;
495
- 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 | {
496
- chainId: string;
497
- collectionAddress: `0x${string}`;
498
- query?: {
499
- enabled?: boolean | undefined;
500
- } | undefined;
501
- })[]>, "queryFn"> & {
502
- queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_metadata.PropertyFilter[], ("filter" | "collectable" | SdkConfig | {
503
- chainId: string;
504
- collectionAddress: `0x${string}`;
505
- query?: {
506
- enabled?: boolean | undefined;
507
- } | undefined;
508
- })[], never> | undefined;
363
+ 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"> & {
364
+ queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_metadata.PropertyFilter[], _tanstack_react_query.QueryKey, never> | undefined;
509
365
  } & {
510
- queryKey: _tanstack_react_query.DataTag<("filter" | "collectable" | SdkConfig | {
511
- chainId: string;
512
- collectionAddress: `0x${string}`;
513
- query?: {
514
- enabled?: boolean | undefined;
515
- } | undefined;
516
- })[], _0xsequence_metadata.PropertyFilter[]>;
366
+ queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, _0xsequence_metadata.PropertyFilter[]>;
517
367
  };
518
368
  declare const useFilters: (args: UseFiltersArgs) => _tanstack_react_query.UseQueryResult<_0xsequence_metadata.PropertyFilter[], Error>;
519
369
 
@@ -543,28 +393,10 @@ declare const UseFloorOrderSchema: z.ZodObject<{
543
393
  type UseFloorOrderArgs = z.infer<typeof UseFloorOrderSchema>;
544
394
  type UseFloorOrderReturn = Awaited<ReturnType<typeof fetchFloorOrder>>;
545
395
  declare const fetchFloorOrder: (args: UseFloorOrderArgs, config: SdkConfig) => Promise<CollectibleOrder>;
546
- declare const floorOrderOptions: (args: UseFloorOrderArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<CollectibleOrder, Error, CollectibleOrder, ("collectable" | "floorOrders" | SdkConfig | {
547
- chainId: string;
548
- collectionAddress: `0x${string}`;
549
- query?: {
550
- enabled?: boolean | undefined;
551
- } | undefined;
552
- })[]>, "queryFn"> & {
553
- queryFn?: _tanstack_react_query.QueryFunction<CollectibleOrder, ("collectable" | "floorOrders" | SdkConfig | {
554
- chainId: string;
555
- collectionAddress: `0x${string}`;
556
- query?: {
557
- enabled?: boolean | undefined;
558
- } | undefined;
559
- })[], never> | undefined;
396
+ declare const floorOrderOptions: (args: UseFloorOrderArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<CollectibleOrder, Error, CollectibleOrder, _tanstack_react_query.QueryKey>, "queryFn"> & {
397
+ queryFn?: _tanstack_react_query.QueryFunction<CollectibleOrder, _tanstack_react_query.QueryKey, never> | undefined;
560
398
  } & {
561
- queryKey: _tanstack_react_query.DataTag<("collectable" | "floorOrders" | SdkConfig | {
562
- chainId: string;
563
- collectionAddress: `0x${string}`;
564
- query?: {
565
- enabled?: boolean | undefined;
566
- } | undefined;
567
- })[], CollectibleOrder>;
399
+ queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, CollectibleOrder>;
568
400
  };
569
401
  declare const useFloorOrder: (args: UseFloorOrderArgs) => _tanstack_react_query.UseQueryResult<CollectibleOrder, Error>;
570
402
 
@@ -622,46 +454,10 @@ declare const UseHighestOfferArgsSchema: z.ZodObject<z.objectUtil.extendShape<Om
622
454
  type UseHighestOfferArgs = z.infer<typeof UseHighestOfferArgsSchema>;
623
455
  type UseHighestOfferReturn = Awaited<ReturnType<typeof fetchHighestOffer>>;
624
456
  declare const fetchHighestOffer: (args: UseHighestOfferArgs, config: SdkConfig) => Promise<GetCollectibleHighestOfferReturn>;
625
- declare const highestOfferOptions: (args: UseHighestOfferArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetCollectibleHighestOfferReturn, Error, GetCollectibleHighestOfferReturn, ("collectable" | "details" | "highestOffers" | SdkConfig | {
626
- chainId: string;
627
- collectionAddress: `0x${string}`;
628
- tokenId: string;
629
- filter?: {
630
- currencies?: string[] | undefined;
631
- marketplace?: MarketplaceKind[] | undefined;
632
- createdBy?: string[] | undefined;
633
- } | undefined;
634
- query?: {
635
- enabled?: boolean | undefined;
636
- } | undefined;
637
- })[]>, "queryFn"> & {
638
- queryFn?: _tanstack_react_query.QueryFunction<GetCollectibleHighestOfferReturn, ("collectable" | "details" | "highestOffers" | SdkConfig | {
639
- chainId: string;
640
- collectionAddress: `0x${string}`;
641
- tokenId: string;
642
- filter?: {
643
- currencies?: string[] | undefined;
644
- marketplace?: MarketplaceKind[] | undefined;
645
- createdBy?: string[] | undefined;
646
- } | undefined;
647
- query?: {
648
- enabled?: boolean | undefined;
649
- } | undefined;
650
- })[], never> | undefined;
457
+ declare const highestOfferOptions: (args: UseHighestOfferArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetCollectibleHighestOfferReturn, Error, GetCollectibleHighestOfferReturn, _tanstack_react_query.QueryKey>, "queryFn"> & {
458
+ queryFn?: _tanstack_react_query.QueryFunction<GetCollectibleHighestOfferReturn, _tanstack_react_query.QueryKey, never> | undefined;
651
459
  } & {
652
- queryKey: _tanstack_react_query.DataTag<("collectable" | "details" | "highestOffers" | SdkConfig | {
653
- chainId: string;
654
- collectionAddress: `0x${string}`;
655
- tokenId: string;
656
- filter?: {
657
- currencies?: string[] | undefined;
658
- marketplace?: MarketplaceKind[] | undefined;
659
- createdBy?: string[] | undefined;
660
- } | undefined;
661
- query?: {
662
- enabled?: boolean | undefined;
663
- } | undefined;
664
- })[], GetCollectibleHighestOfferReturn>;
460
+ queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, GetCollectibleHighestOfferReturn>;
665
461
  };
666
462
  declare const useHighestOffer: (args: UseHighestOfferArgs) => _tanstack_react_query.UseQueryResult<GetCollectibleHighestOfferReturn, Error>;
667
463
 
@@ -1261,64 +1057,10 @@ declare const UseListOffersForCollectibleArgsSchema: z.ZodObject<Omit<z.objectUt
1261
1057
  type UseListOffersForCollectibleArgs = z.infer<typeof UseListOffersForCollectibleArgsSchema>;
1262
1058
  type UseListOffersForCollectibleReturn = Awaited<ReturnType<typeof fetchListOffersForCollectible>>;
1263
1059
  declare const fetchListOffersForCollectible: (config: SdkConfig, args: UseListOffersForCollectibleArgs) => Promise<ListCollectibleOffersReturn>;
1264
- declare const listOffersForCollectibleOptions: (args: UseListOffersForCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ListCollectibleOffersReturn, Error, ListCollectibleOffersReturn, ("offers" | "collectable" | SdkConfig | {
1265
- chainId: string;
1266
- collectionAddress: string;
1267
- collectibleId: string;
1268
- filter?: {
1269
- currencies?: string[] | undefined;
1270
- marketplace?: MarketplaceKind[] | undefined;
1271
- createdBy?: string[] | undefined;
1272
- } | undefined;
1273
- page?: {
1274
- page: number;
1275
- pageSize: number;
1276
- sort?: {
1277
- order: SortOrder$1;
1278
- column: string;
1279
- }[] | undefined;
1280
- more?: boolean | undefined;
1281
- } | undefined;
1282
- })[]>, "queryFn"> & {
1283
- queryFn?: _tanstack_react_query.QueryFunction<ListCollectibleOffersReturn, ("offers" | "collectable" | SdkConfig | {
1284
- chainId: string;
1285
- collectionAddress: string;
1286
- collectibleId: string;
1287
- filter?: {
1288
- currencies?: string[] | undefined;
1289
- marketplace?: MarketplaceKind[] | undefined;
1290
- createdBy?: string[] | undefined;
1291
- } | undefined;
1292
- page?: {
1293
- page: number;
1294
- pageSize: number;
1295
- sort?: {
1296
- order: SortOrder$1;
1297
- column: string;
1298
- }[] | undefined;
1299
- more?: boolean | undefined;
1300
- } | undefined;
1301
- })[], never> | undefined;
1060
+ declare const listOffersForCollectibleOptions: (args: UseListOffersForCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ListCollectibleOffersReturn, Error, ListCollectibleOffersReturn, _tanstack_react_query.QueryKey>, "queryFn"> & {
1061
+ queryFn?: _tanstack_react_query.QueryFunction<ListCollectibleOffersReturn, _tanstack_react_query.QueryKey, never> | undefined;
1302
1062
  } & {
1303
- queryKey: _tanstack_react_query.DataTag<("offers" | "collectable" | SdkConfig | {
1304
- chainId: string;
1305
- collectionAddress: string;
1306
- collectibleId: string;
1307
- filter?: {
1308
- currencies?: string[] | undefined;
1309
- marketplace?: MarketplaceKind[] | undefined;
1310
- createdBy?: string[] | undefined;
1311
- } | undefined;
1312
- page?: {
1313
- page: number;
1314
- pageSize: number;
1315
- sort?: {
1316
- order: SortOrder$1;
1317
- column: string;
1318
- }[] | undefined;
1319
- more?: boolean | undefined;
1320
- } | undefined;
1321
- })[], ListCollectibleOffersReturn>;
1063
+ queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, ListCollectibleOffersReturn>;
1322
1064
  };
1323
1065
  declare const useListOffersForCollectible: (args: UseListOffersForCollectibleArgs) => _tanstack_react_query.UseQueryResult<ListCollectibleOffersReturn, Error>;
1324
1066
 
@@ -1413,64 +1155,10 @@ declare const UseListListingsForCollectibleArgsSchema: z.ZodObject<Omit<z.object
1413
1155
  type UseListListingsForCollectibleArgs = z.infer<typeof UseListListingsForCollectibleArgsSchema>;
1414
1156
  type UseListListingsForCollectibleReturn = Awaited<ReturnType<typeof fetchListListingsForCollectible>>;
1415
1157
  declare const fetchListListingsForCollectible: (config: SdkConfig, args: UseListListingsForCollectibleArgs) => Promise<ListCollectibleListingsReturn>;
1416
- declare const listListingsForCollectibleOptions: (args: UseListListingsForCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ListCollectibleListingsReturn, Error, ListCollectibleListingsReturn, ("offers" | "collectable" | SdkConfig | {
1417
- chainId: string;
1418
- collectionAddress: string;
1419
- collectibleId: string;
1420
- filter?: {
1421
- currencies?: string[] | undefined;
1422
- marketplace?: MarketplaceKind[] | undefined;
1423
- createdBy?: string[] | undefined;
1424
- } | undefined;
1425
- page?: {
1426
- page: number;
1427
- pageSize: number;
1428
- sort?: {
1429
- order: SortOrder$1;
1430
- column: string;
1431
- }[] | undefined;
1432
- more?: boolean | undefined;
1433
- } | undefined;
1434
- })[]>, "queryFn"> & {
1435
- queryFn?: _tanstack_react_query.QueryFunction<ListCollectibleListingsReturn, ("offers" | "collectable" | SdkConfig | {
1436
- chainId: string;
1437
- collectionAddress: string;
1438
- collectibleId: string;
1439
- filter?: {
1440
- currencies?: string[] | undefined;
1441
- marketplace?: MarketplaceKind[] | undefined;
1442
- createdBy?: string[] | undefined;
1443
- } | undefined;
1444
- page?: {
1445
- page: number;
1446
- pageSize: number;
1447
- sort?: {
1448
- order: SortOrder$1;
1449
- column: string;
1450
- }[] | undefined;
1451
- more?: boolean | undefined;
1452
- } | undefined;
1453
- })[], never> | undefined;
1158
+ declare const listListingsForCollectibleOptions: (args: UseListListingsForCollectibleArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ListCollectibleListingsReturn, Error, ListCollectibleListingsReturn, _tanstack_react_query.QueryKey>, "queryFn"> & {
1159
+ queryFn?: _tanstack_react_query.QueryFunction<ListCollectibleListingsReturn, _tanstack_react_query.QueryKey, never> | undefined;
1454
1160
  } & {
1455
- queryKey: _tanstack_react_query.DataTag<("offers" | "collectable" | SdkConfig | {
1456
- chainId: string;
1457
- collectionAddress: string;
1458
- collectibleId: string;
1459
- filter?: {
1460
- currencies?: string[] | undefined;
1461
- marketplace?: MarketplaceKind[] | undefined;
1462
- createdBy?: string[] | undefined;
1463
- } | undefined;
1464
- page?: {
1465
- page: number;
1466
- pageSize: number;
1467
- sort?: {
1468
- order: SortOrder$1;
1469
- column: string;
1470
- }[] | undefined;
1471
- more?: boolean | undefined;
1472
- } | undefined;
1473
- })[], ListCollectibleListingsReturn>;
1161
+ queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, ListCollectibleListingsReturn>;
1474
1162
  };
1475
1163
  declare const useListListingsForCollectible: (args: UseListListingsForCollectibleArgs) => _tanstack_react_query.UseQueryResult<ListCollectibleListingsReturn, Error>;
1476
1164
 
@@ -1528,53 +1216,17 @@ declare const UseLowestListingSchema: z.ZodObject<z.objectUtil.extendShape<Omit<
1528
1216
  type UseLowestListingArgs = z.infer<typeof UseLowestListingSchema>;
1529
1217
  type UseLowestListingReturn = Awaited<ReturnType<typeof fetchLowestListing>>;
1530
1218
  declare const fetchLowestListing: (args: UseLowestListingArgs, config: SdkConfig) => Promise<GetCollectibleLowestListingReturn>;
1531
- declare const lowestListingOptions: (args: UseLowestListingArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetCollectibleLowestListingReturn, Error, GetCollectibleLowestListingReturn, ("collectable" | "details" | "lowestListings" | SdkConfig | {
1532
- chainId: string;
1533
- collectionAddress: `0x${string}`;
1534
- tokenId: string;
1535
- filters?: {
1536
- currencies?: string[] | undefined;
1537
- marketplace?: MarketplaceKind[] | undefined;
1538
- createdBy?: string[] | undefined;
1539
- } | undefined;
1540
- query?: {
1541
- enabled?: boolean | undefined;
1542
- } | undefined;
1543
- })[]>, "queryFn"> & {
1544
- queryFn?: _tanstack_react_query.QueryFunction<GetCollectibleLowestListingReturn, ("collectable" | "details" | "lowestListings" | SdkConfig | {
1545
- chainId: string;
1546
- collectionAddress: `0x${string}`;
1547
- tokenId: string;
1548
- filters?: {
1549
- currencies?: string[] | undefined;
1550
- marketplace?: MarketplaceKind[] | undefined;
1551
- createdBy?: string[] | undefined;
1552
- } | undefined;
1553
- query?: {
1554
- enabled?: boolean | undefined;
1555
- } | undefined;
1556
- })[], never> | undefined;
1219
+ declare const lowestListingOptions: (args: UseLowestListingArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetCollectibleLowestListingReturn, Error, GetCollectibleLowestListingReturn, _tanstack_react_query.QueryKey>, "queryFn"> & {
1220
+ queryFn?: _tanstack_react_query.QueryFunction<GetCollectibleLowestListingReturn, _tanstack_react_query.QueryKey, never> | undefined;
1557
1221
  } & {
1558
- queryKey: _tanstack_react_query.DataTag<("collectable" | "details" | "lowestListings" | SdkConfig | {
1559
- chainId: string;
1560
- collectionAddress: `0x${string}`;
1561
- tokenId: string;
1562
- filters?: {
1563
- currencies?: string[] | undefined;
1564
- marketplace?: MarketplaceKind[] | undefined;
1565
- createdBy?: string[] | undefined;
1566
- } | undefined;
1567
- query?: {
1568
- enabled?: boolean | undefined;
1569
- } | undefined;
1570
- })[], GetCollectibleLowestListingReturn>;
1222
+ queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, GetCollectibleLowestListingReturn>;
1571
1223
  };
1572
1224
  declare const useLowestListing: (args: UseLowestListingArgs) => _tanstack_react_query.UseQueryResult<GetCollectibleLowestListingReturn, Error>;
1573
1225
 
1574
- declare const marketplaceConfigOptions: (config: Pick<SdkConfig, "projectId"> | SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<MarketplaceConfig, Error, MarketplaceConfig, string[]>, "queryFn"> & {
1575
- queryFn?: _tanstack_react_query.QueryFunction<MarketplaceConfig, string[], never> | undefined;
1226
+ declare const marketplaceConfigOptions: (config: Pick<SdkConfig, "projectId"> | SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<MarketplaceConfig, Error, MarketplaceConfig, _tanstack_react_query.QueryKey>, "queryFn"> & {
1227
+ queryFn?: _tanstack_react_query.QueryFunction<MarketplaceConfig, _tanstack_react_query.QueryKey, never> | undefined;
1576
1228
  } & {
1577
- queryKey: _tanstack_react_query.DataTag<string[], MarketplaceConfig>;
1229
+ queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, MarketplaceConfig>;
1578
1230
  };
1579
1231
 
1580
1232
  declare const useMarketplaceConfig: () => _tanstack_react_query.UseQueryResult<MarketplaceConfig, Error>;
@@ -1606,31 +1258,10 @@ declare const UseRoyaletyPercentageSchema: z.ZodObject<{
1606
1258
  } | undefined;
1607
1259
  }>;
1608
1260
  type UseRoyaletyPercentageArgs = z.infer<typeof UseRoyaletyPercentageSchema>;
1609
- declare const royaletyPercentageOptions: (args: UseRoyaletyPercentageArgs) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<bigint, Error, bigint, ("collectable" | "royaltyPercentage" | {
1610
- chainId: string;
1611
- collectionAddress: `0x${string}`;
1612
- collectibleId: string;
1613
- query?: {
1614
- enabled?: boolean | undefined;
1615
- } | undefined;
1616
- })[]>, "queryFn"> & {
1617
- queryFn?: _tanstack_react_query.QueryFunction<bigint, ("collectable" | "royaltyPercentage" | {
1618
- chainId: string;
1619
- collectionAddress: `0x${string}`;
1620
- collectibleId: string;
1621
- query?: {
1622
- enabled?: boolean | undefined;
1623
- } | undefined;
1624
- })[], never> | undefined;
1261
+ declare const royaletyPercentageOptions: (args: UseRoyaletyPercentageArgs) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<bigint, Error, bigint, _tanstack_react_query.QueryKey>, "queryFn"> & {
1262
+ queryFn?: _tanstack_react_query.QueryFunction<bigint, _tanstack_react_query.QueryKey, never> | undefined;
1625
1263
  } & {
1626
- queryKey: _tanstack_react_query.DataTag<("collectable" | "royaltyPercentage" | {
1627
- chainId: string;
1628
- collectionAddress: `0x${string}`;
1629
- collectibleId: string;
1630
- query?: {
1631
- enabled?: boolean | undefined;
1632
- } | undefined;
1633
- })[], bigint>;
1264
+ queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, bigint>;
1634
1265
  };
1635
1266
  declare const useRoyaltyPercentage: (args: UseRoyaletyPercentageArgs) => _tanstack_react_query.UseQueryResult<bigint, Error>;
1636
1267
 
@@ -2027,6 +1658,236 @@ declare const useGenerateSellTransaction: (params: UseGenerateSellTransactionArg
2027
1658
  submittedAt: number;
2028
1659
  };
2029
1660
 
1661
+ declare const UserGenerateCancelTransactionArgsSchema: z.ZodObject<{
1662
+ chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
1663
+ onSuccess: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodArray<z.ZodObject<{
1664
+ id: z.ZodNativeEnum<typeof StepType>;
1665
+ data: z.ZodString;
1666
+ to: z.ZodString;
1667
+ value: z.ZodString;
1668
+ signature: z.ZodOptional<z.ZodObject<{
1669
+ domain: z.ZodObject<{
1670
+ name: z.ZodString;
1671
+ version: z.ZodString;
1672
+ chainId: z.ZodNumber;
1673
+ verifyingContract: z.ZodString;
1674
+ }, "strip", z.ZodTypeAny, {
1675
+ version: string;
1676
+ chainId: number;
1677
+ name: string;
1678
+ verifyingContract: string;
1679
+ }, {
1680
+ version: string;
1681
+ chainId: number;
1682
+ name: string;
1683
+ verifyingContract: string;
1684
+ }>;
1685
+ types: z.ZodAny;
1686
+ primaryType: z.ZodString;
1687
+ value: z.ZodAny;
1688
+ }, "strip", z.ZodTypeAny, {
1689
+ domain: {
1690
+ version: string;
1691
+ chainId: number;
1692
+ name: string;
1693
+ verifyingContract: string;
1694
+ };
1695
+ primaryType: string;
1696
+ value?: any;
1697
+ types?: any;
1698
+ }, {
1699
+ domain: {
1700
+ version: string;
1701
+ chainId: number;
1702
+ name: string;
1703
+ verifyingContract: string;
1704
+ };
1705
+ primaryType: string;
1706
+ value?: any;
1707
+ types?: any;
1708
+ }>>;
1709
+ post: z.ZodOptional<z.ZodObject<{
1710
+ endpoint: z.ZodString;
1711
+ method: z.ZodString;
1712
+ body: z.ZodAny;
1713
+ }, "strip", z.ZodTypeAny, {
1714
+ method: string;
1715
+ endpoint: string;
1716
+ body?: any;
1717
+ }, {
1718
+ method: string;
1719
+ endpoint: string;
1720
+ body?: any;
1721
+ }>>;
1722
+ executeType: z.ZodOptional<z.ZodNativeEnum<typeof ExecuteType>>;
1723
+ }, "strip", z.ZodTypeAny, {
1724
+ value: string;
1725
+ id: StepType;
1726
+ to: string;
1727
+ data: string;
1728
+ signature?: {
1729
+ domain: {
1730
+ version: string;
1731
+ chainId: number;
1732
+ name: string;
1733
+ verifyingContract: string;
1734
+ };
1735
+ primaryType: string;
1736
+ value?: any;
1737
+ types?: any;
1738
+ } | undefined;
1739
+ executeType?: ExecuteType | undefined;
1740
+ post?: {
1741
+ method: string;
1742
+ endpoint: string;
1743
+ body?: any;
1744
+ } | undefined;
1745
+ }, {
1746
+ value: string;
1747
+ id: StepType;
1748
+ to: string;
1749
+ data: string;
1750
+ signature?: {
1751
+ domain: {
1752
+ version: string;
1753
+ chainId: number;
1754
+ name: string;
1755
+ verifyingContract: string;
1756
+ };
1757
+ primaryType: string;
1758
+ value?: any;
1759
+ types?: any;
1760
+ } | undefined;
1761
+ executeType?: ExecuteType | undefined;
1762
+ post?: {
1763
+ method: string;
1764
+ endpoint: string;
1765
+ body?: any;
1766
+ } | undefined;
1767
+ }>, "many">>], z.ZodUnknown>, z.ZodUnknown>>;
1768
+ }, "strip", z.ZodTypeAny, {
1769
+ chainId: string;
1770
+ onSuccess?: ((args_0: {
1771
+ value: string;
1772
+ id: StepType;
1773
+ to: string;
1774
+ data: string;
1775
+ signature?: {
1776
+ domain: {
1777
+ version: string;
1778
+ chainId: number;
1779
+ name: string;
1780
+ verifyingContract: string;
1781
+ };
1782
+ primaryType: string;
1783
+ value?: any;
1784
+ types?: any;
1785
+ } | undefined;
1786
+ executeType?: ExecuteType | undefined;
1787
+ post?: {
1788
+ method: string;
1789
+ endpoint: string;
1790
+ body?: any;
1791
+ } | undefined;
1792
+ }[] | undefined, ...args: unknown[]) => unknown) | undefined;
1793
+ }, {
1794
+ chainId: string | number;
1795
+ onSuccess?: ((args_0: {
1796
+ value: string;
1797
+ id: StepType;
1798
+ to: string;
1799
+ data: string;
1800
+ signature?: {
1801
+ domain: {
1802
+ version: string;
1803
+ chainId: number;
1804
+ name: string;
1805
+ verifyingContract: string;
1806
+ };
1807
+ primaryType: string;
1808
+ value?: any;
1809
+ types?: any;
1810
+ } | undefined;
1811
+ executeType?: ExecuteType | undefined;
1812
+ post?: {
1813
+ method: string;
1814
+ endpoint: string;
1815
+ body?: any;
1816
+ } | undefined;
1817
+ }[] | undefined, ...args: unknown[]) => unknown) | undefined;
1818
+ }>;
1819
+ type UseGenerateCancelTransactionArgs = z.infer<typeof UserGenerateCancelTransactionArgsSchema>;
1820
+ declare const generateCancelTransaction: (args: GenerateCancelTransactionArgs, config: SdkConfig, chainId: ChainId) => Promise<Step[]>;
1821
+ declare const useGenerateCancelTransaction: (params: UseGenerateCancelTransactionArgs) => {
1822
+ generateCancelTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateCancelTransactionArgs, unknown>;
1823
+ generateCancelTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateCancelTransactionArgs, unknown>;
1824
+ data: undefined;
1825
+ variables: undefined;
1826
+ error: null;
1827
+ isError: false;
1828
+ isIdle: true;
1829
+ isPending: false;
1830
+ isSuccess: false;
1831
+ status: "idle";
1832
+ reset: () => void;
1833
+ context: unknown;
1834
+ failureCount: number;
1835
+ failureReason: Error | null;
1836
+ isPaused: boolean;
1837
+ submittedAt: number;
1838
+ } | {
1839
+ generateCancelTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateCancelTransactionArgs, unknown>;
1840
+ generateCancelTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateCancelTransactionArgs, unknown>;
1841
+ data: undefined;
1842
+ variables: GenerateCancelTransactionArgs;
1843
+ error: null;
1844
+ isError: false;
1845
+ isIdle: false;
1846
+ isPending: true;
1847
+ isSuccess: false;
1848
+ status: "pending";
1849
+ reset: () => void;
1850
+ context: unknown;
1851
+ failureCount: number;
1852
+ failureReason: Error | null;
1853
+ isPaused: boolean;
1854
+ submittedAt: number;
1855
+ } | {
1856
+ generateCancelTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateCancelTransactionArgs, unknown>;
1857
+ generateCancelTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateCancelTransactionArgs, unknown>;
1858
+ data: undefined;
1859
+ error: Error;
1860
+ variables: GenerateCancelTransactionArgs;
1861
+ isError: true;
1862
+ isIdle: false;
1863
+ isPending: false;
1864
+ isSuccess: false;
1865
+ status: "error";
1866
+ reset: () => void;
1867
+ context: unknown;
1868
+ failureCount: number;
1869
+ failureReason: Error | null;
1870
+ isPaused: boolean;
1871
+ submittedAt: number;
1872
+ } | {
1873
+ generateCancelTransaction: _tanstack_react_query.UseMutateFunction<Step[], Error, GenerateCancelTransactionArgs, unknown>;
1874
+ generateCancelTransactionAsync: _tanstack_react_query.UseMutateAsyncFunction<Step[], Error, GenerateCancelTransactionArgs, unknown>;
1875
+ data: Step[];
1876
+ error: null;
1877
+ variables: GenerateCancelTransactionArgs;
1878
+ isError: false;
1879
+ isIdle: false;
1880
+ isPending: false;
1881
+ isSuccess: true;
1882
+ status: "success";
1883
+ reset: () => void;
1884
+ context: unknown;
1885
+ failureCount: number;
1886
+ failureReason: Error | null;
1887
+ isPaused: boolean;
1888
+ submittedAt: number;
1889
+ };
1890
+
2030
1891
  interface BaseTransferParams {
2031
1892
  chainId: ChainId;
2032
1893
  collectionAddress: Hex;
@@ -2051,22 +1912,18 @@ declare const useTransferTokens: () => {
2051
1912
 
2052
1913
  declare const UseCheckoutOptionsSchema: z.ZodObject<{
2053
1914
  chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
2054
- walletAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
2055
1915
  orders: z.ZodArray<z.ZodObject<{
2056
1916
  collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
2057
1917
  orderId: z.ZodString;
2058
- quantity: z.ZodNumber;
2059
1918
  marketplace: z.ZodNativeEnum<typeof MarketplaceKind>;
2060
1919
  }, "strip", z.ZodTypeAny, {
2061
1920
  orderId: string;
2062
1921
  marketplace: MarketplaceKind;
2063
1922
  collectionAddress: `0x${string}`;
2064
- quantity: number;
2065
1923
  }, {
2066
1924
  orderId: string;
2067
1925
  marketplace: MarketplaceKind;
2068
1926
  collectionAddress: string;
2069
- quantity: number;
2070
1927
  }>, "many">;
2071
1928
  query: z.ZodOptional<z.ZodObject<{
2072
1929
  enabled: z.ZodOptional<z.ZodBoolean>;
@@ -2080,10 +1937,8 @@ declare const UseCheckoutOptionsSchema: z.ZodObject<{
2080
1937
  orderId: string;
2081
1938
  marketplace: MarketplaceKind;
2082
1939
  collectionAddress: `0x${string}`;
2083
- quantity: number;
2084
1940
  }[];
2085
1941
  chainId: string;
2086
- walletAddress: `0x${string}`;
2087
1942
  query?: {
2088
1943
  enabled?: boolean | undefined;
2089
1944
  } | undefined;
@@ -2092,57 +1947,23 @@ declare const UseCheckoutOptionsSchema: z.ZodObject<{
2092
1947
  orderId: string;
2093
1948
  marketplace: MarketplaceKind;
2094
1949
  collectionAddress: string;
2095
- quantity: number;
2096
1950
  }[];
2097
1951
  chainId: string | number;
2098
- walletAddress: string;
2099
1952
  query?: {
2100
1953
  enabled?: boolean | undefined;
2101
1954
  } | undefined;
2102
1955
  }>;
2103
1956
  type UseCheckoutOptionsArgs = z.infer<typeof UseCheckoutOptionsSchema>;
2104
1957
  type UseCheckoutOptionsReturn = Awaited<ReturnType<typeof fetchCheckoutOptions>>;
2105
- declare const fetchCheckoutOptions: (args: UseCheckoutOptionsArgs, config: SdkConfig) => Promise<CheckoutOptionsMarketplaceReturn>;
2106
- declare const checkoutOptionsOptions: (args: UseCheckoutOptionsArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<CheckoutOptionsMarketplaceReturn, Error, CheckoutOptionsMarketplaceReturn, (string | {
2107
- orders: {
2108
- orderId: string;
2109
- marketplace: MarketplaceKind;
2110
- collectionAddress: `0x${string}`;
2111
- quantity: number;
2112
- }[];
2113
- chainId: string;
2114
- walletAddress: `0x${string}`;
2115
- query?: {
2116
- enabled?: boolean | undefined;
2117
- } | undefined;
2118
- })[]>, "queryFn"> & {
2119
- queryFn?: _tanstack_react_query.QueryFunction<CheckoutOptionsMarketplaceReturn, (string | {
2120
- orders: {
2121
- orderId: string;
2122
- marketplace: MarketplaceKind;
2123
- collectionAddress: `0x${string}`;
2124
- quantity: number;
2125
- }[];
2126
- chainId: string;
2127
- walletAddress: `0x${string}`;
2128
- query?: {
2129
- enabled?: boolean | undefined;
2130
- } | undefined;
2131
- })[], never> | undefined;
1958
+ declare const fetchCheckoutOptions: (args: UseCheckoutOptionsArgs & {
1959
+ walletAddress: Hex;
1960
+ }, config: SdkConfig) => Promise<CheckoutOptionsMarketplaceReturn>;
1961
+ declare const checkoutOptionsOptions: (args: UseCheckoutOptionsArgs & {
1962
+ walletAddress: Hex;
1963
+ }, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<CheckoutOptionsMarketplaceReturn, Error, CheckoutOptionsMarketplaceReturn, _tanstack_react_query.QueryKey>, "queryFn"> & {
1964
+ queryFn?: _tanstack_react_query.QueryFunction<CheckoutOptionsMarketplaceReturn, _tanstack_react_query.QueryKey, never> | undefined;
2132
1965
  } & {
2133
- queryKey: _tanstack_react_query.DataTag<(string | {
2134
- orders: {
2135
- orderId: string;
2136
- marketplace: MarketplaceKind;
2137
- collectionAddress: `0x${string}`;
2138
- quantity: number;
2139
- }[];
2140
- chainId: string;
2141
- walletAddress: `0x${string}`;
2142
- query?: {
2143
- enabled?: boolean | undefined;
2144
- } | undefined;
2145
- })[], CheckoutOptionsMarketplaceReturn>;
1966
+ queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, CheckoutOptionsMarketplaceReturn>;
2146
1967
  };
2147
1968
  declare const useCheckoutOptions: (args: UseCheckoutOptionsArgs) => _tanstack_react_query.UseQueryResult<CheckoutOptionsMarketplaceReturn, Error>;
2148
1969
 
@@ -2170,11 +1991,129 @@ type FetchListCollectionsArgs = {
2170
1991
  query?: z.infer<typeof QueryArgSchema>;
2171
1992
  };
2172
1993
  declare const fetchListCollections: ({ marketplaceConfig }: FetchListCollectionsArgs, config: SdkConfig) => Promise<_0xsequence_metadata.ContractInfo[]>;
2173
- declare const listCollectionsOptions: (args: FetchListCollectionsArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<_0xsequence_metadata.ContractInfo[], Error, _0xsequence_metadata.ContractInfo[], ("collections" | "list")[]>, "queryFn"> & {
2174
- queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_metadata.ContractInfo[], ("collections" | "list")[], never> | undefined;
1994
+ 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"> & {
1995
+ queryFn?: _tanstack_react_query.QueryFunction<_0xsequence_metadata.ContractInfo[], _tanstack_react_query.QueryKey, never> | undefined;
2175
1996
  } & {
2176
- queryKey: _tanstack_react_query.DataTag<("collections" | "list")[], _0xsequence_metadata.ContractInfo[]>;
1997
+ queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, _0xsequence_metadata.ContractInfo[]>;
2177
1998
  };
2178
1999
  declare const useListCollections: (args?: UseListCollectionsArgs) => _tanstack_react_query.UseQueryResult<_0xsequence_metadata.ContractInfo[], Error>;
2179
2000
 
2180
- export { type CreateReqWithDateExpiry$1 as CreateReqWithDateExpiry, type GenerateListingTransactionProps, type GenerateOfferTransactionProps, type TransferTokensParams, type UseCheckoutOptionsArgs, type UseCheckoutOptionsReturn, type UseCollectibleArgs, type UseCollectibleReturn, type UseCollectionArgs, type UseCollectionReturn, type UseContOfCollectableReturn, type UseCountOfCollectablesArgs, type UseCurrenciesReturn, type UseCurrencyReturn, type UseFetchTokenBalancesReturn, type UseFilterReturn, type UseFiltersArgs, type UseFloorOrderArgs, type UseFloorOrderReturn, type UseGenerateListingTransactionArgs, type UseGenerateOfferTransactionArgs, type UseHighestOfferArgs, type UseHighestOfferReturn, type UseListBalancesArgs, type UseListCollectiblesArgs, type UseListCollectiblesReturn, type UseListCollectionsArgs, type UseListCollectionsReturn, type UseListListingsForCollectibleReturn, type UseListOffersForCollectibleReturn, type UseLowestListingArgs, type UseLowestListingReturn, balanceOfCollectibleOptions, checkoutOptionsOptions, collectibleOptions, collectionOptions, countOfCollectablesOptions, currenciesOptions, currencyOptions, fetchFilters, filtersOptions, floorOrderOptions, generateListingTransaction, generateOfferTransaction, generateSellTransaction, highestOfferOptions, listBalancesOptions, listCollectiblesOptions, listCollectionsOptions, listListingsForCollectibleOptions, listOffersForCollectibleOptions, lowestListingOptions, marketplaceConfigOptions, metadataOptionsSchema, royaletyPercentageOptions, useBalanceOfCollectible, useCheckoutOptions, useCollectible, useCollection, useConfig, useCountOfCollectables, useCurrencies, useCurrency, useFilters, useFloorOrder, useGenerateListingTransaction, useGenerateOfferTransaction, useGenerateSellTransaction, useHighestOffer, useListBalances, useListCollectibles, useListCollections, useListListingsForCollectible, useListOffersForCollectible, useLowestListing, useMarketplaceConfig, useRoyaltyPercentage, useTransferTokens };
2001
+ declare const UseGenerateBuyTransactionArgsSchema: z.ZodObject<{
2002
+ chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
2003
+ collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
2004
+ marketplace: z.ZodNativeEnum<typeof MarketplaceKind>;
2005
+ ordersData: z.ZodArray<z.ZodObject<{
2006
+ orderId: z.ZodString;
2007
+ quantity: z.ZodString;
2008
+ marketplace: z.ZodString;
2009
+ }, "strip", z.ZodTypeAny, {
2010
+ orderId: string;
2011
+ marketplace: string;
2012
+ quantity: string;
2013
+ }, {
2014
+ orderId: string;
2015
+ marketplace: string;
2016
+ quantity: string;
2017
+ }>, "many">;
2018
+ walletType: z.ZodOptional<z.ZodNativeEnum<typeof WalletKind>>;
2019
+ query: z.ZodOptional<z.ZodObject<{
2020
+ enabled: z.ZodOptional<z.ZodBoolean>;
2021
+ }, "strip", z.ZodTypeAny, {
2022
+ enabled?: boolean | undefined;
2023
+ }, {
2024
+ enabled?: boolean | undefined;
2025
+ }>>;
2026
+ }, "strip", z.ZodTypeAny, {
2027
+ marketplace: MarketplaceKind;
2028
+ chainId: string;
2029
+ collectionAddress: `0x${string}`;
2030
+ ordersData: {
2031
+ orderId: string;
2032
+ marketplace: string;
2033
+ quantity: string;
2034
+ }[];
2035
+ walletType?: WalletKind | undefined;
2036
+ query?: {
2037
+ enabled?: boolean | undefined;
2038
+ } | undefined;
2039
+ }, {
2040
+ marketplace: MarketplaceKind;
2041
+ chainId: string | number;
2042
+ collectionAddress: string;
2043
+ ordersData: {
2044
+ orderId: string;
2045
+ marketplace: string;
2046
+ quantity: string;
2047
+ }[];
2048
+ walletType?: WalletKind | undefined;
2049
+ query?: {
2050
+ enabled?: boolean | undefined;
2051
+ } | undefined;
2052
+ }>;
2053
+ type UseGenerateBuyTransactionArgs = z.infer<typeof UseGenerateBuyTransactionArgsSchema>;
2054
+ declare const fetchGenerateBuyTransaction: (args: UseGenerateBuyTransactionArgs & {
2055
+ buyer: Hex;
2056
+ }, config: SdkConfig) => Promise<Step[]>;
2057
+ declare const generateBuyTransactionOptions: (args: UseGenerateBuyTransactionArgs & {
2058
+ buyer: Hex;
2059
+ }, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Step[], Error, Step[], _tanstack_react_query.QueryKey>, "queryFn"> & {
2060
+ queryFn?: _tanstack_react_query.QueryFunction<Step[], _tanstack_react_query.QueryKey, never> | undefined;
2061
+ } & {
2062
+ queryKey: _tanstack_react_query.DataTag<_tanstack_react_query.QueryKey, Step[]>;
2063
+ };
2064
+ declare const useGenerateBuyTransaction: (args: UseGenerateBuyTransactionArgs) => _tanstack_react_query.UseQueryResult<Step[], Error>;
2065
+
2066
+ declare enum TransactionType {
2067
+ BUY = "BUY",
2068
+ SELL = "SELL",
2069
+ LISTING = "LISTING",
2070
+ OFFER = "OFFER",
2071
+ CANCEL = "CANCEL"
2072
+ }
2073
+ interface TransactionConfig {
2074
+ type: TransactionType;
2075
+ walletKind: WalletKind;
2076
+ chainId: string;
2077
+ chains: readonly Chain[];
2078
+ collectionAddress: string;
2079
+ sdkConfig: SdkConfig;
2080
+ marketplaceConfig: MarketplaceConfig;
2081
+ }
2082
+ interface BuyInput {
2083
+ orderId: string;
2084
+ collectableDecimals: number;
2085
+ marketplace: MarketplaceKind;
2086
+ quantity: string;
2087
+ }
2088
+ interface CancelInput {
2089
+ orderId: string;
2090
+ marketplace: MarketplaceKind;
2091
+ }
2092
+
2093
+ type UseTransactionMachineConfig = Omit<TransactionConfig, 'sdkConfig' | 'marketplaceConfig' | 'walletKind' | 'chains'>;
2094
+
2095
+ interface UseCancelOrderArgs extends Omit<UseTransactionMachineConfig, 'type'> {
2096
+ onSuccess?: (hash: string) => void;
2097
+ onError?: (error: Error) => void;
2098
+ onTransactionSent?: (hash: string) => void;
2099
+ }
2100
+ declare const useCancelOrder: ({ onSuccess, onError, onTransactionSent, ...config }: UseCancelOrderArgs) => {
2101
+ cancel: (props: CancelInput) => Promise<void> | undefined;
2102
+ onError: ((error: Error) => void) | undefined;
2103
+ onSuccess: ((hash: string) => void) | undefined;
2104
+ onTransactionSent: ((hash: string) => void) | undefined;
2105
+ };
2106
+
2107
+ interface UseBuyOrderArgs extends Omit<UseTransactionMachineConfig, 'type'> {
2108
+ onSuccess?: (hash: string) => void;
2109
+ onError?: (error: Error) => void;
2110
+ onTransactionSent?: (hash: string) => void;
2111
+ }
2112
+ declare const useBuyCollectable: ({ onSuccess, onError, onTransactionSent, ...config }: UseBuyOrderArgs) => {
2113
+ buy: (props: BuyInput) => Promise<void> | undefined;
2114
+ onError: ((error: Error) => void) | undefined;
2115
+ onSuccess: ((hash: string) => void) | undefined;
2116
+ onTransactionSent: ((hash: string) => void) | undefined;
2117
+ };
2118
+
2119
+ export { type CreateReqWithDateExpiry$1 as CreateReqWithDateExpiry, type GenerateListingTransactionProps, type GenerateOfferTransactionProps, type TransferTokensParams, type UseCheckoutOptionsArgs, type UseCheckoutOptionsReturn, type UseCollectibleArgs, type UseCollectibleReturn, type UseCollectionArgs, type UseCollectionReturn, type UseContOfCollectableReturn, type UseCountOfCollectablesArgs, type UseCurrenciesReturn, type UseCurrencyReturn, type UseFetchTokenBalancesReturn, type UseFilterReturn, type UseFiltersArgs, type UseFloorOrderArgs, type UseFloorOrderReturn, UseGenerateBuyTransactionArgsSchema, type UseGenerateListingTransactionArgs, type UseGenerateOfferTransactionArgs, type UseHighestOfferArgs, type UseHighestOfferReturn, type UseListBalancesArgs, type UseListCollectiblesArgs, type UseListCollectiblesReturn, type UseListCollectionsArgs, type UseListCollectionsReturn, type UseListListingsForCollectibleReturn, type UseListOffersForCollectibleReturn, type UseLowestListingArgs, type UseLowestListingReturn, balanceOfCollectibleOptions, checkoutOptionsOptions, collectibleOptions, collectionOptions, countOfCollectablesOptions, currenciesOptions, currencyOptions, fetchFilters, fetchGenerateBuyTransaction, filtersOptions, floorOrderOptions, generateBuyTransactionOptions, generateCancelTransaction, generateListingTransaction, generateOfferTransaction, generateSellTransaction, highestOfferOptions, listBalancesOptions, listCollectiblesOptions, listCollectionsOptions, listListingsForCollectibleOptions, listOffersForCollectibleOptions, lowestListingOptions, marketplaceConfigOptions, metadataOptionsSchema, royaletyPercentageOptions, useBalanceOfCollectible, useBuyCollectable, useCancelOrder, useCheckoutOptions, useCollectible, useCollection, useConfig, useCountOfCollectables, useCurrencies, useCurrency, useFilters, useFloorOrder, useGenerateBuyTransaction, useGenerateCancelTransaction, useGenerateListingTransaction, useGenerateOfferTransaction, useGenerateSellTransaction, useHighestOffer, useListBalances, useListCollectibles, useListCollections, useListListingsForCollectible, useListOffersForCollectible, useLowestListing, useMarketplaceConfig, useRoyaltyPercentage, useTransferTokens };