@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/index.d.mts +794 -37
- package/dist/index.d.ts +794 -37
- package/dist/index.js +1093 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1074 -14
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +5 -4
- package/dist/react.d.ts +5 -4
- package/dist/react.js +1234 -14
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +1235 -15
- package/dist/react.mjs.map +1 -1
- package/dist/{types-BwfAmxpu.d.mts → types-oOrmJnNJ.d.mts} +71 -3
- package/dist/{types-BwfAmxpu.d.ts → types-oOrmJnNJ.d.ts} +71 -3
- package/package.json +1 -1
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-
|
|
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
|
|
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-
|
|
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
|
|
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
|