@0xsequence/marketplace-sdk 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/BellIcon.js +1 -1
- package/dist/Card.js +1 -1
- package/dist/ShopCard.d.ts +4 -4
- package/dist/builder-api.js +1 -1
- package/dist/collectible.js +1 -1
- package/dist/collection.js +1 -1
- package/dist/create-config.d.ts +597 -201
- package/dist/create-config.js +1 -1
- package/dist/currency.js +1 -1
- package/dist/dist.js +167 -148
- package/dist/dist.js.map +1 -1
- package/dist/expirationDateSelect.js +1 -1
- package/dist/filter-state.d.ts +1 -1
- package/dist/filters.d.ts +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index10.d.ts +3 -3
- package/dist/index11.d.ts +17 -17
- package/dist/index12.d.ts +26 -26
- package/dist/index14.d.ts +3 -3
- package/dist/index15.d.ts +3 -3
- package/dist/index16.d.ts +2 -2
- package/dist/index17.d.ts +86 -86
- package/dist/index18.d.ts +40 -40
- package/dist/index19.d.ts +5 -5
- package/dist/index2.d.ts +4 -1
- package/dist/index21.d.ts +15 -15
- package/dist/index22.d.ts +8 -65
- package/dist/index23.d.ts +21 -13
- package/dist/index26.d.ts +4 -4
- package/dist/index27.d.ts +4 -4
- package/dist/index28.d.ts +10 -10
- package/dist/index3.d.ts +2 -2194
- package/dist/index31.d.ts +5 -5
- package/dist/index33.d.ts +3 -3
- package/dist/index34.d.ts +4 -4
- package/dist/index35.d.ts +1 -1
- package/dist/index36.d.ts +7 -7
- package/dist/index37.d.ts +6 -6
- package/dist/index38.d.ts +8 -8
- package/dist/index39.d.ts +1 -1
- package/dist/index4.d.ts +995 -995
- package/dist/index40.d.ts +2 -2
- package/dist/index8.d.ts +2 -2
- package/dist/index9.d.ts +2811 -3
- package/dist/inventory.d.ts +4 -4
- package/dist/inventory.js +2 -2
- package/dist/marketplace2.js +2 -2
- package/dist/metadata.d.ts +73 -73
- package/dist/primary-sale-checkout-options.d.ts +4 -4
- package/dist/quantityInput.js +1 -1
- package/dist/ranges.d.ts +17 -17
- package/dist/react/_internal/index.d.ts +1 -1
- package/dist/react/_internal/index.js +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/react/queries/collectible/index.d.ts +1 -1
- package/dist/react/queries/index.d.ts +1 -1
- package/dist/react/ssr/index.d.ts +1 -1
- package/dist/react/ssr/index.js +2 -2
- package/dist/react/ui/components/marketplace-collectible-card/index.d.ts +1 -1
- package/dist/react/ui/components/marketplace-logos/index.d.ts +21 -21
- package/dist/react/ui/modals/CreateListingModal/internal/hooks/index.d.ts +1 -1
- package/dist/react/ui/modals/MakeOfferModal/internal/hooks/index.d.ts +1 -1
- package/dist/react/ui/modals/_internal/components/alertMessage/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/baseModal/index.d.ts +6 -6
- package/dist/react/ui/modals/_internal/components/calendar/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/calendarDropdown/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/currencyImage/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/currencyOptionsSelect/index.d.ts +3 -3
- package/dist/react/ui/modals/_internal/components/floorPriceText/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/priceInput/index.d.ts +3 -3
- package/dist/react/ui/modals/_internal/components/quantityInput/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/selectWaasFeeOptions/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/switchChainErrorModal/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/timeAgo/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/tokenPreview/index.d.ts +3 -3
- package/dist/react/ui/modals/_internal/components/transaction-footer/index.d.ts +3 -3
- package/dist/react/ui/modals/_internal/components/transactionDetails/index.d.ts +3 -3
- package/dist/react/ui/modals/_internal/components/transactionPreview/index.d.ts +3 -3
- package/dist/react/ui/modals/_internal/components/transactionStatusModal/index.d.ts +3 -3
- package/dist/react.js +2192 -1903
- package/dist/react.js.map +1 -1
- package/dist/token-balances.d.ts +28 -28
- package/dist/transaction-footer.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/url-state.js +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils.js +20 -4
- package/dist/utils.js.map +1 -1
- package/package.json +7 -5
- package/src/react/hooks/config/useMarketplaceConfig.test.tsx +1 -0
- package/src/react/hooks/transactions/useCancelTransactionSteps.tsx +4 -1
- package/src/react/hooks/utils/useEnsureCorrectChain.ts +10 -5
- package/src/react/ui/modals/BuyModal/components/BuyModalContent.tsx +34 -31
- package/src/react/ui/modals/BuyModal/components/CryptoPaymentModal.tsx +74 -11
- package/src/react/ui/modals/BuyModal/components/Modal.tsx +62 -1
- package/src/react/ui/modals/BuyModal/hooks/useExecuteBundledTransactions.ts +13 -26
- package/src/react/ui/modals/BuyModal/internal/__tests__/buildTrailsMarketBuyActions.test.ts +213 -0
- package/src/react/ui/modals/BuyModal/internal/buildTrailsMarketBuyActions.ts +259 -0
- package/src/react/ui/modals/BuyModal/internal/buyModalContext.ts +79 -10
- package/src/react/ui/modals/BuyModal/internal/cryptoPaymentModalContext.tsx +44 -17
- package/src/react/ui/modals/MakeOfferModal/internal/context.ts +2 -1
- package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +2 -1
- package/src/react/ui/modals/_internal/components/priceInput/index.tsx +12 -11
- package/src/react/ui/modals/_internal/helpers/currency.test.ts +27 -0
- package/src/react/ui/modals/_internal/helpers/currency.ts +4 -2
- package/src/utils/__tests__/getMarketplaceDetails.test.ts +10 -0
- package/src/utils/__tests__/getWebRPCErrorMessage.test.ts +28 -0
- package/src/utils/__tests__/marketplaceNormalization.test.ts +38 -0
- package/src/utils/getConduitAddressForOrderbook.ts +2 -10
- package/src/utils/getMarketplaceDetails.ts +11 -4
- package/src/utils/getWebRPCErrorMessage.ts +21 -0
- package/src/utils/normalizeMarketplace.ts +31 -0
package/dist/index18.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { It as Address$1, Tn as WalletKind, Vt as AdditionalFee, an as MarketplaceKind, at as Step, c as ContractType, d as GenerateCancelTransactionRequest, f as GenerateListingTransactionRequest, l as CreateReq, m as GenerateSellTransactionRequest, p as GenerateOfferTransactionRequest } from "./index2.js";
|
|
2
2
|
import { O as WriteContractErrorType, c as SdkConfig, r as TransactionType, w as BuyModalProps } from "./create-config.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as viem28 from "viem";
|
|
4
4
|
import { Hex } from "viem";
|
|
5
|
-
import * as
|
|
5
|
+
import * as _tanstack_react_query177 from "@tanstack/react-query";
|
|
6
6
|
|
|
7
7
|
//#region src/react/hooks/transactions/useBuyTransaction.d.ts
|
|
8
8
|
interface UseBuyTransactionOptions {
|
|
@@ -25,7 +25,7 @@ declare function useBuyTransaction(options: UseBuyTransactionOptions): {
|
|
|
25
25
|
isLoading: boolean;
|
|
26
26
|
error: Error | null;
|
|
27
27
|
isError: boolean;
|
|
28
|
-
refetch: (options?:
|
|
28
|
+
refetch: (options?: _tanstack_react_query177.RefetchOptions) => Promise<_tanstack_react_query177.QueryObserverResult<{
|
|
29
29
|
steps: Step[];
|
|
30
30
|
canBeUsedWithTrails: boolean;
|
|
31
31
|
}, Error>>;
|
|
@@ -93,8 +93,8 @@ interface UseGenerateCancelTransactionRequest {
|
|
|
93
93
|
}
|
|
94
94
|
declare const generateCancelTransaction: (args: GenerateCancelTransactionRequestWithNumberChainId, config: SdkConfig) => Promise<Step[]>;
|
|
95
95
|
declare const useGenerateCancelTransaction: (params: UseGenerateCancelTransactionRequest) => {
|
|
96
|
-
generateCancelTransaction:
|
|
97
|
-
generateCancelTransactionAsync:
|
|
96
|
+
generateCancelTransaction: _tanstack_react_query177.UseMutateFunction<Step[], Error, GenerateCancelTransactionRequestWithNumberChainId, unknown>;
|
|
97
|
+
generateCancelTransactionAsync: _tanstack_react_query177.UseMutateAsyncFunction<Step[], Error, GenerateCancelTransactionRequestWithNumberChainId, unknown>;
|
|
98
98
|
data: undefined;
|
|
99
99
|
variables: undefined;
|
|
100
100
|
error: null;
|
|
@@ -110,8 +110,8 @@ declare const useGenerateCancelTransaction: (params: UseGenerateCancelTransactio
|
|
|
110
110
|
isPaused: boolean;
|
|
111
111
|
submittedAt: number;
|
|
112
112
|
} | {
|
|
113
|
-
generateCancelTransaction:
|
|
114
|
-
generateCancelTransactionAsync:
|
|
113
|
+
generateCancelTransaction: _tanstack_react_query177.UseMutateFunction<Step[], Error, GenerateCancelTransactionRequestWithNumberChainId, unknown>;
|
|
114
|
+
generateCancelTransactionAsync: _tanstack_react_query177.UseMutateAsyncFunction<Step[], Error, GenerateCancelTransactionRequestWithNumberChainId, unknown>;
|
|
115
115
|
data: undefined;
|
|
116
116
|
variables: GenerateCancelTransactionRequestWithNumberChainId;
|
|
117
117
|
error: null;
|
|
@@ -127,8 +127,8 @@ declare const useGenerateCancelTransaction: (params: UseGenerateCancelTransactio
|
|
|
127
127
|
isPaused: boolean;
|
|
128
128
|
submittedAt: number;
|
|
129
129
|
} | {
|
|
130
|
-
generateCancelTransaction:
|
|
131
|
-
generateCancelTransactionAsync:
|
|
130
|
+
generateCancelTransaction: _tanstack_react_query177.UseMutateFunction<Step[], Error, GenerateCancelTransactionRequestWithNumberChainId, unknown>;
|
|
131
|
+
generateCancelTransactionAsync: _tanstack_react_query177.UseMutateAsyncFunction<Step[], Error, GenerateCancelTransactionRequestWithNumberChainId, unknown>;
|
|
132
132
|
data: undefined;
|
|
133
133
|
error: Error;
|
|
134
134
|
variables: GenerateCancelTransactionRequestWithNumberChainId;
|
|
@@ -144,8 +144,8 @@ declare const useGenerateCancelTransaction: (params: UseGenerateCancelTransactio
|
|
|
144
144
|
isPaused: boolean;
|
|
145
145
|
submittedAt: number;
|
|
146
146
|
} | {
|
|
147
|
-
generateCancelTransaction:
|
|
148
|
-
generateCancelTransactionAsync:
|
|
147
|
+
generateCancelTransaction: _tanstack_react_query177.UseMutateFunction<Step[], Error, GenerateCancelTransactionRequestWithNumberChainId, unknown>;
|
|
148
|
+
generateCancelTransactionAsync: _tanstack_react_query177.UseMutateAsyncFunction<Step[], Error, GenerateCancelTransactionRequestWithNumberChainId, unknown>;
|
|
149
149
|
data: Step[];
|
|
150
150
|
error: null;
|
|
151
151
|
variables: GenerateCancelTransactionRequestWithNumberChainId;
|
|
@@ -179,8 +179,8 @@ type GenerateListingTransactionRequestWithNumberChainId = Omit<GenerateListingTr
|
|
|
179
179
|
};
|
|
180
180
|
declare const generateListingTransaction: (params: GenerateListingTransactionRequestWithNumberChainId, config: SdkConfig) => Promise<Step[]>;
|
|
181
181
|
declare const useGenerateListingTransaction: (params: UseGenerateListingTransactionRequest) => {
|
|
182
|
-
generateListingTransaction:
|
|
183
|
-
generateListingTransactionAsync:
|
|
182
|
+
generateListingTransaction: _tanstack_react_query177.UseMutateFunction<Step[], Error, Omit<GenerateListingTransactionRequestWithNumberChainId, "chainId">, unknown>;
|
|
183
|
+
generateListingTransactionAsync: _tanstack_react_query177.UseMutateAsyncFunction<Step[], Error, Omit<GenerateListingTransactionRequestWithNumberChainId, "chainId">, unknown>;
|
|
184
184
|
data: undefined;
|
|
185
185
|
variables: undefined;
|
|
186
186
|
error: null;
|
|
@@ -196,8 +196,8 @@ declare const useGenerateListingTransaction: (params: UseGenerateListingTransact
|
|
|
196
196
|
isPaused: boolean;
|
|
197
197
|
submittedAt: number;
|
|
198
198
|
} | {
|
|
199
|
-
generateListingTransaction:
|
|
200
|
-
generateListingTransactionAsync:
|
|
199
|
+
generateListingTransaction: _tanstack_react_query177.UseMutateFunction<Step[], Error, Omit<GenerateListingTransactionRequestWithNumberChainId, "chainId">, unknown>;
|
|
200
|
+
generateListingTransactionAsync: _tanstack_react_query177.UseMutateAsyncFunction<Step[], Error, Omit<GenerateListingTransactionRequestWithNumberChainId, "chainId">, unknown>;
|
|
201
201
|
data: undefined;
|
|
202
202
|
variables: Omit<GenerateListingTransactionRequestWithNumberChainId, "chainId">;
|
|
203
203
|
error: null;
|
|
@@ -213,8 +213,8 @@ declare const useGenerateListingTransaction: (params: UseGenerateListingTransact
|
|
|
213
213
|
isPaused: boolean;
|
|
214
214
|
submittedAt: number;
|
|
215
215
|
} | {
|
|
216
|
-
generateListingTransaction:
|
|
217
|
-
generateListingTransactionAsync:
|
|
216
|
+
generateListingTransaction: _tanstack_react_query177.UseMutateFunction<Step[], Error, Omit<GenerateListingTransactionRequestWithNumberChainId, "chainId">, unknown>;
|
|
217
|
+
generateListingTransactionAsync: _tanstack_react_query177.UseMutateAsyncFunction<Step[], Error, Omit<GenerateListingTransactionRequestWithNumberChainId, "chainId">, unknown>;
|
|
218
218
|
data: undefined;
|
|
219
219
|
error: Error;
|
|
220
220
|
variables: Omit<GenerateListingTransactionRequestWithNumberChainId, "chainId">;
|
|
@@ -230,8 +230,8 @@ declare const useGenerateListingTransaction: (params: UseGenerateListingTransact
|
|
|
230
230
|
isPaused: boolean;
|
|
231
231
|
submittedAt: number;
|
|
232
232
|
} | {
|
|
233
|
-
generateListingTransaction:
|
|
234
|
-
generateListingTransactionAsync:
|
|
233
|
+
generateListingTransaction: _tanstack_react_query177.UseMutateFunction<Step[], Error, Omit<GenerateListingTransactionRequestWithNumberChainId, "chainId">, unknown>;
|
|
234
|
+
generateListingTransactionAsync: _tanstack_react_query177.UseMutateAsyncFunction<Step[], Error, Omit<GenerateListingTransactionRequestWithNumberChainId, "chainId">, unknown>;
|
|
235
235
|
data: Step[];
|
|
236
236
|
error: null;
|
|
237
237
|
variables: Omit<GenerateListingTransactionRequestWithNumberChainId, "chainId">;
|
|
@@ -265,8 +265,8 @@ type GenerateOfferTransactionRequestWithNumberChainId = Omit<GenerateOfferTransa
|
|
|
265
265
|
};
|
|
266
266
|
declare const generateOfferTransaction: (params: GenerateOfferTransactionRequestWithNumberChainId, config: SdkConfig, walletKind?: WalletKind) => Promise<Step[]>;
|
|
267
267
|
declare const useGenerateOfferTransaction: (params: UseGenerateOfferTransactionRequest) => {
|
|
268
|
-
generateOfferTransaction:
|
|
269
|
-
generateOfferTransactionAsync:
|
|
268
|
+
generateOfferTransaction: _tanstack_react_query177.UseMutateFunction<Step[], Error, Omit<GenerateOfferTransactionRequestWithNumberChainId, "chainId">, unknown>;
|
|
269
|
+
generateOfferTransactionAsync: _tanstack_react_query177.UseMutateAsyncFunction<Step[], Error, Omit<GenerateOfferTransactionRequestWithNumberChainId, "chainId">, unknown>;
|
|
270
270
|
data: undefined;
|
|
271
271
|
variables: undefined;
|
|
272
272
|
error: null;
|
|
@@ -282,8 +282,8 @@ declare const useGenerateOfferTransaction: (params: UseGenerateOfferTransactionR
|
|
|
282
282
|
isPaused: boolean;
|
|
283
283
|
submittedAt: number;
|
|
284
284
|
} | {
|
|
285
|
-
generateOfferTransaction:
|
|
286
|
-
generateOfferTransactionAsync:
|
|
285
|
+
generateOfferTransaction: _tanstack_react_query177.UseMutateFunction<Step[], Error, Omit<GenerateOfferTransactionRequestWithNumberChainId, "chainId">, unknown>;
|
|
286
|
+
generateOfferTransactionAsync: _tanstack_react_query177.UseMutateAsyncFunction<Step[], Error, Omit<GenerateOfferTransactionRequestWithNumberChainId, "chainId">, unknown>;
|
|
287
287
|
data: undefined;
|
|
288
288
|
variables: Omit<GenerateOfferTransactionRequestWithNumberChainId, "chainId">;
|
|
289
289
|
error: null;
|
|
@@ -299,8 +299,8 @@ declare const useGenerateOfferTransaction: (params: UseGenerateOfferTransactionR
|
|
|
299
299
|
isPaused: boolean;
|
|
300
300
|
submittedAt: number;
|
|
301
301
|
} | {
|
|
302
|
-
generateOfferTransaction:
|
|
303
|
-
generateOfferTransactionAsync:
|
|
302
|
+
generateOfferTransaction: _tanstack_react_query177.UseMutateFunction<Step[], Error, Omit<GenerateOfferTransactionRequestWithNumberChainId, "chainId">, unknown>;
|
|
303
|
+
generateOfferTransactionAsync: _tanstack_react_query177.UseMutateAsyncFunction<Step[], Error, Omit<GenerateOfferTransactionRequestWithNumberChainId, "chainId">, unknown>;
|
|
304
304
|
data: undefined;
|
|
305
305
|
error: Error;
|
|
306
306
|
variables: Omit<GenerateOfferTransactionRequestWithNumberChainId, "chainId">;
|
|
@@ -316,8 +316,8 @@ declare const useGenerateOfferTransaction: (params: UseGenerateOfferTransactionR
|
|
|
316
316
|
isPaused: boolean;
|
|
317
317
|
submittedAt: number;
|
|
318
318
|
} | {
|
|
319
|
-
generateOfferTransaction:
|
|
320
|
-
generateOfferTransactionAsync:
|
|
319
|
+
generateOfferTransaction: _tanstack_react_query177.UseMutateFunction<Step[], Error, Omit<GenerateOfferTransactionRequestWithNumberChainId, "chainId">, unknown>;
|
|
320
|
+
generateOfferTransactionAsync: _tanstack_react_query177.UseMutateAsyncFunction<Step[], Error, Omit<GenerateOfferTransactionRequestWithNumberChainId, "chainId">, unknown>;
|
|
321
321
|
data: Step[];
|
|
322
322
|
error: null;
|
|
323
323
|
variables: Omit<GenerateOfferTransactionRequestWithNumberChainId, "chainId">;
|
|
@@ -344,8 +344,8 @@ type GenerateSellTransactionRequestWithNumberChainId = Omit<GenerateSellTransact
|
|
|
344
344
|
};
|
|
345
345
|
declare const generateSellTransaction: (args: GenerateSellTransactionRequestWithNumberChainId, config: SdkConfig) => Promise<Step[]>;
|
|
346
346
|
declare const useGenerateSellTransaction: (params: UseGenerateSellTransactionRequest) => {
|
|
347
|
-
generateSellTransaction:
|
|
348
|
-
generateSellTransactionAsync:
|
|
347
|
+
generateSellTransaction: _tanstack_react_query177.UseMutateFunction<Step[], Error, Omit<GenerateSellTransactionRequestWithNumberChainId, "chainId">, unknown>;
|
|
348
|
+
generateSellTransactionAsync: _tanstack_react_query177.UseMutateAsyncFunction<Step[], Error, Omit<GenerateSellTransactionRequestWithNumberChainId, "chainId">, unknown>;
|
|
349
349
|
data: undefined;
|
|
350
350
|
variables: undefined;
|
|
351
351
|
error: null;
|
|
@@ -361,8 +361,8 @@ declare const useGenerateSellTransaction: (params: UseGenerateSellTransactionReq
|
|
|
361
361
|
isPaused: boolean;
|
|
362
362
|
submittedAt: number;
|
|
363
363
|
} | {
|
|
364
|
-
generateSellTransaction:
|
|
365
|
-
generateSellTransactionAsync:
|
|
364
|
+
generateSellTransaction: _tanstack_react_query177.UseMutateFunction<Step[], Error, Omit<GenerateSellTransactionRequestWithNumberChainId, "chainId">, unknown>;
|
|
365
|
+
generateSellTransactionAsync: _tanstack_react_query177.UseMutateAsyncFunction<Step[], Error, Omit<GenerateSellTransactionRequestWithNumberChainId, "chainId">, unknown>;
|
|
366
366
|
data: undefined;
|
|
367
367
|
variables: Omit<GenerateSellTransactionRequestWithNumberChainId, "chainId">;
|
|
368
368
|
error: null;
|
|
@@ -378,8 +378,8 @@ declare const useGenerateSellTransaction: (params: UseGenerateSellTransactionReq
|
|
|
378
378
|
isPaused: boolean;
|
|
379
379
|
submittedAt: number;
|
|
380
380
|
} | {
|
|
381
|
-
generateSellTransaction:
|
|
382
|
-
generateSellTransactionAsync:
|
|
381
|
+
generateSellTransaction: _tanstack_react_query177.UseMutateFunction<Step[], Error, Omit<GenerateSellTransactionRequestWithNumberChainId, "chainId">, unknown>;
|
|
382
|
+
generateSellTransactionAsync: _tanstack_react_query177.UseMutateAsyncFunction<Step[], Error, Omit<GenerateSellTransactionRequestWithNumberChainId, "chainId">, unknown>;
|
|
383
383
|
data: undefined;
|
|
384
384
|
error: Error;
|
|
385
385
|
variables: Omit<GenerateSellTransactionRequestWithNumberChainId, "chainId">;
|
|
@@ -395,8 +395,8 @@ declare const useGenerateSellTransaction: (params: UseGenerateSellTransactionReq
|
|
|
395
395
|
isPaused: boolean;
|
|
396
396
|
submittedAt: number;
|
|
397
397
|
} | {
|
|
398
|
-
generateSellTransaction:
|
|
399
|
-
generateSellTransactionAsync:
|
|
398
|
+
generateSellTransaction: _tanstack_react_query177.UseMutateFunction<Step[], Error, Omit<GenerateSellTransactionRequestWithNumberChainId, "chainId">, unknown>;
|
|
399
|
+
generateSellTransactionAsync: _tanstack_react_query177.UseMutateAsyncFunction<Step[], Error, Omit<GenerateSellTransactionRequestWithNumberChainId, "chainId">, unknown>;
|
|
400
400
|
data: Step[];
|
|
401
401
|
error: null;
|
|
402
402
|
variables: Omit<GenerateSellTransactionRequestWithNumberChainId, "chainId">;
|
|
@@ -439,7 +439,7 @@ declare function useMarketTransactionSteps({
|
|
|
439
439
|
quantity,
|
|
440
440
|
additionalFees,
|
|
441
441
|
enabled
|
|
442
|
-
}: UseMarketTransactionStepsParams):
|
|
442
|
+
}: UseMarketTransactionStepsParams): _tanstack_react_query177.UseQueryResult<{
|
|
443
443
|
steps: Step[];
|
|
444
444
|
canBeUsedWithTrails: boolean;
|
|
445
445
|
}, Error>;
|
|
@@ -485,7 +485,7 @@ declare function usePrimarySaleTransactionSteps({
|
|
|
485
485
|
merkleProof,
|
|
486
486
|
contractType,
|
|
487
487
|
enabled
|
|
488
|
-
}: UsePrimarySaleTransactionStepsParams):
|
|
488
|
+
}: UsePrimarySaleTransactionStepsParams): _tanstack_react_query177.UseQueryResult<{
|
|
489
489
|
steps: Step[];
|
|
490
490
|
canBeUsedWithTrails: boolean;
|
|
491
491
|
}, Error>;
|
|
@@ -507,11 +507,11 @@ declare const useProcessStep: () => {
|
|
|
507
507
|
declare function useTransactionExecution(): {
|
|
508
508
|
executeSteps: (steps: Step[], chainId: number) => Promise<({
|
|
509
509
|
type: "transaction";
|
|
510
|
-
hash:
|
|
510
|
+
hash: viem28.Hex;
|
|
511
511
|
} | {
|
|
512
512
|
type: "signature";
|
|
513
513
|
orderId?: string;
|
|
514
|
-
signature?:
|
|
514
|
+
signature?: viem28.Hex;
|
|
515
515
|
})[]>;
|
|
516
516
|
};
|
|
517
517
|
//#endregion
|
package/dist/index19.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ht as Asset, It as Address$1, Sn as TokenMetadata, _n as PropertyFilter, a as CollectibleOrder, c as ContractType, kt as GetTokenSuppliesResponse, o as CollectiblePrimarySaleItem, on as MetadataStatus } from "./index2.js";
|
|
2
2
|
import { u as CollectibleCardAction } from "./create-config.js";
|
|
3
3
|
import { i as MarketCollectibleCardProps, l as ShopCollectibleCardProps } from "./types.js";
|
|
4
4
|
import { t as UrlPriceFilter } from "./filter-state.js";
|
|
5
5
|
import * as viem27 from "viem";
|
|
6
|
-
import * as
|
|
6
|
+
import * as _tanstack_react_query58 from "@tanstack/react-query";
|
|
7
7
|
|
|
8
8
|
//#region src/react/hooks/ui/card-data/market-card-data.d.ts
|
|
9
9
|
interface UseMarketCardDataProps {
|
|
@@ -294,14 +294,14 @@ declare function usePrimarySale721CardData({
|
|
|
294
294
|
})[];
|
|
295
295
|
saleDetailsError: viem27.ReadContractErrorType | null;
|
|
296
296
|
saleDetails: {
|
|
297
|
-
|
|
297
|
+
supplyCap: bigint;
|
|
298
298
|
cost: bigint;
|
|
299
299
|
paymentToken: `0x${string}`;
|
|
300
300
|
startTime: bigint;
|
|
301
301
|
endTime: bigint;
|
|
302
302
|
merkleRoot: `0x${string}`;
|
|
303
303
|
} | {
|
|
304
|
-
|
|
304
|
+
remainingSupply: bigint;
|
|
305
305
|
cost: bigint;
|
|
306
306
|
paymentToken: `0x${string}`;
|
|
307
307
|
startTime: bigint;
|
|
@@ -309,7 +309,7 @@ declare function usePrimarySale721CardData({
|
|
|
309
309
|
merkleRoot: `0x${string}`;
|
|
310
310
|
} | undefined;
|
|
311
311
|
isLoading: boolean;
|
|
312
|
-
tokenSuppliesData:
|
|
312
|
+
tokenSuppliesData: _tanstack_react_query58.InfiniteData<GetTokenSuppliesResponse, unknown> | undefined;
|
|
313
313
|
};
|
|
314
314
|
//#endregion
|
|
315
315
|
//#region src/react/hooks/ui/card-data/primary-sale-1155-card-data.d.ts
|
package/dist/index2.d.ts
CHANGED
|
@@ -1720,6 +1720,9 @@ type TransactionStep = Omit<StepBase, 'data'> & {
|
|
|
1720
1720
|
type ApprovalStep = TransactionStep & {
|
|
1721
1721
|
id: StepType.tokenApproval;
|
|
1722
1722
|
};
|
|
1723
|
+
type BuyStep = TransactionStep & {
|
|
1724
|
+
id: StepType.buy;
|
|
1725
|
+
};
|
|
1723
1726
|
type UnknownStep = StepBase & {
|
|
1724
1727
|
id: StepType.unknown;
|
|
1725
1728
|
};
|
|
@@ -2170,5 +2173,5 @@ declare class MetadataClient {
|
|
|
2170
2173
|
//#region src/adapters/metadata/transforms.d.ts
|
|
2171
2174
|
|
|
2172
2175
|
//#endregion
|
|
2173
|
-
export {
|
|
2176
|
+
export { OrderData$1 as $, GetCollectionActiveListingsCurrenciesRequest as $t, ListCollectibleListingsResponse as A, GetUserCollectionBalancesRequest as At, ListOrdersWithCollectiblesResponse$1 as B, TokenId as Bt, GetFloorOrderRequest$1 as C, TransactionCrypto as Cn, GetTokenBalancesDetailsResponse as Ct, GetPrimarySaleItemRequest$1 as D, MarketplaceWalletType as Dn, GetTokenIDRangesResponse as Dt, GetPrimarySaleCheckoutOptionsRequest as E, FilterCondition as En, GetTokenIDRangesRequest as Et, ListListingsForCollectibleRequest$1 as F, TokenMetadata$1$1 as Ft, MarketPage as G, Collectible as Gt, ListPrimarySaleItemsResponse$1 as H, Asset$1 as Ht, ListListingsForCollectibleResponse$1 as I, Address$1 as It, MarketplaceSettings$1 as J, CollectionStatus as Jt, MarketplaceClient as K, CollectiblesFilter as Kt, ListOffersForCollectibleRequest$1 as L, ChainId as Lt, ListCollectiblesRequest$1 as M, Page$1$1 as Mt, ListCollectiblesResponse$1 as N, TokenBalance$1 as Nt, GetPrimarySaleItemResponse$1 as O, GetTokenSuppliesRequest as Ot, ListCurrenciesRequest$1 as P, TokenBalancesFilter$1 as Pt, Order$1 as Q, GetCollectibleHighestOfferResponse as Qt, ListOffersForCollectibleResponse$1 as R, Hash$1 as Rt, GetCountOfPrimarySaleItemsRequest$1 as S, TokenMetadata$2 as Sn, GetTokenBalancesDetailsRequest as St, GetLowestPriceListingForCollectibleRequest$1 as T, WalletKind as Tn, GetTokenBalancesSdkRequest as Tt, LookupMarketplaceReturn$1 as U, CheckoutOptions as Ut, ListPrimarySaleItemsRequest$1 as V, AdditionalFee as Vt, MarketCollection$1 as W, CheckoutOptionsSalesContractResponse as Wt, MetadataClient as X, ExecuteType as Xt, MarketplaceWallet$1 as Y, CurrencyStatus as Yt, OpenIdProvider$1 as Z, GetCollectibleHighestOfferRequest as Zt, GetCountOfAllOrdersRequest$1 as _, PropertyFilter as _n, GetTokenMetadataSdkArgs as _t, CollectibleOrder$1 as a, MarketplaceKind as an, Step$1 as at, GetCountOfListingsForCollectibleRequest$1 as b, SortOrder as bn, TokenMetadata$1$2 as bt, ContractType$2 as c, OrderFilter as cn, index_d_exports$1 as ct, GenerateCancelTransactionRequest$1 as d, OrderbookKind as dn, ContractInfo$1$2 as dt, GetCollectionActiveOffersCurrenciesRequest as en, PrimarySaleItem$1 as et, GenerateListingTransactionRequest$1 as f, OrdersFilter as fn, ContractInfoExtensions$1$2 as ft, GetCountOfAllCollectiblesRequest$1 as g, PrimarySaleItemsFilter as gn, GetSingleTokenMetadataArgs as gt, GetCollectionDetailRequest$1 as h, PriceFilter as hn, GetFiltersArgs as ht, CheckoutOptionsMarketplaceRequest$1 as i, ListCollectibleListingsRequest as in, SignatureStep as it, ListCollectibleOffersResponse as j, MetadataOptions$1 as jt, IndexerClient as k, GetTokenSuppliesResponse as kt, CreateReq$1 as l, OrderSide as ln, isSignatureStep as lt, GenerateSellTransactionRequest$1 as m, PostRequest as mn, GetContractInfoSdkArgs as mt, BuyStep as n, GetCountOfOffersForCollectibleResponse as nn, ShopPage as nt, CollectiblePrimarySaleItem$1 as o, MetadataStatus as on, TransactionStep as ot, GenerateOfferTransactionRequest$1 as p, Page$2 as pn, Filter as pt, MarketplaceCollection as q, Collection as qt, CheckoutOptionsItem$1 as r, GetCountOfPrimarySaleItemsResponse as rn, Signature$1 as rt, CollectionFilterSettings$1 as s, OfferType as sn, index_d_exports as st, ApprovalStep as t, GetCountOfListingsForCollectibleResponse as tn, ShopCollection$1 as tt, Currency$1 as u, OrderStatus as un, isTransactionStep as ut, GetCountOfFilteredCollectiblesRequest$1 as v, PropertyType as vn, SearchTokenMetadataReturn$1 as vt, GetHighestPriceOfferForCollectibleRequest$1 as w, TransactionOnRampProvider as wn, GetTokenBalancesResponse as wt, GetCountOfOffersForCollectibleRequest$1 as x, StepType as xn, GetBalanceOfCollectibleRequest as xt, GetCountOfFilteredOrdersRequest$1 as y, SortBy as yn, SearchTokenMetadataSdkArgs as yt, ListOrdersWithCollectiblesRequest$1 as z, ProjectId as zt };
|
|
2174
2177
|
//# sourceMappingURL=index2.d.ts.map
|
package/dist/index21.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Q as Order, _n as PropertyFilter } from "./index2.js";
|
|
2
2
|
import { B as Optional } from "./create-config.js";
|
|
3
3
|
import { n as FiltersQueryOptions } from "./filters.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _tanstack_react_query374 from "@tanstack/react-query";
|
|
5
5
|
|
|
6
6
|
//#region src/react/hooks/ui/useCollectibleCardOfferState.d.ts
|
|
7
7
|
type CollectibleCardOfferState = {
|
|
@@ -80,7 +80,7 @@ type UseFiltersParams = Optional<FiltersQueryOptions, 'config'>;
|
|
|
80
80
|
* })
|
|
81
81
|
* ```
|
|
82
82
|
*/
|
|
83
|
-
declare function useFilters(params: UseFiltersParams):
|
|
83
|
+
declare function useFilters(params: UseFiltersParams): _tanstack_react_query374.UseQueryResult<PropertyFilter[], Error>;
|
|
84
84
|
/**
|
|
85
85
|
* Hook to progressively load collection filters
|
|
86
86
|
*
|
|
@@ -150,8 +150,8 @@ declare function useFiltersProgressive(params: UseFiltersParams): {
|
|
|
150
150
|
isRefetching: boolean;
|
|
151
151
|
isStale: boolean;
|
|
152
152
|
isEnabled: boolean;
|
|
153
|
-
refetch: (options?:
|
|
154
|
-
fetchStatus:
|
|
153
|
+
refetch: (options?: _tanstack_react_query374.RefetchOptions) => Promise<_tanstack_react_query374.QueryObserverResult<PropertyFilter[], Error>>;
|
|
154
|
+
fetchStatus: _tanstack_react_query374.FetchStatus;
|
|
155
155
|
promise: Promise<PropertyFilter[]>;
|
|
156
156
|
} | {
|
|
157
157
|
isFetchingValues: boolean;
|
|
@@ -179,8 +179,8 @@ declare function useFiltersProgressive(params: UseFiltersParams): {
|
|
|
179
179
|
isRefetching: boolean;
|
|
180
180
|
isStale: boolean;
|
|
181
181
|
isEnabled: boolean;
|
|
182
|
-
refetch: (options?:
|
|
183
|
-
fetchStatus:
|
|
182
|
+
refetch: (options?: _tanstack_react_query374.RefetchOptions) => Promise<_tanstack_react_query374.QueryObserverResult<PropertyFilter[], Error>>;
|
|
183
|
+
fetchStatus: _tanstack_react_query374.FetchStatus;
|
|
184
184
|
promise: Promise<PropertyFilter[]>;
|
|
185
185
|
} | {
|
|
186
186
|
isFetchingValues: boolean;
|
|
@@ -208,8 +208,8 @@ declare function useFiltersProgressive(params: UseFiltersParams): {
|
|
|
208
208
|
isRefetching: boolean;
|
|
209
209
|
isStale: boolean;
|
|
210
210
|
isEnabled: boolean;
|
|
211
|
-
refetch: (options?:
|
|
212
|
-
fetchStatus:
|
|
211
|
+
refetch: (options?: _tanstack_react_query374.RefetchOptions) => Promise<_tanstack_react_query374.QueryObserverResult<PropertyFilter[], Error>>;
|
|
212
|
+
fetchStatus: _tanstack_react_query374.FetchStatus;
|
|
213
213
|
promise: Promise<PropertyFilter[]>;
|
|
214
214
|
} | {
|
|
215
215
|
isFetchingValues: boolean;
|
|
@@ -237,8 +237,8 @@ declare function useFiltersProgressive(params: UseFiltersParams): {
|
|
|
237
237
|
isRefetching: boolean;
|
|
238
238
|
isStale: boolean;
|
|
239
239
|
isEnabled: boolean;
|
|
240
|
-
refetch: (options?:
|
|
241
|
-
fetchStatus:
|
|
240
|
+
refetch: (options?: _tanstack_react_query374.RefetchOptions) => Promise<_tanstack_react_query374.QueryObserverResult<PropertyFilter[], Error>>;
|
|
241
|
+
fetchStatus: _tanstack_react_query374.FetchStatus;
|
|
242
242
|
promise: Promise<PropertyFilter[]>;
|
|
243
243
|
} | {
|
|
244
244
|
isFetchingValues: boolean;
|
|
@@ -266,8 +266,8 @@ declare function useFiltersProgressive(params: UseFiltersParams): {
|
|
|
266
266
|
isRefetching: boolean;
|
|
267
267
|
isStale: boolean;
|
|
268
268
|
isEnabled: boolean;
|
|
269
|
-
refetch: (options?:
|
|
270
|
-
fetchStatus:
|
|
269
|
+
refetch: (options?: _tanstack_react_query374.RefetchOptions) => Promise<_tanstack_react_query374.QueryObserverResult<PropertyFilter[], Error>>;
|
|
270
|
+
fetchStatus: _tanstack_react_query374.FetchStatus;
|
|
271
271
|
promise: Promise<PropertyFilter[]>;
|
|
272
272
|
} | {
|
|
273
273
|
isFetchingValues: boolean;
|
|
@@ -295,8 +295,8 @@ declare function useFiltersProgressive(params: UseFiltersParams): {
|
|
|
295
295
|
isRefetching: boolean;
|
|
296
296
|
isStale: boolean;
|
|
297
297
|
isEnabled: boolean;
|
|
298
|
-
refetch: (options?:
|
|
299
|
-
fetchStatus:
|
|
298
|
+
refetch: (options?: _tanstack_react_query374.RefetchOptions) => Promise<_tanstack_react_query374.QueryObserverResult<PropertyFilter[], Error>>;
|
|
299
|
+
fetchStatus: _tanstack_react_query374.FetchStatus;
|
|
300
300
|
promise: Promise<PropertyFilter[]>;
|
|
301
301
|
};
|
|
302
302
|
type UseFiltersArgs = {
|
package/dist/index22.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { It as Address$1 } from "./index2.js";
|
|
2
2
|
import { V as QueryArg } from "./create-config.js";
|
|
3
3
|
import { t as FeeOption } from "./waas-types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as viem30 from "viem";
|
|
5
5
|
import { Hex, PublicClient } from "viem";
|
|
6
|
-
import * as
|
|
6
|
+
import * as _tanstack_react_query216 from "@tanstack/react-query";
|
|
7
7
|
|
|
8
8
|
//#region src/react/hooks/utils/useAutoSelectFeeOption.d.ts
|
|
9
9
|
declare enum AutoSelectFeeOptionError {
|
|
@@ -42,64 +42,7 @@ declare const useEnsureCorrectChain: () => {
|
|
|
42
42
|
ensureCorrectChain: (targetChainId: number, callbacks?: {
|
|
43
43
|
onSuccess?: () => void;
|
|
44
44
|
}) => void;
|
|
45
|
-
ensureCorrectChainAsync: (targetChainId: number) => Promise<
|
|
46
|
-
blockExplorers?: {
|
|
47
|
-
[key: string]: {
|
|
48
|
-
name: string;
|
|
49
|
-
url: string;
|
|
50
|
-
apiUrl?: string | undefined;
|
|
51
|
-
};
|
|
52
|
-
default: {
|
|
53
|
-
name: string;
|
|
54
|
-
url: string;
|
|
55
|
-
apiUrl?: string | undefined;
|
|
56
|
-
};
|
|
57
|
-
} | undefined | undefined;
|
|
58
|
-
blockTime?: number | undefined | undefined;
|
|
59
|
-
contracts?: {
|
|
60
|
-
[x: string]: viem28.ChainContract | {
|
|
61
|
-
[sourceId: number]: viem28.ChainContract | undefined;
|
|
62
|
-
} | undefined;
|
|
63
|
-
ensRegistry?: viem28.ChainContract | undefined;
|
|
64
|
-
ensUniversalResolver?: viem28.ChainContract | undefined;
|
|
65
|
-
multicall3?: viem28.ChainContract | undefined;
|
|
66
|
-
erc6492Verifier?: viem28.ChainContract | undefined;
|
|
67
|
-
} | undefined;
|
|
68
|
-
ensTlds?: readonly string[] | undefined;
|
|
69
|
-
id: number;
|
|
70
|
-
name: string;
|
|
71
|
-
nativeCurrency: {
|
|
72
|
-
name: string;
|
|
73
|
-
symbol: string;
|
|
74
|
-
decimals: number;
|
|
75
|
-
};
|
|
76
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
77
|
-
rpcUrls: {
|
|
78
|
-
[key: string]: {
|
|
79
|
-
http: readonly string[];
|
|
80
|
-
webSocket?: readonly string[] | undefined;
|
|
81
|
-
};
|
|
82
|
-
default: {
|
|
83
|
-
http: readonly string[];
|
|
84
|
-
webSocket?: readonly string[] | undefined;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
sourceId?: number | undefined | undefined;
|
|
88
|
-
testnet?: boolean | undefined | undefined;
|
|
89
|
-
custom?: Record<string, unknown> | undefined;
|
|
90
|
-
extendSchema?: Record<string, unknown> | undefined;
|
|
91
|
-
fees?: viem28.ChainFees<viem28.ChainFormatters | undefined> | undefined;
|
|
92
|
-
formatters?: viem28.ChainFormatters | undefined;
|
|
93
|
-
prepareTransactionRequest?: ((args: viem28.PrepareTransactionRequestParameters, options: {
|
|
94
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
95
|
-
}) => Promise<viem28.PrepareTransactionRequestParameters>) | [fn: ((args: viem28.PrepareTransactionRequestParameters, options: {
|
|
96
|
-
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
97
|
-
}) => Promise<viem28.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
98
|
-
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
99
|
-
}] | undefined;
|
|
100
|
-
serializers?: viem28.ChainSerializers<viem28.ChainFormatters | undefined, viem28.TransactionSerializable> | undefined;
|
|
101
|
-
verifyHash?: ((client: viem28.Client, parameters: viem28.VerifyHashActionParameters) => Promise<viem28.VerifyHashActionReturnType>) | undefined;
|
|
102
|
-
}>;
|
|
45
|
+
ensureCorrectChainAsync: (targetChainId: number) => Promise<boolean>;
|
|
103
46
|
currentChainId: number | undefined;
|
|
104
47
|
};
|
|
105
48
|
//#endregion
|
|
@@ -141,7 +84,7 @@ declare const useEnsureCorrectChain: () => {
|
|
|
141
84
|
* ```
|
|
142
85
|
*/
|
|
143
86
|
declare const useGetReceiptFromHash: () => {
|
|
144
|
-
waitForReceipt: (transactionHash: Hex) => Promise<
|
|
87
|
+
waitForReceipt: (transactionHash: Hex) => Promise<viem30.TransactionReceipt>;
|
|
145
88
|
};
|
|
146
89
|
//#endregion
|
|
147
90
|
//#region src/react/hooks/utils/useRoyalty.d.ts
|
|
@@ -161,12 +104,12 @@ interface UseRoyaltyArgs {
|
|
|
161
104
|
tokenId: bigint;
|
|
162
105
|
query?: QueryArg;
|
|
163
106
|
}
|
|
164
|
-
declare function royaltyQueryOptions(params: FetchRoyaltyParams, query?: UseRoyaltyArgs['query']):
|
|
107
|
+
declare function royaltyQueryOptions(params: FetchRoyaltyParams, query?: UseRoyaltyArgs['query']): _tanstack_react_query216.OmitKeyof<_tanstack_react_query216.UseQueryOptions<RoyaltyInfo | null, Error, RoyaltyInfo | null, readonly ["royalty-percentage", {
|
|
165
108
|
chainId: string;
|
|
166
109
|
contractAddress: `0x${string}`;
|
|
167
110
|
tokenId: bigint;
|
|
168
111
|
}]>, "queryFn"> & {
|
|
169
|
-
queryFn?:
|
|
112
|
+
queryFn?: _tanstack_react_query216.QueryFunction<RoyaltyInfo | null, readonly ["royalty-percentage", {
|
|
170
113
|
chainId: string;
|
|
171
114
|
contractAddress: `0x${string}`;
|
|
172
115
|
tokenId: bigint;
|
|
@@ -224,7 +167,7 @@ declare function royaltyQueryOptions(params: FetchRoyaltyParams, query?: UseRoya
|
|
|
224
167
|
* })
|
|
225
168
|
* ```
|
|
226
169
|
*/
|
|
227
|
-
declare function useRoyalty(args: UseRoyaltyArgs):
|
|
170
|
+
declare function useRoyalty(args: UseRoyaltyArgs): _tanstack_react_query216.UseQueryResult<RoyaltyInfo | null, Error>;
|
|
228
171
|
//#endregion
|
|
229
172
|
export { useRoyalty as a, useAutoSelectFeeOption as c, royaltyQueryOptions as i, RoyaltyInfo as n, useGetReceiptFromHash as o, UseRoyaltyArgs as r, useEnsureCorrectChain as s, FetchRoyaltyParams as t };
|
|
230
173
|
//# sourceMappingURL=index22.d.ts.map
|
package/dist/index23.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { It as Address$1, Q as Order, Rt as Hash$1, at as Step, bt as TokenMetadata$1, c as ContractType, dt as ContractInfo$1, et as PrimarySaleItem, n as BuyStep, u as Currency } from "./index2.js";
|
|
2
2
|
import { B as Optional, I as CollectionType, a as CheckoutMode, l as CardType, s as MarketplaceSdkContext, u as CollectibleCardAction, w as BuyModalProps } from "./create-config.js";
|
|
3
3
|
import { R as useCollectibleBalance } from "./index11.js";
|
|
4
4
|
import { f as useCollectionMetadata } from "./index12.js";
|
|
@@ -7,8 +7,8 @@ import { _ as ComparePricesQueryOptions, d as ConvertPriceToUSDQueryOptions, f a
|
|
|
7
7
|
import { u as CollectibleMetadata } from "./index34.js";
|
|
8
8
|
import { a as ModalSteps, i as ModalContext } from "./steps.js";
|
|
9
9
|
import { ReactNode } from "react";
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
10
|
+
import * as react_jsx_runtime55 from "react/jsx-runtime";
|
|
11
|
+
import * as _tanstack_react_query394 from "@tanstack/react-query";
|
|
12
12
|
|
|
13
13
|
//#region src/react/providers/modal-provider.d.ts
|
|
14
14
|
interface ModalProviderProps {
|
|
@@ -16,7 +16,7 @@ interface ModalProviderProps {
|
|
|
16
16
|
}
|
|
17
17
|
declare const ModalProvider: ({
|
|
18
18
|
children
|
|
19
|
-
}: ModalProviderProps) =>
|
|
19
|
+
}: ModalProviderProps) => react_jsx_runtime55.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
//#region src/react/ui/components/marketplace-collectible-card/variants/MarketCardPresentation.d.ts
|
|
22
22
|
interface MarketCardPresentationProps {
|
|
@@ -86,7 +86,7 @@ declare function MarketCardPresentation({
|
|
|
86
86
|
prioritizeOwnerActions,
|
|
87
87
|
hideQuantitySelector,
|
|
88
88
|
classNames
|
|
89
|
-
}: MarketCardPresentationProps):
|
|
89
|
+
}: MarketCardPresentationProps): react_jsx_runtime55.JSX.Element;
|
|
90
90
|
//#endregion
|
|
91
91
|
//#region src/react/ui/components/marketplace-collectible-card/variants/ShopCardPresentation.d.ts
|
|
92
92
|
interface ShopCardPresentationProps {
|
|
@@ -155,7 +155,7 @@ declare function ShopCardPresentation({
|
|
|
155
155
|
unlimitedSupply,
|
|
156
156
|
hideQuantitySelector,
|
|
157
157
|
classNames
|
|
158
|
-
}: ShopCardPresentationProps):
|
|
158
|
+
}: ShopCardPresentationProps): react_jsx_runtime55.JSX.Element;
|
|
159
159
|
//#endregion
|
|
160
160
|
//#region src/react/ui/components/media/types.d.ts
|
|
161
161
|
type MediaProps = {
|
|
@@ -198,9 +198,15 @@ declare function Media({
|
|
|
198
198
|
isLoading,
|
|
199
199
|
fallbackContent,
|
|
200
200
|
shouldListenForLoad
|
|
201
|
-
}: MediaProps):
|
|
201
|
+
}: MediaProps): react_jsx_runtime55.JSX.Element;
|
|
202
202
|
//#endregion
|
|
203
203
|
//#region src/react/ui/modals/BuyModal/internal/buyModalContext.d.ts
|
|
204
|
+
type TrailsDestination = {
|
|
205
|
+
recipient: Address$1;
|
|
206
|
+
destinationCalldata: Hash$1;
|
|
207
|
+
paymentTokenAddress: Address$1;
|
|
208
|
+
paymentAmount: bigint;
|
|
209
|
+
};
|
|
204
210
|
declare function useBuyModalContext(): {
|
|
205
211
|
config: MarketplaceSdkContext;
|
|
206
212
|
modalProps: BuyModalProps;
|
|
@@ -210,8 +216,10 @@ declare function useBuyModalContext(): {
|
|
|
210
216
|
collection: ContractInfo$1 | undefined;
|
|
211
217
|
primarySaleItem: PrimarySaleItem | undefined;
|
|
212
218
|
marketOrder: Order | undefined;
|
|
219
|
+
isMarket: boolean;
|
|
213
220
|
isShop: boolean;
|
|
214
|
-
buyStep:
|
|
221
|
+
buyStep: BuyStep | undefined;
|
|
222
|
+
trailsDestination: TrailsDestination | undefined;
|
|
215
223
|
isLoading: boolean;
|
|
216
224
|
checkoutMode: CheckoutMode | undefined;
|
|
217
225
|
formattedAmount: string | undefined;
|
|
@@ -312,7 +320,7 @@ type TransferModalContext = ModalContext<'transfer', TransferModalSteps> & {
|
|
|
312
320
|
declare function useTransferModalContext(): TransferModalContext;
|
|
313
321
|
//#endregion
|
|
314
322
|
//#region src/react/ui/modals/TransferModal/index.d.ts
|
|
315
|
-
declare const TransferModal: () =>
|
|
323
|
+
declare const TransferModal: () => react_jsx_runtime55.JSX.Element | null;
|
|
316
324
|
//#endregion
|
|
317
325
|
//#region src/react/hooks/currency/compare-prices.d.ts
|
|
318
326
|
type UseCurrencyComparePricesParams = Optional<ComparePricesQueryOptions, 'config'>;
|
|
@@ -365,7 +373,7 @@ type UseCurrencyComparePricesParams = Optional<ComparePricesQueryOptions, 'confi
|
|
|
365
373
|
* })
|
|
366
374
|
* ```
|
|
367
375
|
*/
|
|
368
|
-
declare function useCurrencyComparePrices(params: UseCurrencyComparePricesParams):
|
|
376
|
+
declare function useCurrencyComparePrices(params: UseCurrencyComparePricesParams): _tanstack_react_query394.UseQueryResult<ComparePricesReturn, Error>;
|
|
369
377
|
type UseComparePricesArgs = {
|
|
370
378
|
chainId: number;
|
|
371
379
|
priceAmountRaw: string;
|
|
@@ -428,7 +436,7 @@ type UseCurrencyConvertToUSDParams = Optional<ConvertPriceToUSDQueryOptions, 'co
|
|
|
428
436
|
* })
|
|
429
437
|
* ```
|
|
430
438
|
*/
|
|
431
|
-
declare function useCurrencyConvertToUSD(params: UseCurrencyConvertToUSDParams):
|
|
439
|
+
declare function useCurrencyConvertToUSD(params: UseCurrencyConvertToUSDParams): _tanstack_react_query394.UseQueryResult<ConvertPriceToUSDReturn, Error>;
|
|
432
440
|
type UseConvertPriceToUSDArgs = {
|
|
433
441
|
chainId: number;
|
|
434
442
|
currencyAddress: Address$1;
|
|
@@ -475,7 +483,7 @@ type UseCurrencyParams = Optional<CurrencyQueryOptions, 'config'>;
|
|
|
475
483
|
* })
|
|
476
484
|
* ```
|
|
477
485
|
*/
|
|
478
|
-
declare function useCurrency(params: UseCurrencyParams):
|
|
486
|
+
declare function useCurrency(params: UseCurrencyParams): _tanstack_react_query394.UseQueryResult<Currency | undefined, Error>;
|
|
479
487
|
//#endregion
|
|
480
488
|
//#region src/react/hooks/currency/list.d.ts
|
|
481
489
|
type UseCurrencyListParams = Optional<MarketCurrenciesQueryOptions, 'config'>;
|
|
@@ -510,7 +518,7 @@ type UseCurrencyListParams = Optional<MarketCurrenciesQueryOptions, 'config'>;
|
|
|
510
518
|
* })
|
|
511
519
|
* ```
|
|
512
520
|
*/
|
|
513
|
-
declare function useCurrencyList(params: UseCurrencyListParams):
|
|
521
|
+
declare function useCurrencyList(params: UseCurrencyListParams): _tanstack_react_query394.UseQueryResult<Currency[], Error>;
|
|
514
522
|
//#endregion
|
|
515
523
|
export { ShopCardPresentation as C, ModalProvider as D, MarketCardPresentationProps as E, Media as S, MarketCardPresentation as T, UseTransferModalArgs as _, UseConvertPriceToUSDArgs as a, BuyModalContext as b, useCurrencyConvertToUSD as c, UseCurrencyComparePricesParams as d, useCurrencyComparePrices as f, ShowTransferModalArgs as g, useTransferModalContext as h, useCurrency as i, UseComparePricesArgs as l, TransferModalContext as m, useCurrencyList as n, UseConvertPriceToUSDReturn as o, TransferModal as p, UseCurrencyParams as r, UseCurrencyConvertToUSDParams as s, UseCurrencyListParams as t, UseComparePricesReturn as u, useTransferModal as v, ShopCardPresentationProps as w, useBuyModalContext as x, useBuyModal as y };
|
|
516
524
|
//# sourceMappingURL=index23.d.ts.map
|