opensea-js 4.0.4 → 4.0.7

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
@@ -288,52 +288,22 @@ const auction = await openseaSDK.createSellOrder({
288
288
 
289
289
  Note that auctions aren't supported with Ether directly due to limitations in Ethereum, so you have to use an ERC20 token, like Wrapped Ether (WETH), a stablecoin like DAI, etc. See [Using ERC-20 Tokens Instead of Ether](#using-erc-20-tokens-instead-of-ether) for more info.
290
290
 
291
- ### Running Crowdsales
292
-
293
- You can now sell items to users **without having to pay gas to mint them**!
294
-
295
- To create a presale or crowdsale and create batches of sell orders for a single asset factory, first follow the [tutorial](https://docs.opensea.io/docs/opensea-initial-item-sale-tutorial) for creating your crowdsale contract.
296
-
297
- Then call `createFactorySellOrders` with your factory contract address and asset option identifier, and set `numberOfOrders` to the number of assets you'd like to let users buy and mint:
298
-
299
- ```JavaScript
300
- // Expire these auctions one day from now
301
- const expirationTime = Math.round(Date.now() / 1000 + 60 * 60 * 24)
302
-
303
- const sellOrders = await openseaSDK.createFactorySellOrders({
304
- assetId: ASSET_OPTION_ID,
305
- factoryAddress: FACTORY_CONTRACT_ADDRESS,
306
- accountAddress,
307
- startAmount,
308
- endAmount,
309
- expirationTime,
310
- // Will create 100 sell orders in parallel batches of 10, to speed things up:
311
- numberOfOrders: 100
312
- })
313
- ```
314
-
315
- Here's an [example script](https://github.com/ProjectOpenSea/opensea-creatures/blob/master/scripts/sell.js) you can use to mint items.
316
-
317
- **NOTE:** If `numberOfOrders` is greater than 5, we will automatically batch them in groups of 5 so you can post orders in parallel. Requires an `apiKey` to be set during SDK initialization in order to not be throttled by the API.
318
-
319
- Games using this method include [Coins & Steel](https://opensea.io/assets/coins&steelfounderssale) and a couple in stealth :) If you have questions or want support, contact us at contact@opensea.io (or in [Discord](https://discord.gg/ga8EJbv)).
320
-
321
291
  ### Fetching Orders
322
292
 
323
- To retrieve a list of offers and auction on an asset, you can use an instance of the `OpenSeaAPI` exposed on the client. Parameters passed into API filter objects are underscored instead of camel-cased, similar to the main [OpenSea API parameters](https://docs.opensea.io/v1.0/reference):
293
+ To retrieve a list of offers and auction on an asset, you can use an instance of the `OpenSeaAPI` exposed on the client. Parameters passed into API filter objects are camel-cased and serialized before being sent as [OpenSea API parameters](https://docs.opensea.io/v2.0/reference):
324
294
 
325
295
  ```JavaScript
326
296
  // Get offers (bids), a.k.a. orders where `side == 0`
327
297
  const { orders, count } = await openseaSDK.api.getOrders({
328
- asset_contract_address: tokenAddress,
329
- token_id: token_id,
298
+ assetContractAddress: tokenAddress,
299
+ tokenId,
330
300
  side: "bid"
331
301
  })
332
302
 
333
303
  // Get page 2 of all auctions, a.k.a. orders where `side == 1`
334
304
  const { orders, count } = await openseaSDK.api.getOrders({
335
- asset_contract_address: tokenAddress,
336
- token_id: token_id,
305
+ assetContractAddress: tokenAddress,
306
+ tokenId,
337
307
  side: "ask"
338
308
  }, 2)
339
309
  ```
@@ -342,23 +312,28 @@ Note that the listing price of an asset is equal to the `currentPrice` of the **
342
312
 
343
313
  To learn more about signatures, makers, takers, listingTime vs createdTime and other kinds of order terminology, please read the [**Terminology Section**](https://docs.opensea.io/reference#terminology) of the API Docs.
344
314
 
345
- The available API filters for the orders endpoint is documented in the `OrderJSON` interface below, but see the main [API Docs](https://docs.opensea.io/reference#reference-getting-started) for a playground, along with more up-to-date and detailed explanantions.
315
+ The available API filters for the orders endpoint is documented in the `OrdersQueryOptions` interface below, but see the main [API Docs](https://docs.opensea.io/reference#reference-getting-started) for a playground, along with more up-to-date and detailed explanantions.
346
316
 
347
317
  ```TypeScript
348
318
  /**
349
319
  * Attrs used by orderbook to make queries easier
350
320
  * More to come soon!
351
321
  */
322
+ side: "bid" | "ask", // "bid" for buy orders, "ask" for sell orders
323
+ protocol?: "seaport"; // Protocol of the order (more options may be added in future)
352
324
  maker?: string, // Address of the order's creator
353
325
  taker?: string, // The null address if anyone is allowed to take the order
354
- side?: "bid" | "ask", // "bid" for buy orders, "ask" for sell orders
355
- owner?: string, // Address of owner of the order's asset
326
+ owner?: string, // Address of owner of the order's item
356
327
  sale_kind?: SaleKind, // 0 for fixed-price, 1 for Dutch auctions
357
- asset_contract_address?: string, // Contract address for order's asset
358
- token_id?: number | string,
359
- token_ids?: Array<number | string>,
360
- listed_after?: number | string, // This means listing_time > value in seconds
361
- listed_before?: number | string, // This means listing_time <= value in seconds
328
+ assetContractAddress?: string, // Contract address for order's item
329
+ paymentTokenAddress?: string; // Contract address for order's payment token
330
+ tokenId?: number | string,
331
+ tokenIds?: Array<number | string>,
332
+ listedAfter?: number | string, // This means listing_time > value in seconds
333
+ listedBefore?: number | string, // This means listing_time <= value in seconds
334
+ orderBy?: "created_date" | "eth_price", // Field to sort results by
335
+ orderDirection?: "asc" | "desc", // Sort direction of orderBy sorting of results
336
+ onlyEnglish?: boolean, // Only return english auction orders
362
337
 
363
338
  // For pagination
364
339
  limit?: number,
@@ -519,7 +494,7 @@ const token = (await openseaSDK.api.getPaymentTokens({ symbol: 'MANA'})).tokens[
519
494
 
520
495
  const order = await openseaSDK.api.getOrders({
521
496
  side: "ask",
522
- payment_token_address: token.address
497
+ paymentTokenAddress: token.address
523
498
  })
524
499
  ```
525
500
 
@@ -527,7 +502,6 @@ const order = await openseaSDK.api.getOrders({
527
502
 
528
503
  - MANA, Decentraland's currency: https://etherscan.io/token/0x0f5d2fb29fb7d3cfee444a200298f468908cc942
529
504
  - DAI, Maker's stablecoin, pegged to $1 USD: https://etherscan.io/token/0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359
530
- - And tons more! See the "Currencies" list in the sidebar on https://opensea.io/assets for a full list, or contact us to add yours: [Discord](https://discord.gg/ga8EJbv)
531
505
 
532
506
  ### Private Auctions
533
507
 
@@ -632,13 +606,11 @@ To remove all listeners and start over, just call `openseaSDK.removeAllListeners
632
606
 
633
607
  Auto-generated documentation for each export is available [here](https://projectopensea.github.io/opensea-js/).
634
608
 
635
- If you need extra help, support is free! Contact the OpenSea devs. They're available every day on [Discord](https://discord.gg/XjwWYgU) in the `#developers` channel.
636
-
637
609
  ### Example Code
638
610
 
639
611
  Check out the [Ship's Log](https://github.com/ProjectOpenSea/ships-log), built with the SDK, which shows the recent orders in the OpenSea orderbook.
640
612
 
641
- You can view a live demo [here](https://ships-log.herokuapp.com/)! Also check out the [Mythereum marketplace](https://mythereum.io/marketplace), which is entirely powered by OpenSea.js.
613
+ Also check out the [Mythereum marketplace](https://mythereum.io/marketplace), which is entirely powered by OpenSea.js.
642
614
 
643
615
  ## Migrating to version 1.0
644
616
 
@@ -696,8 +668,6 @@ Contributions welcome! Please use GitHub issues for suggestions/concerns - if yo
696
668
 
697
669
  - Is your computer's internal clock accurate? If not, try enabling automatic clock adjustment locally or following [this tutorial](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/set-time.html) to update an Amazon EC2 instance.
698
670
 
699
- - Are you attempting to purchase a token that's unpurchasable on [OpenSea](https://opensea.io/)? If so, contact us [Discord](https://discord.gg/XjwWYgU) in the `#developers` channel and we'll help diagnose the issue.
700
-
701
671
  ## Testing your branch locally
702
672
 
703
673
  ```sh
package/lib/api.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import "isomorphic-unfetch";
2
2
  import { OrderAPIOptions, OrdersQueryOptions, OrderV2, ProtocolData, QueryCursors } from "./orders/types";
3
- import { OpenSeaAPIConfig, OpenSeaAsset, OpenSeaAssetBundle, OpenSeaAssetBundleQuery, OpenSeaAssetQuery, OpenSeaFungibleToken, OpenSeaFungibleTokenQuery, Order, OrderJSON, OrderQuery } from "./types";
3
+ import { OpenSeaAPIConfig, OpenSeaAsset, OpenSeaAssetBundle, OpenSeaAssetBundleQuery, OpenSeaAssetQuery, OpenSeaFungibleToken, OpenSeaFungibleTokenQuery } from "./types";
4
4
  export declare class OpenSeaAPI {
5
5
  /**
6
6
  * Host url for OpenSea
@@ -30,12 +30,12 @@ export declare class OpenSeaAPI {
30
30
  /**
31
31
  * Gets an order from API based on query options. Throws when no order is found.
32
32
  */
33
- getOrder({ protocol, side, orderDirection, orderBy, ...restOptions }: Omit<OrdersQueryOptions, "limit">): Promise<OrderV2>;
33
+ getOrder({ side, protocol, orderDirection, orderBy, ...restOptions }: Omit<OrdersQueryOptions, "limit">): Promise<OrderV2>;
34
34
  /**
35
35
  * Gets a list of orders from API based on query options and returns orders
36
36
  * with next and previous cursors.
37
37
  */
38
- getOrders({ protocol, side, orderDirection, orderBy, ...restOptions }: Omit<OrdersQueryOptions, "limit">): Promise<QueryCursors & {
38
+ getOrders({ side, protocol, orderDirection, orderBy, ...restOptions }: Omit<OrdersQueryOptions, "limit">): Promise<QueryCursors & {
39
39
  orders: OrderV2[];
40
40
  }>;
41
41
  /**
@@ -44,14 +44,6 @@ export declare class OpenSeaAPI {
44
44
  postOrder(order: ProtocolData, apiOptions: OrderAPIOptions, { retries }?: {
45
45
  retries?: number;
46
46
  }): Promise<OrderV2>;
47
- /**
48
- * Send an order to the orderbook.
49
- * Throws when the order is invalid.
50
- * IN NEXT VERSION: change order input to Order type
51
- * @param order Order JSON to post to the orderbook
52
- * @param retries Number of times to retry if the service is unavailable for any reason
53
- */
54
- postOrderLegacyWyvern(order: OrderJSON, retries?: number): Promise<Order>;
55
47
  /**
56
48
  * Create a whitelist entry for an asset to prevent others from buying.
57
49
  * Buyers will have to have verified at least one of the emails
@@ -67,24 +59,6 @@ export declare class OpenSeaAPI {
67
59
  * Simply return null in case API doesn't give us a good response
68
60
  */
69
61
  getOrderCreateWyvernExchangeAddress(): Promise<string | null>;
70
- /**
71
- * Get an order from the orderbook using the legacy wyvern API, throwing if none is found.
72
- * @param query Query to use for getting orders. A subset of parameters
73
- * on the `OrderJSON` type is supported
74
- */
75
- getOrderLegacyWyvern(query: OrderQuery): Promise<Order>;
76
- /**
77
- * Get a list of orders from the orderbook, returning the page of orders
78
- * and the count of total orders found.
79
- * @param query Query to use for getting orders. A subset of parameters
80
- * on the `OrderJSON` type is supported
81
- * @param page Page number, defaults to 1. Can be overridden by
82
- * `limit` and `offset` attributes from OrderQuery
83
- */
84
- getOrdersLegacyWyvern(query?: OrderQuery, page?: number): Promise<{
85
- orders: Order[];
86
- count: number;
87
- }>;
88
62
  /**
89
63
  * Fetch an asset from the API, throwing if none is found
90
64
  * @param tokenAddress Address of the asset's contract
package/lib/api.js CHANGED
@@ -117,14 +117,14 @@ var OpenSeaAPI = /** @class */ (function () {
117
117
  * Gets an order from API based on query options. Throws when no order is found.
118
118
  */
119
119
  OpenSeaAPI.prototype.getOrder = function (_a) {
120
- var protocol = _a.protocol, side = _a.side, _b = _a.orderDirection, orderDirection = _b === void 0 ? "desc" : _b, _c = _a.orderBy, orderBy = _c === void 0 ? "created_date" : _c, restOptions = __rest(_a, ["protocol", "side", "orderDirection", "orderBy"]);
120
+ var side = _a.side, _b = _a.protocol, protocol = _b === void 0 ? "seaport" : _b, _c = _a.orderDirection, orderDirection = _c === void 0 ? "desc" : _c, _d = _a.orderBy, orderBy = _d === void 0 ? "created_date" : _d, restOptions = __rest(_a, ["side", "protocol", "orderDirection", "orderBy"]);
121
121
  return __awaiter(this, void 0, void 0, function () {
122
122
  var orders;
123
- return __generator(this, function (_d) {
124
- switch (_d.label) {
123
+ return __generator(this, function (_e) {
124
+ switch (_e.label) {
125
125
  case 0: return [4 /*yield*/, this.get((0, utils_1.getOrdersAPIPath)(this.networkName, protocol, side), (0, utils_1.serializeOrdersQueryOptions)(__assign({ limit: 1, orderBy: orderBy, orderDirection: orderDirection }, restOptions)))];
126
126
  case 1:
127
- orders = (_d.sent()).orders;
127
+ orders = (_e.sent()).orders;
128
128
  if (orders.length === 0) {
129
129
  throw new Error("Not found: no matching order found");
130
130
  }
@@ -138,14 +138,14 @@ var OpenSeaAPI = /** @class */ (function () {
138
138
  * with next and previous cursors.
139
139
  */
140
140
  OpenSeaAPI.prototype.getOrders = function (_a) {
141
- var protocol = _a.protocol, side = _a.side, _b = _a.orderDirection, orderDirection = _b === void 0 ? "desc" : _b, _c = _a.orderBy, orderBy = _c === void 0 ? "created_date" : _c, restOptions = __rest(_a, ["protocol", "side", "orderDirection", "orderBy"]);
141
+ var side = _a.side, _b = _a.protocol, protocol = _b === void 0 ? "seaport" : _b, _c = _a.orderDirection, orderDirection = _c === void 0 ? "desc" : _c, _d = _a.orderBy, orderBy = _d === void 0 ? "created_date" : _d, restOptions = __rest(_a, ["side", "protocol", "orderDirection", "orderBy"]);
142
142
  return __awaiter(this, void 0, void 0, function () {
143
143
  var response;
144
- return __generator(this, function (_d) {
145
- switch (_d.label) {
144
+ return __generator(this, function (_e) {
145
+ switch (_e.label) {
146
146
  case 0: return [4 /*yield*/, this.get((0, utils_1.getOrdersAPIPath)(this.networkName, protocol, side), (0, utils_1.serializeOrdersQueryOptions)(__assign({ limit: this.pageSize, orderBy: orderBy, orderDirection: orderDirection }, restOptions)))];
147
147
  case 1:
148
- response = _d.sent();
148
+ response = _e.sent();
149
149
  return [2 /*return*/, __assign(__assign({}, response), { orders: response.orders.map(utils_1.deserializeOrder) })];
150
150
  }
151
151
  });
@@ -157,61 +157,30 @@ var OpenSeaAPI = /** @class */ (function () {
157
157
  OpenSeaAPI.prototype.postOrder = function (order, apiOptions, _a) {
158
158
  var _b = _a === void 0 ? {} : _a, _c = _b.retries, retries = _c === void 0 ? 2 : _c;
159
159
  return __awaiter(this, void 0, void 0, function () {
160
- var response, protocol, side, error_1;
161
- return __generator(this, function (_d) {
162
- switch (_d.label) {
160
+ var response, _d, protocol, side, error_1;
161
+ return __generator(this, function (_e) {
162
+ switch (_e.label) {
163
163
  case 0:
164
- protocol = apiOptions.protocol, side = apiOptions.side;
165
- _d.label = 1;
164
+ _d = apiOptions.protocol, protocol = _d === void 0 ? "seaport" : _d, side = apiOptions.side;
165
+ _e.label = 1;
166
166
  case 1:
167
- _d.trys.push([1, 3, , 5]);
167
+ _e.trys.push([1, 3, , 5]);
168
168
  return [4 /*yield*/, this.post((0, utils_1.getOrdersAPIPath)(this.networkName, protocol, side), order)];
169
169
  case 2:
170
- response = _d.sent();
170
+ response = _e.sent();
171
171
  return [3 /*break*/, 5];
172
172
  case 3:
173
- error_1 = _d.sent();
173
+ error_1 = _e.sent();
174
174
  _throwOrContinue(error_1, retries);
175
175
  return [4 /*yield*/, (0, utils_2.delay)(this.retryDelay)];
176
176
  case 4:
177
- _d.sent();
177
+ _e.sent();
178
178
  return [2 /*return*/, this.postOrder(order, apiOptions, { retries: retries - 1 })];
179
179
  case 5: return [2 /*return*/, (0, utils_1.deserializeOrder)(response.order)];
180
180
  }
181
181
  });
182
182
  });
183
183
  };
184
- /**
185
- * Send an order to the orderbook.
186
- * Throws when the order is invalid.
187
- * IN NEXT VERSION: change order input to Order type
188
- * @param order Order JSON to post to the orderbook
189
- * @param retries Number of times to retry if the service is unavailable for any reason
190
- */
191
- OpenSeaAPI.prototype.postOrderLegacyWyvern = function (order, retries) {
192
- if (retries === void 0) { retries = 2; }
193
- return __awaiter(this, void 0, void 0, function () {
194
- var json, error_2;
195
- return __generator(this, function (_a) {
196
- switch (_a.label) {
197
- case 0:
198
- _a.trys.push([0, 2, , 4]);
199
- return [4 /*yield*/, this.post("".concat(constants_1.ORDERBOOK_PATH, "/orders/post/"), order)];
200
- case 1:
201
- json = (_a.sent());
202
- return [3 /*break*/, 4];
203
- case 2:
204
- error_2 = _a.sent();
205
- _throwOrContinue(error_2, retries);
206
- return [4 /*yield*/, (0, utils_2.delay)(3000)];
207
- case 3:
208
- _a.sent();
209
- return [2 /*return*/, this.postOrderLegacyWyvern(order, retries - 1)];
210
- case 4: return [2 /*return*/, (0, utils_2.orderFromJSON)(json)];
211
- }
212
- });
213
- });
214
- };
215
184
  /**
216
185
  * Create a whitelist entry for an asset to prevent others from buying.
217
186
  * Buyers will have to have verified at least one of the emails
@@ -242,7 +211,7 @@ var OpenSeaAPI = /** @class */ (function () {
242
211
  */
243
212
  OpenSeaAPI.prototype.getOrderCreateWyvernExchangeAddress = function () {
244
213
  return __awaiter(this, void 0, void 0, function () {
245
- var result, error_3;
214
+ var result, error_2;
246
215
  return __generator(this, function (_a) {
247
216
  switch (_a.label) {
248
217
  case 0:
@@ -252,7 +221,7 @@ var OpenSeaAPI = /** @class */ (function () {
252
221
  result = _a.sent();
253
222
  return [2 /*return*/, result];
254
223
  case 2:
255
- error_3 = _a.sent();
224
+ error_2 = _a.sent();
256
225
  this.logger("Couldn't retrieve Wyvern exchange address for order creation");
257
226
  return [2 /*return*/, null];
258
227
  case 3: return [2 /*return*/];
@@ -260,72 +229,6 @@ var OpenSeaAPI = /** @class */ (function () {
260
229
  });
261
230
  });
262
231
  };
263
- /**
264
- * Get an order from the orderbook using the legacy wyvern API, throwing if none is found.
265
- * @param query Query to use for getting orders. A subset of parameters
266
- * on the `OrderJSON` type is supported
267
- */
268
- OpenSeaAPI.prototype.getOrderLegacyWyvern = function (query) {
269
- return __awaiter(this, void 0, void 0, function () {
270
- var result, orderJSON, json, json;
271
- return __generator(this, function (_a) {
272
- switch (_a.label) {
273
- case 0: return [4 /*yield*/, this.get("".concat(constants_1.ORDERBOOK_PATH, "/orders/"), __assign({ limit: 1, side: types_1.OrderSide.Sell }, query))];
274
- case 1:
275
- result = _a.sent();
276
- if (constants_1.ORDERBOOK_VERSION == 0) {
277
- json = result;
278
- orderJSON = json[0];
279
- }
280
- else {
281
- json = result;
282
- orderJSON = json.orders[0];
283
- }
284
- if (!orderJSON) {
285
- throw new Error("Not found: no matching order found");
286
- }
287
- return [2 /*return*/, (0, utils_2.orderFromJSON)(orderJSON)];
288
- }
289
- });
290
- });
291
- };
292
- /**
293
- * Get a list of orders from the orderbook, returning the page of orders
294
- * and the count of total orders found.
295
- * @param query Query to use for getting orders. A subset of parameters
296
- * on the `OrderJSON` type is supported
297
- * @param page Page number, defaults to 1. Can be overridden by
298
- * `limit` and `offset` attributes from OrderQuery
299
- */
300
- OpenSeaAPI.prototype.getOrdersLegacyWyvern = function (query, page) {
301
- if (query === void 0) { query = {}; }
302
- if (page === void 0) { page = 1; }
303
- return __awaiter(this, void 0, void 0, function () {
304
- var result, json, json;
305
- return __generator(this, function (_a) {
306
- switch (_a.label) {
307
- case 0: return [4 /*yield*/, this.get("".concat(constants_1.ORDERBOOK_PATH, "/orders/"), __assign({ limit: this.pageSize, offset: (page - 1) * this.pageSize, side: types_1.OrderSide.Sell }, query))];
308
- case 1:
309
- result = _a.sent();
310
- if (constants_1.ORDERBOOK_VERSION == 0) {
311
- json = result;
312
- return [2 /*return*/, {
313
- orders: json.map(function (j) { return (0, utils_2.orderFromJSON)(j); }),
314
- count: json.length,
315
- }];
316
- }
317
- else {
318
- json = result;
319
- return [2 /*return*/, {
320
- orders: json.orders.map(function (j) { return (0, utils_2.orderFromJSON)(j); }),
321
- count: json.count,
322
- }];
323
- }
324
- return [2 /*return*/];
325
- }
326
- });
327
- });
328
- };
329
232
  /**
330
233
  * Fetch an asset from the API, throwing if none is found
331
234
  * @param tokenAddress Address of the asset's contract
@@ -336,7 +239,7 @@ var OpenSeaAPI = /** @class */ (function () {
336
239
  var tokenAddress = _a.tokenAddress, tokenId = _a.tokenId;
337
240
  if (retries === void 0) { retries = 1; }
338
241
  return __awaiter(this, void 0, void 0, function () {
339
- var json, error_4;
242
+ var json, error_3;
340
243
  return __generator(this, function (_b) {
341
244
  switch (_b.label) {
342
245
  case 0:
@@ -346,8 +249,8 @@ var OpenSeaAPI = /** @class */ (function () {
346
249
  json = _b.sent();
347
250
  return [3 /*break*/, 4];
348
251
  case 2:
349
- error_4 = _b.sent();
350
- _throwOrContinue(error_4, retries);
252
+ error_3 = _b.sent();
253
+ _throwOrContinue(error_3, retries);
351
254
  return [4 /*yield*/, (0, utils_2.delay)(1000)];
352
255
  case 3:
353
256
  _b.sent();
@@ -392,7 +295,7 @@ var OpenSeaAPI = /** @class */ (function () {
392
295
  if (page === void 0) { page = 1; }
393
296
  if (retries === void 0) { retries = 1; }
394
297
  return __awaiter(this, void 0, void 0, function () {
395
- var json, error_5;
298
+ var json, error_4;
396
299
  return __generator(this, function (_a) {
397
300
  switch (_a.label) {
398
301
  case 0:
@@ -402,8 +305,8 @@ var OpenSeaAPI = /** @class */ (function () {
402
305
  json = _a.sent();
403
306
  return [3 /*break*/, 4];
404
307
  case 2:
405
- error_5 = _a.sent();
406
- _throwOrContinue(error_5, retries);
308
+ error_4 = _a.sent();
309
+ _throwOrContinue(error_4, retries);
407
310
  return [4 /*yield*/, (0, utils_2.delay)(1000)];
408
311
  case 3:
409
312
  _a.sent();
@@ -580,10 +483,10 @@ var OpenSeaAPI = /** @class */ (function () {
580
483
  errorMessage = "Not found. Full message was '".concat(JSON.stringify(result), "'");
581
484
  break;
582
485
  case 500:
583
- errorMessage = "Internal server error. OpenSea has been alerted, but if the problem persists please contact us via Discord: https://discord.gg/ga8EJbv - full message was ".concat(JSON.stringify(result));
486
+ errorMessage = "Internal server error. OpenSea has been alerted, but if the problem persists please contact us via Discord: https://discord.gg/opensea - full message was ".concat(JSON.stringify(result));
584
487
  break;
585
488
  case 503:
586
- errorMessage = "Service unavailable. Please try again in a few minutes. If the problem persists please contact us via Discord: https://discord.gg/ga8EJbv - full message was ".concat(JSON.stringify(result));
489
+ errorMessage = "Service unavailable. Please try again in a few minutes. If the problem persists please contact us via Discord: https://discord.gg/opensea - full message was ".concat(JSON.stringify(result));
587
490
  break;
588
491
  default:
589
492
  errorMessage = "Message: ".concat(JSON.stringify(result));
package/lib/api.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"api.js","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8BAA4B;AAE5B,wDAA4C;AAC5C,yCAQqB;AAUrB,wCAIwB;AACxB,iCAciB;AACjB,uCAMuB;AAEvB;IAsBE;;;;OAIG;IACH,oBAAY,MAAwB,EAAE,MAA8B;;QAlBpE;;WAEG;QACI,aAAQ,GAAG,EAAE,CAAC;QAQb,eAAU,GAAG,I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AAS,gBAAgB,CAAC,KAAc,EAAE,OAAe;IACvD,IAAM,aAAa,GACjB,KAAK,YAAY,KAAK;QACtB,CAAC,CAAC,KAAK,CAAC,OAAO;QACf,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IAEnE,IAAI,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;QAClC,MAAM,KAAK,CAAC;KACb;AACH,CAAC"}
@@ -2,9 +2,12 @@ export declare const DEFAULT_GAS_INCREASE_FACTOR = 1.01;
2
2
  export declare const NULL_ADDRESS: string;
3
3
  export declare const NULL_BLOCK_HASH = "0x0000000000000000000000000000000000000000000000000000000000000000";
4
4
  export declare const OPENSEA_LEGACY_FEE_RECIPIENT = "0x5b3256965e7c3cf26e11fcaf296dfc8807c01073";
5
- export declare const OPENSEA_FEE_RECIPIENT = "0x8de9c5a032463c561423387a9648c5c7bcc5bc90";
5
+ export declare const OPENSEA_FEE_RECIPIENT = "0x0000a26b00c1f0df003000390027140000faa719";
6
6
  export declare const INVERSE_BASIS_POINT = 10000;
7
7
  export declare const MAX_UINT_256: import("bignumber.js").default;
8
+ export declare const SHARED_STOREFRONT_LAZY_MINT_ADAPTER_ADDRESS = "0xa604060890923ff400e8c6f5290461a83aedacec";
9
+ export declare const SHARED_STORE_FRONT_ADDRESS_MAINNET = "0x495f947276749ce646f68ac8c248420045cb7b5e";
10
+ export declare const SHARED_STORE_FRONT_ADDRESS_RINKEBY = "0x88b48f654c30e99bc2e4a1559b4dcf1ad93fa656";
8
11
  export declare const ENJIN_COIN_ADDRESS = "0xf629cbd94d3791c9250152bd8dfbdf380e2a3b9c";
9
12
  export declare const MANA_ADDRESS = "0x0f5d2fb29fb7d3cfee444a200298f468908cc942";
10
13
  export declare const ENJIN_ADDRESS = "0xfaaFDc07907ff5120a76b34b731b278c38d6043C";
@@ -18,16 +21,6 @@ export declare const WRAPPED_NFT_LIQUIDATION_PROXY_ADDRESS_RINKEBY = "0xaa775Eb4
18
21
  export declare const UNISWAP_FACTORY_ADDRESS_MAINNET = "0xc0a47dFe034B400B47bDaD5FecDa2621de6c4d95";
19
22
  export declare const UNISWAP_FACTORY_ADDRESS_RINKEBY = "0xf5D915570BC477f9B8D6C0E980aA81757A3AaC36";
20
23
  export declare const DEFAULT_WRAPPED_NFT_LIQUIDATION_UNISWAP_SLIPPAGE_IN_BASIS_POINTS = 1000;
21
- export declare const CHEEZE_WIZARDS_GUILD_ADDRESS: string;
22
- export declare const CHEEZE_WIZARDS_GUILD_RINKEBY_ADDRESS = "0x095731b672b76b00A0b5cb9D8258CD3F6E976cB2";
23
- export declare const CHEEZE_WIZARDS_BASIC_TOURNAMENT_ADDRESS: string;
24
- export declare const CHEEZE_WIZARDS_BASIC_TOURNAMENT_RINKEBY_ADDRESS = "0x8852f5F7d1BB867AAf8fdBB0851Aa431d1df5ca1";
25
- export declare const DECENTRALAND_ESTATE_ADDRESS = "0x959e104e1a4db6317fa58f8295f586e1a978c297";
26
- export declare const STATIC_CALL_TX_ORIGIN_ADDRESS = "0xbff6ade67e3717101dd8d0a7f3de1bf6623a2ba8";
27
- export declare const STATIC_CALL_TX_ORIGIN_RINKEBY_ADDRESS = "0xe291abab95677bc652a44f973a8e06d48464e11c";
28
- export declare const STATIC_CALL_CHEEZE_WIZARDS_ADDRESS: string;
29
- export declare const STATIC_CALL_CHEEZE_WIZARDS_RINKEBY_ADDRESS = "0x8a640bdf8886dd6ca1fad9f22382b50deeacde08";
30
- export declare const STATIC_CALL_DECENTRALAND_ESTATES_ADDRESS = "0x93c3cd7ba04556d2e3d7b8106ce0f83e24a87a7e";
31
24
  export declare const DEFAULT_BUYER_FEE_BASIS_POINTS = 0;
32
25
  export declare const DEFAULT_SELLER_FEE_BASIS_POINTS = 250;
33
26
  export declare const OPENSEA_SELLER_BOUNTY_BASIS_POINTS = 100;
@@ -35,8 +28,6 @@ export declare const DEFAULT_MAX_BOUNTY = 250;
35
28
  export declare const MIN_EXPIRATION_MINUTES = 15;
36
29
  export declare const MAX_EXPIRATION_MONTHS = 3;
37
30
  export declare const ORDER_MATCHING_LATENCY_SECONDS: number;
38
- export declare const SELL_ORDER_BATCH_SIZE = 3;
39
- export declare const ORDERBOOK_VERSION: number;
40
31
  export declare const API_BASE_MAINNET = "https://api.opensea.io";
41
32
  export declare const API_BASE_RINKEBY = "https://testnets-api.opensea.io";
42
33
  export declare const SITE_HOST_MAINNET = "https://opensea.io";
package/lib/constants.js CHANGED
@@ -1,17 +1,19 @@
1
1
  "use strict";
2
2
  var _a, _b, _c;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.EIP_712_WYVERN_DOMAIN_NAME = exports.EIP_712_ORDER_TYPES = exports.API_PATH = exports.ORDERBOOK_PATH = exports.RINKEBY_PROVIDER_URL = exports.MAINNET_PROVIDER_URL = exports.RPC_URL_PATH = exports.SITE_HOST_RINKEBY = exports.SITE_HOST_MAINNET = exports.API_BASE_RINKEBY = exports.API_BASE_MAINNET = exports.ORDERBOOK_VERSION = exports.SELL_ORDER_BATCH_SIZE = exports.ORDER_MATCHING_LATENCY_SECONDS = exports.MAX_EXPIRATION_MONTHS = exports.MIN_EXPIRATION_MINUTES = exports.DEFAULT_MAX_BOUNTY = exports.OPENSEA_SELLER_BOUNTY_BASIS_POINTS = exports.DEFAULT_SELLER_FEE_BASIS_POINTS = exports.DEFAULT_BUYER_FEE_BASIS_POINTS = exports.STATIC_CALL_DECENTRALAND_ESTATES_ADDRESS = exports.STATIC_CALL_CHEEZE_WIZARDS_RINKEBY_ADDRESS = exports.STATIC_CALL_CHEEZE_WIZARDS_ADDRESS = exports.STATIC_CALL_TX_ORIGIN_RINKEBY_ADDRESS = exports.STATIC_CALL_TX_ORIGIN_ADDRESS = exports.DECENTRALAND_ESTATE_ADDRESS = exports.CHEEZE_WIZARDS_BASIC_TOURNAMENT_RINKEBY_ADDRESS = exports.CHEEZE_WIZARDS_BASIC_TOURNAMENT_ADDRESS = exports.CHEEZE_WIZARDS_GUILD_RINKEBY_ADDRESS = exports.CHEEZE_WIZARDS_GUILD_ADDRESS = exports.DEFAULT_WRAPPED_NFT_LIQUIDATION_UNISWAP_SLIPPAGE_IN_BASIS_POINTS = exports.UNISWAP_FACTORY_ADDRESS_RINKEBY = exports.UNISWAP_FACTORY_ADDRESS_MAINNET = exports.WRAPPED_NFT_LIQUIDATION_PROXY_ADDRESS_RINKEBY = exports.WRAPPED_NFT_LIQUIDATION_PROXY_ADDRESS_MAINNET = exports.WRAPPED_NFT_FACTORY_ADDRESS_RINKEBY = exports.WRAPPED_NFT_FACTORY_ADDRESS_MAINNET = exports.CK_RINKEBY_ADDRESS = exports.CK_ADDRESS = exports.ENJIN_LEGACY_ADDRESS = exports.ENJIN_ADDRESS = exports.MANA_ADDRESS = exports.ENJIN_COIN_ADDRESS = exports.MAX_UINT_256 = exports.INVERSE_BASIS_POINT = exports.OPENSEA_FEE_RECIPIENT = exports.OPENSEA_LEGACY_FEE_RECIPIENT = exports.NULL_BLOCK_HASH = exports.NULL_ADDRESS = exports.DEFAULT_GAS_INCREASE_FACTOR = void 0;
5
- exports.DEFAULT_ZONE_BY_NETWORK = exports.WETH_ADDRESS_BY_NETWORK = exports.CONDUIT_KEYS_TO_CONDUIT = exports.CROSS_CHAIN_DEFAULT_CONDUIT_KEY = exports.MERKLE_VALIDATOR_RINKEBY = exports.MERKLE_VALIDATOR_MAINNET = exports.EIP_712_WYVERN_DOMAIN_VERSION = void 0;
4
+ exports.DEFAULT_ZONE_BY_NETWORK = exports.WETH_ADDRESS_BY_NETWORK = exports.CONDUIT_KEYS_TO_CONDUIT = exports.CROSS_CHAIN_DEFAULT_CONDUIT_KEY = exports.MERKLE_VALIDATOR_RINKEBY = exports.MERKLE_VALIDATOR_MAINNET = exports.EIP_712_WYVERN_DOMAIN_VERSION = exports.EIP_712_WYVERN_DOMAIN_NAME = exports.EIP_712_ORDER_TYPES = exports.API_PATH = exports.ORDERBOOK_PATH = exports.RINKEBY_PROVIDER_URL = exports.MAINNET_PROVIDER_URL = exports.RPC_URL_PATH = exports.SITE_HOST_RINKEBY = exports.SITE_HOST_MAINNET = exports.API_BASE_RINKEBY = exports.API_BASE_MAINNET = exports.ORDER_MATCHING_LATENCY_SECONDS = exports.MAX_EXPIRATION_MONTHS = exports.MIN_EXPIRATION_MINUTES = exports.DEFAULT_MAX_BOUNTY = exports.OPENSEA_SELLER_BOUNTY_BASIS_POINTS = exports.DEFAULT_SELLER_FEE_BASIS_POINTS = exports.DEFAULT_BUYER_FEE_BASIS_POINTS = exports.DEFAULT_WRAPPED_NFT_LIQUIDATION_UNISWAP_SLIPPAGE_IN_BASIS_POINTS = exports.UNISWAP_FACTORY_ADDRESS_RINKEBY = exports.UNISWAP_FACTORY_ADDRESS_MAINNET = exports.WRAPPED_NFT_LIQUIDATION_PROXY_ADDRESS_RINKEBY = exports.WRAPPED_NFT_LIQUIDATION_PROXY_ADDRESS_MAINNET = exports.WRAPPED_NFT_FACTORY_ADDRESS_RINKEBY = exports.WRAPPED_NFT_FACTORY_ADDRESS_MAINNET = exports.CK_RINKEBY_ADDRESS = exports.CK_ADDRESS = exports.ENJIN_LEGACY_ADDRESS = exports.ENJIN_ADDRESS = exports.MANA_ADDRESS = exports.ENJIN_COIN_ADDRESS = exports.SHARED_STORE_FRONT_ADDRESS_RINKEBY = exports.SHARED_STORE_FRONT_ADDRESS_MAINNET = exports.SHARED_STOREFRONT_LAZY_MINT_ADAPTER_ADDRESS = exports.MAX_UINT_256 = exports.INVERSE_BASIS_POINT = exports.OPENSEA_FEE_RECIPIENT = exports.OPENSEA_LEGACY_FEE_RECIPIENT = exports.NULL_BLOCK_HASH = exports.NULL_ADDRESS = exports.DEFAULT_GAS_INCREASE_FACTOR = void 0;
6
5
  var wyvern_js_1 = require("wyvern-js");
7
6
  var types_1 = require("./types");
8
7
  exports.DEFAULT_GAS_INCREASE_FACTOR = 1.01;
9
8
  exports.NULL_ADDRESS = wyvern_js_1.WyvernProtocol.NULL_ADDRESS;
10
9
  exports.NULL_BLOCK_HASH = "0x0000000000000000000000000000000000000000000000000000000000000000";
11
10
  exports.OPENSEA_LEGACY_FEE_RECIPIENT = "0x5b3256965e7c3cf26e11fcaf296dfc8807c01073";
12
- exports.OPENSEA_FEE_RECIPIENT = "0x8de9c5a032463c561423387a9648c5c7bcc5bc90";
11
+ exports.OPENSEA_FEE_RECIPIENT = "0x0000a26b00c1f0df003000390027140000faa719";
13
12
  exports.INVERSE_BASIS_POINT = 10000; // 100 basis points per 1%
14
13
  exports.MAX_UINT_256 = wyvern_js_1.WyvernProtocol.MAX_UINT_256;
14
+ exports.SHARED_STOREFRONT_LAZY_MINT_ADAPTER_ADDRESS = "0xa604060890923ff400e8c6f5290461a83aedacec"; // Same address on mainnet and Rinkeby
15
+ exports.SHARED_STORE_FRONT_ADDRESS_MAINNET = "0x495f947276749ce646f68ac8c248420045cb7b5e";
16
+ exports.SHARED_STORE_FRONT_ADDRESS_RINKEBY = "0x88b48f654c30e99bc2e4a1559b4dcf1ad93fa656";
15
17
  exports.ENJIN_COIN_ADDRESS = "0xf629cbd94d3791c9250152bd8dfbdf380e2a3b9c";
16
18
  exports.MANA_ADDRESS = "0x0f5d2fb29fb7d3cfee444a200298f468908cc942";
17
19
  exports.ENJIN_ADDRESS = "0xfaaFDc07907ff5120a76b34b731b278c38d6043C";
@@ -25,16 +27,6 @@ exports.WRAPPED_NFT_LIQUIDATION_PROXY_ADDRESS_RINKEBY = "0xaa775Eb452353aB17f7cf
25
27
  exports.UNISWAP_FACTORY_ADDRESS_MAINNET = "0xc0a47dFe034B400B47bDaD5FecDa2621de6c4d95";
26
28
  exports.UNISWAP_FACTORY_ADDRESS_RINKEBY = "0xf5D915570BC477f9B8D6C0E980aA81757A3AaC36";
27
29
  exports.DEFAULT_WRAPPED_NFT_LIQUIDATION_UNISWAP_SLIPPAGE_IN_BASIS_POINTS = 1000;
28
- exports.CHEEZE_WIZARDS_GUILD_ADDRESS = wyvern_js_1.WyvernProtocol.NULL_ADDRESS; // TODO: Update this address once Dapper has deployed their mainnet contracts
29
- exports.CHEEZE_WIZARDS_GUILD_RINKEBY_ADDRESS = "0x095731b672b76b00A0b5cb9D8258CD3F6E976cB2";
30
- exports.CHEEZE_WIZARDS_BASIC_TOURNAMENT_ADDRESS = wyvern_js_1.WyvernProtocol.NULL_ADDRESS; // TODO: Update this address once Dapper has deployed their mainnet contracts
31
- exports.CHEEZE_WIZARDS_BASIC_TOURNAMENT_RINKEBY_ADDRESS = "0x8852f5F7d1BB867AAf8fdBB0851Aa431d1df5ca1";
32
- exports.DECENTRALAND_ESTATE_ADDRESS = "0x959e104e1a4db6317fa58f8295f586e1a978c297";
33
- exports.STATIC_CALL_TX_ORIGIN_ADDRESS = "0xbff6ade67e3717101dd8d0a7f3de1bf6623a2ba8";
34
- exports.STATIC_CALL_TX_ORIGIN_RINKEBY_ADDRESS = "0xe291abab95677bc652a44f973a8e06d48464e11c";
35
- exports.STATIC_CALL_CHEEZE_WIZARDS_ADDRESS = wyvern_js_1.WyvernProtocol.NULL_ADDRESS; // TODO: Deploy this address once Dapper has deployed their mainnet contracts
36
- exports.STATIC_CALL_CHEEZE_WIZARDS_RINKEBY_ADDRESS = "0x8a640bdf8886dd6ca1fad9f22382b50deeacde08";
37
- exports.STATIC_CALL_DECENTRALAND_ESTATES_ADDRESS = "0x93c3cd7ba04556d2e3d7b8106ce0f83e24a87a7e";
38
30
  exports.DEFAULT_BUYER_FEE_BASIS_POINTS = 0;
39
31
  exports.DEFAULT_SELLER_FEE_BASIS_POINTS = 250;
40
32
  exports.OPENSEA_SELLER_BOUNTY_BASIS_POINTS = 100;
@@ -42,8 +34,7 @@ exports.DEFAULT_MAX_BOUNTY = exports.DEFAULT_SELLER_FEE_BASIS_POINTS;
42
34
  exports.MIN_EXPIRATION_MINUTES = 15;
43
35
  exports.MAX_EXPIRATION_MONTHS = 3;
44
36
  exports.ORDER_MATCHING_LATENCY_SECONDS = 60 * 60 * 24 * 7;
45
- exports.SELL_ORDER_BATCH_SIZE = 3;
46
- exports.ORDERBOOK_VERSION = 1;
37
+ var ORDERBOOK_VERSION = 1;
47
38
  exports.API_BASE_MAINNET = "https://api.opensea.io";
48
39
  exports.API_BASE_RINKEBY = "https://testnets-api.opensea.io";
49
40
  exports.SITE_HOST_MAINNET = "https://opensea.io";
@@ -51,8 +42,8 @@ exports.SITE_HOST_RINKEBY = "https://rinkeby.opensea.io";
51
42
  exports.RPC_URL_PATH = "jsonrpc/v1/";
52
43
  exports.MAINNET_PROVIDER_URL = "".concat(exports.API_BASE_MAINNET, "/").concat(exports.RPC_URL_PATH);
53
44
  exports.RINKEBY_PROVIDER_URL = "".concat(exports.API_BASE_RINKEBY, "/").concat(exports.RPC_URL_PATH);
54
- exports.ORDERBOOK_PATH = "/wyvern/v".concat(exports.ORDERBOOK_VERSION);
55
- exports.API_PATH = "/api/v".concat(exports.ORDERBOOK_VERSION);
45
+ exports.ORDERBOOK_PATH = "/wyvern/v".concat(ORDERBOOK_VERSION);
46
+ exports.API_PATH = "/api/v".concat(ORDERBOOK_VERSION);
56
47
  exports.EIP_712_ORDER_TYPES = {
57
48
  EIP712Domain: [
58
49
  { name: "name", type: "string" },
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;;;AAAA,uCAA2C;AAC3C,iCAAkC;AAErB,QAAA,2BAA2B,GAAG,IAAI,CAAC;AACnC,QAAA,YAAY,GAAG,0BAAc,CAAC,YAAY,CAAC;AAC3C,QAAA,eAAe,GAC1B,oEAAoE,CAAC;AAC1D,QAAA,4BAA4B,GACvC,4CAA4C,CAAC;AAClC,QAAA,qBAAqB,GAChC,4CAA4C,CAAC;AAClC,QAAA,mBAAmB,GAAG,KAAM,CAAC,CAAC,0BAA0B;AACxD,QAAA,YAAY,GAAG,0BAAc,CAAC,YAAY,CAAC;AAC3C,QAAA,kB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