@0xsequence/marketplace-sdk 0.4.9 → 0.5.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.
- package/dist/{chunk-BMWCIHCB.js → chunk-5NORRVPM.js} +1 -1
- package/dist/{chunk-BMWCIHCB.js.map → chunk-5NORRVPM.js.map} +1 -1
- package/dist/{chunk-ATDCYXXV.js → chunk-6YHHCGGY.js} +2 -2
- package/dist/{chunk-BJLOO4NP.js → chunk-F4E3WJ2K.js} +30 -26
- package/dist/chunk-F4E3WJ2K.js.map +1 -0
- package/dist/{chunk-CUA4SGWT.js → chunk-I37CRQ4S.js} +750 -561
- package/dist/chunk-I37CRQ4S.js.map +1 -0
- package/dist/{chunk-TFCSNRD5.js → chunk-LJAB3S6U.js} +1 -1
- package/dist/chunk-LJAB3S6U.js.map +1 -0
- package/dist/{chunk-Y3KINNAU.js → chunk-MKGSGTQC.js} +14 -7
- package/dist/chunk-MKGSGTQC.js.map +1 -0
- package/dist/{chunk-XXML5K3X.js → chunk-QTJF5GDQ.js} +2 -2
- package/dist/{chunk-LF44FCG5.js → chunk-TQWM4ER6.js} +2 -2
- package/dist/{chunk-LF44FCG5.js.map → chunk-TQWM4ER6.js.map} +1 -1
- package/dist/{chunk-7HWJ4DUX.js → chunk-WSCUPAGR.js} +7 -3
- package/dist/chunk-WSCUPAGR.js.map +1 -0
- package/dist/{create-config-CgYQDyMD.d.ts → create-config-BXvwUh55.d.ts} +2 -2
- package/dist/index.css +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/{marketplace-config-BP5-XnFG.d.ts → marketplace-config-znEu4L0K.d.ts} +1 -1
- package/dist/{marketplace.gen-BzmWLP9L.d.ts → marketplace.gen-CCJ-URn2.d.ts} +2 -0
- package/dist/react/_internal/api/index.d.ts +3 -2
- package/dist/react/_internal/api/index.js +1 -1
- package/dist/react/_internal/index.d.ts +5 -5
- package/dist/react/_internal/index.js +1 -1
- package/dist/react/_internal/wagmi/index.d.ts +3 -3
- package/dist/react/hooks/index.d.ts +299 -94
- package/dist/react/hooks/index.js +11 -5
- package/dist/react/index.css +2 -2
- package/dist/react/index.css.map +1 -1
- package/dist/react/index.d.ts +6 -6
- package/dist/react/index.js +15 -9
- package/dist/react/ssr/index.js +4 -0
- package/dist/react/ssr/index.js.map +1 -1
- package/dist/react/ui/components/collectible-card/index.css +2 -2
- package/dist/react/ui/components/collectible-card/index.css.map +1 -1
- package/dist/react/ui/components/collectible-card/index.d.ts +3 -3
- package/dist/react/ui/components/collectible-card/index.js +9 -9
- package/dist/react/ui/icons/index.js +3 -3
- package/dist/react/ui/index.css +2 -2
- package/dist/react/ui/index.css.map +1 -1
- package/dist/react/ui/index.d.ts +3 -3
- package/dist/react/ui/index.js +9 -9
- package/dist/react/ui/modals/_internal/components/actionModal/index.d.ts +3 -3
- package/dist/react/ui/modals/_internal/components/actionModal/index.js +6 -6
- package/dist/{sdk-config-LbbmA85k.d.ts → sdk-config-B32_2bG3.d.ts} +4 -2
- package/dist/{services-DW26ougH.d.ts → services-BRBVE0mm.d.ts} +1 -1
- package/dist/styles/index.css +2 -2
- package/dist/styles/index.css.map +1 -1
- package/dist/styles/index.js +2 -2
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.js +1 -1
- package/dist/{types-DhTZWw1U.d.ts → types-Yto6KrTN.d.ts} +2 -2
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +2 -2
- package/package.json +16 -16
- package/src/react/_internal/api/marketplace.gen.ts +6 -3
- package/src/react/_internal/api/query-keys.ts +4 -0
- package/src/react/hooks/index.ts +2 -0
- package/src/react/hooks/useAutoSelectFeeOption.tsx +197 -0
- package/src/react/hooks/useCancelOrder.tsx +41 -1
- package/src/react/hooks/useCollectionBalanceDetails.tsx +87 -0
- package/src/react/ui/components/collectible-card/CollectibleCard.tsx +10 -12
- package/src/react/ui/components/collectible-card/styles.css.ts +1 -1
- package/src/react/ui/icons/CartIcon.tsx +2 -2
- package/src/react/ui/modals/BuyModal/hooks/useBuyCollectable.ts +7 -4
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/useHandleTransfer.tsx +5 -1
- package/src/react/ui/modals/_internal/components/waasFeeOptionsSelect/WaasFeeOptionsSelect.tsx +14 -7
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/chunk-7HWJ4DUX.js.map +0 -1
- package/dist/chunk-BJLOO4NP.js.map +0 -1
- package/dist/chunk-CUA4SGWT.js.map +0 -1
- package/dist/chunk-TFCSNRD5.js.map +0 -1
- package/dist/chunk-Y3KINNAU.js.map +0 -1
- /package/dist/{chunk-ATDCYXXV.js.map → chunk-6YHHCGGY.js.map} +0 -0
- /package/dist/{chunk-XXML5K3X.js.map → chunk-QTJF5GDQ.js.map} +0 -0
|
@@ -1,14 +1,121 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import * as _0xsequence_indexer from '@0xsequence/indexer';
|
|
3
|
-
import { Page, SortOrder } from '@0xsequence/indexer';
|
|
3
|
+
import { GetTokenBalancesDetailsReturn, Page, SortOrder } from '@0xsequence/indexer';
|
|
4
4
|
import * as _0xsequence_network from '@0xsequence/network';
|
|
5
5
|
import { Hex, Address } from 'viem';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import { Q as QueryArgSchema, c as ChainId } from '../../types-
|
|
8
|
-
import { Q as SdkConfig, P as PropertyType, M as MarketplaceKind, b as OrderSide, $ as CurrencyStatus, w as Currency, o as CollectibleOrder, aN as GetCollectibleHighestOfferReturn, S as SortOrder$1, q as Activity, i as Page$1, b7 as ListCollectiblesReturn, aV as ListCollectibleOffersReturn, aJ as GetCountOfOffersForCollectibleReturn, aT as ListCollectibleListingsReturn, aH as GetCountOfListingsForCollectibleReturn, aP as GetCollectibleLowestListingReturn, z as Step, D as CreateReq, a_ as GenerateListingTransactionArgs, b0 as GenerateOfferTransactionArgs, aY as GenerateSellTransactionArgs, g as StepType, E as ExecuteType, b2 as GenerateCancelTransactionArgs, C as ContractType, bt as CheckoutOptionsMarketplaceReturn, W as WalletKind, r as Collection } from '../../sdk-config-
|
|
7
|
+
import { Q as QueryArgSchema, c as ChainId } from '../../types-Yto6KrTN.js';
|
|
8
|
+
import { Q as SdkConfig, P as PropertyType, M as MarketplaceKind, b as OrderSide, $ as CurrencyStatus, w as Currency, o as CollectibleOrder, aN as GetCollectibleHighestOfferReturn, S as SortOrder$1, q as Activity, i as Page$1, b7 as ListCollectiblesReturn, aV as ListCollectibleOffersReturn, aJ as GetCountOfOffersForCollectibleReturn, aT as ListCollectibleListingsReturn, aH as GetCountOfListingsForCollectibleReturn, aP as GetCollectibleLowestListingReturn, z as Step, D as CreateReq, a_ as GenerateListingTransactionArgs, b0 as GenerateOfferTransactionArgs, aY as GenerateSellTransactionArgs, g as StepType, E as ExecuteType, b2 as GenerateCancelTransactionArgs, C as ContractType, bt as CheckoutOptionsMarketplaceReturn, W as WalletKind, r as Collection } from '../../sdk-config-B32_2bG3.js';
|
|
9
9
|
import * as _0xsequence_metadata from '@0xsequence/metadata';
|
|
10
|
-
import { c as getMarketplaceClient } from '../../services-
|
|
11
|
-
import { M as MarketplaceConfig } from '../../marketplace-config-
|
|
10
|
+
import { c as getMarketplaceClient } from '../../services-BRBVE0mm.js';
|
|
11
|
+
import { M as MarketplaceConfig } from '../../marketplace-config-znEu4L0K.js';
|
|
12
|
+
|
|
13
|
+
type FeeOption = {
|
|
14
|
+
gasLimit: number;
|
|
15
|
+
to: string;
|
|
16
|
+
token: {
|
|
17
|
+
chainId: number;
|
|
18
|
+
contractAddress: string | null;
|
|
19
|
+
decimals: number;
|
|
20
|
+
logoURL: string;
|
|
21
|
+
name: string;
|
|
22
|
+
symbol: string;
|
|
23
|
+
tokenID: string | null;
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
26
|
+
value: string;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
declare enum AutoSelectFeeOptionError {
|
|
30
|
+
UserNotConnected = "User not connected",
|
|
31
|
+
NoOptionsProvided = "No options provided",
|
|
32
|
+
FailedToCheckBalances = "Failed to check balances",
|
|
33
|
+
InsufficientBalanceForAnyFeeOption = "Insufficient balance for any fee option"
|
|
34
|
+
}
|
|
35
|
+
type UseAutoSelectFeeOptionArgs = {
|
|
36
|
+
pendingFeeOptionConfirmation: {
|
|
37
|
+
id: string;
|
|
38
|
+
options: FeeOption[] | undefined;
|
|
39
|
+
chainId: number;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* A React hook that automatically selects the first fee option for which the user has sufficient balance.
|
|
44
|
+
*
|
|
45
|
+
* @param {Object} params.pendingFeeOptionConfirmation - Configuration for fee option selection
|
|
46
|
+
*
|
|
47
|
+
* @returns {Promise<{
|
|
48
|
+
* selectedOption: FeeOption | null,
|
|
49
|
+
* error: AutoSelectFeeOptionError | null,
|
|
50
|
+
* isLoading?: boolean
|
|
51
|
+
* }>} A promise that resolves to an object containing:
|
|
52
|
+
* - selectedOption: The first fee option with sufficient balance, or null if none found
|
|
53
|
+
* - error: Error message if selection fails, null otherwise
|
|
54
|
+
* - isLoading: True while checking balances
|
|
55
|
+
*
|
|
56
|
+
* @throws {AutoSelectFeeOptionError} Possible errors:
|
|
57
|
+
* - UserNotConnected: When no wallet is connected
|
|
58
|
+
* - NoOptionsProvided: When fee options array is undefined
|
|
59
|
+
* - FailedToCheckBalances: When balance checking fails
|
|
60
|
+
* - InsufficientBalanceForAnyFeeOption: When user has insufficient balance for all options
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```tsx
|
|
64
|
+
* function MyComponent() {
|
|
65
|
+
* const [pendingFeeOptionConfirmation, confirmPendingFeeOption] = useWaasFeeOptions();
|
|
66
|
+
*
|
|
67
|
+
* const autoSelectOptionPromise = useAutoSelectFeeOption({
|
|
68
|
+
* pendingFeeOptionConfirmation: pendingFeeOptionConfirmation
|
|
69
|
+
* ? {
|
|
70
|
+
* id: pendingFeeOptionConfirmation.id,
|
|
71
|
+
* options: pendingFeeOptionConfirmation.options,
|
|
72
|
+
* chainId: 1
|
|
73
|
+
* }
|
|
74
|
+
* : {
|
|
75
|
+
* id: '',
|
|
76
|
+
* options: undefined,
|
|
77
|
+
* chainId: 1
|
|
78
|
+
* }
|
|
79
|
+
* });
|
|
80
|
+
*
|
|
81
|
+
* useEffect(() => {
|
|
82
|
+
* autoSelectOptionPromise.then((result) => {
|
|
83
|
+
* if (result.isLoading) {
|
|
84
|
+
* console.log('Checking balances...');
|
|
85
|
+
* return;
|
|
86
|
+
* }
|
|
87
|
+
*
|
|
88
|
+
* if (result.error) {
|
|
89
|
+
* console.error('Failed to select fee option:', result.error);
|
|
90
|
+
* return;
|
|
91
|
+
* }
|
|
92
|
+
*
|
|
93
|
+
* if (pendingFeeOptionConfirmation?.id && result.selectedOption) {
|
|
94
|
+
* confirmPendingFeeOption(
|
|
95
|
+
* pendingFeeOptionConfirmation.id,
|
|
96
|
+
* result.selectedOption.token.contractAddress
|
|
97
|
+
* );
|
|
98
|
+
* }
|
|
99
|
+
* });
|
|
100
|
+
* }, [autoSelectOptionPromise, confirmPendingFeeOption, pendingFeeOptionConfirmation]);
|
|
101
|
+
*
|
|
102
|
+
* return <div>...</div>;
|
|
103
|
+
* }
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
declare function useAutoSelectFeeOption({ pendingFeeOptionConfirmation, }: UseAutoSelectFeeOptionArgs): Promise<{
|
|
107
|
+
selectedOption: null;
|
|
108
|
+
error: AutoSelectFeeOptionError;
|
|
109
|
+
isLoading?: undefined;
|
|
110
|
+
} | {
|
|
111
|
+
selectedOption: null;
|
|
112
|
+
error: null;
|
|
113
|
+
isLoading: boolean;
|
|
114
|
+
} | {
|
|
115
|
+
selectedOption: FeeOption;
|
|
116
|
+
error: null;
|
|
117
|
+
isLoading?: undefined;
|
|
118
|
+
}>;
|
|
12
119
|
|
|
13
120
|
declare const fetchBalanceOfCollectibleSchema: z.ZodObject<{
|
|
14
121
|
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
@@ -65,14 +172,14 @@ declare const UseCountOfCollectableSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
65
172
|
type: PropertyType;
|
|
66
173
|
name: string;
|
|
67
174
|
values?: any[] | undefined;
|
|
68
|
-
min?: number | undefined;
|
|
69
175
|
max?: number | undefined;
|
|
176
|
+
min?: number | undefined;
|
|
70
177
|
}, {
|
|
71
178
|
type: PropertyType;
|
|
72
179
|
name: string;
|
|
73
180
|
values?: any[] | undefined;
|
|
74
|
-
min?: number | undefined;
|
|
75
181
|
max?: number | undefined;
|
|
182
|
+
min?: number | undefined;
|
|
76
183
|
}>, "many">>;
|
|
77
184
|
marketplaces: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof MarketplaceKind>, "many">>;
|
|
78
185
|
inAccounts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -86,8 +193,8 @@ declare const UseCountOfCollectableSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
86
193
|
type: PropertyType;
|
|
87
194
|
name: string;
|
|
88
195
|
values?: any[] | undefined;
|
|
89
|
-
min?: number | undefined;
|
|
90
196
|
max?: number | undefined;
|
|
197
|
+
min?: number | undefined;
|
|
91
198
|
}[] | undefined;
|
|
92
199
|
marketplaces?: MarketplaceKind[] | undefined;
|
|
93
200
|
inAccounts?: string[] | undefined;
|
|
@@ -101,8 +208,8 @@ declare const UseCountOfCollectableSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
101
208
|
type: PropertyType;
|
|
102
209
|
name: string;
|
|
103
210
|
values?: any[] | undefined;
|
|
104
|
-
min?: number | undefined;
|
|
105
211
|
max?: number | undefined;
|
|
212
|
+
min?: number | undefined;
|
|
106
213
|
}[] | undefined;
|
|
107
214
|
marketplaces?: MarketplaceKind[] | undefined;
|
|
108
215
|
inAccounts?: string[] | undefined;
|
|
@@ -119,8 +226,8 @@ declare const UseCountOfCollectableSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
119
226
|
type: PropertyType;
|
|
120
227
|
name: string;
|
|
121
228
|
values?: any[] | undefined;
|
|
122
|
-
min?: number | undefined;
|
|
123
229
|
max?: number | undefined;
|
|
230
|
+
min?: number | undefined;
|
|
124
231
|
}[] | undefined;
|
|
125
232
|
marketplaces?: MarketplaceKind[] | undefined;
|
|
126
233
|
inAccounts?: string[] | undefined;
|
|
@@ -129,8 +236,8 @@ declare const UseCountOfCollectableSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
129
236
|
ordersNotCreatedBy?: string[] | undefined;
|
|
130
237
|
};
|
|
131
238
|
chainId: string;
|
|
132
|
-
collectionAddress: `0x${string}`;
|
|
133
239
|
side: OrderSide;
|
|
240
|
+
collectionAddress: `0x${string}`;
|
|
134
241
|
query?: {
|
|
135
242
|
enabled?: boolean | undefined;
|
|
136
243
|
} | undefined;
|
|
@@ -142,8 +249,8 @@ declare const UseCountOfCollectableSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
142
249
|
type: PropertyType;
|
|
143
250
|
name: string;
|
|
144
251
|
values?: any[] | undefined;
|
|
145
|
-
min?: number | undefined;
|
|
146
252
|
max?: number | undefined;
|
|
253
|
+
min?: number | undefined;
|
|
147
254
|
}[] | undefined;
|
|
148
255
|
marketplaces?: MarketplaceKind[] | undefined;
|
|
149
256
|
inAccounts?: string[] | undefined;
|
|
@@ -152,8 +259,8 @@ declare const UseCountOfCollectableSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
152
259
|
ordersNotCreatedBy?: string[] | undefined;
|
|
153
260
|
};
|
|
154
261
|
chainId: string | number;
|
|
155
|
-
collectionAddress: string;
|
|
156
262
|
side: OrderSide;
|
|
263
|
+
collectionAddress: string;
|
|
157
264
|
query?: {
|
|
158
265
|
enabled?: boolean | undefined;
|
|
159
266
|
} | undefined;
|
|
@@ -198,8 +305,8 @@ declare const countOfCollectablesOptions: (args: UseCountOfCollectablesArgs, con
|
|
|
198
305
|
type: PropertyType;
|
|
199
306
|
name: string;
|
|
200
307
|
values?: any[] | undefined;
|
|
201
|
-
min?: number | undefined;
|
|
202
308
|
max?: number | undefined;
|
|
309
|
+
min?: number | undefined;
|
|
203
310
|
}[] | undefined;
|
|
204
311
|
marketplaces?: MarketplaceKind[] | undefined;
|
|
205
312
|
inAccounts?: string[] | undefined;
|
|
@@ -208,8 +315,8 @@ declare const countOfCollectablesOptions: (args: UseCountOfCollectablesArgs, con
|
|
|
208
315
|
ordersNotCreatedBy?: string[] | undefined;
|
|
209
316
|
};
|
|
210
317
|
chainId: string;
|
|
211
|
-
collectionAddress: `0x${string}`;
|
|
212
318
|
side: OrderSide;
|
|
319
|
+
collectionAddress: `0x${string}`;
|
|
213
320
|
query?: {
|
|
214
321
|
enabled?: boolean | undefined;
|
|
215
322
|
} | undefined;
|
|
@@ -230,8 +337,8 @@ declare const countOfCollectablesOptions: (args: UseCountOfCollectablesArgs, con
|
|
|
230
337
|
type: PropertyType;
|
|
231
338
|
name: string;
|
|
232
339
|
values?: any[] | undefined;
|
|
233
|
-
min?: number | undefined;
|
|
234
340
|
max?: number | undefined;
|
|
341
|
+
min?: number | undefined;
|
|
235
342
|
}[] | undefined;
|
|
236
343
|
marketplaces?: MarketplaceKind[] | undefined;
|
|
237
344
|
inAccounts?: string[] | undefined;
|
|
@@ -240,8 +347,8 @@ declare const countOfCollectablesOptions: (args: UseCountOfCollectablesArgs, con
|
|
|
240
347
|
ordersNotCreatedBy?: string[] | undefined;
|
|
241
348
|
};
|
|
242
349
|
chainId: string;
|
|
243
|
-
collectionAddress: `0x${string}`;
|
|
244
350
|
side: OrderSide;
|
|
351
|
+
collectionAddress: `0x${string}`;
|
|
245
352
|
query?: {
|
|
246
353
|
enabled?: boolean | undefined;
|
|
247
354
|
} | undefined;
|
|
@@ -263,8 +370,8 @@ declare const countOfCollectablesOptions: (args: UseCountOfCollectablesArgs, con
|
|
|
263
370
|
type: PropertyType;
|
|
264
371
|
name: string;
|
|
265
372
|
values?: any[] | undefined;
|
|
266
|
-
min?: number | undefined;
|
|
267
373
|
max?: number | undefined;
|
|
374
|
+
min?: number | undefined;
|
|
268
375
|
}[] | undefined;
|
|
269
376
|
marketplaces?: MarketplaceKind[] | undefined;
|
|
270
377
|
inAccounts?: string[] | undefined;
|
|
@@ -273,8 +380,8 @@ declare const countOfCollectablesOptions: (args: UseCountOfCollectablesArgs, con
|
|
|
273
380
|
ordersNotCreatedBy?: string[] | undefined;
|
|
274
381
|
};
|
|
275
382
|
chainId: string;
|
|
276
|
-
collectionAddress: `0x${string}`;
|
|
277
383
|
side: OrderSide;
|
|
384
|
+
collectionAddress: `0x${string}`;
|
|
278
385
|
query?: {
|
|
279
386
|
enabled?: boolean | undefined;
|
|
280
387
|
} | undefined;
|
|
@@ -407,6 +514,104 @@ declare const collectionOptions: (args: UseCollectionArgs, config: SdkConfig) =>
|
|
|
407
514
|
};
|
|
408
515
|
declare const useCollection: (args: UseCollectionArgs) => _tanstack_react_query.UseQueryResult<_0xsequence_metadata.ContractInfo, Error>;
|
|
409
516
|
|
|
517
|
+
declare const filterSchema: z.ZodObject<{
|
|
518
|
+
accountAddresses: z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">;
|
|
519
|
+
contractWhitelist: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">>;
|
|
520
|
+
omitNativeBalances: z.ZodBoolean;
|
|
521
|
+
}, "strip", z.ZodTypeAny, {
|
|
522
|
+
accountAddresses: `0x${string}`[];
|
|
523
|
+
omitNativeBalances: boolean;
|
|
524
|
+
contractWhitelist?: `0x${string}`[] | undefined;
|
|
525
|
+
}, {
|
|
526
|
+
accountAddresses: string[];
|
|
527
|
+
omitNativeBalances: boolean;
|
|
528
|
+
contractWhitelist?: string[] | undefined;
|
|
529
|
+
}>;
|
|
530
|
+
declare const useCollectionBalanceDetailsArgsSchema: z.ZodObject<{
|
|
531
|
+
chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodNumber>;
|
|
532
|
+
filter: z.ZodObject<{
|
|
533
|
+
accountAddresses: z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">;
|
|
534
|
+
contractWhitelist: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">>;
|
|
535
|
+
omitNativeBalances: z.ZodBoolean;
|
|
536
|
+
}, "strip", z.ZodTypeAny, {
|
|
537
|
+
accountAddresses: `0x${string}`[];
|
|
538
|
+
omitNativeBalances: boolean;
|
|
539
|
+
contractWhitelist?: `0x${string}`[] | undefined;
|
|
540
|
+
}, {
|
|
541
|
+
accountAddresses: string[];
|
|
542
|
+
omitNativeBalances: boolean;
|
|
543
|
+
contractWhitelist?: string[] | undefined;
|
|
544
|
+
}>;
|
|
545
|
+
query: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
546
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
547
|
+
}, "strip", z.ZodTypeAny, {
|
|
548
|
+
enabled?: boolean | undefined;
|
|
549
|
+
}, {
|
|
550
|
+
enabled?: boolean | undefined;
|
|
551
|
+
}>>>;
|
|
552
|
+
}, "strip", z.ZodTypeAny, {
|
|
553
|
+
filter: {
|
|
554
|
+
accountAddresses: `0x${string}`[];
|
|
555
|
+
omitNativeBalances: boolean;
|
|
556
|
+
contractWhitelist?: `0x${string}`[] | undefined;
|
|
557
|
+
};
|
|
558
|
+
chainId: number;
|
|
559
|
+
query?: {
|
|
560
|
+
enabled?: boolean | undefined;
|
|
561
|
+
} | undefined;
|
|
562
|
+
}, {
|
|
563
|
+
filter: {
|
|
564
|
+
accountAddresses: string[];
|
|
565
|
+
omitNativeBalances: boolean;
|
|
566
|
+
contractWhitelist?: string[] | undefined;
|
|
567
|
+
};
|
|
568
|
+
chainId: string | number;
|
|
569
|
+
query?: {
|
|
570
|
+
enabled?: boolean | undefined;
|
|
571
|
+
} | undefined;
|
|
572
|
+
}>;
|
|
573
|
+
type CollectionBalanceFilter = z.infer<typeof filterSchema>;
|
|
574
|
+
type UseCollectionBalanceDetailsArgs = z.input<typeof useCollectionBalanceDetailsArgsSchema>;
|
|
575
|
+
declare const collectionBalanceDetailsOptions: (args: UseCollectionBalanceDetailsArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetTokenBalancesDetailsReturn, Error, GetTokenBalancesDetailsReturn, ("balances" | "collectionBalanceDetails" | SdkConfig | {
|
|
576
|
+
filter: {
|
|
577
|
+
accountAddresses: string[];
|
|
578
|
+
omitNativeBalances: boolean;
|
|
579
|
+
contractWhitelist?: string[] | undefined;
|
|
580
|
+
};
|
|
581
|
+
chainId: string | number;
|
|
582
|
+
query?: {
|
|
583
|
+
enabled?: boolean | undefined;
|
|
584
|
+
} | undefined;
|
|
585
|
+
})[]>, "queryFn"> & {
|
|
586
|
+
queryFn?: _tanstack_react_query.QueryFunction<GetTokenBalancesDetailsReturn, ("balances" | "collectionBalanceDetails" | SdkConfig | {
|
|
587
|
+
filter: {
|
|
588
|
+
accountAddresses: string[];
|
|
589
|
+
omitNativeBalances: boolean;
|
|
590
|
+
contractWhitelist?: string[] | undefined;
|
|
591
|
+
};
|
|
592
|
+
chainId: string | number;
|
|
593
|
+
query?: {
|
|
594
|
+
enabled?: boolean | undefined;
|
|
595
|
+
} | undefined;
|
|
596
|
+
})[], never> | undefined;
|
|
597
|
+
} & {
|
|
598
|
+
queryKey: ("balances" | "collectionBalanceDetails" | SdkConfig | {
|
|
599
|
+
filter: {
|
|
600
|
+
accountAddresses: string[];
|
|
601
|
+
omitNativeBalances: boolean;
|
|
602
|
+
contractWhitelist?: string[] | undefined;
|
|
603
|
+
};
|
|
604
|
+
chainId: string | number;
|
|
605
|
+
query?: {
|
|
606
|
+
enabled?: boolean | undefined;
|
|
607
|
+
} | undefined;
|
|
608
|
+
})[] & {
|
|
609
|
+
[dataTagSymbol]: GetTokenBalancesDetailsReturn;
|
|
610
|
+
[dataTagErrorSymbol]: Error;
|
|
611
|
+
};
|
|
612
|
+
};
|
|
613
|
+
declare const useCollectionBalanceDetails: (args: UseCollectionBalanceDetailsArgs) => _tanstack_react_query.UseQueryResult<GetTokenBalancesDetailsReturn, Error>;
|
|
614
|
+
|
|
410
615
|
declare function useConfig(): SdkConfig;
|
|
411
616
|
|
|
412
617
|
declare const UseCurrenciesArgsSchema: z.ZodObject<{
|
|
@@ -808,10 +1013,10 @@ declare const useListBalancesArgsSchema: z.ZodObject<{
|
|
|
808
1013
|
column: string;
|
|
809
1014
|
}[] | undefined;
|
|
810
1015
|
column?: string | undefined;
|
|
1016
|
+
after?: any;
|
|
811
1017
|
pageSize?: number | undefined;
|
|
812
1018
|
more?: boolean | undefined;
|
|
813
1019
|
before?: any;
|
|
814
|
-
after?: any;
|
|
815
1020
|
}, {
|
|
816
1021
|
page?: number | undefined;
|
|
817
1022
|
sort?: {
|
|
@@ -819,10 +1024,10 @@ declare const useListBalancesArgsSchema: z.ZodObject<{
|
|
|
819
1024
|
column: string;
|
|
820
1025
|
}[] | undefined;
|
|
821
1026
|
column?: string | undefined;
|
|
1027
|
+
after?: any;
|
|
822
1028
|
pageSize?: number | undefined;
|
|
823
1029
|
more?: boolean | undefined;
|
|
824
1030
|
before?: any;
|
|
825
|
-
after?: any;
|
|
826
1031
|
}>>;
|
|
827
1032
|
query: z.ZodOptional<z.ZodObject<{
|
|
828
1033
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -840,16 +1045,16 @@ declare const useListBalancesArgsSchema: z.ZodObject<{
|
|
|
840
1045
|
column: string;
|
|
841
1046
|
}[] | undefined;
|
|
842
1047
|
column?: string | undefined;
|
|
1048
|
+
after?: any;
|
|
843
1049
|
pageSize?: number | undefined;
|
|
844
1050
|
more?: boolean | undefined;
|
|
845
1051
|
before?: any;
|
|
846
|
-
after?: any;
|
|
847
1052
|
} | undefined;
|
|
848
|
-
tokenId?: string | undefined;
|
|
849
1053
|
contractAddress?: `0x${string}` | undefined;
|
|
850
1054
|
query?: {
|
|
851
1055
|
enabled?: boolean | undefined;
|
|
852
1056
|
} | undefined;
|
|
1057
|
+
tokenId?: string | undefined;
|
|
853
1058
|
accountAddress?: `0x${string}` | undefined;
|
|
854
1059
|
includeMetadata?: boolean | undefined;
|
|
855
1060
|
metadataOptions?: {
|
|
@@ -867,16 +1072,16 @@ declare const useListBalancesArgsSchema: z.ZodObject<{
|
|
|
867
1072
|
column: string;
|
|
868
1073
|
}[] | undefined;
|
|
869
1074
|
column?: string | undefined;
|
|
1075
|
+
after?: any;
|
|
870
1076
|
pageSize?: number | undefined;
|
|
871
1077
|
more?: boolean | undefined;
|
|
872
1078
|
before?: any;
|
|
873
|
-
after?: any;
|
|
874
1079
|
} | undefined;
|
|
875
|
-
tokenId?: string | undefined;
|
|
876
1080
|
contractAddress?: string | undefined;
|
|
877
1081
|
query?: {
|
|
878
1082
|
enabled?: boolean | undefined;
|
|
879
1083
|
} | undefined;
|
|
1084
|
+
tokenId?: string | undefined;
|
|
880
1085
|
accountAddress?: string | undefined;
|
|
881
1086
|
includeMetadata?: boolean | undefined;
|
|
882
1087
|
metadataOptions?: {
|
|
@@ -898,16 +1103,16 @@ declare const listBalancesOptions: (args: UseListBalancesArgs, config: SdkConfig
|
|
|
898
1103
|
column: string;
|
|
899
1104
|
}[] | undefined;
|
|
900
1105
|
column?: string | undefined;
|
|
1106
|
+
after?: any;
|
|
901
1107
|
pageSize?: number | undefined;
|
|
902
1108
|
more?: boolean | undefined;
|
|
903
1109
|
before?: any;
|
|
904
|
-
after?: any;
|
|
905
1110
|
} | undefined;
|
|
906
|
-
tokenId?: string | undefined;
|
|
907
1111
|
contractAddress?: string | undefined;
|
|
908
1112
|
query?: {
|
|
909
1113
|
enabled?: boolean | undefined;
|
|
910
1114
|
} | undefined;
|
|
1115
|
+
tokenId?: string | undefined;
|
|
911
1116
|
accountAddress?: string | undefined;
|
|
912
1117
|
includeMetadata?: boolean | undefined;
|
|
913
1118
|
metadataOptions?: {
|
|
@@ -926,16 +1131,16 @@ declare const listBalancesOptions: (args: UseListBalancesArgs, config: SdkConfig
|
|
|
926
1131
|
column: string;
|
|
927
1132
|
}[] | undefined;
|
|
928
1133
|
column?: string | undefined;
|
|
1134
|
+
after?: any;
|
|
929
1135
|
pageSize?: number | undefined;
|
|
930
1136
|
more?: boolean | undefined;
|
|
931
1137
|
before?: any;
|
|
932
|
-
after?: any;
|
|
933
1138
|
} | undefined;
|
|
934
|
-
tokenId?: string | undefined;
|
|
935
1139
|
contractAddress?: string | undefined;
|
|
936
1140
|
query?: {
|
|
937
1141
|
enabled?: boolean | undefined;
|
|
938
1142
|
} | undefined;
|
|
1143
|
+
tokenId?: string | undefined;
|
|
939
1144
|
accountAddress?: string | undefined;
|
|
940
1145
|
includeMetadata?: boolean | undefined;
|
|
941
1146
|
metadataOptions?: {
|
|
@@ -955,16 +1160,16 @@ declare const listBalancesOptions: (args: UseListBalancesArgs, config: SdkConfig
|
|
|
955
1160
|
column: string;
|
|
956
1161
|
}[] | undefined;
|
|
957
1162
|
column?: string | undefined;
|
|
1163
|
+
after?: any;
|
|
958
1164
|
pageSize?: number | undefined;
|
|
959
1165
|
more?: boolean | undefined;
|
|
960
1166
|
before?: any;
|
|
961
|
-
after?: any;
|
|
962
1167
|
} | undefined;
|
|
963
|
-
tokenId?: string | undefined;
|
|
964
1168
|
contractAddress?: string | undefined;
|
|
965
1169
|
query?: {
|
|
966
1170
|
enabled?: boolean | undefined;
|
|
967
1171
|
} | undefined;
|
|
1172
|
+
tokenId?: string | undefined;
|
|
968
1173
|
accountAddress?: string | undefined;
|
|
969
1174
|
includeMetadata?: boolean | undefined;
|
|
970
1175
|
metadataOptions?: {
|
|
@@ -1076,10 +1281,10 @@ declare const getListCollectibleActivitiesReturnSchema: z.ZodObject<{
|
|
|
1076
1281
|
chainId: number;
|
|
1077
1282
|
name: string;
|
|
1078
1283
|
nativeCurrency: boolean;
|
|
1079
|
-
updatedAt: string;
|
|
1080
1284
|
contractAddress: string;
|
|
1081
|
-
createdAt: string;
|
|
1082
1285
|
decimals: number;
|
|
1286
|
+
updatedAt: string;
|
|
1287
|
+
createdAt: string;
|
|
1083
1288
|
imageUrl: string;
|
|
1084
1289
|
exchangeRate: number;
|
|
1085
1290
|
defaultChainCurrency: boolean;
|
|
@@ -1089,10 +1294,10 @@ declare const getListCollectibleActivitiesReturnSchema: z.ZodObject<{
|
|
|
1089
1294
|
chainId: number;
|
|
1090
1295
|
name: string;
|
|
1091
1296
|
nativeCurrency: boolean;
|
|
1092
|
-
updatedAt: string;
|
|
1093
1297
|
contractAddress: string;
|
|
1094
|
-
createdAt: string;
|
|
1095
1298
|
decimals: number;
|
|
1299
|
+
updatedAt: string;
|
|
1300
|
+
createdAt: string;
|
|
1096
1301
|
imageUrl: string;
|
|
1097
1302
|
exchangeRate: number;
|
|
1098
1303
|
defaultChainCurrency: boolean;
|
|
@@ -1112,10 +1317,10 @@ declare const getListCollectibleActivitiesReturnSchema: z.ZodObject<{
|
|
|
1112
1317
|
chainId: number;
|
|
1113
1318
|
name: string;
|
|
1114
1319
|
nativeCurrency: boolean;
|
|
1115
|
-
updatedAt: string;
|
|
1116
1320
|
contractAddress: string;
|
|
1117
|
-
createdAt: string;
|
|
1118
1321
|
decimals: number;
|
|
1322
|
+
updatedAt: string;
|
|
1323
|
+
createdAt: string;
|
|
1119
1324
|
imageUrl: string;
|
|
1120
1325
|
exchangeRate: number;
|
|
1121
1326
|
defaultChainCurrency: boolean;
|
|
@@ -1135,10 +1340,10 @@ declare const getListCollectibleActivitiesReturnSchema: z.ZodObject<{
|
|
|
1135
1340
|
chainId: number;
|
|
1136
1341
|
name: string;
|
|
1137
1342
|
nativeCurrency: boolean;
|
|
1138
|
-
updatedAt: string;
|
|
1139
1343
|
contractAddress: string;
|
|
1140
|
-
createdAt: string;
|
|
1141
1344
|
decimals: number;
|
|
1345
|
+
updatedAt: string;
|
|
1346
|
+
createdAt: string;
|
|
1142
1347
|
imageUrl: string;
|
|
1143
1348
|
exchangeRate: number;
|
|
1144
1349
|
defaultChainCurrency: boolean;
|
|
@@ -1191,10 +1396,10 @@ declare const getListCollectibleActivitiesReturnSchema: z.ZodObject<{
|
|
|
1191
1396
|
chainId: number;
|
|
1192
1397
|
name: string;
|
|
1193
1398
|
nativeCurrency: boolean;
|
|
1194
|
-
updatedAt: string;
|
|
1195
1399
|
contractAddress: string;
|
|
1196
|
-
createdAt: string;
|
|
1197
1400
|
decimals: number;
|
|
1401
|
+
updatedAt: string;
|
|
1402
|
+
createdAt: string;
|
|
1198
1403
|
imageUrl: string;
|
|
1199
1404
|
exchangeRate: number;
|
|
1200
1405
|
defaultChainCurrency: boolean;
|
|
@@ -1225,10 +1430,10 @@ declare const getListCollectibleActivitiesReturnSchema: z.ZodObject<{
|
|
|
1225
1430
|
chainId: number;
|
|
1226
1431
|
name: string;
|
|
1227
1432
|
nativeCurrency: boolean;
|
|
1228
|
-
updatedAt: string;
|
|
1229
1433
|
contractAddress: string;
|
|
1230
|
-
createdAt: string;
|
|
1231
1434
|
decimals: number;
|
|
1435
|
+
updatedAt: string;
|
|
1436
|
+
createdAt: string;
|
|
1232
1437
|
imageUrl: string;
|
|
1233
1438
|
exchangeRate: number;
|
|
1234
1439
|
defaultChainCurrency: boolean;
|
|
@@ -1338,10 +1543,10 @@ declare const getListCollectionActivitiesReturnSchema: z.ZodObject<{
|
|
|
1338
1543
|
chainId: number;
|
|
1339
1544
|
name: string;
|
|
1340
1545
|
nativeCurrency: boolean;
|
|
1341
|
-
updatedAt: string;
|
|
1342
1546
|
contractAddress: string;
|
|
1343
|
-
createdAt: string;
|
|
1344
1547
|
decimals: number;
|
|
1548
|
+
updatedAt: string;
|
|
1549
|
+
createdAt: string;
|
|
1345
1550
|
imageUrl: string;
|
|
1346
1551
|
exchangeRate: number;
|
|
1347
1552
|
defaultChainCurrency: boolean;
|
|
@@ -1351,10 +1556,10 @@ declare const getListCollectionActivitiesReturnSchema: z.ZodObject<{
|
|
|
1351
1556
|
chainId: number;
|
|
1352
1557
|
name: string;
|
|
1353
1558
|
nativeCurrency: boolean;
|
|
1354
|
-
updatedAt: string;
|
|
1355
1559
|
contractAddress: string;
|
|
1356
|
-
createdAt: string;
|
|
1357
1560
|
decimals: number;
|
|
1561
|
+
updatedAt: string;
|
|
1562
|
+
createdAt: string;
|
|
1358
1563
|
imageUrl: string;
|
|
1359
1564
|
exchangeRate: number;
|
|
1360
1565
|
defaultChainCurrency: boolean;
|
|
@@ -1374,10 +1579,10 @@ declare const getListCollectionActivitiesReturnSchema: z.ZodObject<{
|
|
|
1374
1579
|
chainId: number;
|
|
1375
1580
|
name: string;
|
|
1376
1581
|
nativeCurrency: boolean;
|
|
1377
|
-
updatedAt: string;
|
|
1378
1582
|
contractAddress: string;
|
|
1379
|
-
createdAt: string;
|
|
1380
1583
|
decimals: number;
|
|
1584
|
+
updatedAt: string;
|
|
1585
|
+
createdAt: string;
|
|
1381
1586
|
imageUrl: string;
|
|
1382
1587
|
exchangeRate: number;
|
|
1383
1588
|
defaultChainCurrency: boolean;
|
|
@@ -1397,10 +1602,10 @@ declare const getListCollectionActivitiesReturnSchema: z.ZodObject<{
|
|
|
1397
1602
|
chainId: number;
|
|
1398
1603
|
name: string;
|
|
1399
1604
|
nativeCurrency: boolean;
|
|
1400
|
-
updatedAt: string;
|
|
1401
1605
|
contractAddress: string;
|
|
1402
|
-
createdAt: string;
|
|
1403
1606
|
decimals: number;
|
|
1607
|
+
updatedAt: string;
|
|
1608
|
+
createdAt: string;
|
|
1404
1609
|
imageUrl: string;
|
|
1405
1610
|
exchangeRate: number;
|
|
1406
1611
|
defaultChainCurrency: boolean;
|
|
@@ -1453,10 +1658,10 @@ declare const getListCollectionActivitiesReturnSchema: z.ZodObject<{
|
|
|
1453
1658
|
chainId: number;
|
|
1454
1659
|
name: string;
|
|
1455
1660
|
nativeCurrency: boolean;
|
|
1456
|
-
updatedAt: string;
|
|
1457
1661
|
contractAddress: string;
|
|
1458
|
-
createdAt: string;
|
|
1459
1662
|
decimals: number;
|
|
1663
|
+
updatedAt: string;
|
|
1664
|
+
createdAt: string;
|
|
1460
1665
|
imageUrl: string;
|
|
1461
1666
|
exchangeRate: number;
|
|
1462
1667
|
defaultChainCurrency: boolean;
|
|
@@ -1487,10 +1692,10 @@ declare const getListCollectionActivitiesReturnSchema: z.ZodObject<{
|
|
|
1487
1692
|
chainId: number;
|
|
1488
1693
|
name: string;
|
|
1489
1694
|
nativeCurrency: boolean;
|
|
1490
|
-
updatedAt: string;
|
|
1491
1695
|
contractAddress: string;
|
|
1492
|
-
createdAt: string;
|
|
1493
1696
|
decimals: number;
|
|
1697
|
+
updatedAt: string;
|
|
1698
|
+
createdAt: string;
|
|
1494
1699
|
imageUrl: string;
|
|
1495
1700
|
exchangeRate: number;
|
|
1496
1701
|
defaultChainCurrency: boolean;
|
|
@@ -1593,14 +1798,14 @@ declare const UseListCollectiblesArgsSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1593
1798
|
type: PropertyType;
|
|
1594
1799
|
name: string;
|
|
1595
1800
|
values?: any[] | undefined;
|
|
1596
|
-
min?: number | undefined;
|
|
1597
1801
|
max?: number | undefined;
|
|
1802
|
+
min?: number | undefined;
|
|
1598
1803
|
}, {
|
|
1599
1804
|
type: PropertyType;
|
|
1600
1805
|
name: string;
|
|
1601
1806
|
values?: any[] | undefined;
|
|
1602
|
-
min?: number | undefined;
|
|
1603
1807
|
max?: number | undefined;
|
|
1808
|
+
min?: number | undefined;
|
|
1604
1809
|
}>, "many">>;
|
|
1605
1810
|
marketplaces: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof MarketplaceKind>, "many">>;
|
|
1606
1811
|
inAccounts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1614,8 +1819,8 @@ declare const UseListCollectiblesArgsSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1614
1819
|
type: PropertyType;
|
|
1615
1820
|
name: string;
|
|
1616
1821
|
values?: any[] | undefined;
|
|
1617
|
-
min?: number | undefined;
|
|
1618
1822
|
max?: number | undefined;
|
|
1823
|
+
min?: number | undefined;
|
|
1619
1824
|
}[] | undefined;
|
|
1620
1825
|
marketplaces?: MarketplaceKind[] | undefined;
|
|
1621
1826
|
inAccounts?: string[] | undefined;
|
|
@@ -1629,8 +1834,8 @@ declare const UseListCollectiblesArgsSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1629
1834
|
type: PropertyType;
|
|
1630
1835
|
name: string;
|
|
1631
1836
|
values?: any[] | undefined;
|
|
1632
|
-
min?: number | undefined;
|
|
1633
1837
|
max?: number | undefined;
|
|
1838
|
+
min?: number | undefined;
|
|
1634
1839
|
}[] | undefined;
|
|
1635
1840
|
marketplaces?: MarketplaceKind[] | undefined;
|
|
1636
1841
|
inAccounts?: string[] | undefined;
|
|
@@ -1681,8 +1886,8 @@ declare const UseListCollectiblesArgsSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1681
1886
|
}>>;
|
|
1682
1887
|
}>, "strip", z.ZodTypeAny, {
|
|
1683
1888
|
chainId: string;
|
|
1684
|
-
collectionAddress: `0x${string}`;
|
|
1685
1889
|
side: OrderSide;
|
|
1890
|
+
collectionAddress: `0x${string}`;
|
|
1686
1891
|
page?: {
|
|
1687
1892
|
page: number;
|
|
1688
1893
|
pageSize: number;
|
|
@@ -1699,8 +1904,8 @@ declare const UseListCollectiblesArgsSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1699
1904
|
type: PropertyType;
|
|
1700
1905
|
name: string;
|
|
1701
1906
|
values?: any[] | undefined;
|
|
1702
|
-
min?: number | undefined;
|
|
1703
1907
|
max?: number | undefined;
|
|
1908
|
+
min?: number | undefined;
|
|
1704
1909
|
}[] | undefined;
|
|
1705
1910
|
marketplaces?: MarketplaceKind[] | undefined;
|
|
1706
1911
|
inAccounts?: string[] | undefined;
|
|
@@ -1713,8 +1918,8 @@ declare const UseListCollectiblesArgsSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1713
1918
|
} | undefined;
|
|
1714
1919
|
}, {
|
|
1715
1920
|
chainId: string | number;
|
|
1716
|
-
collectionAddress: string;
|
|
1717
1921
|
side: OrderSide;
|
|
1922
|
+
collectionAddress: string;
|
|
1718
1923
|
page?: {
|
|
1719
1924
|
page: number;
|
|
1720
1925
|
pageSize: number;
|
|
@@ -1731,8 +1936,8 @@ declare const UseListCollectiblesArgsSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1731
1936
|
type: PropertyType;
|
|
1732
1937
|
name: string;
|
|
1733
1938
|
values?: any[] | undefined;
|
|
1734
|
-
min?: number | undefined;
|
|
1735
1939
|
max?: number | undefined;
|
|
1940
|
+
min?: number | undefined;
|
|
1736
1941
|
}[] | undefined;
|
|
1737
1942
|
marketplaces?: MarketplaceKind[] | undefined;
|
|
1738
1943
|
inAccounts?: string[] | undefined;
|
|
@@ -1749,8 +1954,8 @@ type UseListCollectiblesReturn = Awaited<ReturnType<typeof fetchCollectibles>>;
|
|
|
1749
1954
|
declare const fetchCollectibles: (args: UseListCollectiblesArgs, marketplaceClient: Awaited<ReturnType<typeof getMarketplaceClient>>, page: Page$1) => Promise<ListCollectiblesReturn>;
|
|
1750
1955
|
declare const listCollectiblesOptions: (args: UseListCollectiblesArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<ListCollectiblesReturn, Error, _tanstack_react_query.InfiniteData<ListCollectiblesReturn, unknown>, ListCollectiblesReturn, ("collectable" | "list" | {
|
|
1751
1956
|
chainId: string;
|
|
1752
|
-
collectionAddress: `0x${string}`;
|
|
1753
1957
|
side: OrderSide;
|
|
1958
|
+
collectionAddress: `0x${string}`;
|
|
1754
1959
|
page?: {
|
|
1755
1960
|
page: number;
|
|
1756
1961
|
pageSize: number;
|
|
@@ -1767,8 +1972,8 @@ declare const listCollectiblesOptions: (args: UseListCollectiblesArgs, config: S
|
|
|
1767
1972
|
type: PropertyType;
|
|
1768
1973
|
name: string;
|
|
1769
1974
|
values?: any[] | undefined;
|
|
1770
|
-
min?: number | undefined;
|
|
1771
1975
|
max?: number | undefined;
|
|
1976
|
+
min?: number | undefined;
|
|
1772
1977
|
}[] | undefined;
|
|
1773
1978
|
marketplaces?: MarketplaceKind[] | undefined;
|
|
1774
1979
|
inAccounts?: string[] | undefined;
|
|
@@ -1785,8 +1990,8 @@ declare const listCollectiblesOptions: (args: UseListCollectiblesArgs, config: S
|
|
|
1785
1990
|
}>, "queryFn"> & {
|
|
1786
1991
|
queryFn?: _tanstack_react_query.QueryFunction<ListCollectiblesReturn, ("collectable" | "list" | {
|
|
1787
1992
|
chainId: string;
|
|
1788
|
-
collectionAddress: `0x${string}`;
|
|
1789
1993
|
side: OrderSide;
|
|
1994
|
+
collectionAddress: `0x${string}`;
|
|
1790
1995
|
page?: {
|
|
1791
1996
|
page: number;
|
|
1792
1997
|
pageSize: number;
|
|
@@ -1803,8 +2008,8 @@ declare const listCollectiblesOptions: (args: UseListCollectiblesArgs, config: S
|
|
|
1803
2008
|
type: PropertyType;
|
|
1804
2009
|
name: string;
|
|
1805
2010
|
values?: any[] | undefined;
|
|
1806
|
-
min?: number | undefined;
|
|
1807
2011
|
max?: number | undefined;
|
|
2012
|
+
min?: number | undefined;
|
|
1808
2013
|
}[] | undefined;
|
|
1809
2014
|
marketplaces?: MarketplaceKind[] | undefined;
|
|
1810
2015
|
inAccounts?: string[] | undefined;
|
|
@@ -1822,8 +2027,8 @@ declare const listCollectiblesOptions: (args: UseListCollectiblesArgs, config: S
|
|
|
1822
2027
|
} & {
|
|
1823
2028
|
queryKey: ("collectable" | "list" | {
|
|
1824
2029
|
chainId: string;
|
|
1825
|
-
collectionAddress: `0x${string}`;
|
|
1826
2030
|
side: OrderSide;
|
|
2031
|
+
collectionAddress: `0x${string}`;
|
|
1827
2032
|
page?: {
|
|
1828
2033
|
page: number;
|
|
1829
2034
|
pageSize: number;
|
|
@@ -1840,8 +2045,8 @@ declare const listCollectiblesOptions: (args: UseListCollectiblesArgs, config: S
|
|
|
1840
2045
|
type: PropertyType;
|
|
1841
2046
|
name: string;
|
|
1842
2047
|
values?: any[] | undefined;
|
|
1843
|
-
min?: number | undefined;
|
|
1844
2048
|
max?: number | undefined;
|
|
2049
|
+
min?: number | undefined;
|
|
1845
2050
|
}[] | undefined;
|
|
1846
2051
|
marketplaces?: MarketplaceKind[] | undefined;
|
|
1847
2052
|
inAccounts?: string[] | undefined;
|
|
@@ -1976,7 +2181,7 @@ declare const UseListOffersForCollectibleArgsSchema: z.ZodObject<Omit<z.objectUt
|
|
|
1976
2181
|
chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
|
|
1977
2182
|
collectionAddress: z.ZodString;
|
|
1978
2183
|
collectibleId: z.ZodString;
|
|
1979
|
-
}>, "
|
|
2184
|
+
}>, "contractAddress" | "tokenId">, "strip", z.ZodTypeAny, {
|
|
1980
2185
|
chainId: string;
|
|
1981
2186
|
collectionAddress: string;
|
|
1982
2187
|
collectibleId: string;
|
|
@@ -2096,7 +2301,7 @@ declare const UseCountOffersForCollectibleArgsSchema: z.ZodObject<z.objectUtil.e
|
|
|
2096
2301
|
marketplace?: MarketplaceKind[] | undefined;
|
|
2097
2302
|
createdBy?: string[] | undefined;
|
|
2098
2303
|
}>>;
|
|
2099
|
-
}, "
|
|
2304
|
+
}, "contractAddress" | "tokenId">, {
|
|
2100
2305
|
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2101
2306
|
collectibleId: z.ZodString;
|
|
2102
2307
|
chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
|
|
@@ -2232,7 +2437,7 @@ declare const UseListListingsForCollectibleArgsSchema: z.ZodObject<Omit<z.object
|
|
|
2232
2437
|
chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
|
|
2233
2438
|
collectionAddress: z.ZodString;
|
|
2234
2439
|
collectibleId: z.ZodString;
|
|
2235
|
-
}>, "
|
|
2440
|
+
}>, "contractAddress" | "tokenId">, "strip", z.ZodTypeAny, {
|
|
2236
2441
|
chainId: string;
|
|
2237
2442
|
collectionAddress: string;
|
|
2238
2443
|
collectibleId: string;
|
|
@@ -2352,7 +2557,7 @@ declare const UseCountListingsForCollectibleArgsSchema: z.ZodObject<z.objectUtil
|
|
|
2352
2557
|
marketplace?: MarketplaceKind[] | undefined;
|
|
2353
2558
|
createdBy?: string[] | undefined;
|
|
2354
2559
|
}>>;
|
|
2355
|
-
}, "
|
|
2560
|
+
}, "contractAddress" | "tokenId">, {
|
|
2356
2561
|
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2357
2562
|
collectibleId: z.ZodString;
|
|
2358
2563
|
chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
|
|
@@ -2467,26 +2672,26 @@ declare const UseLowestListingSchema: z.ZodObject<z.objectUtil.extendShape<Omit<
|
|
|
2467
2672
|
chainId: string;
|
|
2468
2673
|
collectionAddress: `0x${string}`;
|
|
2469
2674
|
tokenId: string;
|
|
2675
|
+
query?: {
|
|
2676
|
+
enabled?: boolean | undefined;
|
|
2677
|
+
} | undefined;
|
|
2470
2678
|
filters?: {
|
|
2471
2679
|
currencies?: string[] | undefined;
|
|
2472
2680
|
marketplace?: MarketplaceKind[] | undefined;
|
|
2473
2681
|
createdBy?: string[] | undefined;
|
|
2474
2682
|
} | undefined;
|
|
2475
|
-
query?: {
|
|
2476
|
-
enabled?: boolean | undefined;
|
|
2477
|
-
} | undefined;
|
|
2478
2683
|
}, {
|
|
2479
2684
|
chainId: string | number;
|
|
2480
2685
|
collectionAddress: string;
|
|
2481
2686
|
tokenId: string;
|
|
2687
|
+
query?: {
|
|
2688
|
+
enabled?: boolean | undefined;
|
|
2689
|
+
} | undefined;
|
|
2482
2690
|
filters?: {
|
|
2483
2691
|
currencies?: string[] | undefined;
|
|
2484
2692
|
marketplace?: MarketplaceKind[] | undefined;
|
|
2485
2693
|
createdBy?: string[] | undefined;
|
|
2486
2694
|
} | undefined;
|
|
2487
|
-
query?: {
|
|
2488
|
-
enabled?: boolean | undefined;
|
|
2489
|
-
} | undefined;
|
|
2490
2695
|
}>;
|
|
2491
2696
|
type UseLowestListingArgs = z.infer<typeof UseLowestListingSchema>;
|
|
2492
2697
|
type UseLowestListingReturn = Awaited<ReturnType<typeof fetchLowestListing>>;
|
|
@@ -2495,41 +2700,41 @@ declare const lowestListingOptions: (args: UseLowestListingArgs, config: SdkConf
|
|
|
2495
2700
|
chainId: string;
|
|
2496
2701
|
collectionAddress: `0x${string}`;
|
|
2497
2702
|
tokenId: string;
|
|
2703
|
+
query?: {
|
|
2704
|
+
enabled?: boolean | undefined;
|
|
2705
|
+
} | undefined;
|
|
2498
2706
|
filters?: {
|
|
2499
2707
|
currencies?: string[] | undefined;
|
|
2500
2708
|
marketplace?: MarketplaceKind[] | undefined;
|
|
2501
2709
|
createdBy?: string[] | undefined;
|
|
2502
2710
|
} | undefined;
|
|
2503
|
-
query?: {
|
|
2504
|
-
enabled?: boolean | undefined;
|
|
2505
|
-
} | undefined;
|
|
2506
2711
|
})[]>, "queryFn"> & {
|
|
2507
2712
|
queryFn?: _tanstack_react_query.QueryFunction<GetCollectibleLowestListingReturn, ("collectable" | "details" | "lowestListings" | SdkConfig | {
|
|
2508
2713
|
chainId: string;
|
|
2509
2714
|
collectionAddress: `0x${string}`;
|
|
2510
2715
|
tokenId: string;
|
|
2716
|
+
query?: {
|
|
2717
|
+
enabled?: boolean | undefined;
|
|
2718
|
+
} | undefined;
|
|
2511
2719
|
filters?: {
|
|
2512
2720
|
currencies?: string[] | undefined;
|
|
2513
2721
|
marketplace?: MarketplaceKind[] | undefined;
|
|
2514
2722
|
createdBy?: string[] | undefined;
|
|
2515
2723
|
} | undefined;
|
|
2516
|
-
query?: {
|
|
2517
|
-
enabled?: boolean | undefined;
|
|
2518
|
-
} | undefined;
|
|
2519
2724
|
})[], never> | undefined;
|
|
2520
2725
|
} & {
|
|
2521
2726
|
queryKey: ("collectable" | "details" | "lowestListings" | SdkConfig | {
|
|
2522
2727
|
chainId: string;
|
|
2523
2728
|
collectionAddress: `0x${string}`;
|
|
2524
2729
|
tokenId: string;
|
|
2730
|
+
query?: {
|
|
2731
|
+
enabled?: boolean | undefined;
|
|
2732
|
+
} | undefined;
|
|
2525
2733
|
filters?: {
|
|
2526
2734
|
currencies?: string[] | undefined;
|
|
2527
2735
|
marketplace?: MarketplaceKind[] | undefined;
|
|
2528
2736
|
createdBy?: string[] | undefined;
|
|
2529
2737
|
} | undefined;
|
|
2530
|
-
query?: {
|
|
2531
|
-
enabled?: boolean | undefined;
|
|
2532
|
-
} | undefined;
|
|
2533
2738
|
})[] & {
|
|
2534
2739
|
[dataTagSymbol]: GetCollectibleLowestListingReturn;
|
|
2535
2740
|
[dataTagErrorSymbol]: Error;
|
|
@@ -3415,10 +3620,10 @@ declare const UseGenerateBuyTransactionArgsSchema: z.ZodObject<{
|
|
|
3415
3620
|
marketplace: string;
|
|
3416
3621
|
quantity: string;
|
|
3417
3622
|
}[];
|
|
3418
|
-
walletType?: WalletKind | undefined;
|
|
3419
3623
|
query?: {
|
|
3420
3624
|
enabled?: boolean | undefined;
|
|
3421
3625
|
} | undefined;
|
|
3626
|
+
walletType?: WalletKind | undefined;
|
|
3422
3627
|
}, {
|
|
3423
3628
|
marketplace: MarketplaceKind;
|
|
3424
3629
|
chainId: string | number;
|
|
@@ -3428,10 +3633,10 @@ declare const UseGenerateBuyTransactionArgsSchema: z.ZodObject<{
|
|
|
3428
3633
|
marketplace: string;
|
|
3429
3634
|
quantity: string;
|
|
3430
3635
|
}[];
|
|
3431
|
-
walletType?: WalletKind | undefined;
|
|
3432
3636
|
query?: {
|
|
3433
3637
|
enabled?: boolean | undefined;
|
|
3434
3638
|
} | undefined;
|
|
3639
|
+
walletType?: WalletKind | undefined;
|
|
3435
3640
|
}>;
|
|
3436
3641
|
type UseGenerateBuyTransactionArgs = z.infer<typeof UseGenerateBuyTransactionArgsSchema>;
|
|
3437
3642
|
declare const fetchGenerateBuyTransaction: (args: UseGenerateBuyTransactionArgs & {
|
|
@@ -3448,10 +3653,10 @@ declare const generateBuyTransactionOptions: (args: UseGenerateBuyTransactionArg
|
|
|
3448
3653
|
marketplace: string;
|
|
3449
3654
|
quantity: string;
|
|
3450
3655
|
}[];
|
|
3451
|
-
walletType?: WalletKind | undefined;
|
|
3452
3656
|
query?: {
|
|
3453
3657
|
enabled?: boolean | undefined;
|
|
3454
3658
|
} | undefined;
|
|
3659
|
+
walletType?: WalletKind | undefined;
|
|
3455
3660
|
} & {
|
|
3456
3661
|
buyer: Hex;
|
|
3457
3662
|
}))[]>, "queryFn"> & {
|
|
@@ -3464,10 +3669,10 @@ declare const generateBuyTransactionOptions: (args: UseGenerateBuyTransactionArg
|
|
|
3464
3669
|
marketplace: string;
|
|
3465
3670
|
quantity: string;
|
|
3466
3671
|
}[];
|
|
3467
|
-
walletType?: WalletKind | undefined;
|
|
3468
3672
|
query?: {
|
|
3469
3673
|
enabled?: boolean | undefined;
|
|
3470
3674
|
} | undefined;
|
|
3675
|
+
walletType?: WalletKind | undefined;
|
|
3471
3676
|
} & {
|
|
3472
3677
|
buyer: Hex;
|
|
3473
3678
|
}))[], never> | undefined;
|
|
@@ -3481,10 +3686,10 @@ declare const generateBuyTransactionOptions: (args: UseGenerateBuyTransactionArg
|
|
|
3481
3686
|
marketplace: string;
|
|
3482
3687
|
quantity: string;
|
|
3483
3688
|
}[];
|
|
3484
|
-
walletType?: WalletKind | undefined;
|
|
3485
3689
|
query?: {
|
|
3486
3690
|
enabled?: boolean | undefined;
|
|
3487
3691
|
} | undefined;
|
|
3692
|
+
walletType?: WalletKind | undefined;
|
|
3488
3693
|
} & {
|
|
3489
3694
|
buyer: Hex;
|
|
3490
3695
|
}))[] & {
|
|
@@ -3554,4 +3759,4 @@ declare const collectionDetailsPollingOptions: (args: UseCollectionDetailsPollin
|
|
|
3554
3759
|
};
|
|
3555
3760
|
declare const useCollectionDetailsPolling: (args: UseCollectionDetailsPolling) => _tanstack_react_query.UseQueryResult<Collection, Error>;
|
|
3556
3761
|
|
|
3557
|
-
export { type CreateReqWithDateExpiry$1 as CreateReqWithDateExpiry, type GenerateListingTransactionProps, type GenerateOfferTransactionProps, type TransactionStep, type TransferTokensParams, type UseCheckoutOptionsArgs, type UseCheckoutOptionsReturn, type UseCollectibleArgs, type UseCollectibleReturn, type UseCollectionArgs, type UseCollectionReturn, type UseContOfCollectableReturn, type UseCountListingsForCollectibleArgs, type UseCountListingsForCollectibleReturn, type UseCountOfCollectablesArgs, type UseCountOffersForCollectibleArgs, type UseCountOffersForCollectibleReturn, 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 UseListCollectibleActivitiesArgs, type UseListCollectibleActivitiesReturn, type UseListCollectiblesArgs, type UseListCollectiblesReturn, type UseListCollectionActivitiesArgs, type UseListCollectionActivitiesReturn, type UseListCollectionsArgs, type UseListCollectionsReturn, type UseListListingsForCollectibleReturn, type UseListOffersForCollectibleReturn, type UseLowestListingArgs, type UseLowestListingReturn, balanceOfCollectibleOptions, checkoutOptionsOptions, collectibleOptions, collectionDetailsOptions, collectionDetailsPollingOptions, collectionOptions, countListingsForCollectibleOptions, countOfCollectablesOptions, countOffersForCollectibleOptions, currenciesOptions, currencyOptions, fetchFilters, fetchGenerateBuyTransaction, filtersOptions, floorOrderOptions, generateBuyTransactionOptions, generateCancelTransaction, generateListingTransaction, generateOfferTransaction, generateSellTransaction, highestOfferOptions, listBalancesOptions, listCollectibleActivitiesOptions, listCollectiblesOptions, listCollectionActivitiesOptions, listCollectionsOptions, listListingsForCollectibleOptions, listOffersForCollectibleOptions, lowestListingOptions, marketplaceConfigOptions, metadataOptionsSchema, royaletyPercentageOptions, useBalanceOfCollectible, useCancelOrder, useCheckoutOptions, useCollectible, useCollection, useCollectionDetails, useCollectionDetailsPolling, useConfig, useCountListingsForCollectible, useCountOfCollectables, useCountOffersForCollectible, useCurrencies, useCurrency, useCurrencyOptions, useFilters, useFloorOrder, useGenerateBuyTransaction, useGenerateCancelTransaction, useGenerateListingTransaction, useGenerateOfferTransaction, useGenerateSellTransaction, useHighestOffer, useListBalances, useListCollectibleActivities, useListCollectibles, useListCollectionActivities, useListCollections, useListListingsForCollectible, useListOffersForCollectible, useLowestListing, useMarketplaceConfig, useRoyaltyPercentage, useTransferTokens };
|
|
3762
|
+
export { type CollectionBalanceFilter, type CreateReqWithDateExpiry$1 as CreateReqWithDateExpiry, type GenerateListingTransactionProps, type GenerateOfferTransactionProps, type TransactionStep, type TransferTokensParams, type UseCheckoutOptionsArgs, type UseCheckoutOptionsReturn, type UseCollectibleArgs, type UseCollectibleReturn, type UseCollectionArgs, type UseCollectionBalanceDetailsArgs, type UseCollectionReturn, type UseContOfCollectableReturn, type UseCountListingsForCollectibleArgs, type UseCountListingsForCollectibleReturn, type UseCountOfCollectablesArgs, type UseCountOffersForCollectibleArgs, type UseCountOffersForCollectibleReturn, 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 UseListCollectibleActivitiesArgs, type UseListCollectibleActivitiesReturn, type UseListCollectiblesArgs, type UseListCollectiblesReturn, type UseListCollectionActivitiesArgs, type UseListCollectionActivitiesReturn, type UseListCollectionsArgs, type UseListCollectionsReturn, type UseListListingsForCollectibleReturn, type UseListOffersForCollectibleReturn, type UseLowestListingArgs, type UseLowestListingReturn, balanceOfCollectibleOptions, checkoutOptionsOptions, collectibleOptions, collectionBalanceDetailsOptions, collectionDetailsOptions, collectionDetailsPollingOptions, collectionOptions, countListingsForCollectibleOptions, countOfCollectablesOptions, countOffersForCollectibleOptions, currenciesOptions, currencyOptions, fetchFilters, fetchGenerateBuyTransaction, filtersOptions, floorOrderOptions, generateBuyTransactionOptions, generateCancelTransaction, generateListingTransaction, generateOfferTransaction, generateSellTransaction, highestOfferOptions, listBalancesOptions, listCollectibleActivitiesOptions, listCollectiblesOptions, listCollectionActivitiesOptions, listCollectionsOptions, listListingsForCollectibleOptions, listOffersForCollectibleOptions, lowestListingOptions, marketplaceConfigOptions, metadataOptionsSchema, royaletyPercentageOptions, useAutoSelectFeeOption, useBalanceOfCollectible, useCancelOrder, useCheckoutOptions, useCollectible, useCollection, useCollectionBalanceDetails, useCollectionDetails, useCollectionDetailsPolling, useConfig, useCountListingsForCollectible, useCountOfCollectables, useCountOffersForCollectible, useCurrencies, useCurrency, useCurrencyOptions, useFilters, useFloorOrder, useGenerateBuyTransaction, useGenerateCancelTransaction, useGenerateListingTransaction, useGenerateOfferTransaction, useGenerateSellTransaction, useHighestOffer, useListBalances, useListCollectibleActivities, useListCollectibles, useListCollectionActivities, useListCollections, useListListingsForCollectible, useListOffersForCollectible, useLowestListing, useMarketplaceConfig, useRoyaltyPercentage, useTransferTokens };
|