opensea-js 4.0.6 → 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.
Files changed (37) hide show
  1. package/README.md +0 -5
  2. package/lib/api.js +2 -2
  3. package/lib/constants.d.ts +1 -1
  4. package/lib/constants.js +1 -1
  5. package/lib/seaport.d.ts +824 -0
  6. package/lib/seaport.js +3762 -0
  7. package/lib/seaport.js.map +1 -0
  8. package/package.json +1 -1
  9. package/lib/__tests__/api/api.d.ts +0 -1
  10. package/lib/__tests__/api/api.js +0 -173
  11. package/lib/__tests__/api/api.js.map +0 -1
  12. package/lib/__tests__/constants.d.ts +0 -44
  13. package/lib/__tests__/constants.js +0 -58
  14. package/lib/__tests__/constants.js.map +0 -1
  15. package/lib/__tests__/fixtures/orders.json +0 -248
  16. package/lib/__tests__/sdk/fees.d.ts +0 -1
  17. package/lib/__tests__/sdk/fees.js +0 -259
  18. package/lib/__tests__/sdk/fees.js.map +0 -1
  19. package/lib/__tests__/sdk/getOrders.d.ts +0 -1
  20. package/lib/__tests__/sdk/getOrders.js +0 -111
  21. package/lib/__tests__/sdk/getOrders.js.map +0 -1
  22. package/lib/__tests__/sdk/misc.d.ts +0 -1
  23. package/lib/__tests__/sdk/misc.js +0 -175
  24. package/lib/__tests__/sdk/misc.js.map +0 -1
  25. package/lib/__tests__/sdk/orders.d.ts +0 -1
  26. package/lib/__tests__/sdk/orders.js +0 -125
  27. package/lib/__tests__/sdk/orders.js.map +0 -1
  28. package/lib/__tests__/sdk/ownersAndTransfers.d.ts +0 -1
  29. package/lib/__tests__/sdk/ownersAndTransfers.js +0 -464
  30. package/lib/__tests__/sdk/ownersAndTransfers.js.map +0 -1
  31. package/lib/__tests__/support/setup.d.ts +0 -1
  32. package/lib/__tests__/support/setup.js +0 -10
  33. package/lib/__tests__/support/setup.js.map +0 -1
  34. package/lib/__tests__/utils.d.ts +0 -2
  35. package/lib/__tests__/utils.js +0 -11
  36. package/lib/__tests__/utils.js.map +0 -1
  37. package/lib/tsconfig.tsbuildinfo +0 -1
package/README.md CHANGED
@@ -502,7 +502,6 @@ const order = await openseaSDK.api.getOrders({
502
502
 
503
503
  - MANA, Decentraland's currency: https://etherscan.io/token/0x0f5d2fb29fb7d3cfee444a200298f468908cc942
504
504
  - DAI, Maker's stablecoin, pegged to $1 USD: https://etherscan.io/token/0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359
505
- - 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)
506
505
 
507
506
  ### Private Auctions
508
507
 
@@ -607,8 +606,6 @@ To remove all listeners and start over, just call `openseaSDK.removeAllListeners
607
606
 
608
607
  Auto-generated documentation for each export is available [here](https://projectopensea.github.io/opensea-js/).
609
608
 
610
- 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.
611
-
612
609
  ### Example Code
613
610
 
614
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.
@@ -671,8 +668,6 @@ Contributions welcome! Please use GitHub issues for suggestions/concerns - if yo
671
668
 
672
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.
673
670
 
674
- - 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.
675
-
676
671
  ## Testing your branch locally
677
672
 
678
673
  ```sh
package/lib/api.js CHANGED
@@ -483,10 +483,10 @@ var OpenSeaAPI = /** @class */ (function () {
483
483
  errorMessage = "Not found. Full message was '".concat(JSON.stringify(result), "'");
484
484
  break;
485
485
  case 500:
486
- 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));
487
487
  break;
488
488
  case 503:
489
- 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));
490
490
  break;
491
491
  default:
492
492
  errorMessage = "Message: ".concat(JSON.stringify(result));
@@ -2,7 +2,7 @@ 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
8
  export declare const SHARED_STOREFRONT_LAZY_MINT_ADAPTER_ADDRESS = "0xa604060890923ff400e8c6f5290461a83aedacec";
package/lib/constants.js CHANGED
@@ -8,7 +8,7 @@ exports.DEFAULT_GAS_INCREASE_FACTOR = 1.01;
8
8
  exports.NULL_ADDRESS = wyvern_js_1.WyvernProtocol.NULL_ADDRESS;
9
9
  exports.NULL_BLOCK_HASH = "0x0000000000000000000000000000000000000000000000000000000000000000";
10
10
  exports.OPENSEA_LEGACY_FEE_RECIPIENT = "0x5b3256965e7c3cf26e11fcaf296dfc8807c01073";
11
- exports.OPENSEA_FEE_RECIPIENT = "0x8de9c5a032463c561423387a9648c5c7bcc5bc90";
11
+ exports.OPENSEA_FEE_RECIPIENT = "0x0000a26b00c1f0df003000390027140000faa719";
12
12
  exports.INVERSE_BASIS_POINT = 10000; // 100 basis points per 1%
13
13
  exports.MAX_UINT_256 = wyvern_js_1.WyvernProtocol.MAX_UINT_256;
14
14
  exports.SHARED_STOREFRONT_LAZY_MINT_ADAPTER_ADDRESS = "0xa604060890923ff400e8c6f5290461a83aedacec"; // Same address on mainnet and Rinkeby