@0xsequence/marketplace-sdk 0.4.8 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-2OJB35FS.js → chunk-5NORRVPM.js} +5 -5
- package/dist/{chunk-2OJB35FS.js.map → chunk-5NORRVPM.js.map} +1 -1
- package/dist/{chunk-ATDCYXXV.js → chunk-6YHHCGGY.js} +2 -2
- package/dist/{chunk-WRMJ5FZM.js → chunk-HV2X2VZN.js} +874 -194
- package/dist/chunk-HV2X2VZN.js.map +1 -0
- package/dist/{chunk-AQT3BQ67.js → chunk-J2XJZ6SJ.js} +12 -5
- package/dist/chunk-J2XJZ6SJ.js.map +1 -0
- package/dist/{chunk-JEOUQFT3.js → chunk-LJAB3S6U.js} +4 -3
- package/dist/chunk-LJAB3S6U.js.map +1 -0
- package/dist/{chunk-7WCZP6FN.js → chunk-OUVFTA63.js} +649 -386
- package/dist/chunk-OUVFTA63.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-6R4G7J6Q.js → chunk-WSCUPAGR.js} +33 -5
- package/dist/chunk-WSCUPAGR.js.map +1 -0
- package/dist/{create-config-D5WqfUft.d.ts → create-config-BXvwUh55.d.ts} +2 -2
- package/dist/index.css +31 -17
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/{marketplace-config-C_fDWzz0.d.ts → marketplace-config-znEu4L0K.d.ts} +1 -1
- package/dist/{marketplace.gen-B8S8fflj.d.ts → marketplace.gen-CCJ-URn2.d.ts} +16 -4
- package/dist/react/_internal/api/index.d.ts +3 -2
- package/dist/react/_internal/api/index.js +3 -1
- package/dist/react/_internal/index.d.ts +5 -5
- package/dist/react/_internal/index.js +3 -1
- package/dist/react/_internal/wagmi/index.d.ts +3 -3
- package/dist/react/hooks/index.d.ts +249 -74
- package/dist/react/hooks/index.js +18 -5
- package/dist/react/index.css +37 -17
- package/dist/react/index.css.map +1 -1
- package/dist/react/index.d.ts +6 -6
- package/dist/react/index.js +22 -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 +37 -17
- package/dist/react/ui/components/collectible-card/index.css.map +1 -1
- package/dist/react/ui/components/collectible-card/index.d.ts +27 -4
- package/dist/react/ui/components/collectible-card/index.js +8 -9
- package/dist/react/ui/icons/index.js +3 -3
- package/dist/react/ui/index.css +37 -17
- package/dist/react/ui/index.css.map +1 -1
- package/dist/react/ui/index.d.ts +3 -3
- package/dist/react/ui/index.js +8 -9
- package/dist/react/ui/modals/_internal/components/actionModal/index.d.ts +3 -3
- package/dist/react/ui/modals/_internal/components/actionModal/index.js +5 -5
- package/dist/{sdk-config-BXVH8PS2.d.ts → sdk-config-B32_2bG3.d.ts} +29 -7
- package/dist/{services-CdXAIjt1.d.ts → services-BRBVE0mm.d.ts} +1 -1
- package/dist/styles/index.css +31 -17
- package/dist/styles/index.css.map +1 -1
- package/dist/styles/index.d.ts +2 -2
- 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-eX4P9xju.d.ts → types-Yto6KrTN.d.ts} +2 -2
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +1 -1
- package/package.json +16 -16
- package/src/react/_internal/api/__mocks__/marketplace.msw.ts +4 -0
- package/src/react/_internal/api/marketplace.gen.ts +45 -7
- package/src/react/_internal/api/query-keys.ts +4 -0
- package/src/react/_internal/wallet/useWallet.ts +30 -46
- package/src/react/_internal/wallet/wallet.ts +52 -6
- package/src/react/hooks/index.ts +4 -0
- package/src/react/hooks/options/__mocks__/marketplaceConfig.msw.ts +10 -1
- package/src/react/hooks/useAutoSelectFeeOption.tsx +104 -0
- package/src/react/hooks/useCancelOrder.tsx +57 -1
- package/src/react/hooks/useCollectionBalanceDetails.tsx +87 -0
- package/src/react/hooks/useCollectionDetails.tsx +35 -0
- package/src/react/hooks/useCollectionDetailsPolling.tsx +60 -0
- package/src/react/ui/components/_internals/action-button/ActionButton.tsx +36 -118
- package/src/react/ui/components/_internals/action-button/components/ActionButtonBody.tsx +52 -0
- package/src/react/ui/components/_internals/action-button/components/NonOwnerActions.tsx +72 -0
- package/src/react/ui/components/_internals/action-button/components/OwnerActions.tsx +81 -0
- package/src/react/ui/components/_internals/action-button/hooks/useActionButtonLogic.ts +93 -0
- package/src/react/ui/components/_internals/action-button/store.ts +47 -0
- package/src/react/ui/components/_internals/action-button/styles.css.ts +8 -0
- package/src/react/ui/components/collectible-card/CollectibleCard.tsx +35 -18
- package/src/react/ui/components/collectible-card/Footer.tsx +5 -8
- package/src/react/ui/components/collectible-card/styles.css.ts +44 -31
- package/src/react/ui/icons/CartIcon.tsx +46 -0
- package/src/react/ui/modals/BuyModal/Modal.tsx +0 -2
- package/src/react/ui/modals/BuyModal/__tests__/Modal.test.tsx +253 -0
- package/src/react/ui/modals/BuyModal/__tests__/store.test.ts +100 -0
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useBuyCollectable.test.tsx +402 -0
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useCheckoutOptions.test.tsx +267 -0
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useFees.test.tsx +166 -0
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useLoadData.test.tsx +209 -0
- package/src/react/ui/modals/BuyModal/hooks/useBuyCollectable.ts +7 -4
- package/src/react/ui/modals/BuyModal/hooks/useCheckoutOptions.ts +19 -17
- package/src/react/ui/modals/BuyModal/hooks/useLoadData.ts +9 -7
- package/src/react/ui/modals/BuyModal/modals/Modal1155.tsx +36 -18
- package/src/react/ui/modals/BuyModal/modals/__tests__/CheckoutModal.test.tsx +162 -0
- package/src/react/ui/modals/BuyModal/modals/__tests__/Modal1155.test.tsx +243 -0
- package/src/react/ui/modals/BuyModal/store.ts +11 -10
- package/src/react/ui/modals/CreateListingModal/Modal.tsx +26 -3
- package/src/react/ui/modals/CreateListingModal/__tests__/Modal.test.tsx +141 -29
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/useHandleTransfer.tsx +5 -1
- package/src/react/ui/modals/_internal/components/actionModal/ActionModal.tsx +20 -11
- package/src/react/ui/modals/_internal/components/currencyOptionsSelect/__tests__/index.test.tsx +13 -58
- package/src/react/ui/modals/_internal/components/priceInput/__tests__/index.test.tsx +2 -0
- package/src/react/ui/modals/_internal/components/transactionStatusModal/__tests__/TransactionStatusModal.test.tsx +18 -19
- package/src/react/ui/modals/_internal/components/transactionStatusModal/__tests__/utils.test.ts +2 -0
- package/src/react/ui/modals/_internal/components/transactionStatusModal/hooks/useTransactionStatus.ts +62 -0
- package/src/react/ui/modals/_internal/components/transactionStatusModal/index.tsx +53 -100
- package/src/react/ui/modals/_internal/components/transactionStatusModal/store.ts +2 -10
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/chunk-6R4G7J6Q.js.map +0 -1
- package/dist/chunk-7WCZP6FN.js.map +0 -1
- package/dist/chunk-AQT3BQ67.js.map +0 -1
- package/dist/chunk-FWN2MCLI.js +0 -425
- package/dist/chunk-FWN2MCLI.js.map +0 -1
- package/dist/chunk-JEOUQFT3.js.map +0 -1
- package/dist/chunk-WRMJ5FZM.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,50 @@
|
|
|
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, w as Currency, o as CollectibleOrder,
|
|
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
|
+
type Error$1 = 'User not connected' | 'No options provided' | 'Insufficient balance for any fee option' | 'Failed to check balances';
|
|
30
|
+
type UseAutoSelectFeeOptionArgs = {
|
|
31
|
+
pendingFeeOptionConfirmation: {
|
|
32
|
+
id: string;
|
|
33
|
+
options: FeeOption[] | undefined;
|
|
34
|
+
chainId: number;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
type AutoSelectFeeOptionResult = Promise<{
|
|
38
|
+
selectedOption: FeeOption | null;
|
|
39
|
+
error: Error$1 | null;
|
|
40
|
+
isLoading: boolean;
|
|
41
|
+
}>;
|
|
42
|
+
/**
|
|
43
|
+
* Automatically selects the first fee option that user has enough balance for
|
|
44
|
+
* @param pendingFeeOptionConfirmation
|
|
45
|
+
* @returns The selected fee option, an error message if any, and a loading flag
|
|
46
|
+
*/
|
|
47
|
+
declare function useAutoSelectFeeOption({ pendingFeeOptionConfirmation, }: UseAutoSelectFeeOptionArgs): AutoSelectFeeOptionResult;
|
|
12
48
|
|
|
13
49
|
declare const fetchBalanceOfCollectibleSchema: z.ZodObject<{
|
|
14
50
|
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
@@ -65,14 +101,14 @@ declare const UseCountOfCollectableSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
65
101
|
type: PropertyType;
|
|
66
102
|
name: string;
|
|
67
103
|
values?: any[] | undefined;
|
|
68
|
-
min?: number | undefined;
|
|
69
104
|
max?: number | undefined;
|
|
105
|
+
min?: number | undefined;
|
|
70
106
|
}, {
|
|
71
107
|
type: PropertyType;
|
|
72
108
|
name: string;
|
|
73
109
|
values?: any[] | undefined;
|
|
74
|
-
min?: number | undefined;
|
|
75
110
|
max?: number | undefined;
|
|
111
|
+
min?: number | undefined;
|
|
76
112
|
}>, "many">>;
|
|
77
113
|
marketplaces: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof MarketplaceKind>, "many">>;
|
|
78
114
|
inAccounts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -86,8 +122,8 @@ declare const UseCountOfCollectableSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
86
122
|
type: PropertyType;
|
|
87
123
|
name: string;
|
|
88
124
|
values?: any[] | undefined;
|
|
89
|
-
min?: number | undefined;
|
|
90
125
|
max?: number | undefined;
|
|
126
|
+
min?: number | undefined;
|
|
91
127
|
}[] | undefined;
|
|
92
128
|
marketplaces?: MarketplaceKind[] | undefined;
|
|
93
129
|
inAccounts?: string[] | undefined;
|
|
@@ -101,8 +137,8 @@ declare const UseCountOfCollectableSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
101
137
|
type: PropertyType;
|
|
102
138
|
name: string;
|
|
103
139
|
values?: any[] | undefined;
|
|
104
|
-
min?: number | undefined;
|
|
105
140
|
max?: number | undefined;
|
|
141
|
+
min?: number | undefined;
|
|
106
142
|
}[] | undefined;
|
|
107
143
|
marketplaces?: MarketplaceKind[] | undefined;
|
|
108
144
|
inAccounts?: string[] | undefined;
|
|
@@ -119,8 +155,8 @@ declare const UseCountOfCollectableSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
119
155
|
type: PropertyType;
|
|
120
156
|
name: string;
|
|
121
157
|
values?: any[] | undefined;
|
|
122
|
-
min?: number | undefined;
|
|
123
158
|
max?: number | undefined;
|
|
159
|
+
min?: number | undefined;
|
|
124
160
|
}[] | undefined;
|
|
125
161
|
marketplaces?: MarketplaceKind[] | undefined;
|
|
126
162
|
inAccounts?: string[] | undefined;
|
|
@@ -129,8 +165,8 @@ declare const UseCountOfCollectableSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
129
165
|
ordersNotCreatedBy?: string[] | undefined;
|
|
130
166
|
};
|
|
131
167
|
chainId: string;
|
|
132
|
-
collectionAddress: `0x${string}`;
|
|
133
168
|
side: OrderSide;
|
|
169
|
+
collectionAddress: `0x${string}`;
|
|
134
170
|
query?: {
|
|
135
171
|
enabled?: boolean | undefined;
|
|
136
172
|
} | undefined;
|
|
@@ -142,8 +178,8 @@ declare const UseCountOfCollectableSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
142
178
|
type: PropertyType;
|
|
143
179
|
name: string;
|
|
144
180
|
values?: any[] | undefined;
|
|
145
|
-
min?: number | undefined;
|
|
146
181
|
max?: number | undefined;
|
|
182
|
+
min?: number | undefined;
|
|
147
183
|
}[] | undefined;
|
|
148
184
|
marketplaces?: MarketplaceKind[] | undefined;
|
|
149
185
|
inAccounts?: string[] | undefined;
|
|
@@ -152,8 +188,8 @@ declare const UseCountOfCollectableSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.
|
|
|
152
188
|
ordersNotCreatedBy?: string[] | undefined;
|
|
153
189
|
};
|
|
154
190
|
chainId: string | number;
|
|
155
|
-
collectionAddress: string;
|
|
156
191
|
side: OrderSide;
|
|
192
|
+
collectionAddress: string;
|
|
157
193
|
query?: {
|
|
158
194
|
enabled?: boolean | undefined;
|
|
159
195
|
} | undefined;
|
|
@@ -198,8 +234,8 @@ declare const countOfCollectablesOptions: (args: UseCountOfCollectablesArgs, con
|
|
|
198
234
|
type: PropertyType;
|
|
199
235
|
name: string;
|
|
200
236
|
values?: any[] | undefined;
|
|
201
|
-
min?: number | undefined;
|
|
202
237
|
max?: number | undefined;
|
|
238
|
+
min?: number | undefined;
|
|
203
239
|
}[] | undefined;
|
|
204
240
|
marketplaces?: MarketplaceKind[] | undefined;
|
|
205
241
|
inAccounts?: string[] | undefined;
|
|
@@ -208,8 +244,8 @@ declare const countOfCollectablesOptions: (args: UseCountOfCollectablesArgs, con
|
|
|
208
244
|
ordersNotCreatedBy?: string[] | undefined;
|
|
209
245
|
};
|
|
210
246
|
chainId: string;
|
|
211
|
-
collectionAddress: `0x${string}`;
|
|
212
247
|
side: OrderSide;
|
|
248
|
+
collectionAddress: `0x${string}`;
|
|
213
249
|
query?: {
|
|
214
250
|
enabled?: boolean | undefined;
|
|
215
251
|
} | undefined;
|
|
@@ -230,8 +266,8 @@ declare const countOfCollectablesOptions: (args: UseCountOfCollectablesArgs, con
|
|
|
230
266
|
type: PropertyType;
|
|
231
267
|
name: string;
|
|
232
268
|
values?: any[] | undefined;
|
|
233
|
-
min?: number | undefined;
|
|
234
269
|
max?: number | undefined;
|
|
270
|
+
min?: number | undefined;
|
|
235
271
|
}[] | undefined;
|
|
236
272
|
marketplaces?: MarketplaceKind[] | undefined;
|
|
237
273
|
inAccounts?: string[] | undefined;
|
|
@@ -240,8 +276,8 @@ declare const countOfCollectablesOptions: (args: UseCountOfCollectablesArgs, con
|
|
|
240
276
|
ordersNotCreatedBy?: string[] | undefined;
|
|
241
277
|
};
|
|
242
278
|
chainId: string;
|
|
243
|
-
collectionAddress: `0x${string}`;
|
|
244
279
|
side: OrderSide;
|
|
280
|
+
collectionAddress: `0x${string}`;
|
|
245
281
|
query?: {
|
|
246
282
|
enabled?: boolean | undefined;
|
|
247
283
|
} | undefined;
|
|
@@ -263,8 +299,8 @@ declare const countOfCollectablesOptions: (args: UseCountOfCollectablesArgs, con
|
|
|
263
299
|
type: PropertyType;
|
|
264
300
|
name: string;
|
|
265
301
|
values?: any[] | undefined;
|
|
266
|
-
min?: number | undefined;
|
|
267
302
|
max?: number | undefined;
|
|
303
|
+
min?: number | undefined;
|
|
268
304
|
}[] | undefined;
|
|
269
305
|
marketplaces?: MarketplaceKind[] | undefined;
|
|
270
306
|
inAccounts?: string[] | undefined;
|
|
@@ -273,8 +309,8 @@ declare const countOfCollectablesOptions: (args: UseCountOfCollectablesArgs, con
|
|
|
273
309
|
ordersNotCreatedBy?: string[] | undefined;
|
|
274
310
|
};
|
|
275
311
|
chainId: string;
|
|
276
|
-
collectionAddress: `0x${string}`;
|
|
277
312
|
side: OrderSide;
|
|
313
|
+
collectionAddress: `0x${string}`;
|
|
278
314
|
query?: {
|
|
279
315
|
enabled?: boolean | undefined;
|
|
280
316
|
} | undefined;
|
|
@@ -407,6 +443,104 @@ declare const collectionOptions: (args: UseCollectionArgs, config: SdkConfig) =>
|
|
|
407
443
|
};
|
|
408
444
|
declare const useCollection: (args: UseCollectionArgs) => _tanstack_react_query.UseQueryResult<_0xsequence_metadata.ContractInfo, Error>;
|
|
409
445
|
|
|
446
|
+
declare const filterSchema: z.ZodObject<{
|
|
447
|
+
accountAddresses: z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">;
|
|
448
|
+
contractWhitelist: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">>;
|
|
449
|
+
omitNativeBalances: z.ZodBoolean;
|
|
450
|
+
}, "strip", z.ZodTypeAny, {
|
|
451
|
+
accountAddresses: `0x${string}`[];
|
|
452
|
+
omitNativeBalances: boolean;
|
|
453
|
+
contractWhitelist?: `0x${string}`[] | undefined;
|
|
454
|
+
}, {
|
|
455
|
+
accountAddresses: string[];
|
|
456
|
+
omitNativeBalances: boolean;
|
|
457
|
+
contractWhitelist?: string[] | undefined;
|
|
458
|
+
}>;
|
|
459
|
+
declare const useCollectionBalanceDetailsArgsSchema: z.ZodObject<{
|
|
460
|
+
chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodNumber>;
|
|
461
|
+
filter: z.ZodObject<{
|
|
462
|
+
accountAddresses: z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">;
|
|
463
|
+
contractWhitelist: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">>;
|
|
464
|
+
omitNativeBalances: z.ZodBoolean;
|
|
465
|
+
}, "strip", z.ZodTypeAny, {
|
|
466
|
+
accountAddresses: `0x${string}`[];
|
|
467
|
+
omitNativeBalances: boolean;
|
|
468
|
+
contractWhitelist?: `0x${string}`[] | undefined;
|
|
469
|
+
}, {
|
|
470
|
+
accountAddresses: string[];
|
|
471
|
+
omitNativeBalances: boolean;
|
|
472
|
+
contractWhitelist?: string[] | undefined;
|
|
473
|
+
}>;
|
|
474
|
+
query: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
475
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
476
|
+
}, "strip", z.ZodTypeAny, {
|
|
477
|
+
enabled?: boolean | undefined;
|
|
478
|
+
}, {
|
|
479
|
+
enabled?: boolean | undefined;
|
|
480
|
+
}>>>;
|
|
481
|
+
}, "strip", z.ZodTypeAny, {
|
|
482
|
+
filter: {
|
|
483
|
+
accountAddresses: `0x${string}`[];
|
|
484
|
+
omitNativeBalances: boolean;
|
|
485
|
+
contractWhitelist?: `0x${string}`[] | undefined;
|
|
486
|
+
};
|
|
487
|
+
chainId: number;
|
|
488
|
+
query?: {
|
|
489
|
+
enabled?: boolean | undefined;
|
|
490
|
+
} | undefined;
|
|
491
|
+
}, {
|
|
492
|
+
filter: {
|
|
493
|
+
accountAddresses: string[];
|
|
494
|
+
omitNativeBalances: boolean;
|
|
495
|
+
contractWhitelist?: string[] | undefined;
|
|
496
|
+
};
|
|
497
|
+
chainId: string | number;
|
|
498
|
+
query?: {
|
|
499
|
+
enabled?: boolean | undefined;
|
|
500
|
+
} | undefined;
|
|
501
|
+
}>;
|
|
502
|
+
type CollectionBalanceFilter = z.infer<typeof filterSchema>;
|
|
503
|
+
type UseCollectionBalanceDetailsArgs = z.input<typeof useCollectionBalanceDetailsArgsSchema>;
|
|
504
|
+
declare const collectionBalanceDetailsOptions: (args: UseCollectionBalanceDetailsArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetTokenBalancesDetailsReturn, Error, GetTokenBalancesDetailsReturn, ("balances" | "collectionBalanceDetails" | SdkConfig | {
|
|
505
|
+
filter: {
|
|
506
|
+
accountAddresses: string[];
|
|
507
|
+
omitNativeBalances: boolean;
|
|
508
|
+
contractWhitelist?: string[] | undefined;
|
|
509
|
+
};
|
|
510
|
+
chainId: string | number;
|
|
511
|
+
query?: {
|
|
512
|
+
enabled?: boolean | undefined;
|
|
513
|
+
} | undefined;
|
|
514
|
+
})[]>, "queryFn"> & {
|
|
515
|
+
queryFn?: _tanstack_react_query.QueryFunction<GetTokenBalancesDetailsReturn, ("balances" | "collectionBalanceDetails" | SdkConfig | {
|
|
516
|
+
filter: {
|
|
517
|
+
accountAddresses: string[];
|
|
518
|
+
omitNativeBalances: boolean;
|
|
519
|
+
contractWhitelist?: string[] | undefined;
|
|
520
|
+
};
|
|
521
|
+
chainId: string | number;
|
|
522
|
+
query?: {
|
|
523
|
+
enabled?: boolean | undefined;
|
|
524
|
+
} | undefined;
|
|
525
|
+
})[], never> | undefined;
|
|
526
|
+
} & {
|
|
527
|
+
queryKey: ("balances" | "collectionBalanceDetails" | SdkConfig | {
|
|
528
|
+
filter: {
|
|
529
|
+
accountAddresses: string[];
|
|
530
|
+
omitNativeBalances: boolean;
|
|
531
|
+
contractWhitelist?: string[] | undefined;
|
|
532
|
+
};
|
|
533
|
+
chainId: string | number;
|
|
534
|
+
query?: {
|
|
535
|
+
enabled?: boolean | undefined;
|
|
536
|
+
} | undefined;
|
|
537
|
+
})[] & {
|
|
538
|
+
[dataTagSymbol]: GetTokenBalancesDetailsReturn;
|
|
539
|
+
[dataTagErrorSymbol]: Error;
|
|
540
|
+
};
|
|
541
|
+
};
|
|
542
|
+
declare const useCollectionBalanceDetails: (args: UseCollectionBalanceDetailsArgs) => _tanstack_react_query.UseQueryResult<GetTokenBalancesDetailsReturn, Error>;
|
|
543
|
+
|
|
410
544
|
declare function useConfig(): SdkConfig;
|
|
411
545
|
|
|
412
546
|
declare const UseCurrenciesArgsSchema: z.ZodObject<{
|
|
@@ -440,6 +574,7 @@ type UseCurrenciesReturn = Awaited<ReturnType<typeof fetchCurrencies>>;
|
|
|
440
574
|
declare const fetchCurrencies: (chainId: ChainId, config: SdkConfig) => Promise<{
|
|
441
575
|
contractAddress: string;
|
|
442
576
|
chainId: number;
|
|
577
|
+
status: CurrencyStatus;
|
|
443
578
|
name: string;
|
|
444
579
|
symbol: string;
|
|
445
580
|
decimals: number;
|
|
@@ -454,6 +589,7 @@ declare const fetchCurrencies: (chainId: ChainId, config: SdkConfig) => Promise<
|
|
|
454
589
|
declare const currenciesOptions: (args: UseCurrenciesArgs, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
|
|
455
590
|
contractAddress: string;
|
|
456
591
|
chainId: number;
|
|
592
|
+
status: CurrencyStatus;
|
|
457
593
|
name: string;
|
|
458
594
|
symbol: string;
|
|
459
595
|
decimals: number;
|
|
@@ -468,6 +604,7 @@ declare const currenciesOptions: (args: UseCurrenciesArgs, config: SdkConfig) =>
|
|
|
468
604
|
queryFn?: _tanstack_react_query.QueryFunction<{
|
|
469
605
|
contractAddress: string;
|
|
470
606
|
chainId: number;
|
|
607
|
+
status: CurrencyStatus;
|
|
471
608
|
name: string;
|
|
472
609
|
symbol: string;
|
|
473
610
|
decimals: number;
|
|
@@ -484,6 +621,7 @@ declare const currenciesOptions: (args: UseCurrenciesArgs, config: SdkConfig) =>
|
|
|
484
621
|
[dataTagSymbol]: {
|
|
485
622
|
contractAddress: string;
|
|
486
623
|
chainId: number;
|
|
624
|
+
status: CurrencyStatus;
|
|
487
625
|
name: string;
|
|
488
626
|
symbol: string;
|
|
489
627
|
decimals: number;
|
|
@@ -804,10 +942,10 @@ declare const useListBalancesArgsSchema: z.ZodObject<{
|
|
|
804
942
|
column: string;
|
|
805
943
|
}[] | undefined;
|
|
806
944
|
column?: string | undefined;
|
|
945
|
+
after?: any;
|
|
807
946
|
pageSize?: number | undefined;
|
|
808
947
|
more?: boolean | undefined;
|
|
809
948
|
before?: any;
|
|
810
|
-
after?: any;
|
|
811
949
|
}, {
|
|
812
950
|
page?: number | undefined;
|
|
813
951
|
sort?: {
|
|
@@ -815,10 +953,10 @@ declare const useListBalancesArgsSchema: z.ZodObject<{
|
|
|
815
953
|
column: string;
|
|
816
954
|
}[] | undefined;
|
|
817
955
|
column?: string | undefined;
|
|
956
|
+
after?: any;
|
|
818
957
|
pageSize?: number | undefined;
|
|
819
958
|
more?: boolean | undefined;
|
|
820
959
|
before?: any;
|
|
821
|
-
after?: any;
|
|
822
960
|
}>>;
|
|
823
961
|
query: z.ZodOptional<z.ZodObject<{
|
|
824
962
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -836,13 +974,13 @@ declare const useListBalancesArgsSchema: z.ZodObject<{
|
|
|
836
974
|
column: string;
|
|
837
975
|
}[] | undefined;
|
|
838
976
|
column?: string | undefined;
|
|
977
|
+
after?: any;
|
|
839
978
|
pageSize?: number | undefined;
|
|
840
979
|
more?: boolean | undefined;
|
|
841
980
|
before?: any;
|
|
842
|
-
after?: any;
|
|
843
981
|
} | undefined;
|
|
844
|
-
tokenId?: string | undefined;
|
|
845
982
|
contractAddress?: `0x${string}` | undefined;
|
|
983
|
+
tokenId?: string | undefined;
|
|
846
984
|
query?: {
|
|
847
985
|
enabled?: boolean | undefined;
|
|
848
986
|
} | undefined;
|
|
@@ -863,13 +1001,13 @@ declare const useListBalancesArgsSchema: z.ZodObject<{
|
|
|
863
1001
|
column: string;
|
|
864
1002
|
}[] | undefined;
|
|
865
1003
|
column?: string | undefined;
|
|
1004
|
+
after?: any;
|
|
866
1005
|
pageSize?: number | undefined;
|
|
867
1006
|
more?: boolean | undefined;
|
|
868
1007
|
before?: any;
|
|
869
|
-
after?: any;
|
|
870
1008
|
} | undefined;
|
|
871
|
-
tokenId?: string | undefined;
|
|
872
1009
|
contractAddress?: string | undefined;
|
|
1010
|
+
tokenId?: string | undefined;
|
|
873
1011
|
query?: {
|
|
874
1012
|
enabled?: boolean | undefined;
|
|
875
1013
|
} | undefined;
|
|
@@ -894,13 +1032,13 @@ declare const listBalancesOptions: (args: UseListBalancesArgs, config: SdkConfig
|
|
|
894
1032
|
column: string;
|
|
895
1033
|
}[] | undefined;
|
|
896
1034
|
column?: string | undefined;
|
|
1035
|
+
after?: any;
|
|
897
1036
|
pageSize?: number | undefined;
|
|
898
1037
|
more?: boolean | undefined;
|
|
899
1038
|
before?: any;
|
|
900
|
-
after?: any;
|
|
901
1039
|
} | undefined;
|
|
902
|
-
tokenId?: string | undefined;
|
|
903
1040
|
contractAddress?: string | undefined;
|
|
1041
|
+
tokenId?: string | undefined;
|
|
904
1042
|
query?: {
|
|
905
1043
|
enabled?: boolean | undefined;
|
|
906
1044
|
} | undefined;
|
|
@@ -922,13 +1060,13 @@ declare const listBalancesOptions: (args: UseListBalancesArgs, config: SdkConfig
|
|
|
922
1060
|
column: string;
|
|
923
1061
|
}[] | undefined;
|
|
924
1062
|
column?: string | undefined;
|
|
1063
|
+
after?: any;
|
|
925
1064
|
pageSize?: number | undefined;
|
|
926
1065
|
more?: boolean | undefined;
|
|
927
1066
|
before?: any;
|
|
928
|
-
after?: any;
|
|
929
1067
|
} | undefined;
|
|
930
|
-
tokenId?: string | undefined;
|
|
931
1068
|
contractAddress?: string | undefined;
|
|
1069
|
+
tokenId?: string | undefined;
|
|
932
1070
|
query?: {
|
|
933
1071
|
enabled?: boolean | undefined;
|
|
934
1072
|
} | undefined;
|
|
@@ -951,13 +1089,13 @@ declare const listBalancesOptions: (args: UseListBalancesArgs, config: SdkConfig
|
|
|
951
1089
|
column: string;
|
|
952
1090
|
}[] | undefined;
|
|
953
1091
|
column?: string | undefined;
|
|
1092
|
+
after?: any;
|
|
954
1093
|
pageSize?: number | undefined;
|
|
955
1094
|
more?: boolean | undefined;
|
|
956
1095
|
before?: any;
|
|
957
|
-
after?: any;
|
|
958
1096
|
} | undefined;
|
|
959
|
-
tokenId?: string | undefined;
|
|
960
1097
|
contractAddress?: string | undefined;
|
|
1098
|
+
tokenId?: string | undefined;
|
|
961
1099
|
query?: {
|
|
962
1100
|
enabled?: boolean | undefined;
|
|
963
1101
|
} | undefined;
|
|
@@ -1072,10 +1210,10 @@ declare const getListCollectibleActivitiesReturnSchema: z.ZodObject<{
|
|
|
1072
1210
|
chainId: number;
|
|
1073
1211
|
name: string;
|
|
1074
1212
|
nativeCurrency: boolean;
|
|
1075
|
-
updatedAt: string;
|
|
1076
1213
|
contractAddress: string;
|
|
1077
|
-
createdAt: string;
|
|
1078
1214
|
decimals: number;
|
|
1215
|
+
updatedAt: string;
|
|
1216
|
+
createdAt: string;
|
|
1079
1217
|
imageUrl: string;
|
|
1080
1218
|
exchangeRate: number;
|
|
1081
1219
|
defaultChainCurrency: boolean;
|
|
@@ -1085,10 +1223,10 @@ declare const getListCollectibleActivitiesReturnSchema: z.ZodObject<{
|
|
|
1085
1223
|
chainId: number;
|
|
1086
1224
|
name: string;
|
|
1087
1225
|
nativeCurrency: boolean;
|
|
1088
|
-
updatedAt: string;
|
|
1089
1226
|
contractAddress: string;
|
|
1090
|
-
createdAt: string;
|
|
1091
1227
|
decimals: number;
|
|
1228
|
+
updatedAt: string;
|
|
1229
|
+
createdAt: string;
|
|
1092
1230
|
imageUrl: string;
|
|
1093
1231
|
exchangeRate: number;
|
|
1094
1232
|
defaultChainCurrency: boolean;
|
|
@@ -1108,10 +1246,10 @@ declare const getListCollectibleActivitiesReturnSchema: z.ZodObject<{
|
|
|
1108
1246
|
chainId: number;
|
|
1109
1247
|
name: string;
|
|
1110
1248
|
nativeCurrency: boolean;
|
|
1111
|
-
updatedAt: string;
|
|
1112
1249
|
contractAddress: string;
|
|
1113
|
-
createdAt: string;
|
|
1114
1250
|
decimals: number;
|
|
1251
|
+
updatedAt: string;
|
|
1252
|
+
createdAt: string;
|
|
1115
1253
|
imageUrl: string;
|
|
1116
1254
|
exchangeRate: number;
|
|
1117
1255
|
defaultChainCurrency: boolean;
|
|
@@ -1131,10 +1269,10 @@ declare const getListCollectibleActivitiesReturnSchema: z.ZodObject<{
|
|
|
1131
1269
|
chainId: number;
|
|
1132
1270
|
name: string;
|
|
1133
1271
|
nativeCurrency: boolean;
|
|
1134
|
-
updatedAt: string;
|
|
1135
1272
|
contractAddress: string;
|
|
1136
|
-
createdAt: string;
|
|
1137
1273
|
decimals: number;
|
|
1274
|
+
updatedAt: string;
|
|
1275
|
+
createdAt: string;
|
|
1138
1276
|
imageUrl: string;
|
|
1139
1277
|
exchangeRate: number;
|
|
1140
1278
|
defaultChainCurrency: boolean;
|
|
@@ -1187,10 +1325,10 @@ declare const getListCollectibleActivitiesReturnSchema: z.ZodObject<{
|
|
|
1187
1325
|
chainId: number;
|
|
1188
1326
|
name: string;
|
|
1189
1327
|
nativeCurrency: boolean;
|
|
1190
|
-
updatedAt: string;
|
|
1191
1328
|
contractAddress: string;
|
|
1192
|
-
createdAt: string;
|
|
1193
1329
|
decimals: number;
|
|
1330
|
+
updatedAt: string;
|
|
1331
|
+
createdAt: string;
|
|
1194
1332
|
imageUrl: string;
|
|
1195
1333
|
exchangeRate: number;
|
|
1196
1334
|
defaultChainCurrency: boolean;
|
|
@@ -1221,10 +1359,10 @@ declare const getListCollectibleActivitiesReturnSchema: z.ZodObject<{
|
|
|
1221
1359
|
chainId: number;
|
|
1222
1360
|
name: string;
|
|
1223
1361
|
nativeCurrency: boolean;
|
|
1224
|
-
updatedAt: string;
|
|
1225
1362
|
contractAddress: string;
|
|
1226
|
-
createdAt: string;
|
|
1227
1363
|
decimals: number;
|
|
1364
|
+
updatedAt: string;
|
|
1365
|
+
createdAt: string;
|
|
1228
1366
|
imageUrl: string;
|
|
1229
1367
|
exchangeRate: number;
|
|
1230
1368
|
defaultChainCurrency: boolean;
|
|
@@ -1334,10 +1472,10 @@ declare const getListCollectionActivitiesReturnSchema: z.ZodObject<{
|
|
|
1334
1472
|
chainId: number;
|
|
1335
1473
|
name: string;
|
|
1336
1474
|
nativeCurrency: boolean;
|
|
1337
|
-
updatedAt: string;
|
|
1338
1475
|
contractAddress: string;
|
|
1339
|
-
createdAt: string;
|
|
1340
1476
|
decimals: number;
|
|
1477
|
+
updatedAt: string;
|
|
1478
|
+
createdAt: string;
|
|
1341
1479
|
imageUrl: string;
|
|
1342
1480
|
exchangeRate: number;
|
|
1343
1481
|
defaultChainCurrency: boolean;
|
|
@@ -1347,10 +1485,10 @@ declare const getListCollectionActivitiesReturnSchema: z.ZodObject<{
|
|
|
1347
1485
|
chainId: number;
|
|
1348
1486
|
name: string;
|
|
1349
1487
|
nativeCurrency: boolean;
|
|
1350
|
-
updatedAt: string;
|
|
1351
1488
|
contractAddress: string;
|
|
1352
|
-
createdAt: string;
|
|
1353
1489
|
decimals: number;
|
|
1490
|
+
updatedAt: string;
|
|
1491
|
+
createdAt: string;
|
|
1354
1492
|
imageUrl: string;
|
|
1355
1493
|
exchangeRate: number;
|
|
1356
1494
|
defaultChainCurrency: boolean;
|
|
@@ -1370,10 +1508,10 @@ declare const getListCollectionActivitiesReturnSchema: z.ZodObject<{
|
|
|
1370
1508
|
chainId: number;
|
|
1371
1509
|
name: string;
|
|
1372
1510
|
nativeCurrency: boolean;
|
|
1373
|
-
updatedAt: string;
|
|
1374
1511
|
contractAddress: string;
|
|
1375
|
-
createdAt: string;
|
|
1376
1512
|
decimals: number;
|
|
1513
|
+
updatedAt: string;
|
|
1514
|
+
createdAt: string;
|
|
1377
1515
|
imageUrl: string;
|
|
1378
1516
|
exchangeRate: number;
|
|
1379
1517
|
defaultChainCurrency: boolean;
|
|
@@ -1393,10 +1531,10 @@ declare const getListCollectionActivitiesReturnSchema: z.ZodObject<{
|
|
|
1393
1531
|
chainId: number;
|
|
1394
1532
|
name: string;
|
|
1395
1533
|
nativeCurrency: boolean;
|
|
1396
|
-
updatedAt: string;
|
|
1397
1534
|
contractAddress: string;
|
|
1398
|
-
createdAt: string;
|
|
1399
1535
|
decimals: number;
|
|
1536
|
+
updatedAt: string;
|
|
1537
|
+
createdAt: string;
|
|
1400
1538
|
imageUrl: string;
|
|
1401
1539
|
exchangeRate: number;
|
|
1402
1540
|
defaultChainCurrency: boolean;
|
|
@@ -1449,10 +1587,10 @@ declare const getListCollectionActivitiesReturnSchema: z.ZodObject<{
|
|
|
1449
1587
|
chainId: number;
|
|
1450
1588
|
name: string;
|
|
1451
1589
|
nativeCurrency: boolean;
|
|
1452
|
-
updatedAt: string;
|
|
1453
1590
|
contractAddress: string;
|
|
1454
|
-
createdAt: string;
|
|
1455
1591
|
decimals: number;
|
|
1592
|
+
updatedAt: string;
|
|
1593
|
+
createdAt: string;
|
|
1456
1594
|
imageUrl: string;
|
|
1457
1595
|
exchangeRate: number;
|
|
1458
1596
|
defaultChainCurrency: boolean;
|
|
@@ -1483,10 +1621,10 @@ declare const getListCollectionActivitiesReturnSchema: z.ZodObject<{
|
|
|
1483
1621
|
chainId: number;
|
|
1484
1622
|
name: string;
|
|
1485
1623
|
nativeCurrency: boolean;
|
|
1486
|
-
updatedAt: string;
|
|
1487
1624
|
contractAddress: string;
|
|
1488
|
-
createdAt: string;
|
|
1489
1625
|
decimals: number;
|
|
1626
|
+
updatedAt: string;
|
|
1627
|
+
createdAt: string;
|
|
1490
1628
|
imageUrl: string;
|
|
1491
1629
|
exchangeRate: number;
|
|
1492
1630
|
defaultChainCurrency: boolean;
|
|
@@ -1589,14 +1727,14 @@ declare const UseListCollectiblesArgsSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1589
1727
|
type: PropertyType;
|
|
1590
1728
|
name: string;
|
|
1591
1729
|
values?: any[] | undefined;
|
|
1592
|
-
min?: number | undefined;
|
|
1593
1730
|
max?: number | undefined;
|
|
1731
|
+
min?: number | undefined;
|
|
1594
1732
|
}, {
|
|
1595
1733
|
type: PropertyType;
|
|
1596
1734
|
name: string;
|
|
1597
1735
|
values?: any[] | undefined;
|
|
1598
|
-
min?: number | undefined;
|
|
1599
1736
|
max?: number | undefined;
|
|
1737
|
+
min?: number | undefined;
|
|
1600
1738
|
}>, "many">>;
|
|
1601
1739
|
marketplaces: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof MarketplaceKind>, "many">>;
|
|
1602
1740
|
inAccounts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1610,8 +1748,8 @@ declare const UseListCollectiblesArgsSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1610
1748
|
type: PropertyType;
|
|
1611
1749
|
name: string;
|
|
1612
1750
|
values?: any[] | undefined;
|
|
1613
|
-
min?: number | undefined;
|
|
1614
1751
|
max?: number | undefined;
|
|
1752
|
+
min?: number | undefined;
|
|
1615
1753
|
}[] | undefined;
|
|
1616
1754
|
marketplaces?: MarketplaceKind[] | undefined;
|
|
1617
1755
|
inAccounts?: string[] | undefined;
|
|
@@ -1625,8 +1763,8 @@ declare const UseListCollectiblesArgsSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1625
1763
|
type: PropertyType;
|
|
1626
1764
|
name: string;
|
|
1627
1765
|
values?: any[] | undefined;
|
|
1628
|
-
min?: number | undefined;
|
|
1629
1766
|
max?: number | undefined;
|
|
1767
|
+
min?: number | undefined;
|
|
1630
1768
|
}[] | undefined;
|
|
1631
1769
|
marketplaces?: MarketplaceKind[] | undefined;
|
|
1632
1770
|
inAccounts?: string[] | undefined;
|
|
@@ -1677,8 +1815,8 @@ declare const UseListCollectiblesArgsSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1677
1815
|
}>>;
|
|
1678
1816
|
}>, "strip", z.ZodTypeAny, {
|
|
1679
1817
|
chainId: string;
|
|
1680
|
-
collectionAddress: `0x${string}`;
|
|
1681
1818
|
side: OrderSide;
|
|
1819
|
+
collectionAddress: `0x${string}`;
|
|
1682
1820
|
page?: {
|
|
1683
1821
|
page: number;
|
|
1684
1822
|
pageSize: number;
|
|
@@ -1695,8 +1833,8 @@ declare const UseListCollectiblesArgsSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1695
1833
|
type: PropertyType;
|
|
1696
1834
|
name: string;
|
|
1697
1835
|
values?: any[] | undefined;
|
|
1698
|
-
min?: number | undefined;
|
|
1699
1836
|
max?: number | undefined;
|
|
1837
|
+
min?: number | undefined;
|
|
1700
1838
|
}[] | undefined;
|
|
1701
1839
|
marketplaces?: MarketplaceKind[] | undefined;
|
|
1702
1840
|
inAccounts?: string[] | undefined;
|
|
@@ -1709,8 +1847,8 @@ declare const UseListCollectiblesArgsSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1709
1847
|
} | undefined;
|
|
1710
1848
|
}, {
|
|
1711
1849
|
chainId: string | number;
|
|
1712
|
-
collectionAddress: string;
|
|
1713
1850
|
side: OrderSide;
|
|
1851
|
+
collectionAddress: string;
|
|
1714
1852
|
page?: {
|
|
1715
1853
|
page: number;
|
|
1716
1854
|
pageSize: number;
|
|
@@ -1727,8 +1865,8 @@ declare const UseListCollectiblesArgsSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
1727
1865
|
type: PropertyType;
|
|
1728
1866
|
name: string;
|
|
1729
1867
|
values?: any[] | undefined;
|
|
1730
|
-
min?: number | undefined;
|
|
1731
1868
|
max?: number | undefined;
|
|
1869
|
+
min?: number | undefined;
|
|
1732
1870
|
}[] | undefined;
|
|
1733
1871
|
marketplaces?: MarketplaceKind[] | undefined;
|
|
1734
1872
|
inAccounts?: string[] | undefined;
|
|
@@ -1745,8 +1883,8 @@ type UseListCollectiblesReturn = Awaited<ReturnType<typeof fetchCollectibles>>;
|
|
|
1745
1883
|
declare const fetchCollectibles: (args: UseListCollectiblesArgs, marketplaceClient: Awaited<ReturnType<typeof getMarketplaceClient>>, page: Page$1) => Promise<ListCollectiblesReturn>;
|
|
1746
1884
|
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" | {
|
|
1747
1885
|
chainId: string;
|
|
1748
|
-
collectionAddress: `0x${string}`;
|
|
1749
1886
|
side: OrderSide;
|
|
1887
|
+
collectionAddress: `0x${string}`;
|
|
1750
1888
|
page?: {
|
|
1751
1889
|
page: number;
|
|
1752
1890
|
pageSize: number;
|
|
@@ -1763,8 +1901,8 @@ declare const listCollectiblesOptions: (args: UseListCollectiblesArgs, config: S
|
|
|
1763
1901
|
type: PropertyType;
|
|
1764
1902
|
name: string;
|
|
1765
1903
|
values?: any[] | undefined;
|
|
1766
|
-
min?: number | undefined;
|
|
1767
1904
|
max?: number | undefined;
|
|
1905
|
+
min?: number | undefined;
|
|
1768
1906
|
}[] | undefined;
|
|
1769
1907
|
marketplaces?: MarketplaceKind[] | undefined;
|
|
1770
1908
|
inAccounts?: string[] | undefined;
|
|
@@ -1781,8 +1919,8 @@ declare const listCollectiblesOptions: (args: UseListCollectiblesArgs, config: S
|
|
|
1781
1919
|
}>, "queryFn"> & {
|
|
1782
1920
|
queryFn?: _tanstack_react_query.QueryFunction<ListCollectiblesReturn, ("collectable" | "list" | {
|
|
1783
1921
|
chainId: string;
|
|
1784
|
-
collectionAddress: `0x${string}`;
|
|
1785
1922
|
side: OrderSide;
|
|
1923
|
+
collectionAddress: `0x${string}`;
|
|
1786
1924
|
page?: {
|
|
1787
1925
|
page: number;
|
|
1788
1926
|
pageSize: number;
|
|
@@ -1799,8 +1937,8 @@ declare const listCollectiblesOptions: (args: UseListCollectiblesArgs, config: S
|
|
|
1799
1937
|
type: PropertyType;
|
|
1800
1938
|
name: string;
|
|
1801
1939
|
values?: any[] | undefined;
|
|
1802
|
-
min?: number | undefined;
|
|
1803
1940
|
max?: number | undefined;
|
|
1941
|
+
min?: number | undefined;
|
|
1804
1942
|
}[] | undefined;
|
|
1805
1943
|
marketplaces?: MarketplaceKind[] | undefined;
|
|
1806
1944
|
inAccounts?: string[] | undefined;
|
|
@@ -1818,8 +1956,8 @@ declare const listCollectiblesOptions: (args: UseListCollectiblesArgs, config: S
|
|
|
1818
1956
|
} & {
|
|
1819
1957
|
queryKey: ("collectable" | "list" | {
|
|
1820
1958
|
chainId: string;
|
|
1821
|
-
collectionAddress: `0x${string}`;
|
|
1822
1959
|
side: OrderSide;
|
|
1960
|
+
collectionAddress: `0x${string}`;
|
|
1823
1961
|
page?: {
|
|
1824
1962
|
page: number;
|
|
1825
1963
|
pageSize: number;
|
|
@@ -1836,8 +1974,8 @@ declare const listCollectiblesOptions: (args: UseListCollectiblesArgs, config: S
|
|
|
1836
1974
|
type: PropertyType;
|
|
1837
1975
|
name: string;
|
|
1838
1976
|
values?: any[] | undefined;
|
|
1839
|
-
min?: number | undefined;
|
|
1840
1977
|
max?: number | undefined;
|
|
1978
|
+
min?: number | undefined;
|
|
1841
1979
|
}[] | undefined;
|
|
1842
1980
|
marketplaces?: MarketplaceKind[] | undefined;
|
|
1843
1981
|
inAccounts?: string[] | undefined;
|
|
@@ -1972,7 +2110,7 @@ declare const UseListOffersForCollectibleArgsSchema: z.ZodObject<Omit<z.objectUt
|
|
|
1972
2110
|
chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
|
|
1973
2111
|
collectionAddress: z.ZodString;
|
|
1974
2112
|
collectibleId: z.ZodString;
|
|
1975
|
-
}>, "
|
|
2113
|
+
}>, "contractAddress" | "tokenId">, "strip", z.ZodTypeAny, {
|
|
1976
2114
|
chainId: string;
|
|
1977
2115
|
collectionAddress: string;
|
|
1978
2116
|
collectibleId: string;
|
|
@@ -2092,7 +2230,7 @@ declare const UseCountOffersForCollectibleArgsSchema: z.ZodObject<z.objectUtil.e
|
|
|
2092
2230
|
marketplace?: MarketplaceKind[] | undefined;
|
|
2093
2231
|
createdBy?: string[] | undefined;
|
|
2094
2232
|
}>>;
|
|
2095
|
-
}, "
|
|
2233
|
+
}, "contractAddress" | "tokenId">, {
|
|
2096
2234
|
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2097
2235
|
collectibleId: z.ZodString;
|
|
2098
2236
|
chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
|
|
@@ -2228,7 +2366,7 @@ declare const UseListListingsForCollectibleArgsSchema: z.ZodObject<Omit<z.object
|
|
|
2228
2366
|
chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
|
|
2229
2367
|
collectionAddress: z.ZodString;
|
|
2230
2368
|
collectibleId: z.ZodString;
|
|
2231
|
-
}>, "
|
|
2369
|
+
}>, "contractAddress" | "tokenId">, "strip", z.ZodTypeAny, {
|
|
2232
2370
|
chainId: string;
|
|
2233
2371
|
collectionAddress: string;
|
|
2234
2372
|
collectibleId: string;
|
|
@@ -2348,7 +2486,7 @@ declare const UseCountListingsForCollectibleArgsSchema: z.ZodObject<z.objectUtil
|
|
|
2348
2486
|
marketplace?: MarketplaceKind[] | undefined;
|
|
2349
2487
|
createdBy?: string[] | undefined;
|
|
2350
2488
|
}>>;
|
|
2351
|
-
}, "
|
|
2489
|
+
}, "contractAddress" | "tokenId">, {
|
|
2352
2490
|
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2353
2491
|
collectibleId: z.ZodString;
|
|
2354
2492
|
chainId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNativeEnum<typeof _0xsequence_network.ChainId>]>, z.ZodString>;
|
|
@@ -3513,4 +3651,41 @@ declare const useCancelOrder: ({ collectionAddress, chainId, onSuccess, onError,
|
|
|
3513
3651
|
cancellingOrderId: string | null;
|
|
3514
3652
|
};
|
|
3515
3653
|
|
|
3516
|
-
|
|
3654
|
+
type UseCollectionDetails = {
|
|
3655
|
+
collectionAddress: string;
|
|
3656
|
+
chainId: number;
|
|
3657
|
+
};
|
|
3658
|
+
declare const collectionDetailsOptions: (args: UseCollectionDetails, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Collection, Error, Collection, (string | UseCollectionDetails)[]>, "queryFn"> & {
|
|
3659
|
+
queryFn?: _tanstack_react_query.QueryFunction<Collection, (string | UseCollectionDetails)[], never> | undefined;
|
|
3660
|
+
} & {
|
|
3661
|
+
queryKey: (string | UseCollectionDetails)[] & {
|
|
3662
|
+
[dataTagSymbol]: Collection;
|
|
3663
|
+
[dataTagErrorSymbol]: Error;
|
|
3664
|
+
};
|
|
3665
|
+
};
|
|
3666
|
+
declare const useCollectionDetails: (args: UseCollectionDetails) => _tanstack_react_query.UseQueryResult<Collection, Error>;
|
|
3667
|
+
|
|
3668
|
+
type UseCollectionDetailsPolling = {
|
|
3669
|
+
collectionAddress: string;
|
|
3670
|
+
chainId: number;
|
|
3671
|
+
};
|
|
3672
|
+
declare const collectionDetailsPollingOptions: (args: UseCollectionDetailsPolling, config: SdkConfig) => _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Collection, Error, Collection, (string | {
|
|
3673
|
+
collectionAddress: string;
|
|
3674
|
+
chainId: number;
|
|
3675
|
+
})[]>, "queryFn"> & {
|
|
3676
|
+
queryFn?: _tanstack_react_query.QueryFunction<Collection, (string | {
|
|
3677
|
+
collectionAddress: string;
|
|
3678
|
+
chainId: number;
|
|
3679
|
+
})[], never> | undefined;
|
|
3680
|
+
} & {
|
|
3681
|
+
queryKey: (string | {
|
|
3682
|
+
collectionAddress: string;
|
|
3683
|
+
chainId: number;
|
|
3684
|
+
})[] & {
|
|
3685
|
+
[dataTagSymbol]: Collection;
|
|
3686
|
+
[dataTagErrorSymbol]: Error;
|
|
3687
|
+
};
|
|
3688
|
+
};
|
|
3689
|
+
declare const useCollectionDetailsPolling: (args: UseCollectionDetailsPolling) => _tanstack_react_query.UseQueryResult<Collection, Error>;
|
|
3690
|
+
|
|
3691
|
+
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 };
|