@0xsequence/marketplace-sdk 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/BellIcon.js +1 -1
- package/dist/Card.js +1 -1
- package/dist/ShopCard.d.ts +4 -4
- package/dist/builder-api.js +1 -1
- package/dist/collectible.js +1 -1
- package/dist/collection.js +1 -1
- package/dist/create-config.d.ts +597 -201
- package/dist/create-config.js +1 -1
- package/dist/currency.js +1 -1
- package/dist/dist.js +167 -148
- package/dist/dist.js.map +1 -1
- package/dist/expirationDateSelect.js +1 -1
- package/dist/filter-state.d.ts +1 -1
- package/dist/filters.d.ts +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index10.d.ts +3 -3
- package/dist/index11.d.ts +17 -17
- package/dist/index12.d.ts +26 -26
- package/dist/index14.d.ts +3 -3
- package/dist/index15.d.ts +3 -3
- package/dist/index16.d.ts +2 -2
- package/dist/index17.d.ts +86 -86
- package/dist/index18.d.ts +40 -40
- package/dist/index19.d.ts +5 -5
- package/dist/index2.d.ts +4 -1
- package/dist/index21.d.ts +15 -15
- package/dist/index22.d.ts +8 -65
- package/dist/index23.d.ts +21 -13
- package/dist/index26.d.ts +4 -4
- package/dist/index27.d.ts +4 -4
- package/dist/index28.d.ts +10 -10
- package/dist/index3.d.ts +2 -2194
- package/dist/index31.d.ts +5 -5
- package/dist/index33.d.ts +3 -3
- package/dist/index34.d.ts +4 -4
- package/dist/index35.d.ts +1 -1
- package/dist/index36.d.ts +7 -7
- package/dist/index37.d.ts +6 -6
- package/dist/index38.d.ts +8 -8
- package/dist/index39.d.ts +1 -1
- package/dist/index4.d.ts +995 -995
- package/dist/index40.d.ts +2 -2
- package/dist/index8.d.ts +2 -2
- package/dist/index9.d.ts +2811 -3
- package/dist/inventory.d.ts +4 -4
- package/dist/inventory.js +2 -2
- package/dist/marketplace2.js +2 -2
- package/dist/metadata.d.ts +73 -73
- package/dist/primary-sale-checkout-options.d.ts +4 -4
- package/dist/quantityInput.js +1 -1
- package/dist/ranges.d.ts +17 -17
- package/dist/react/_internal/index.d.ts +1 -1
- package/dist/react/_internal/index.js +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/react/queries/collectible/index.d.ts +1 -1
- package/dist/react/queries/index.d.ts +1 -1
- package/dist/react/ssr/index.d.ts +1 -1
- package/dist/react/ssr/index.js +2 -2
- package/dist/react/ui/components/marketplace-collectible-card/index.d.ts +1 -1
- package/dist/react/ui/components/marketplace-logos/index.d.ts +21 -21
- package/dist/react/ui/modals/CreateListingModal/internal/hooks/index.d.ts +1 -1
- package/dist/react/ui/modals/MakeOfferModal/internal/hooks/index.d.ts +1 -1
- package/dist/react/ui/modals/_internal/components/alertMessage/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/baseModal/index.d.ts +6 -6
- package/dist/react/ui/modals/_internal/components/calendar/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/calendarDropdown/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/currencyImage/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/currencyOptionsSelect/index.d.ts +3 -3
- package/dist/react/ui/modals/_internal/components/floorPriceText/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/priceInput/index.d.ts +3 -3
- package/dist/react/ui/modals/_internal/components/quantityInput/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/selectWaasFeeOptions/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/switchChainErrorModal/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/timeAgo/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/tokenPreview/index.d.ts +3 -3
- package/dist/react/ui/modals/_internal/components/transaction-footer/index.d.ts +3 -3
- package/dist/react/ui/modals/_internal/components/transactionDetails/index.d.ts +3 -3
- package/dist/react/ui/modals/_internal/components/transactionPreview/index.d.ts +3 -3
- package/dist/react/ui/modals/_internal/components/transactionStatusModal/index.d.ts +3 -3
- package/dist/react.js +2192 -1903
- package/dist/react.js.map +1 -1
- package/dist/token-balances.d.ts +28 -28
- package/dist/transaction-footer.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/url-state.js +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils.js +20 -4
- package/dist/utils.js.map +1 -1
- package/package.json +7 -5
- package/src/react/hooks/config/useMarketplaceConfig.test.tsx +1 -0
- package/src/react/hooks/transactions/useCancelTransactionSteps.tsx +4 -1
- package/src/react/hooks/utils/useEnsureCorrectChain.ts +10 -5
- package/src/react/ui/modals/BuyModal/components/BuyModalContent.tsx +34 -31
- package/src/react/ui/modals/BuyModal/components/CryptoPaymentModal.tsx +74 -11
- package/src/react/ui/modals/BuyModal/components/Modal.tsx +62 -1
- package/src/react/ui/modals/BuyModal/hooks/useExecuteBundledTransactions.ts +13 -26
- package/src/react/ui/modals/BuyModal/internal/__tests__/buildTrailsMarketBuyActions.test.ts +213 -0
- package/src/react/ui/modals/BuyModal/internal/buildTrailsMarketBuyActions.ts +259 -0
- package/src/react/ui/modals/BuyModal/internal/buyModalContext.ts +79 -10
- package/src/react/ui/modals/BuyModal/internal/cryptoPaymentModalContext.tsx +44 -17
- package/src/react/ui/modals/MakeOfferModal/internal/context.ts +2 -1
- package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +2 -1
- package/src/react/ui/modals/_internal/components/priceInput/index.tsx +12 -11
- package/src/react/ui/modals/_internal/helpers/currency.test.ts +27 -0
- package/src/react/ui/modals/_internal/helpers/currency.ts +4 -2
- package/src/utils/__tests__/getMarketplaceDetails.test.ts +10 -0
- package/src/utils/__tests__/getWebRPCErrorMessage.test.ts +28 -0
- package/src/utils/__tests__/marketplaceNormalization.test.ts +38 -0
- package/src/utils/getConduitAddressForOrderbook.ts +2 -10
- package/src/utils/getMarketplaceDetails.ts +11 -4
- package/src/utils/getWebRPCErrorMessage.ts +21 -0
- package/src/utils/normalizeMarketplace.ts +31 -0
package/dist/inventory.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { At as GetUserCollectionBalancesRequest, Ft as TokenMetadata$1, Lt as ChainId, Nt as TokenBalance$1, c as ContractType, on as MetadataStatus, pn as Page } from "./index2.js";
|
|
2
2
|
import { W as SdkQueryParams, X as WithRequired, it as WithOptionalParams } from "./create-config.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _tanstack_react_query174 from "@tanstack/react-query";
|
|
4
4
|
|
|
5
5
|
//#region src/react/queries/inventory/inventory.d.ts
|
|
6
6
|
type FetchInventoryParams = GetUserCollectionBalancesRequest & {
|
|
@@ -33,8 +33,8 @@ type UseInventoryArgs = Omit<InventoryQueryOptions, 'config'> & {
|
|
|
33
33
|
};
|
|
34
34
|
declare function fetchInventory(params: WithRequired<InventoryQueryOptions, 'userAddress' | 'collectionAddress' | 'chainId' | 'config'>): Promise<CollectiblesResponse>;
|
|
35
35
|
declare function getInventoryQueryKey(params: InventoryQueryOptions): readonly ["inventory", `0x${string}` | undefined, `0x${string}` | undefined, number | undefined, number, number];
|
|
36
|
-
declare function inventoryOptions(params: WithOptionalParams<WithRequired<InventoryQueryOptions, 'userAddress' | 'collectionAddress' | 'chainId' | 'config'>>):
|
|
37
|
-
queryFn?:
|
|
36
|
+
declare function inventoryOptions(params: WithOptionalParams<WithRequired<InventoryQueryOptions, 'userAddress' | 'collectionAddress' | 'chainId' | 'config'>>): _tanstack_react_query174.OmitKeyof<_tanstack_react_query174.UseQueryOptions<CollectiblesResponse, Error, CollectiblesResponse, readonly unknown[]>, "queryFn"> & {
|
|
37
|
+
queryFn?: _tanstack_react_query174.QueryFunction<CollectiblesResponse, readonly unknown[], never> | undefined;
|
|
38
38
|
} & {
|
|
39
39
|
queryKey: readonly unknown[] & {
|
|
40
40
|
[dataTagSymbol]: CollectiblesResponse;
|
package/dist/inventory.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { m as MetadataStatus, t as ContractType } from "./dist.js";
|
|
2
|
+
import { d as findMarketCollection } from "./utils.js";
|
|
3
3
|
import { g as getQueryClient } from "./api.js";
|
|
4
4
|
import { r as buildQueryOptions } from "./_internal.js";
|
|
5
5
|
import { r as tokenBalancesOptions } from "./token-balances.js";
|
package/dist/marketplace2.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { T as FilterCondition } from "./dist.js";
|
|
2
|
+
import { d as findMarketCollection } from "./utils.js";
|
|
3
3
|
import { g as getQueryClient, i as getMetadataClient } from "./api.js";
|
|
4
4
|
import { r as buildQueryOptions } from "./_internal.js";
|
|
5
5
|
import { n as marketplaceConfigOptions, r as createMarketplaceQueryKey } from "./config.js";
|
package/dist/metadata.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as ListOrdersWithCollectiblesResponse, Bt as TokenId, C as GetFloorOrderRequest, It as Address$1, Kt as CollectiblesFilter, Lt as ChainId, Pt as TokenBalancesFilter$1, St as GetTokenBalancesDetailsRequest, _ as GetCountOfAllOrdersRequest, a as CollectibleOrder, ct as index_d_exports$1$1, dn as OrderbookKind, dt as ContractInfo$1$1, fn as OrdersFilter, ft as ContractInfoExtensions$1$1, ln as OrderSide, mt as GetContractInfoSdkArgs, pn as Page$2, s as CollectionFilterSettings, y as GetCountOfFilteredOrdersRequest, z as ListOrdersWithCollectiblesRequest, zt as ProjectId } from "./index2.js";
|
|
2
2
|
import { U as SdkInfiniteQueryParams, W as SdkQueryParams, X as WithRequired, c as SdkConfig, it as WithOptionalParams, p as MarketplaceConfig } from "./create-config.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
3
|
+
import * as _0xsequence_indexer1 from "@0xsequence/indexer";
|
|
4
|
+
import * as _0xsequence_metadata3 from "@0xsequence/metadata";
|
|
5
|
+
import * as _tanstack_react_query136 from "@tanstack/react-query";
|
|
6
6
|
|
|
7
7
|
//#region src/react/queries/collection/balance-details.d.ts
|
|
8
8
|
type CollectionBalanceFilter = TokenBalancesFilter$1;
|
|
@@ -18,8 +18,8 @@ declare function getCollectionBalanceDetailsQueryKey(params: CollectionBalanceDe
|
|
|
18
18
|
chainId: number | undefined;
|
|
19
19
|
filter: index_d_exports$1$1.TokenBalancesFilter | undefined;
|
|
20
20
|
}];
|
|
21
|
-
declare function collectionBalanceDetailsQueryOptions(params: WithOptionalParams<WithRequired<CollectionBalanceDetailsQueryOptions, 'chainId' | 'filter' | 'config'>>):
|
|
22
|
-
queryFn?:
|
|
21
|
+
declare function collectionBalanceDetailsQueryOptions(params: WithOptionalParams<WithRequired<CollectionBalanceDetailsQueryOptions, 'chainId' | 'filter' | 'config'>>): _tanstack_react_query136.OmitKeyof<_tanstack_react_query136.UseQueryOptions<index_d_exports$1$1.GetTokenBalancesDetailsResponse, Error, index_d_exports$1$1.GetTokenBalancesDetailsResponse, readonly unknown[]>, "queryFn"> & {
|
|
22
|
+
queryFn?: _tanstack_react_query136.QueryFunction<index_d_exports$1$1.GetTokenBalancesDetailsResponse, readonly unknown[], never> | undefined;
|
|
23
23
|
} & {
|
|
24
24
|
queryKey: readonly unknown[] & {
|
|
25
25
|
[dataTagSymbol]: index_d_exports$1$1.GetTokenBalancesDetailsResponse;
|
|
@@ -38,10 +38,10 @@ type ListCollectionsQueryOptions = SdkQueryParams<FetchListCollectionsParams>;
|
|
|
38
38
|
*/
|
|
39
39
|
declare function fetchListCollections(params: WithRequired<ListCollectionsQueryOptions, 'marketplaceConfig' | 'config'>): Promise<({
|
|
40
40
|
symbol: string;
|
|
41
|
+
type: string;
|
|
41
42
|
name: string;
|
|
42
|
-
status:
|
|
43
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
43
44
|
updatedAt: string;
|
|
44
|
-
type: string;
|
|
45
45
|
decimals?: number | undefined;
|
|
46
46
|
source: string;
|
|
47
47
|
queuedAt?: string | undefined;
|
|
@@ -61,15 +61,15 @@ declare function fetchListCollections(params: WithRequired<ListCollectionsQueryO
|
|
|
61
61
|
marketplaceCollectionType: "market";
|
|
62
62
|
projectId: ProjectId;
|
|
63
63
|
itemsAddress: Address$1;
|
|
64
|
-
contractType:
|
|
64
|
+
contractType: _0xsequence_indexer1.ContractType;
|
|
65
65
|
destinationMarketplace: OrderbookKind;
|
|
66
66
|
filterSettings?: CollectionFilterSettings;
|
|
67
67
|
} | {
|
|
68
68
|
symbol: string;
|
|
69
|
+
type: string;
|
|
69
70
|
name: string;
|
|
70
|
-
status:
|
|
71
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
71
72
|
updatedAt: string;
|
|
72
|
-
type: string;
|
|
73
73
|
decimals?: number | undefined;
|
|
74
74
|
source: string;
|
|
75
75
|
queuedAt?: string | undefined;
|
|
@@ -95,12 +95,12 @@ declare function getListCollectionsQueryKey(params: ListCollectionsQueryOptions)
|
|
|
95
95
|
readonly collectionType: "market" | "shop" | undefined;
|
|
96
96
|
readonly marketplaceConfig: MarketplaceConfig | undefined;
|
|
97
97
|
}];
|
|
98
|
-
declare function listCollectionsQueryOptions(params: WithOptionalParams<WithRequired<ListCollectionsQueryOptions, 'marketplaceConfig' | 'config'>>):
|
|
98
|
+
declare function listCollectionsQueryOptions(params: WithOptionalParams<WithRequired<ListCollectionsQueryOptions, 'marketplaceConfig' | 'config'>>): _tanstack_react_query136.OmitKeyof<_tanstack_react_query136.UseQueryOptions<({
|
|
99
99
|
symbol: string;
|
|
100
|
+
type: string;
|
|
100
101
|
name: string;
|
|
101
|
-
status:
|
|
102
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
102
103
|
updatedAt: string;
|
|
103
|
-
type: string;
|
|
104
104
|
decimals?: number | undefined;
|
|
105
105
|
source: string;
|
|
106
106
|
queuedAt?: string | undefined;
|
|
@@ -120,15 +120,15 @@ declare function listCollectionsQueryOptions(params: WithOptionalParams<WithRequ
|
|
|
120
120
|
marketplaceCollectionType: "market";
|
|
121
121
|
projectId: ProjectId;
|
|
122
122
|
itemsAddress: Address$1;
|
|
123
|
-
contractType:
|
|
123
|
+
contractType: _0xsequence_indexer1.ContractType;
|
|
124
124
|
destinationMarketplace: OrderbookKind;
|
|
125
125
|
filterSettings?: CollectionFilterSettings;
|
|
126
126
|
} | {
|
|
127
127
|
symbol: string;
|
|
128
|
+
type: string;
|
|
128
129
|
name: string;
|
|
129
|
-
status:
|
|
130
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
130
131
|
updatedAt: string;
|
|
131
|
-
type: string;
|
|
132
132
|
decimals?: number | undefined;
|
|
133
133
|
source: string;
|
|
134
134
|
queuedAt?: string | undefined;
|
|
@@ -151,10 +151,10 @@ declare function listCollectionsQueryOptions(params: WithOptionalParams<WithRequ
|
|
|
151
151
|
customTokenIds: TokenId[];
|
|
152
152
|
})[], Error, ({
|
|
153
153
|
symbol: string;
|
|
154
|
+
type: string;
|
|
154
155
|
name: string;
|
|
155
|
-
status:
|
|
156
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
156
157
|
updatedAt: string;
|
|
157
|
-
type: string;
|
|
158
158
|
decimals?: number | undefined;
|
|
159
159
|
source: string;
|
|
160
160
|
queuedAt?: string | undefined;
|
|
@@ -174,15 +174,15 @@ declare function listCollectionsQueryOptions(params: WithOptionalParams<WithRequ
|
|
|
174
174
|
marketplaceCollectionType: "market";
|
|
175
175
|
projectId: ProjectId;
|
|
176
176
|
itemsAddress: Address$1;
|
|
177
|
-
contractType:
|
|
177
|
+
contractType: _0xsequence_indexer1.ContractType;
|
|
178
178
|
destinationMarketplace: OrderbookKind;
|
|
179
179
|
filterSettings?: CollectionFilterSettings;
|
|
180
180
|
} | {
|
|
181
181
|
symbol: string;
|
|
182
|
+
type: string;
|
|
182
183
|
name: string;
|
|
183
|
-
status:
|
|
184
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
184
185
|
updatedAt: string;
|
|
185
|
-
type: string;
|
|
186
186
|
decimals?: number | undefined;
|
|
187
187
|
source: string;
|
|
188
188
|
queuedAt?: string | undefined;
|
|
@@ -204,12 +204,12 @@ declare function listCollectionsQueryOptions(params: WithOptionalParams<WithRequ
|
|
|
204
204
|
tokenIds: TokenId[];
|
|
205
205
|
customTokenIds: TokenId[];
|
|
206
206
|
})[], readonly unknown[]>, "queryFn"> & {
|
|
207
|
-
queryFn?:
|
|
207
|
+
queryFn?: _tanstack_react_query136.QueryFunction<({
|
|
208
208
|
symbol: string;
|
|
209
|
+
type: string;
|
|
209
210
|
name: string;
|
|
210
|
-
status:
|
|
211
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
211
212
|
updatedAt: string;
|
|
212
|
-
type: string;
|
|
213
213
|
decimals?: number | undefined;
|
|
214
214
|
source: string;
|
|
215
215
|
queuedAt?: string | undefined;
|
|
@@ -229,15 +229,15 @@ declare function listCollectionsQueryOptions(params: WithOptionalParams<WithRequ
|
|
|
229
229
|
marketplaceCollectionType: "market";
|
|
230
230
|
projectId: ProjectId;
|
|
231
231
|
itemsAddress: Address$1;
|
|
232
|
-
contractType:
|
|
232
|
+
contractType: _0xsequence_indexer1.ContractType;
|
|
233
233
|
destinationMarketplace: OrderbookKind;
|
|
234
234
|
filterSettings?: CollectionFilterSettings;
|
|
235
235
|
} | {
|
|
236
236
|
symbol: string;
|
|
237
|
+
type: string;
|
|
237
238
|
name: string;
|
|
238
|
-
status:
|
|
239
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
239
240
|
updatedAt: string;
|
|
240
|
-
type: string;
|
|
241
241
|
decimals?: number | undefined;
|
|
242
242
|
source: string;
|
|
243
243
|
queuedAt?: string | undefined;
|
|
@@ -263,10 +263,10 @@ declare function listCollectionsQueryOptions(params: WithOptionalParams<WithRequ
|
|
|
263
263
|
queryKey: readonly unknown[] & {
|
|
264
264
|
[dataTagSymbol]: ({
|
|
265
265
|
symbol: string;
|
|
266
|
+
type: string;
|
|
266
267
|
name: string;
|
|
267
|
-
status:
|
|
268
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
268
269
|
updatedAt: string;
|
|
269
|
-
type: string;
|
|
270
270
|
decimals?: number | undefined;
|
|
271
271
|
source: string;
|
|
272
272
|
queuedAt?: string | undefined;
|
|
@@ -286,15 +286,15 @@ declare function listCollectionsQueryOptions(params: WithOptionalParams<WithRequ
|
|
|
286
286
|
marketplaceCollectionType: "market";
|
|
287
287
|
projectId: ProjectId;
|
|
288
288
|
itemsAddress: Address$1;
|
|
289
|
-
contractType:
|
|
289
|
+
contractType: _0xsequence_indexer1.ContractType;
|
|
290
290
|
destinationMarketplace: OrderbookKind;
|
|
291
291
|
filterSettings?: CollectionFilterSettings;
|
|
292
292
|
} | {
|
|
293
293
|
symbol: string;
|
|
294
|
+
type: string;
|
|
294
295
|
name: string;
|
|
295
|
-
status:
|
|
296
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
296
297
|
updatedAt: string;
|
|
297
|
-
type: string;
|
|
298
298
|
decimals?: number | undefined;
|
|
299
299
|
source: string;
|
|
300
300
|
queuedAt?: string | undefined;
|
|
@@ -324,12 +324,12 @@ declare const listCollectionsOptions: ({
|
|
|
324
324
|
marketplaceConfig,
|
|
325
325
|
config,
|
|
326
326
|
query
|
|
327
|
-
}: ListCollectionsQueryOptions) =>
|
|
327
|
+
}: ListCollectionsQueryOptions) => _tanstack_react_query136.UseQueryOptions<({
|
|
328
328
|
symbol: string;
|
|
329
|
+
type: string;
|
|
329
330
|
name: string;
|
|
330
|
-
status:
|
|
331
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
331
332
|
updatedAt: string;
|
|
332
|
-
type: string;
|
|
333
333
|
decimals?: number | undefined;
|
|
334
334
|
source: string;
|
|
335
335
|
queuedAt?: string | undefined;
|
|
@@ -349,15 +349,15 @@ declare const listCollectionsOptions: ({
|
|
|
349
349
|
marketplaceCollectionType: "market";
|
|
350
350
|
projectId: ProjectId;
|
|
351
351
|
itemsAddress: Address$1;
|
|
352
|
-
contractType:
|
|
352
|
+
contractType: _0xsequence_indexer1.ContractType;
|
|
353
353
|
destinationMarketplace: OrderbookKind;
|
|
354
354
|
filterSettings?: CollectionFilterSettings;
|
|
355
355
|
} | {
|
|
356
356
|
symbol: string;
|
|
357
|
+
type: string;
|
|
357
358
|
name: string;
|
|
358
|
-
status:
|
|
359
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
359
360
|
updatedAt: string;
|
|
360
|
-
type: string;
|
|
361
361
|
decimals?: number | undefined;
|
|
362
362
|
source: string;
|
|
363
363
|
queuedAt?: string | undefined;
|
|
@@ -380,10 +380,10 @@ declare const listCollectionsOptions: ({
|
|
|
380
380
|
customTokenIds: TokenId[];
|
|
381
381
|
})[], Error, ({
|
|
382
382
|
symbol: string;
|
|
383
|
+
type: string;
|
|
383
384
|
name: string;
|
|
384
|
-
status:
|
|
385
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
385
386
|
updatedAt: string;
|
|
386
|
-
type: string;
|
|
387
387
|
decimals?: number | undefined;
|
|
388
388
|
source: string;
|
|
389
389
|
queuedAt?: string | undefined;
|
|
@@ -403,15 +403,15 @@ declare const listCollectionsOptions: ({
|
|
|
403
403
|
marketplaceCollectionType: "market";
|
|
404
404
|
projectId: ProjectId;
|
|
405
405
|
itemsAddress: Address$1;
|
|
406
|
-
contractType:
|
|
406
|
+
contractType: _0xsequence_indexer1.ContractType;
|
|
407
407
|
destinationMarketplace: OrderbookKind;
|
|
408
408
|
filterSettings?: CollectionFilterSettings;
|
|
409
409
|
} | {
|
|
410
410
|
symbol: string;
|
|
411
|
+
type: string;
|
|
411
412
|
name: string;
|
|
412
|
-
status:
|
|
413
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
413
414
|
updatedAt: string;
|
|
414
|
-
type: string;
|
|
415
415
|
decimals?: number | undefined;
|
|
416
416
|
source: string;
|
|
417
417
|
queuedAt?: string | undefined;
|
|
@@ -439,10 +439,10 @@ declare const listCollectionsOptions: ({
|
|
|
439
439
|
})[]> & {
|
|
440
440
|
initialData?: ({
|
|
441
441
|
symbol: string;
|
|
442
|
+
type: string;
|
|
442
443
|
name: string;
|
|
443
|
-
status:
|
|
444
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
444
445
|
updatedAt: string;
|
|
445
|
-
type: string;
|
|
446
446
|
decimals?: number | undefined;
|
|
447
447
|
source: string;
|
|
448
448
|
queuedAt?: string | undefined;
|
|
@@ -462,15 +462,15 @@ declare const listCollectionsOptions: ({
|
|
|
462
462
|
marketplaceCollectionType: "market";
|
|
463
463
|
projectId: ProjectId;
|
|
464
464
|
itemsAddress: Address$1;
|
|
465
|
-
contractType:
|
|
465
|
+
contractType: _0xsequence_indexer1.ContractType;
|
|
466
466
|
destinationMarketplace: OrderbookKind;
|
|
467
467
|
filterSettings?: CollectionFilterSettings;
|
|
468
468
|
} | {
|
|
469
469
|
symbol: string;
|
|
470
|
+
type: string;
|
|
470
471
|
name: string;
|
|
471
|
-
status:
|
|
472
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
472
473
|
updatedAt: string;
|
|
473
|
-
type: string;
|
|
474
474
|
decimals?: number | undefined;
|
|
475
475
|
source: string;
|
|
476
476
|
queuedAt?: string | undefined;
|
|
@@ -491,12 +491,12 @@ declare const listCollectionsOptions: ({
|
|
|
491
491
|
saleAddress: Address$1;
|
|
492
492
|
tokenIds: TokenId[];
|
|
493
493
|
customTokenIds: TokenId[];
|
|
494
|
-
})[] |
|
|
494
|
+
})[] | _tanstack_react_query136.InitialDataFunction<({
|
|
495
495
|
symbol: string;
|
|
496
|
+
type: string;
|
|
496
497
|
name: string;
|
|
497
|
-
status:
|
|
498
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
498
499
|
updatedAt: string;
|
|
499
|
-
type: string;
|
|
500
500
|
decimals?: number | undefined;
|
|
501
501
|
source: string;
|
|
502
502
|
queuedAt?: string | undefined;
|
|
@@ -516,15 +516,15 @@ declare const listCollectionsOptions: ({
|
|
|
516
516
|
marketplaceCollectionType: "market";
|
|
517
517
|
projectId: ProjectId;
|
|
518
518
|
itemsAddress: Address$1;
|
|
519
|
-
contractType:
|
|
519
|
+
contractType: _0xsequence_indexer1.ContractType;
|
|
520
520
|
destinationMarketplace: OrderbookKind;
|
|
521
521
|
filterSettings?: CollectionFilterSettings;
|
|
522
522
|
} | {
|
|
523
523
|
symbol: string;
|
|
524
|
+
type: string;
|
|
524
525
|
name: string;
|
|
525
|
-
status:
|
|
526
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
526
527
|
updatedAt: string;
|
|
527
|
-
type: string;
|
|
528
528
|
decimals?: number | undefined;
|
|
529
529
|
source: string;
|
|
530
530
|
queuedAt?: string | undefined;
|
|
@@ -554,10 +554,10 @@ declare const listCollectionsOptions: ({
|
|
|
554
554
|
})[] & {
|
|
555
555
|
[dataTagSymbol]: ({
|
|
556
556
|
symbol: string;
|
|
557
|
+
type: string;
|
|
557
558
|
name: string;
|
|
558
|
-
status:
|
|
559
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
559
560
|
updatedAt: string;
|
|
560
|
-
type: string;
|
|
561
561
|
decimals?: number | undefined;
|
|
562
562
|
source: string;
|
|
563
563
|
queuedAt?: string | undefined;
|
|
@@ -577,15 +577,15 @@ declare const listCollectionsOptions: ({
|
|
|
577
577
|
marketplaceCollectionType: "market";
|
|
578
578
|
projectId: ProjectId;
|
|
579
579
|
itemsAddress: Address$1;
|
|
580
|
-
contractType:
|
|
580
|
+
contractType: _0xsequence_indexer1.ContractType;
|
|
581
581
|
destinationMarketplace: OrderbookKind;
|
|
582
582
|
filterSettings?: CollectionFilterSettings;
|
|
583
583
|
} | {
|
|
584
584
|
symbol: string;
|
|
585
|
+
type: string;
|
|
585
586
|
name: string;
|
|
586
|
-
status:
|
|
587
|
+
status: _0xsequence_metadata3.ResourceStatus;
|
|
587
588
|
updatedAt: string;
|
|
588
|
-
type: string;
|
|
589
589
|
decimals?: number | undefined;
|
|
590
590
|
source: string;
|
|
591
591
|
queuedAt?: string | undefined;
|
|
@@ -621,8 +621,8 @@ declare function getCountOfFilteredOrdersQueryKey(params: GetCountOfFilteredOrde
|
|
|
621
621
|
readonly side: OrderSide | undefined;
|
|
622
622
|
readonly filter: OrdersFilter | undefined;
|
|
623
623
|
}];
|
|
624
|
-
declare function getCountOfFilteredOrdersQueryOptions(params: WithOptionalParams<WithRequired<GetCountOfFilteredOrdersQueryOptions, 'chainId' | 'collectionAddress' | 'side' | 'config'>>):
|
|
625
|
-
queryFn?:
|
|
624
|
+
declare function getCountOfFilteredOrdersQueryOptions(params: WithOptionalParams<WithRequired<GetCountOfFilteredOrdersQueryOptions, 'chainId' | 'collectionAddress' | 'side' | 'config'>>): _tanstack_react_query136.OmitKeyof<_tanstack_react_query136.UseQueryOptions<number, Error, number, readonly unknown[]>, "queryFn"> & {
|
|
625
|
+
queryFn?: _tanstack_react_query136.QueryFunction<number, readonly unknown[], never> | undefined;
|
|
626
626
|
} & {
|
|
627
627
|
queryKey: readonly unknown[] & {
|
|
628
628
|
[dataTagSymbol]: number;
|
|
@@ -641,8 +641,8 @@ declare function getFloorOrderQueryKey(params: FloorOrderQueryOptions): readonly
|
|
|
641
641
|
readonly collectionAddress: "" | `0x${string}`;
|
|
642
642
|
readonly filter: CollectiblesFilter | undefined;
|
|
643
643
|
}];
|
|
644
|
-
declare function floorOrderQueryOptions(params: WithOptionalParams<WithRequired<FloorOrderQueryOptions, 'chainId' | 'collectionAddress' | 'config'>>):
|
|
645
|
-
queryFn?:
|
|
644
|
+
declare function floorOrderQueryOptions(params: WithOptionalParams<WithRequired<FloorOrderQueryOptions, 'chainId' | 'collectionAddress' | 'config'>>): _tanstack_react_query136.OmitKeyof<_tanstack_react_query136.UseQueryOptions<CollectibleOrder, Error, CollectibleOrder, readonly unknown[]>, "queryFn"> & {
|
|
645
|
+
queryFn?: _tanstack_react_query136.QueryFunction<CollectibleOrder, readonly unknown[], never> | undefined;
|
|
646
646
|
} & {
|
|
647
647
|
queryKey: readonly unknown[] & {
|
|
648
648
|
[dataTagSymbol]: CollectibleOrder;
|
|
@@ -659,11 +659,11 @@ declare function getListItemsOrdersForCollectionQueryKey(params: ListItemsOrders
|
|
|
659
659
|
side: OrderSide | undefined;
|
|
660
660
|
filter: OrdersFilter | undefined;
|
|
661
661
|
}];
|
|
662
|
-
declare function listItemsOrdersForCollectionQueryOptions(params: WithOptionalParams<WithRequired<ListItemsOrdersForCollectionQueryOptions, 'chainId' | 'collectionAddress' | 'side' | 'config'>>):
|
|
663
|
-
queryFn?:
|
|
662
|
+
declare function listItemsOrdersForCollectionQueryOptions(params: WithOptionalParams<WithRequired<ListItemsOrdersForCollectionQueryOptions, 'chainId' | 'collectionAddress' | 'side' | 'config'>>): _tanstack_react_query136.OmitKeyof<_tanstack_react_query136.UseInfiniteQueryOptions<ListOrdersWithCollectiblesResponse, Error, _tanstack_react_query136.InfiniteData<ListOrdersWithCollectiblesResponse, unknown>, readonly unknown[], Page$2>, "queryFn"> & {
|
|
663
|
+
queryFn?: _tanstack_react_query136.QueryFunction<ListOrdersWithCollectiblesResponse, readonly unknown[], Page$2> | undefined;
|
|
664
664
|
} & {
|
|
665
665
|
queryKey: readonly unknown[] & {
|
|
666
|
-
[dataTagSymbol]:
|
|
666
|
+
[dataTagSymbol]: _tanstack_react_query136.InfiniteData<ListOrdersWithCollectiblesResponse, unknown>;
|
|
667
667
|
[dataTagErrorSymbol]: Error;
|
|
668
668
|
};
|
|
669
669
|
};
|
|
@@ -680,8 +680,8 @@ declare function getCountItemsOrdersForCollectionQueryKey(params: CountItemsOrde
|
|
|
680
680
|
readonly collectionAddress: "" | `0x${string}`;
|
|
681
681
|
readonly side: OrderSide | undefined;
|
|
682
682
|
}];
|
|
683
|
-
declare function countItemsOrdersForCollectionQueryOptions(params: WithOptionalParams<WithRequired<CountItemsOrdersForCollectionQueryOptions, 'chainId' | 'collectionAddress' | 'side' | 'config'>>):
|
|
684
|
-
queryFn?:
|
|
683
|
+
declare function countItemsOrdersForCollectionQueryOptions(params: WithOptionalParams<WithRequired<CountItemsOrdersForCollectionQueryOptions, 'chainId' | 'collectionAddress' | 'side' | 'config'>>): _tanstack_react_query136.OmitKeyof<_tanstack_react_query136.UseQueryOptions<number, Error, number, readonly unknown[]>, "queryFn"> & {
|
|
684
|
+
queryFn?: _tanstack_react_query136.QueryFunction<number, readonly unknown[], never> | undefined;
|
|
685
685
|
} & {
|
|
686
686
|
queryKey: readonly unknown[] & {
|
|
687
687
|
[dataTagSymbol]: number;
|
|
@@ -700,8 +700,8 @@ type ListItemsOrdersForCollectionPaginatedQueryOptions = SdkQueryParams<FetchLis
|
|
|
700
700
|
*/
|
|
701
701
|
declare function fetchListItemsOrdersForCollectionPaginated(params: WithRequired<ListItemsOrdersForCollectionPaginatedQueryOptions, 'chainId' | 'collectionAddress' | 'side' | 'config'>): Promise<ListOrdersWithCollectiblesResponse>;
|
|
702
702
|
declare function getListItemsOrdersForCollectionPaginatedQueryKey(params: ListItemsOrdersForCollectionPaginatedQueryOptions): readonly ["order", "collection-items-paginated", ListItemsOrdersForCollectionPaginatedQueryOptions];
|
|
703
|
-
declare function listItemsOrdersForCollectionPaginatedQueryOptions(params: WithOptionalParams<WithRequired<ListItemsOrdersForCollectionPaginatedQueryOptions, 'collectionAddress' | 'chainId' | 'config' | 'side'>>):
|
|
704
|
-
queryFn?:
|
|
703
|
+
declare function listItemsOrdersForCollectionPaginatedQueryOptions(params: WithOptionalParams<WithRequired<ListItemsOrdersForCollectionPaginatedQueryOptions, 'collectionAddress' | 'chainId' | 'config' | 'side'>>): _tanstack_react_query136.OmitKeyof<_tanstack_react_query136.UseQueryOptions<ListOrdersWithCollectiblesResponse, Error, ListOrdersWithCollectiblesResponse, readonly unknown[]>, "queryFn"> & {
|
|
704
|
+
queryFn?: _tanstack_react_query136.QueryFunction<ListOrdersWithCollectiblesResponse, readonly unknown[], never> | undefined;
|
|
705
705
|
} & {
|
|
706
706
|
queryKey: readonly unknown[] & {
|
|
707
707
|
[dataTagSymbol]: ListOrdersWithCollectiblesResponse;
|
|
@@ -720,8 +720,8 @@ declare function getCollectionQueryKey(params: CollectionQueryOptions): readonly
|
|
|
720
720
|
chainId: number | undefined;
|
|
721
721
|
contractAddress: `0x${string}` | undefined;
|
|
722
722
|
}];
|
|
723
|
-
declare function collectionQueryOptions(params: WithOptionalParams<WithRequired<CollectionQueryOptions, 'chainId' | 'collectionAddress' | 'config'>>):
|
|
724
|
-
queryFn?:
|
|
723
|
+
declare function collectionQueryOptions(params: WithOptionalParams<WithRequired<CollectionQueryOptions, 'chainId' | 'collectionAddress' | 'config'>>): _tanstack_react_query136.OmitKeyof<_tanstack_react_query136.UseQueryOptions<ContractInfo$1$1, Error, ContractInfo$1$1, readonly unknown[]>, "queryFn"> & {
|
|
724
|
+
queryFn?: _tanstack_react_query136.QueryFunction<ContractInfo$1$1, readonly unknown[], never> | undefined;
|
|
725
725
|
} & {
|
|
726
726
|
queryKey: readonly unknown[] & {
|
|
727
727
|
[dataTagSymbol]: ContractInfo$1$1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as GetPrimarySaleCheckoutOptionsRequest, It as Address$1, Wt as CheckoutOptionsSalesContractResponse, r as CheckoutOptionsItem } from "./index2.js";
|
|
2
2
|
import { W as SdkQueryParams, X as WithRequired, it as WithOptionalParams } from "./create-config.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _tanstack_react_query213 from "@tanstack/react-query";
|
|
4
4
|
|
|
5
5
|
//#region src/react/queries/checkout/primary-sale-checkout-options.d.ts
|
|
6
6
|
type FetchPrimarySaleCheckoutOptionsParams = GetPrimarySaleCheckoutOptionsRequest;
|
|
@@ -16,8 +16,8 @@ declare function getPrimarySaleCheckoutOptionsQueryKey(params: PrimarySaleChecko
|
|
|
16
16
|
collectionAddress: Address$1;
|
|
17
17
|
items: ReadonlyArray<CheckoutOptionsItem>;
|
|
18
18
|
}];
|
|
19
|
-
declare function primarySaleCheckoutOptionsQueryOptions(params: WithOptionalParams<WithRequired<PrimarySaleCheckoutOptionsQueryOptions, 'chainId' | 'walletAddress' | 'contractAddress' | 'collectionAddress' | 'items' | 'config'>>):
|
|
20
|
-
queryFn?:
|
|
19
|
+
declare function primarySaleCheckoutOptionsQueryOptions(params: WithOptionalParams<WithRequired<PrimarySaleCheckoutOptionsQueryOptions, 'chainId' | 'walletAddress' | 'contractAddress' | 'collectionAddress' | 'items' | 'config'>>): _tanstack_react_query213.OmitKeyof<_tanstack_react_query213.UseQueryOptions<CheckoutOptionsSalesContractResponse, Error, CheckoutOptionsSalesContractResponse, readonly unknown[]>, "queryFn"> & {
|
|
20
|
+
queryFn?: _tanstack_react_query213.QueryFunction<CheckoutOptionsSalesContractResponse, readonly unknown[], never> | undefined;
|
|
21
21
|
} & {
|
|
22
22
|
queryKey: readonly unknown[] & {
|
|
23
23
|
[dataTagSymbol]: CheckoutOptionsSalesContractResponse;
|
package/dist/quantityInput.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { f as cn$1 } from "./utils.js";
|
|
4
4
|
import { useState } from "react";
|
|
5
5
|
import { AddIcon, Field, FieldLabel, IconButton, NumericInput, SubtractIcon } from "@0xsequence/design-system";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
package/dist/ranges.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dt as GetTokenIDRangesResponse, Et as GetTokenIDRangesRequest, It as Address$1, Mt as Page$1, Tt as GetTokenBalancesSdkRequest, _t as GetTokenMetadataSdkArgs, bt as TokenMetadata$1, jt as MetadataOptions$1, pn as Page$2, vt as SearchTokenMetadataReturn$1, wt as GetTokenBalancesResponse, yt as SearchTokenMetadataSdkArgs } from "./index2.js";
|
|
2
2
|
import { B as Optional, U as SdkInfiniteQueryParams, W as SdkQueryParams, X as WithRequired, it as WithOptionalParams, rt as WithOptionalInfiniteParams } from "./create-config.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as _0xsequence_metadata0 from "@0xsequence/metadata";
|
|
4
|
+
import * as _tanstack_react_query59 from "@tanstack/react-query";
|
|
5
5
|
|
|
6
6
|
//#region src/react/queries/token/balances.d.ts
|
|
7
7
|
type FetchBalancesParams = GetTokenBalancesSdkRequest & {
|
|
@@ -28,11 +28,11 @@ declare function getListBalancesQueryKey(params: ListBalancesQueryOptions): read
|
|
|
28
28
|
* @param params - The query parameters including config
|
|
29
29
|
* @returns Query options configuration
|
|
30
30
|
*/
|
|
31
|
-
declare function listBalancesOptions(params: WithOptionalInfiniteParams<WithRequired<ListBalancesQueryOptions, 'chainId' | 'accountAddress' | 'config'>>):
|
|
32
|
-
queryFn?:
|
|
31
|
+
declare function listBalancesOptions(params: WithOptionalInfiniteParams<WithRequired<ListBalancesQueryOptions, 'chainId' | 'accountAddress' | 'config'>>): _tanstack_react_query59.OmitKeyof<_tanstack_react_query59.UseInfiniteQueryOptions<GetTokenBalancesResponse, Error, _tanstack_react_query59.InfiniteData<GetTokenBalancesResponse, unknown>, readonly unknown[], Page$2>, "queryFn"> & {
|
|
32
|
+
queryFn?: _tanstack_react_query59.QueryFunction<GetTokenBalancesResponse, readonly unknown[], Page$2> | undefined;
|
|
33
33
|
} & {
|
|
34
34
|
queryKey: readonly unknown[] & {
|
|
35
|
-
[dataTagSymbol]:
|
|
35
|
+
[dataTagSymbol]: _tanstack_react_query59.InfiniteData<GetTokenBalancesResponse, unknown>;
|
|
36
36
|
[dataTagErrorSymbol]: Error;
|
|
37
37
|
};
|
|
38
38
|
};
|
|
@@ -49,8 +49,8 @@ declare function getListTokenMetadataQueryKey(params: ListTokenMetadataQueryOpti
|
|
|
49
49
|
contractAddress: `0x${string}` | undefined;
|
|
50
50
|
tokenIds: bigint[] | undefined;
|
|
51
51
|
}];
|
|
52
|
-
declare function listTokenMetadataQueryOptions(params: WithOptionalParams<WithRequired<ListTokenMetadataQueryOptions, 'chainId' | 'contractAddress' | 'tokenIds' | 'config'>>):
|
|
53
|
-
queryFn?:
|
|
52
|
+
declare function listTokenMetadataQueryOptions(params: WithOptionalParams<WithRequired<ListTokenMetadataQueryOptions, 'chainId' | 'contractAddress' | 'tokenIds' | 'config'>>): _tanstack_react_query59.OmitKeyof<_tanstack_react_query59.UseQueryOptions<TokenMetadata$1[], Error, TokenMetadata$1[], readonly unknown[]>, "queryFn"> & {
|
|
53
|
+
queryFn?: _tanstack_react_query59.QueryFunction<TokenMetadata$1[], readonly unknown[], never> | undefined;
|
|
54
54
|
} & {
|
|
55
55
|
queryKey: readonly unknown[] & {
|
|
56
56
|
[dataTagSymbol]: TokenMetadata$1[];
|
|
@@ -68,20 +68,20 @@ declare function fetchSearchTokenMetadata(params: WithRequired<SearchTokenMetada
|
|
|
68
68
|
declare function getSearchTokenMetadataQueryKey(params: SearchTokenMetadataQueryOptions): readonly ["token", string, {
|
|
69
69
|
chainId: number;
|
|
70
70
|
collectionAddress: string;
|
|
71
|
-
filter:
|
|
71
|
+
filter: _0xsequence_metadata0.Filter | undefined;
|
|
72
72
|
}];
|
|
73
|
-
declare function searchTokenMetadataQueryOptions(params: SearchTokenMetadataQueryOptions):
|
|
73
|
+
declare function searchTokenMetadataQueryOptions(params: SearchTokenMetadataQueryOptions): _tanstack_react_query59.OmitKeyof<_tanstack_react_query59.UseInfiniteQueryOptions<SearchTokenMetadataReturn$1, Error, _tanstack_react_query59.InfiniteData<SearchTokenMetadataReturn$1, unknown>, readonly ["token", string, {
|
|
74
74
|
chainId: number;
|
|
75
75
|
collectionAddress: string;
|
|
76
|
-
filter:
|
|
76
|
+
filter: _0xsequence_metadata0.Filter | undefined;
|
|
77
77
|
}], {
|
|
78
78
|
page: number;
|
|
79
79
|
pageSize: number;
|
|
80
80
|
}>, "queryFn"> & {
|
|
81
|
-
queryFn?:
|
|
81
|
+
queryFn?: _tanstack_react_query59.QueryFunction<SearchTokenMetadataReturn$1, readonly ["token", string, {
|
|
82
82
|
chainId: number;
|
|
83
83
|
collectionAddress: string;
|
|
84
|
-
filter:
|
|
84
|
+
filter: _0xsequence_metadata0.Filter | undefined;
|
|
85
85
|
}], {
|
|
86
86
|
page: number;
|
|
87
87
|
pageSize: number;
|
|
@@ -90,9 +90,9 @@ declare function searchTokenMetadataQueryOptions(params: SearchTokenMetadataQuer
|
|
|
90
90
|
queryKey: readonly ["token", string, {
|
|
91
91
|
chainId: number;
|
|
92
92
|
collectionAddress: string;
|
|
93
|
-
filter:
|
|
93
|
+
filter: _0xsequence_metadata0.Filter | undefined;
|
|
94
94
|
}] & {
|
|
95
|
-
[dataTagSymbol]:
|
|
95
|
+
[dataTagSymbol]: _tanstack_react_query59.InfiniteData<SearchTokenMetadataReturn$1, unknown>;
|
|
96
96
|
[dataTagErrorSymbol]: Error;
|
|
97
97
|
};
|
|
98
98
|
};
|
|
@@ -112,8 +112,8 @@ declare function getTokenRangesQueryKey(params: GetTokenRangesQueryOptions): rea
|
|
|
112
112
|
chainId: number | undefined;
|
|
113
113
|
collectionAddress: `0x${string}` | undefined;
|
|
114
114
|
}];
|
|
115
|
-
declare function getTokenRangesQueryOptions(params: WithOptionalParams<WithRequired<GetTokenRangesQueryOptions, 'chainId' | 'collectionAddress' | 'config'>>):
|
|
116
|
-
queryFn?:
|
|
115
|
+
declare function getTokenRangesQueryOptions(params: WithOptionalParams<WithRequired<GetTokenRangesQueryOptions, 'chainId' | 'collectionAddress' | 'config'>>): _tanstack_react_query59.OmitKeyof<_tanstack_react_query59.UseQueryOptions<GetTokenIDRangesResponse, Error, GetTokenIDRangesResponse, readonly unknown[]>, "queryFn"> & {
|
|
116
|
+
queryFn?: _tanstack_react_query59.QueryFunction<GetTokenIDRangesResponse, readonly unknown[], never> | undefined;
|
|
117
117
|
} & {
|
|
118
118
|
queryKey: readonly unknown[] & {
|
|
119
119
|
[dataTagSymbol]: GetTokenIDRangesResponse;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as OrderData, A as ListCollectibleListingsResponse, B as ListOrdersWithCollectiblesResponse, C as GetFloorOrderRequest, Cn as TransactionCrypto, Gt as Collectible, H as ListPrimarySaleItemsResponse, I as ListListingsForCollectibleResponse, Jt as CollectionStatus, Kt as CollectiblesFilter, L as ListOffersForCollectibleRequest, M as ListCollectiblesRequest, N as ListCollectiblesResponse, P as ListCurrenciesRequest, Q as Order, Qt as GetCollectibleHighestOfferResponse, R as ListOffersForCollectibleResponse, S as GetCountOfPrimarySaleItemsRequest, T as GetLowestPriceListingForCollectibleRequest, Tn as WalletKind, Ut as CheckoutOptions, V as ListPrimarySaleItemsRequest, Vt as AdditionalFee, Xt as ExecuteType, Yt as CurrencyStatus, Zt as GetCollectibleHighestOfferRequest, _n as PropertyFilter, a as CollectibleOrder, an as MarketplaceKind, at as Step, bn as SortOrder, c as ContractType, cn as OrderFilter, d as GenerateCancelTransactionRequest, dn as OrderbookKind, et as PrimarySaleItem, f as GenerateListingTransactionRequest, gn as PrimarySaleItemsFilter, hn as PriceFilter, i as CheckoutOptionsMarketplaceRequest, in as ListCollectibleListingsRequest, it as SignatureStep, j as ListCollectibleOffersResponse, l as CreateReq, ln as OrderSide, lt as isSignatureStep, m as GenerateSellTransactionRequest, mn as PostRequest, nn as GetCountOfOffersForCollectibleResponse, on as MetadataStatus, ot as TransactionStep, p as GenerateOfferTransactionRequest, pn as Page, qt as Collection, r as CheckoutOptionsItem, rn as GetCountOfPrimarySaleItemsResponse, rt as Signature, sn as OfferType, t as ApprovalStep, tn as GetCountOfListingsForCollectibleResponse, u as Currency, un as OrderStatus, ut as isTransactionStep, vn as PropertyType, w as GetHighestPriceOfferForCollectibleRequest, wn as TransactionOnRampProvider, xn as StepType, yn as SortBy, z as ListOrdersWithCollectiblesRequest } from "../../index2.js";
|
|
2
2
|
import { $ as EnsureAllRequiredKeys, A as serializeBigInts, B as Optional, Ct as marketplaceApiURL, D as getWaasConnectors, E as getEcosystemConnector, Et as getQueryClient, F as CollectableId, G as SellInput, H as QueryKeyArgs, I as CollectionType, J as TransactionType, K as Transaction, L as HookParamsFromApiRequest, M as ApiArgs, N as BuyInput, P as CancelInput, Q as BaseQueryParams, R as ListingInput, St as indexerURL, T as getConnectors, Tt as SequenceMarketplace, U as SdkInfiniteQueryParams, V as QueryArg, W as SdkQueryParams, X as WithRequired, Y as ValuesOptional, Z as BaseInfiniteQueryParams, _t as getSequenceApiClient, at as buildInfiniteQueryOptions, bt as getSequenceNodeGatewayUrl, dt as getProviderEl, et as InfiniteQueryBuilderConfig, ft as DEFAULT_NETWORK, gt as getMetadataClient, ht as getMarketplaceClient, it as WithOptionalParams, j as AllRequired, k as clamp, kt as BuilderAPI, mt as getIndexerClient, n as getWagmiChainsAndTransports, nt as RequiredKeys, ot as buildQueryOptions, pt as getBuilderClient, q as TransactionSteps, rt as WithOptionalInfiniteParams, st as requiredParamsFor, t as createWagmiConfig, tt as QueryBuilderConfig, ut as PROVIDER_ID, vt as getSequenceApiUrl, wt as sequenceApiUrl, xt as getTrailsApiUrl, yt as getSequenceIndexerUrl, z as OfferInput } from "../../create-config.js";
|
|
3
3
|
import "../../xstate-store.cjs.js";
|
|
4
4
|
import "../../index3.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as
|
|
1
|
+
import { C as TransactionOnRampProvider, S as TransactionCrypto, _ as OrderStatus, b as SortOrder, c as isSignatureStep, d as CurrencyStatus, f as ExecuteType, g as OrderSide, h as OfferType, l as isTransactionStep, m as MetadataStatus, p as MarketplaceKind, t as ContractType, u as CollectionStatus, v as OrderbookKind, w as WalletKind, x as StepType, y as PropertyType } from "../../dist.js";
|
|
2
2
|
import { t as BuilderAPI } from "../../builder-api.js";
|
|
3
3
|
import { a as getWaasConnectors, i as getEcosystemConnector, n as getWagmiChainsAndTransports, o as DEFAULT_NETWORK, r as getConnectors, t as createWagmiConfig } from "../../create-config.js";
|
|
4
4
|
import { a as getSequenceApiClient, c as getSequenceNodeGatewayUrl, d as marketplaceApiURL, f as sequenceApiUrl, g as getQueryClient, h as serializeBigInts, i as getMetadataClient, l as getTrailsApiUrl, m as clamp, n as getIndexerClient, o as getSequenceApiUrl, p as SequenceMarketplace, r as getMarketplaceClient, s as getSequenceIndexerUrl, t as getBuilderClient, u as indexerURL } from "../../api.js";
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as ListPrimarySaleItemsResponse, O as GetPrimarySaleItemResponse, V as ListPrimarySaleItemsRequest, o as CollectiblePrimarySaleItem } from "../index2.js";
|
|
2
2
|
import { Dt as fetchMarketplaceConfig, Et as getQueryClient, Ot as marketplaceConfigOptions, a as CheckoutMode, ct as StandardInfiniteQueryOptions, lt as StandardQueryOptions, n as getWagmiChainsAndTransports, t as createWagmiConfig } from "../create-config.js";
|
|
3
3
|
import "../xstate-store.cjs.js";
|
|
4
4
|
import "../index3.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as ListPrimarySaleItemsResponse, O as GetPrimarySaleItemResponse, V as ListPrimarySaleItemsRequest, o as CollectiblePrimarySaleItem } from "../../../index2.js";
|
|
2
2
|
import "../../../create-config.js";
|
|
3
3
|
import "../../../xstate-store.cjs.js";
|
|
4
4
|
import "../../../index3.js";
|