@opensea/seaport-js 4.0.5 → 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 (78) hide show
  1. package/README.md +2 -2
  2. package/lib/seaport.js +3 -3
  3. package/lib/seaport.js.map +1 -1
  4. package/lib/utils/eip712/defaults.js +0 -1
  5. package/lib/utils/eip712/defaults.js.map +1 -1
  6. package/lib/utils/fulfill.js +3 -1
  7. package/lib/utils/fulfill.js.map +1 -1
  8. package/lib/utils/order.js +3 -7
  9. package/lib/utils/order.js.map +1 -1
  10. package/package.json +25 -27
  11. package/src/artifacts/@rari-capital/solmate/src/tokens/ERC1155.sol/ERC1155.dbg.json +1 -1
  12. package/src/artifacts/@rari-capital/solmate/src/tokens/ERC1155.sol/ERC1155TokenReceiver.dbg.json +1 -1
  13. package/src/artifacts/@rari-capital/solmate/src/tokens/ERC20.sol/ERC20.dbg.json +1 -1
  14. package/src/artifacts/@rari-capital/solmate/src/tokens/ERC721.sol/ERC721.dbg.json +1 -1
  15. package/src/artifacts/@rari-capital/solmate/src/tokens/ERC721.sol/ERC721TokenReceiver.dbg.json +1 -1
  16. package/src/artifacts/build-info/{6e47d4a0e1c5dd2d6134126f692291ed.json → 90b7b45c3cdf389e1b80d1a2d21abb2f.json} +1 -1
  17. package/src/artifacts/seaport/contracts/Seaport.sol/Seaport.dbg.json +1 -1
  18. package/src/artifacts/seaport/contracts/conduit/Conduit.sol/LocalConduit.dbg.json +1 -1
  19. package/src/artifacts/seaport/contracts/conduit/ConduitController.sol/LocalConduitController.dbg.json +1 -1
  20. package/src/artifacts/seaport-core/src/conduit/Conduit.sol/Conduit.dbg.json +1 -1
  21. package/src/artifacts/seaport-core/src/conduit/ConduitController.sol/ConduitController.dbg.json +1 -1
  22. package/src/artifacts/seaport-core/src/lib/AmountDeriver.sol/AmountDeriver.dbg.json +1 -1
  23. package/src/artifacts/seaport-core/src/lib/Assertions.sol/Assertions.dbg.json +1 -1
  24. package/src/artifacts/seaport-core/src/lib/BasicOrderFulfiller.sol/BasicOrderFulfiller.dbg.json +1 -1
  25. package/src/artifacts/seaport-core/src/lib/Consideration.sol/Consideration.dbg.json +1 -1
  26. package/src/artifacts/seaport-core/src/lib/ConsiderationBase.sol/ConsiderationBase.dbg.json +1 -1
  27. package/src/artifacts/seaport-core/src/lib/ConsiderationDecoder.sol/ConsiderationDecoder.dbg.json +1 -1
  28. package/src/artifacts/seaport-core/src/lib/ConsiderationEncoder.sol/ConsiderationEncoder.dbg.json +1 -1
  29. package/src/artifacts/seaport-core/src/lib/CounterManager.sol/CounterManager.dbg.json +1 -1
  30. package/src/artifacts/seaport-core/src/lib/CriteriaResolution.sol/CriteriaResolution.dbg.json +1 -1
  31. package/src/artifacts/seaport-core/src/lib/Executor.sol/Executor.dbg.json +1 -1
  32. package/src/artifacts/seaport-core/src/lib/FulfillmentApplier.sol/FulfillmentApplier.dbg.json +1 -1
  33. package/src/artifacts/seaport-core/src/lib/GettersAndDerivers.sol/GettersAndDerivers.dbg.json +1 -1
  34. package/src/artifacts/seaport-core/src/lib/LowLevelHelpers.sol/LowLevelHelpers.dbg.json +1 -1
  35. package/src/artifacts/seaport-core/src/lib/OrderCombiner.sol/OrderCombiner.dbg.json +1 -1
  36. package/src/artifacts/seaport-core/src/lib/OrderFulfiller.sol/OrderFulfiller.dbg.json +1 -1
  37. package/src/artifacts/seaport-core/src/lib/OrderValidator.sol/OrderValidator.dbg.json +1 -1
  38. package/src/artifacts/seaport-core/src/lib/ReentrancyGuard.sol/ReentrancyGuard.dbg.json +1 -1
  39. package/src/artifacts/seaport-core/src/lib/SignatureVerification.sol/SignatureVerification.dbg.json +1 -1
  40. package/src/artifacts/seaport-core/src/lib/TokenTransferrer.sol/TokenTransferrer.dbg.json +1 -1
  41. package/src/artifacts/seaport-core/src/lib/Verifiers.sol/Verifiers.dbg.json +1 -1
  42. package/src/artifacts/seaport-core/src/lib/ZoneInteraction.sol/ZoneInteraction.dbg.json +1 -1
  43. package/src/artifacts/seaport-types/src/helpers/PointerLibraries.sol/CalldataPointerLib.dbg.json +1 -1
  44. package/src/artifacts/seaport-types/src/helpers/PointerLibraries.sol/CalldataReaders.dbg.json +1 -1
  45. package/src/artifacts/seaport-types/src/helpers/PointerLibraries.sol/MemoryPointerLib.dbg.json +1 -1
  46. package/src/artifacts/seaport-types/src/helpers/PointerLibraries.sol/MemoryReaders.dbg.json +1 -1
  47. package/src/artifacts/seaport-types/src/helpers/PointerLibraries.sol/MemoryWriters.dbg.json +1 -1
  48. package/src/artifacts/seaport-types/src/helpers/PointerLibraries.sol/ReturndataPointerLib.dbg.json +1 -1
  49. package/src/artifacts/seaport-types/src/helpers/PointerLibraries.sol/ReturndataReaders.dbg.json +1 -1
  50. package/src/artifacts/seaport-types/src/interfaces/AmountDerivationErrors.sol/AmountDerivationErrors.dbg.json +1 -1
  51. package/src/artifacts/seaport-types/src/interfaces/ConduitControllerInterface.sol/ConduitControllerInterface.dbg.json +1 -1
  52. package/src/artifacts/seaport-types/src/interfaces/ConduitInterface.sol/ConduitInterface.dbg.json +1 -1
  53. package/src/artifacts/seaport-types/src/interfaces/ConsiderationEventsAndErrors.sol/ConsiderationEventsAndErrors.dbg.json +1 -1
  54. package/src/artifacts/seaport-types/src/interfaces/ConsiderationInterface.sol/ConsiderationInterface.dbg.json +1 -1
  55. package/src/artifacts/seaport-types/src/interfaces/CriteriaResolutionErrors.sol/CriteriaResolutionErrors.dbg.json +1 -1
  56. package/src/artifacts/seaport-types/src/interfaces/FulfillmentApplicationErrors.sol/FulfillmentApplicationErrors.dbg.json +1 -1
  57. package/src/artifacts/seaport-types/src/interfaces/ReentrancyErrors.sol/ReentrancyErrors.dbg.json +1 -1
  58. package/src/artifacts/seaport-types/src/interfaces/SignatureVerificationErrors.sol/SignatureVerificationErrors.dbg.json +1 -1
  59. package/src/artifacts/seaport-types/src/interfaces/TokenTransferrerErrors.sol/TokenTransferrerErrors.dbg.json +1 -1
  60. package/src/artifacts/seaport-types/src/interfaces/ZoneInteractionErrors.sol/ZoneInteractionErrors.dbg.json +1 -1
  61. package/src/artifacts/seaport-types/src/lib/ConsiderationStructs.sol/StructPointers.dbg.json +1 -1
  62. package/src/artifacts/src/contracts/DomainRegistry.sol/DomainRegistry.dbg.json +1 -1
  63. package/src/artifacts/src/contracts/DomainRegistry.sol/DomainRegistryInterface.dbg.json +1 -1
  64. package/src/artifacts/src/contracts/test/TestERC1155.sol/TestERC1155.dbg.json +1 -1
  65. package/src/artifacts/src/contracts/test/TestERC1271Wallet.sol/IERC20Approve.dbg.json +1 -1
  66. package/src/artifacts/src/contracts/test/TestERC1271Wallet.sol/TestERC1271Wallet.dbg.json +1 -1
  67. package/src/artifacts/src/contracts/test/TestERC20.sol/TestERC20.dbg.json +1 -1
  68. package/src/artifacts/src/contracts/test/TestERC20USDC.sol/TestERC20USDC.dbg.json +1 -1
  69. package/src/artifacts/src/contracts/test/TestERC721.sol/TestERC721.dbg.json +1 -1
  70. package/src/seaport.ts +3 -3
  71. package/src/utils/eip712/defaults.ts +0 -3
  72. package/src/utils/fulfill.ts +3 -1
  73. package/src/utils/order.ts +4 -9
  74. package/src/utils/usecase.ts +1 -1
  75. package/lib/abi/Seaport_v1_5.d.ts +0 -129
  76. package/lib/abi/Seaport_v1_5.js +0 -2818
  77. package/lib/abi/Seaport_v1_5.js.map +0 -1
  78. package/src/artifacts/build-info/01cac65104ca66dff234726be0e2ef20.json +0 -1
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/01cac65104ca66dff234726be0e2ef20.json"
3
+ "buildInfo": "../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/01cac65104ca66dff234726be0e2ef20.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/01cac65104ca66dff234726be0e2ef20.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/01cac65104ca66dff234726be0e2ef20.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/01cac65104ca66dff234726be0e2ef20.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/6e47d4a0e1c5dd2d6134126f692291ed.json"
3
+ "buildInfo": "../../../../build-info/90b7b45c3cdf389e1b80d1a2d21abb2f.json"
4
4
  }
package/src/seaport.ts CHANGED
@@ -342,14 +342,14 @@ export class Seaport {
342
342
  const considerationItemsWithFees = [
343
343
  ...deductFees(considerationItems, fees),
344
344
  ...(currencies.length
345
- ? fees?.map((fee) =>
345
+ ? (fees?.map((fee) =>
346
346
  feeToConsiderationItem({
347
347
  fee,
348
348
  token: currencies[0].token,
349
349
  baseAmount: totalCurrencyAmount.startAmount,
350
350
  baseEndAmount: totalCurrencyAmount.endAmount,
351
351
  }),
352
- ) ?? []
352
+ ) ?? [])
353
353
  : []),
354
354
  ];
355
355
 
@@ -1152,7 +1152,7 @@ export class Seaport {
1152
1152
  public async getDomains(tag: string): Promise<string[]> {
1153
1153
  try {
1154
1154
  return this.domainRegistry.getDomains(tag);
1155
- } catch (error) {
1155
+ } catch {
1156
1156
  // If there are too many domains set under the tag, it will revert when trying to return in memory.
1157
1157
  // This fallback will manually query each index to get the full list of domains.
1158
1158
  const totalDomains = await this.domainRegistry.getNumberOfDomains(tag);
@@ -52,7 +52,6 @@ export class DefaultGetter<Types extends EIP712TypeDefinitions> {
52
52
  }
53
53
  }
54
54
 
55
- /* eslint-disable no-dupe-class-members */
56
55
  static from<Types extends EIP712TypeDefinitions>(
57
56
  types: Types,
58
57
  ): DefaultMap<Types>;
@@ -70,8 +69,6 @@ export class DefaultGetter<Types extends EIP712TypeDefinitions> {
70
69
  if (type) return defaultValues[type];
71
70
  return defaultValues;
72
71
  }
73
- /* eslint-enable no-dupe-class-members */
74
-
75
72
  getDefaultValue(type: string): any {
76
73
  if (this.defaultValues[type]) return this.defaultValues[type];
77
74
  // Basic type (address, bool, uint256, etc)
@@ -383,7 +383,9 @@ export function fulfillStandardOrder(
383
383
  let adjustedTips: ConsiderationItem[] = [];
384
384
 
385
385
  if (tips.length > 0) {
386
- adjustedTips = mapTipAmountsFromUnitsToFill(tips, unitsToFill, totalSize);
386
+ adjustedTips = unitsToFill
387
+ ? mapTipAmountsFromUnitsToFill(tips, unitsToFill, totalSize)
388
+ : mapTipAmountsFromFilledStatus(tips, totalFilled, totalSize);
387
389
  }
388
390
 
389
391
  const {
@@ -101,9 +101,9 @@ export const mapInputItemToOfferItem = (item: CreateInputItem): OfferItem => {
101
101
  token: item.token,
102
102
  // prevent undefined for fungible items
103
103
  identifierOrCriteria: item.identifier ?? "0",
104
- // @ts-ignore
104
+ // @ts-expect-error - amount exists on fungible items
105
105
  startAmount: item.amount,
106
- // @ts-ignore
106
+ // @ts-expect-error - amount/endAmount exists on fungible items
107
107
  endAmount: item.endAmount ?? item.amount ?? "1",
108
108
  };
109
109
  }
@@ -145,17 +145,12 @@ export const areAllCurrenciesSame = ({
145
145
  };
146
146
 
147
147
  export const totalItemsAmount = <T extends OfferItem>(items: T[]) => {
148
- const initialValues = {
149
- startAmount: 0n,
150
- endAmount: 0n,
151
- };
152
-
153
148
  return items
154
149
  .map(({ startAmount, endAmount }) => ({
155
150
  startAmount,
156
151
  endAmount,
157
152
  }))
158
- .reduce<typeof initialValues>(
153
+ .reduce<{ startAmount: bigint; endAmount: bigint }>(
159
154
  (
160
155
  { startAmount: totalStartAmount, endAmount: totalEndAmount },
161
156
  { startAmount, endAmount },
@@ -230,7 +225,7 @@ export const mapOrderAmountsFromUnitsToFill = (
230
225
  const unitsToFillBn = BigInt(unitsToFill);
231
226
 
232
227
  if (unitsToFillBn <= 0n) {
233
- throw new Error("Units to fill must be greater than 1");
228
+ throw new Error("Units to fill must be greater than 0");
234
229
  }
235
230
 
236
231
  const maxUnits = getMaximumSizeForOrder(order);
@@ -45,7 +45,7 @@ export const executeAllActions = async <
45
45
  };
46
46
 
47
47
  const instanceOfOverrides = <T extends Overrides>(
48
- obj: Object | undefined,
48
+ obj: object | undefined,
49
49
  ): obj is T => {
50
50
  const validKeys = [
51
51
  "gasLimit",
@@ -1,129 +0,0 @@
1
- declare const SeaportABIv15: ({
2
- inputs: {
3
- internalType: string;
4
- name: string;
5
- type: string;
6
- }[];
7
- stateMutability: string;
8
- type: string;
9
- name?: undefined;
10
- anonymous?: undefined;
11
- outputs?: undefined;
12
- } | {
13
- inputs: {
14
- internalType: string;
15
- name: string;
16
- type: string;
17
- }[];
18
- name: string;
19
- type: string;
20
- stateMutability?: undefined;
21
- anonymous?: undefined;
22
- outputs?: undefined;
23
- } | {
24
- anonymous: boolean;
25
- inputs: ({
26
- indexed: boolean;
27
- internalType: string;
28
- name: string;
29
- type: string;
30
- components?: undefined;
31
- } | {
32
- components: ({
33
- internalType: string;
34
- name: string;
35
- type: string;
36
- components?: undefined;
37
- } | {
38
- components: {
39
- internalType: string;
40
- name: string;
41
- type: string;
42
- }[];
43
- internalType: string;
44
- name: string;
45
- type: string;
46
- })[];
47
- indexed: boolean;
48
- internalType: string;
49
- name: string;
50
- type: string;
51
- })[];
52
- name: string;
53
- type: string;
54
- stateMutability?: undefined;
55
- outputs?: undefined;
56
- } | {
57
- inputs: ({
58
- components: ({
59
- components: ({
60
- internalType: string;
61
- name: string;
62
- type: string;
63
- components?: undefined;
64
- } | {
65
- components: {
66
- internalType: string;
67
- name: string;
68
- type: string;
69
- }[];
70
- internalType: string;
71
- name: string;
72
- type: string;
73
- })[];
74
- internalType: string;
75
- name: string;
76
- type: string;
77
- } | {
78
- internalType: string;
79
- name: string;
80
- type: string;
81
- components?: undefined;
82
- })[];
83
- internalType: string;
84
- name: string;
85
- type: string;
86
- } | {
87
- internalType: string;
88
- name: string;
89
- type: string;
90
- components?: undefined;
91
- })[];
92
- name: string;
93
- outputs: ({
94
- internalType: string;
95
- name: string;
96
- type: string;
97
- components?: undefined;
98
- } | {
99
- components: ({
100
- components: {
101
- internalType: string;
102
- name: string;
103
- type: string;
104
- }[];
105
- internalType: string;
106
- name: string;
107
- type: string;
108
- } | {
109
- internalType: string;
110
- name: string;
111
- type: string;
112
- components?: undefined;
113
- })[];
114
- internalType: string;
115
- name: string;
116
- type: string;
117
- })[];
118
- stateMutability: string;
119
- type: string;
120
- anonymous?: undefined;
121
- } | {
122
- stateMutability: string;
123
- type: string;
124
- inputs?: undefined;
125
- name?: undefined;
126
- anonymous?: undefined;
127
- outputs?: undefined;
128
- })[];
129
- export { SeaportABIv15 };