@net-protocol/bazaar 0.1.6 → 0.1.8

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,5 +1,5 @@
1
1
  import { PublicClient } from 'viem';
2
- import { L as Listing, C as CollectionOffer, E as Erc20Offer, d as Erc20Listing, S as Sale } from './types-BwfAmxpu.mjs';
2
+ import { L as Listing, C as CollectionOffer, E as Erc20Offer, d as Erc20Listing, S as Sale } from './types-oOrmJnNJ.mjs';
3
3
 
4
4
  /**
5
5
  * React hook for fetching NFT listings from Bazaar
@@ -8,8 +8,8 @@ import { L as Listing, C as CollectionOffer, E as Erc20Offer, d as Erc20Listing,
8
8
  interface UseBazaarListingsOptions {
9
9
  /** Chain ID to query */
10
10
  chainId: number;
11
- /** NFT collection address */
12
- nftAddress: `0x${string}`;
11
+ /** NFT collection address (optional - if omitted, fetches recent listings across all collections) */
12
+ nftAddress?: `0x${string}`;
13
13
  /** Exclude listings from this address */
14
14
  excludeMaker?: `0x${string}`;
15
15
  /** Only include listings from this address */
@@ -45,7 +45,8 @@ interface UseBazaarListingsResult {
45
45
  * - Not expired
46
46
  * - Seller still owns the NFT
47
47
  *
48
- * Results are deduplicated (one per token) and sorted by price (lowest first)
48
+ * Results are deduplicated (one per token) and sorted by price (lowest first).
49
+ * If `nftAddress` is omitted, fetches recent listings across all collections on the chain.
49
50
  *
50
51
  * @example
51
52
  * ```tsx
package/dist/react.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { PublicClient } from 'viem';
2
- import { L as Listing, C as CollectionOffer, E as Erc20Offer, d as Erc20Listing, S as Sale } from './types-BwfAmxpu.js';
2
+ import { L as Listing, C as CollectionOffer, E as Erc20Offer, d as Erc20Listing, S as Sale } from './types-oOrmJnNJ.js';
3
3
 
4
4
  /**
5
5
  * React hook for fetching NFT listings from Bazaar
@@ -8,8 +8,8 @@ import { L as Listing, C as CollectionOffer, E as Erc20Offer, d as Erc20Listing,
8
8
  interface UseBazaarListingsOptions {
9
9
  /** Chain ID to query */
10
10
  chainId: number;
11
- /** NFT collection address */
12
- nftAddress: `0x${string}`;
11
+ /** NFT collection address (optional - if omitted, fetches recent listings across all collections) */
12
+ nftAddress?: `0x${string}`;
13
13
  /** Exclude listings from this address */
14
14
  excludeMaker?: `0x${string}`;
15
15
  /** Only include listings from this address */
@@ -45,7 +45,8 @@ interface UseBazaarListingsResult {
45
45
  * - Not expired
46
46
  * - Seller still owns the NFT
47
47
  *
48
- * Results are deduplicated (one per token) and sorted by price (lowest first)
48
+ * Results are deduplicated (one per token) and sorted by price (lowest first).
49
+ * If `nftAddress` is omitted, fetches recent listings across all collections on the chain.
49
50
  *
50
51
  * @example
51
52
  * ```tsx