@net-protocol/bazaar 0.1.1 → 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/dist/react.d.mts CHANGED
@@ -1,4 +1,5 @@
1
- import { L as Listing, C as CollectionOffer, E as Erc20Offer, d as Erc20Listing } from './types--4_RIuQ5.mjs';
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
@@ -11,10 +12,20 @@ interface UseBazaarListingsOptions {
11
12
  nftAddress: `0x${string}`;
12
13
  /** Exclude listings from this address */
13
14
  excludeMaker?: `0x${string}`;
15
+ /** Only include listings from this address */
16
+ maker?: `0x${string}`;
14
17
  /** Maximum number of messages to fetch (default: 200) */
15
18
  maxMessages?: number;
19
+ /** Override start index for message range */
20
+ startIndex?: number;
21
+ /** Override end index for message range */
22
+ endIndex?: number;
23
+ /** Include expired listings in results (default: false) */
24
+ includeExpired?: boolean;
16
25
  /** Whether the query is enabled (default: true) */
17
26
  enabled?: boolean;
27
+ /** Optional viem PublicClient (defaults to wagmi's client for the chain) */
28
+ publicClient?: PublicClient;
18
29
  }
19
30
  interface UseBazaarListingsResult {
20
31
  /** Valid listings (deduplicated, sorted by price) */
@@ -58,7 +69,7 @@ interface UseBazaarListingsResult {
58
69
  * );
59
70
  * ```
60
71
  */
61
- declare function useBazaarListings({ chainId, nftAddress, excludeMaker, maxMessages, enabled, }: UseBazaarListingsOptions): UseBazaarListingsResult;
72
+ declare function useBazaarListings({ chainId, nftAddress, excludeMaker, maker, maxMessages, startIndex: startIndexOverride, endIndex: endIndexOverride, includeExpired, enabled, publicClient, }: UseBazaarListingsOptions): UseBazaarListingsResult;
62
73
 
63
74
  /**
64
75
  * React hook for fetching collection offers from Bazaar
@@ -186,10 +197,18 @@ interface UseBazaarErc20ListingsOptions {
186
197
  tokenAddress: `0x${string}`;
187
198
  /** Exclude listings from this address */
188
199
  excludeMaker?: `0x${string}`;
200
+ /** Only include listings from this address */
201
+ maker?: `0x${string}`;
189
202
  /** Maximum number of messages to fetch (default: 200) */
190
203
  maxMessages?: number;
204
+ /** Override start index for message range */
205
+ startIndex?: number;
206
+ /** Override end index for message range */
207
+ endIndex?: number;
191
208
  /** Whether the query is enabled (default: true) */
192
209
  enabled?: boolean;
210
+ /** Optional viem PublicClient (defaults to wagmi's client for the chain) */
211
+ publicClient?: PublicClient;
193
212
  }
194
213
  interface UseBazaarErc20ListingsResult {
195
214
  /** Valid ERC20 listings (sorted by price per token, lowest first) */
@@ -234,6 +253,6 @@ interface UseBazaarErc20ListingsResult {
234
253
  * }
235
254
  * ```
236
255
  */
237
- declare function useBazaarErc20Listings({ chainId, tokenAddress, excludeMaker, maxMessages, enabled, }: UseBazaarErc20ListingsOptions): UseBazaarErc20ListingsResult;
256
+ declare function useBazaarErc20Listings({ chainId, tokenAddress, excludeMaker, maker, maxMessages, startIndex: startIndexOverride, endIndex: endIndexOverride, enabled, publicClient, }: UseBazaarErc20ListingsOptions): UseBazaarErc20ListingsResult;
238
257
 
239
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 { L as Listing, C as CollectionOffer, E as Erc20Offer, d as Erc20Listing } from './types--4_RIuQ5.js';
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
@@ -11,10 +12,20 @@ interface UseBazaarListingsOptions {
11
12
  nftAddress: `0x${string}`;
12
13
  /** Exclude listings from this address */
13
14
  excludeMaker?: `0x${string}`;
15
+ /** Only include listings from this address */
16
+ maker?: `0x${string}`;
14
17
  /** Maximum number of messages to fetch (default: 200) */
15
18
  maxMessages?: number;
19
+ /** Override start index for message range */
20
+ startIndex?: number;
21
+ /** Override end index for message range */
22
+ endIndex?: number;
23
+ /** Include expired listings in results (default: false) */
24
+ includeExpired?: boolean;
16
25
  /** Whether the query is enabled (default: true) */
17
26
  enabled?: boolean;
27
+ /** Optional viem PublicClient (defaults to wagmi's client for the chain) */
28
+ publicClient?: PublicClient;
18
29
  }
19
30
  interface UseBazaarListingsResult {
20
31
  /** Valid listings (deduplicated, sorted by price) */
@@ -58,7 +69,7 @@ interface UseBazaarListingsResult {
58
69
  * );
59
70
  * ```
60
71
  */
61
- declare function useBazaarListings({ chainId, nftAddress, excludeMaker, maxMessages, enabled, }: UseBazaarListingsOptions): UseBazaarListingsResult;
72
+ declare function useBazaarListings({ chainId, nftAddress, excludeMaker, maker, maxMessages, startIndex: startIndexOverride, endIndex: endIndexOverride, includeExpired, enabled, publicClient, }: UseBazaarListingsOptions): UseBazaarListingsResult;
62
73
 
63
74
  /**
64
75
  * React hook for fetching collection offers from Bazaar
@@ -186,10 +197,18 @@ interface UseBazaarErc20ListingsOptions {
186
197
  tokenAddress: `0x${string}`;
187
198
  /** Exclude listings from this address */
188
199
  excludeMaker?: `0x${string}`;
200
+ /** Only include listings from this address */
201
+ maker?: `0x${string}`;
189
202
  /** Maximum number of messages to fetch (default: 200) */
190
203
  maxMessages?: number;
204
+ /** Override start index for message range */
205
+ startIndex?: number;
206
+ /** Override end index for message range */
207
+ endIndex?: number;
191
208
  /** Whether the query is enabled (default: true) */
192
209
  enabled?: boolean;
210
+ /** Optional viem PublicClient (defaults to wagmi's client for the chain) */
211
+ publicClient?: PublicClient;
193
212
  }
194
213
  interface UseBazaarErc20ListingsResult {
195
214
  /** Valid ERC20 listings (sorted by price per token, lowest first) */
@@ -234,6 +253,6 @@ interface UseBazaarErc20ListingsResult {
234
253
  * }
235
254
  * ```
236
255
  */
237
- declare function useBazaarErc20Listings({ chainId, tokenAddress, excludeMaker, maxMessages, enabled, }: UseBazaarErc20ListingsOptions): UseBazaarErc20ListingsResult;
256
+ declare function useBazaarErc20Listings({ chainId, tokenAddress, excludeMaker, maker, maxMessages, startIndex: startIndexOverride, endIndex: endIndexOverride, enabled, publicClient, }: UseBazaarErc20ListingsOptions): UseBazaarErc20ListingsResult;
238
257
 
239
258
  export { type UseBazaarCollectionOffersOptions, type UseBazaarCollectionOffersResult, type UseBazaarErc20ListingsOptions, type UseBazaarErc20ListingsResult, type UseBazaarErc20OffersOptions, type UseBazaarErc20OffersResult, type UseBazaarListingsOptions, type UseBazaarListingsResult, useBazaarCollectionOffers, useBazaarErc20Listings, useBazaarErc20Offers, useBazaarListings };