@net-protocol/bazaar 0.1.2 → 0.1.3
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/README.md +1 -1
- package/dist/index.d.mts +34 -5
- package/dist/index.d.ts +34 -5
- package/dist/index.js +164 -52
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +164 -52
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +10 -3
- package/dist/react.d.ts +10 -3
- package/dist/react.js +270 -88
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +270 -88
- package/dist/react.mjs.map +1 -1
- package/dist/{types-KQgBECzI.d.mts → types-DDHh9yJB.d.mts} +2 -0
- package/dist/{types-KQgBECzI.d.ts → types-DDHh9yJB.d.ts} +2 -0
- package/package.json +1 -1
package/dist/react.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PublicClient } from 'viem';
|
|
2
|
+
import { L as Listing, C as CollectionOffer, E as Erc20Offer, d as Erc20Listing } from './types-DDHh9yJB.mjs';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* React hook for fetching NFT listings from Bazaar
|
|
@@ -19,8 +20,12 @@ interface UseBazaarListingsOptions {
|
|
|
19
20
|
startIndex?: number;
|
|
20
21
|
/** Override end index for message range */
|
|
21
22
|
endIndex?: number;
|
|
23
|
+
/** Include expired listings in results (default: false) */
|
|
24
|
+
includeExpired?: boolean;
|
|
22
25
|
/** Whether the query is enabled (default: true) */
|
|
23
26
|
enabled?: boolean;
|
|
27
|
+
/** Optional viem PublicClient (defaults to wagmi's client for the chain) */
|
|
28
|
+
publicClient?: PublicClient;
|
|
24
29
|
}
|
|
25
30
|
interface UseBazaarListingsResult {
|
|
26
31
|
/** Valid listings (deduplicated, sorted by price) */
|
|
@@ -64,7 +69,7 @@ interface UseBazaarListingsResult {
|
|
|
64
69
|
* );
|
|
65
70
|
* ```
|
|
66
71
|
*/
|
|
67
|
-
declare function useBazaarListings({ chainId, nftAddress, excludeMaker, maker, maxMessages, startIndex: startIndexOverride, endIndex: endIndexOverride, enabled, }: UseBazaarListingsOptions): UseBazaarListingsResult;
|
|
72
|
+
declare function useBazaarListings({ chainId, nftAddress, excludeMaker, maker, maxMessages, startIndex: startIndexOverride, endIndex: endIndexOverride, includeExpired, enabled, publicClient, }: UseBazaarListingsOptions): UseBazaarListingsResult;
|
|
68
73
|
|
|
69
74
|
/**
|
|
70
75
|
* React hook for fetching collection offers from Bazaar
|
|
@@ -202,6 +207,8 @@ interface UseBazaarErc20ListingsOptions {
|
|
|
202
207
|
endIndex?: number;
|
|
203
208
|
/** Whether the query is enabled (default: true) */
|
|
204
209
|
enabled?: boolean;
|
|
210
|
+
/** Optional viem PublicClient (defaults to wagmi's client for the chain) */
|
|
211
|
+
publicClient?: PublicClient;
|
|
205
212
|
}
|
|
206
213
|
interface UseBazaarErc20ListingsResult {
|
|
207
214
|
/** Valid ERC20 listings (sorted by price per token, lowest first) */
|
|
@@ -246,6 +253,6 @@ interface UseBazaarErc20ListingsResult {
|
|
|
246
253
|
* }
|
|
247
254
|
* ```
|
|
248
255
|
*/
|
|
249
|
-
declare function useBazaarErc20Listings({ chainId, tokenAddress, excludeMaker, maker, maxMessages, startIndex: startIndexOverride, endIndex: endIndexOverride, enabled, }: UseBazaarErc20ListingsOptions): UseBazaarErc20ListingsResult;
|
|
256
|
+
declare function useBazaarErc20Listings({ chainId, tokenAddress, excludeMaker, maker, maxMessages, startIndex: startIndexOverride, endIndex: endIndexOverride, enabled, publicClient, }: UseBazaarErc20ListingsOptions): UseBazaarErc20ListingsResult;
|
|
250
257
|
|
|
251
258
|
export { type UseBazaarCollectionOffersOptions, type UseBazaarCollectionOffersResult, type UseBazaarErc20ListingsOptions, type UseBazaarErc20ListingsResult, type UseBazaarErc20OffersOptions, type UseBazaarErc20OffersResult, type UseBazaarListingsOptions, type UseBazaarListingsResult, useBazaarCollectionOffers, useBazaarErc20Listings, useBazaarErc20Offers, useBazaarListings };
|
package/dist/react.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PublicClient } from 'viem';
|
|
2
|
+
import { L as Listing, C as CollectionOffer, E as Erc20Offer, d as Erc20Listing } from './types-DDHh9yJB.js';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* React hook for fetching NFT listings from Bazaar
|
|
@@ -19,8 +20,12 @@ interface UseBazaarListingsOptions {
|
|
|
19
20
|
startIndex?: number;
|
|
20
21
|
/** Override end index for message range */
|
|
21
22
|
endIndex?: number;
|
|
23
|
+
/** Include expired listings in results (default: false) */
|
|
24
|
+
includeExpired?: boolean;
|
|
22
25
|
/** Whether the query is enabled (default: true) */
|
|
23
26
|
enabled?: boolean;
|
|
27
|
+
/** Optional viem PublicClient (defaults to wagmi's client for the chain) */
|
|
28
|
+
publicClient?: PublicClient;
|
|
24
29
|
}
|
|
25
30
|
interface UseBazaarListingsResult {
|
|
26
31
|
/** Valid listings (deduplicated, sorted by price) */
|
|
@@ -64,7 +69,7 @@ interface UseBazaarListingsResult {
|
|
|
64
69
|
* );
|
|
65
70
|
* ```
|
|
66
71
|
*/
|
|
67
|
-
declare function useBazaarListings({ chainId, nftAddress, excludeMaker, maker, maxMessages, startIndex: startIndexOverride, endIndex: endIndexOverride, enabled, }: UseBazaarListingsOptions): UseBazaarListingsResult;
|
|
72
|
+
declare function useBazaarListings({ chainId, nftAddress, excludeMaker, maker, maxMessages, startIndex: startIndexOverride, endIndex: endIndexOverride, includeExpired, enabled, publicClient, }: UseBazaarListingsOptions): UseBazaarListingsResult;
|
|
68
73
|
|
|
69
74
|
/**
|
|
70
75
|
* React hook for fetching collection offers from Bazaar
|
|
@@ -202,6 +207,8 @@ interface UseBazaarErc20ListingsOptions {
|
|
|
202
207
|
endIndex?: number;
|
|
203
208
|
/** Whether the query is enabled (default: true) */
|
|
204
209
|
enabled?: boolean;
|
|
210
|
+
/** Optional viem PublicClient (defaults to wagmi's client for the chain) */
|
|
211
|
+
publicClient?: PublicClient;
|
|
205
212
|
}
|
|
206
213
|
interface UseBazaarErc20ListingsResult {
|
|
207
214
|
/** Valid ERC20 listings (sorted by price per token, lowest first) */
|
|
@@ -246,6 +253,6 @@ interface UseBazaarErc20ListingsResult {
|
|
|
246
253
|
* }
|
|
247
254
|
* ```
|
|
248
255
|
*/
|
|
249
|
-
declare function useBazaarErc20Listings({ chainId, tokenAddress, excludeMaker, maker, maxMessages, startIndex: startIndexOverride, endIndex: endIndexOverride, enabled, }: UseBazaarErc20ListingsOptions): UseBazaarErc20ListingsResult;
|
|
256
|
+
declare function useBazaarErc20Listings({ chainId, tokenAddress, excludeMaker, maker, maxMessages, startIndex: startIndexOverride, endIndex: endIndexOverride, enabled, publicClient, }: UseBazaarErc20ListingsOptions): UseBazaarErc20ListingsResult;
|
|
250
257
|
|
|
251
258
|
export { type UseBazaarCollectionOffersOptions, type UseBazaarCollectionOffersResult, type UseBazaarErc20ListingsOptions, type UseBazaarErc20ListingsResult, type UseBazaarErc20OffersOptions, type UseBazaarErc20OffersResult, type UseBazaarListingsOptions, type UseBazaarListingsResult, useBazaarCollectionOffers, useBazaarErc20Listings, useBazaarErc20Offers, useBazaarListings };
|