@net-protocol/bazaar 0.1.3 → 0.1.5

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 CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  **Status: In Development** - This package is under active development. APIs may change without notice.
4
4
 
5
- NFT marketplace SDK for Net Protocol - read listings, collection offers, and ERC20 offers via Seaport.
5
+ SDK for Net Bazaar - a decentralized bazaar storing all orders onchain via Seaport.
6
6
 
7
7
  ## What is Net Bazaar?
8
8
 
9
- Net Bazaar is a decentralized NFT marketplace built on Net Protocol. It uses Seaport for order execution and Net Protocol for order storage and indexing.
9
+ Net Bazaar is a decentralized bazaar built on Net Protocol. All orders are stored onchain. It uses Seaport for order execution and Net Protocol for order storage and indexing.
10
10
 
11
11
  **Key features:**
12
12
  - **NFT Listings**: Buy and sell NFTs with native currency
package/dist/index.d.mts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { PublicClient } from 'viem';
2
2
  import { NetMessage } from '@net-protocol/core';
3
- import { G as GetListingsOptions, L as Listing, a as GetCollectionOffersOptions, C as CollectionOffer, b as GetErc20OffersOptions, E as Erc20Offer, c as GetErc20ListingsOptions, d as Erc20Listing, W as WriteTransactionConfig, S as SeaportOrderComponents, e as SeaportSubmission, f as SeaportOrderParameters, g as SeaportOrderStatusInfo, h as SeaportOrderStatus } from './types-DDHh9yJB.mjs';
4
- export { j as ConsiderationItem, l as CreateCollectionOfferParams, k as CreateListingParams, I as ItemType, i as OfferItem, O as OrderType } from './types-DDHh9yJB.mjs';
3
+ import { G as GetListingsOptions, L as Listing, a as GetCollectionOffersOptions, C as CollectionOffer, b as GetErc20OffersOptions, E as Erc20Offer, c as GetErc20ListingsOptions, d as Erc20Listing, W as WriteTransactionConfig, S as SeaportOrderComponents, e as SeaportSubmission, f as SeaportOrderParameters, g as SeaportOrderStatusInfo, h as SeaportOrderStatus } from './types-CfGfQTJL.mjs';
4
+ export { j as ConsiderationItem, l as CreateCollectionOfferParams, k as CreateListingParams, I as ItemType, i as OfferItem, O as OrderType } from './types-CfGfQTJL.mjs';
5
5
  import { Seaport } from '@opensea/seaport-js';
6
6
 
7
7
  /**
8
- * BazaarClient - Client for interacting with Net Bazaar (NFT marketplace)
8
+ * BazaarClient - Client for interacting with Net Bazaar
9
9
  *
10
10
  * Provides methods for:
11
11
  * - Reading NFT listings and collection offers
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { PublicClient } from 'viem';
2
2
  import { NetMessage } from '@net-protocol/core';
3
- import { G as GetListingsOptions, L as Listing, a as GetCollectionOffersOptions, C as CollectionOffer, b as GetErc20OffersOptions, E as Erc20Offer, c as GetErc20ListingsOptions, d as Erc20Listing, W as WriteTransactionConfig, S as SeaportOrderComponents, e as SeaportSubmission, f as SeaportOrderParameters, g as SeaportOrderStatusInfo, h as SeaportOrderStatus } from './types-DDHh9yJB.js';
4
- export { j as ConsiderationItem, l as CreateCollectionOfferParams, k as CreateListingParams, I as ItemType, i as OfferItem, O as OrderType } from './types-DDHh9yJB.js';
3
+ import { G as GetListingsOptions, L as Listing, a as GetCollectionOffersOptions, C as CollectionOffer, b as GetErc20OffersOptions, E as Erc20Offer, c as GetErc20ListingsOptions, d as Erc20Listing, W as WriteTransactionConfig, S as SeaportOrderComponents, e as SeaportSubmission, f as SeaportOrderParameters, g as SeaportOrderStatusInfo, h as SeaportOrderStatus } from './types-CfGfQTJL.js';
4
+ export { j as ConsiderationItem, l as CreateCollectionOfferParams, k as CreateListingParams, I as ItemType, i as OfferItem, O as OrderType } from './types-CfGfQTJL.js';
5
5
  import { Seaport } from '@opensea/seaport-js';
6
6
 
7
7
  /**
8
- * BazaarClient - Client for interacting with Net Bazaar (NFT marketplace)
8
+ * BazaarClient - Client for interacting with Net Bazaar
9
9
  *
10
10
  * Provides methods for:
11
11
  * - Reading NFT listings and collection offers
package/dist/index.js CHANGED
@@ -1190,7 +1190,7 @@ var BazaarClient = class {
1190
1190
  const count = await this.netClient.getMessageCount({
1191
1191
  filter: {
1192
1192
  appAddress: collectionOffersAddress,
1193
- topic: nftAddress.toLowerCase()
1193
+ topic: nftAddress?.toLowerCase()
1194
1194
  }
1195
1195
  });
1196
1196
  if (count === 0) {
@@ -1200,7 +1200,7 @@ var BazaarClient = class {
1200
1200
  const messages = await this.netClient.getMessages({
1201
1201
  filter: {
1202
1202
  appAddress: collectionOffersAddress,
1203
- topic: nftAddress.toLowerCase()
1203
+ topic: nftAddress?.toLowerCase()
1204
1204
  },
1205
1205
  startIndex,
1206
1206
  endIndex: count