@net-protocol/bazaar 0.1.0 → 0.1.2

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.
@@ -36,6 +36,8 @@ interface Listing {
36
36
  messageData: `0x${string}`;
37
37
  /** Decoded Seaport order components */
38
38
  orderComponents?: SeaportOrderComponents;
39
+ /** Private order fulfiller zone hash (undefined = public order) */
40
+ targetFulfiller?: `0x${string}`;
39
41
  }
40
42
  /**
41
43
  * Collection offer information
@@ -93,6 +95,37 @@ interface Erc20Offer {
93
95
  /** Decoded Seaport order components */
94
96
  orderComponents?: SeaportOrderComponents;
95
97
  }
98
+ /**
99
+ * ERC20 listing information
100
+ */
101
+ interface Erc20Listing {
102
+ /** Seller's address */
103
+ maker: `0x${string}`;
104
+ /** ERC20 token address being sold */
105
+ tokenAddress: `0x${string}`;
106
+ /** Amount of tokens being sold */
107
+ tokenAmount: bigint;
108
+ /** Total price in wei (native currency) */
109
+ priceWei: bigint;
110
+ /** Price per token in wei (priceWei / tokenAmount) */
111
+ pricePerTokenWei: bigint;
112
+ /** Total price in native currency (formatted) */
113
+ price: number;
114
+ /** Price per token in native currency (formatted) */
115
+ pricePerToken: number;
116
+ /** Currency symbol (e.g., "eth", "hype") */
117
+ currency: string;
118
+ /** Expiration timestamp in seconds */
119
+ expirationDate: number;
120
+ /** Seaport order hash */
121
+ orderHash: `0x${string}`;
122
+ /** Order status */
123
+ orderStatus: SeaportOrderStatus;
124
+ /** Raw message data for fulfillment */
125
+ messageData: `0x${string}`;
126
+ /** Decoded Seaport order components */
127
+ orderComponents?: SeaportOrderComponents;
128
+ }
96
129
  /**
97
130
  * Seaport item types
98
131
  */
@@ -205,8 +238,14 @@ interface GetListingsOptions {
205
238
  nftAddress: `0x${string}`;
206
239
  /** Exclude listings from this address */
207
240
  excludeMaker?: `0x${string}`;
241
+ /** Only include listings from this address */
242
+ maker?: `0x${string}`;
208
243
  /** Maximum number of messages to fetch (default: 200) */
209
244
  maxMessages?: number;
245
+ /** Override start index for message range */
246
+ startIndex?: number;
247
+ /** Override end index for message range */
248
+ endIndex?: number;
210
249
  }
211
250
  /**
212
251
  * Options for fetching collection offers
@@ -230,6 +269,23 @@ interface GetErc20OffersOptions {
230
269
  /** Maximum number of messages to fetch (default: 200) */
231
270
  maxMessages?: number;
232
271
  }
272
+ /**
273
+ * Options for fetching ERC20 listings
274
+ */
275
+ interface GetErc20ListingsOptions {
276
+ /** ERC20 token address to filter by */
277
+ tokenAddress: `0x${string}`;
278
+ /** Exclude listings from this address */
279
+ excludeMaker?: `0x${string}`;
280
+ /** Only include listings from this address */
281
+ maker?: `0x${string}`;
282
+ /** Maximum number of messages to fetch (default: 200) */
283
+ maxMessages?: number;
284
+ /** Override start index for message range */
285
+ startIndex?: number;
286
+ /** Override end index for message range */
287
+ endIndex?: number;
288
+ }
233
289
  /**
234
290
  * Transaction configuration for write operations
235
291
  */
@@ -244,4 +300,4 @@ interface WriteTransactionConfig {
244
300
  abi: readonly unknown[];
245
301
  }
246
302
 
247
- export { type CollectionOffer as C, type Erc20Offer as E, type GetListingsOptions as G, ItemType as I, type Listing as L, OrderType as O, type SeaportOrderComponents as S, type WriteTransactionConfig as W, type GetCollectionOffersOptions as a, type GetErc20OffersOptions as b, type SeaportSubmission as c, type SeaportOrderParameters as d, type SeaportOrderStatusInfo as e, SeaportOrderStatus as f, type OfferItem as g, type ConsiderationItem as h, type CreateListingParams as i, type CreateCollectionOfferParams as j };
303
+ export { type CollectionOffer as C, type Erc20Offer as E, type GetListingsOptions as G, ItemType as I, type Listing as L, OrderType as O, type SeaportOrderComponents as S, type WriteTransactionConfig as W, type GetCollectionOffersOptions as a, type GetErc20OffersOptions as b, type GetErc20ListingsOptions as c, type Erc20Listing as d, type SeaportSubmission as e, type SeaportOrderParameters as f, type SeaportOrderStatusInfo as g, SeaportOrderStatus as h, type OfferItem as i, type ConsiderationItem as j, type CreateListingParams as k, type CreateCollectionOfferParams as l };
@@ -36,6 +36,8 @@ interface Listing {
36
36
  messageData: `0x${string}`;
37
37
  /** Decoded Seaport order components */
38
38
  orderComponents?: SeaportOrderComponents;
39
+ /** Private order fulfiller zone hash (undefined = public order) */
40
+ targetFulfiller?: `0x${string}`;
39
41
  }
40
42
  /**
41
43
  * Collection offer information
@@ -93,6 +95,37 @@ interface Erc20Offer {
93
95
  /** Decoded Seaport order components */
94
96
  orderComponents?: SeaportOrderComponents;
95
97
  }
98
+ /**
99
+ * ERC20 listing information
100
+ */
101
+ interface Erc20Listing {
102
+ /** Seller's address */
103
+ maker: `0x${string}`;
104
+ /** ERC20 token address being sold */
105
+ tokenAddress: `0x${string}`;
106
+ /** Amount of tokens being sold */
107
+ tokenAmount: bigint;
108
+ /** Total price in wei (native currency) */
109
+ priceWei: bigint;
110
+ /** Price per token in wei (priceWei / tokenAmount) */
111
+ pricePerTokenWei: bigint;
112
+ /** Total price in native currency (formatted) */
113
+ price: number;
114
+ /** Price per token in native currency (formatted) */
115
+ pricePerToken: number;
116
+ /** Currency symbol (e.g., "eth", "hype") */
117
+ currency: string;
118
+ /** Expiration timestamp in seconds */
119
+ expirationDate: number;
120
+ /** Seaport order hash */
121
+ orderHash: `0x${string}`;
122
+ /** Order status */
123
+ orderStatus: SeaportOrderStatus;
124
+ /** Raw message data for fulfillment */
125
+ messageData: `0x${string}`;
126
+ /** Decoded Seaport order components */
127
+ orderComponents?: SeaportOrderComponents;
128
+ }
96
129
  /**
97
130
  * Seaport item types
98
131
  */
@@ -205,8 +238,14 @@ interface GetListingsOptions {
205
238
  nftAddress: `0x${string}`;
206
239
  /** Exclude listings from this address */
207
240
  excludeMaker?: `0x${string}`;
241
+ /** Only include listings from this address */
242
+ maker?: `0x${string}`;
208
243
  /** Maximum number of messages to fetch (default: 200) */
209
244
  maxMessages?: number;
245
+ /** Override start index for message range */
246
+ startIndex?: number;
247
+ /** Override end index for message range */
248
+ endIndex?: number;
210
249
  }
211
250
  /**
212
251
  * Options for fetching collection offers
@@ -230,6 +269,23 @@ interface GetErc20OffersOptions {
230
269
  /** Maximum number of messages to fetch (default: 200) */
231
270
  maxMessages?: number;
232
271
  }
272
+ /**
273
+ * Options for fetching ERC20 listings
274
+ */
275
+ interface GetErc20ListingsOptions {
276
+ /** ERC20 token address to filter by */
277
+ tokenAddress: `0x${string}`;
278
+ /** Exclude listings from this address */
279
+ excludeMaker?: `0x${string}`;
280
+ /** Only include listings from this address */
281
+ maker?: `0x${string}`;
282
+ /** Maximum number of messages to fetch (default: 200) */
283
+ maxMessages?: number;
284
+ /** Override start index for message range */
285
+ startIndex?: number;
286
+ /** Override end index for message range */
287
+ endIndex?: number;
288
+ }
233
289
  /**
234
290
  * Transaction configuration for write operations
235
291
  */
@@ -244,4 +300,4 @@ interface WriteTransactionConfig {
244
300
  abi: readonly unknown[];
245
301
  }
246
302
 
247
- export { type CollectionOffer as C, type Erc20Offer as E, type GetListingsOptions as G, ItemType as I, type Listing as L, OrderType as O, type SeaportOrderComponents as S, type WriteTransactionConfig as W, type GetCollectionOffersOptions as a, type GetErc20OffersOptions as b, type SeaportSubmission as c, type SeaportOrderParameters as d, type SeaportOrderStatusInfo as e, SeaportOrderStatus as f, type OfferItem as g, type ConsiderationItem as h, type CreateListingParams as i, type CreateCollectionOfferParams as j };
303
+ export { type CollectionOffer as C, type Erc20Offer as E, type GetListingsOptions as G, ItemType as I, type Listing as L, OrderType as O, type SeaportOrderComponents as S, type WriteTransactionConfig as W, type GetCollectionOffersOptions as a, type GetErc20OffersOptions as b, type GetErc20ListingsOptions as c, type Erc20Listing as d, type SeaportSubmission as e, type SeaportOrderParameters as f, type SeaportOrderStatusInfo as g, SeaportOrderStatus as h, type OfferItem as i, type ConsiderationItem as j, type CreateListingParams as k, type CreateCollectionOfferParams as l };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@net-protocol/bazaar",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "NFT marketplace SDK for Net Protocol - listings, collection offers, and ERC20 offers via Seaport",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",