@opensea/seaport-js 2.0.8 → 3.0.1
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 +7 -7
- package/lib/abi/Seaport_v1_5.d.ts +129 -0
- package/lib/abi/Seaport_v1_5.js +2818 -0
- package/lib/abi/Seaport_v1_5.js.map +1 -0
- package/lib/constants.d.ts +6 -8
- package/lib/constants.js +4 -5
- package/lib/constants.js.map +1 -1
- package/lib/seaport.d.ts +17 -16
- package/lib/seaport.js +371 -417
- package/lib/seaport.js.map +1 -1
- package/lib/typechain-types/@rari-capital/solmate/src/tokens/ERC1155.sol/ERC1155.d.ts +216 -169
- package/lib/typechain-types/@rari-capital/solmate/src/tokens/ERC1155.sol/ERC1155TokenReceiver.d.ts +60 -59
- package/lib/typechain-types/@rari-capital/solmate/src/tokens/ERC20.d.ts +149 -170
- package/lib/typechain-types/@rari-capital/solmate/src/tokens/ERC721.sol/ERC721.d.ts +183 -199
- package/lib/typechain-types/@rari-capital/solmate/src/tokens/ERC721.sol/ERC721TokenReceiver.d.ts +33 -44
- package/lib/typechain-types/common.d.ts +40 -11
- package/lib/typechain-types/factories/@rari-capital/solmate/src/tokens/ERC1155.sol/ERC1155TokenReceiver__factory.d.ts +2 -3
- package/lib/typechain-types/factories/@rari-capital/solmate/src/tokens/ERC1155.sol/ERC1155TokenReceiver__factory.js +3 -3
- package/lib/typechain-types/factories/@rari-capital/solmate/src/tokens/ERC1155.sol/ERC1155TokenReceiver__factory.js.map +1 -1
- package/lib/typechain-types/factories/@rari-capital/solmate/src/tokens/ERC1155.sol/ERC1155__factory.d.ts +2 -3
- package/lib/typechain-types/factories/@rari-capital/solmate/src/tokens/ERC1155.sol/ERC1155__factory.js +3 -3
- package/lib/typechain-types/factories/@rari-capital/solmate/src/tokens/ERC1155.sol/ERC1155__factory.js.map +1 -1
- package/lib/typechain-types/factories/@rari-capital/solmate/src/tokens/ERC20__factory.d.ts +2 -3
- package/lib/typechain-types/factories/@rari-capital/solmate/src/tokens/ERC20__factory.js +3 -3
- package/lib/typechain-types/factories/@rari-capital/solmate/src/tokens/ERC20__factory.js.map +1 -1
- package/lib/typechain-types/factories/@rari-capital/solmate/src/tokens/ERC721.sol/ERC721TokenReceiver__factory.d.ts +2 -3
- package/lib/typechain-types/factories/@rari-capital/solmate/src/tokens/ERC721.sol/ERC721TokenReceiver__factory.js +3 -3
- package/lib/typechain-types/factories/@rari-capital/solmate/src/tokens/ERC721.sol/ERC721TokenReceiver__factory.js.map +1 -1
- package/lib/typechain-types/factories/@rari-capital/solmate/src/tokens/ERC721.sol/ERC721__factory.d.ts +2 -3
- package/lib/typechain-types/factories/@rari-capital/solmate/src/tokens/ERC721.sol/ERC721__factory.js +3 -3
- package/lib/typechain-types/factories/@rari-capital/solmate/src/tokens/ERC721.sol/ERC721__factory.js.map +1 -1
- package/lib/typechain-types/factories/index.d.ts +0 -4
- package/lib/typechain-types/factories/index.js +1 -5
- package/lib/typechain-types/factories/index.js.map +1 -1
- package/lib/typechain-types/factories/seaport_v1_5/contracts/Seaport__factory.d.ts +12 -10
- package/lib/typechain-types/factories/seaport_v1_5/contracts/Seaport__factory.js +8 -11
- package/lib/typechain-types/factories/seaport_v1_5/contracts/Seaport__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport_v1_5/contracts/conduit/ConduitController__factory.d.ts +351 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/conduit/ConduitController__factory.js +475 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/conduit/ConduitController__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/conduit/Conduit__factory.d.ts +317 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/conduit/Conduit__factory.js +424 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/conduit/Conduit__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/conduit/index.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/index.d.ts +3 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/index.js +4 -1
- package/lib/typechain-types/factories/seaport_v1_5/contracts/index.js.map +1 -1
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/AmountDerivationErrors__factory.d.ts +11 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/AmountDerivationErrors__factory.js +25 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/AmountDerivationErrors__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/ConduitControllerInterface__factory.d.ts +332 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/ConduitControllerInterface__factory.js +450 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/ConduitControllerInterface__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/ConduitInterface__factory.d.ts +202 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/ConduitInterface__factory.js +274 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/ConduitInterface__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/ConsiderationEventsAndErrors__factory.d.ts +359 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/ConsiderationEventsAndErrors__factory.js +473 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/ConsiderationEventsAndErrors__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/ConsiderationInterface__factory.d.ts +1704 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/ConsiderationInterface__factory.js +2208 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/ConsiderationInterface__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/CriteriaResolutionErrors__factory.d.ts +55 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/CriteriaResolutionErrors__factory.js +83 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/CriteriaResolutionErrors__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/FulfillmentApplicationErrors__factory.d.ts +31 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/FulfillmentApplicationErrors__factory.js +52 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/FulfillmentApplicationErrors__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/ReentrancyErrors__factory.d.ts +11 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/ReentrancyErrors__factory.js +25 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/ReentrancyErrors__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/SignatureVerificationErrors__factory.d.ts +27 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/SignatureVerificationErrors__factory.js +46 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/SignatureVerificationErrors__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/TokenTransferrerErrors__factory.d.ts +103 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/TokenTransferrerErrors__factory.js +145 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/TokenTransferrerErrors__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/ZoneInteractionErrors__factory.d.ts +23 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/ZoneInteractionErrors__factory.js +42 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/ZoneInteractionErrors__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/interfaces/index.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/AmountDeriver__factory.d.ts +26 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/AmountDeriver__factory.js +45 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/AmountDeriver__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/Assertions__factory.d.ts +482 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/Assertions__factory.js +634 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/Assertions__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/BasicOrderFulfiller__factory.d.ts +518 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/BasicOrderFulfiller__factory.js +682 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/BasicOrderFulfiller__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/ConsiderationBase__factory.d.ts +382 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/ConsiderationBase__factory.js +504 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/ConsiderationBase__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/Consideration__factory.d.ts +2294 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/Consideration__factory.js +2974 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/Consideration__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/CounterManager__factory.d.ts +378 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/CounterManager__factory.js +498 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/CounterManager__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/CriteriaResolution__factory.d.ts +70 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/CriteriaResolution__factory.js +103 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/CriteriaResolution__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/Executor__factory.d.ts +502 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/Executor__factory.js +660 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/Executor__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/FulfillmentApplier__factory.d.ts +46 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/FulfillmentApplier__factory.js +72 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/FulfillmentApplier__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/GettersAndDerivers__factory.d.ts +382 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/GettersAndDerivers__factory.js +504 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/GettersAndDerivers__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/OrderCombiner__factory.d.ts +594 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/OrderCombiner__factory.js +782 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/OrderCombiner__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/OrderFulfiller__factory.d.ts +570 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/OrderFulfiller__factory.js +750 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/OrderFulfiller__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/OrderValidator__factory.d.ts +518 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/OrderValidator__factory.js +682 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/OrderValidator__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/ReentrancyGuard__factory.d.ts +30 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/ReentrancyGuard__factory.js +50 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/ReentrancyGuard__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/SignatureVerification__factory.d.ts +42 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/SignatureVerification__factory.js +66 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/SignatureVerification__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/TokenTransferrer__factory.d.ts +118 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/TokenTransferrer__factory.js +165 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/TokenTransferrer__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/Verifiers__factory.d.ts +502 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/Verifiers__factory.js +660 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/Verifiers__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/ZoneInteraction__factory.d.ts +38 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/ZoneInteraction__factory.js +62 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/ZoneInteraction__factory.js.map +1 -0
- package/lib/typechain-types/factories/seaport_v1_5/contracts/lib/index.js.map +1 -0
- package/lib/typechain-types/factories/src/contracts/DomainRegistry.sol/DomainRegistryInterface__factory.d.ts +111 -0
- package/lib/typechain-types/factories/src/contracts/DomainRegistry.sol/DomainRegistryInterface__factory.js +158 -0
- package/lib/typechain-types/factories/src/contracts/DomainRegistry.sol/DomainRegistryInterface__factory.js.map +1 -0
- package/lib/typechain-types/factories/src/contracts/DomainRegistry.sol/DomainRegistry__factory.d.ts +126 -0
- package/lib/typechain-types/factories/src/contracts/DomainRegistry.sol/DomainRegistry__factory.js +178 -0
- package/lib/typechain-types/factories/src/contracts/DomainRegistry.sol/DomainRegistry__factory.js.map +1 -0
- package/lib/typechain-types/factories/src/contracts/DomainRegistry.sol/index.d.ts +2 -0
- package/lib/typechain-types/factories/src/contracts/DomainRegistry.sol/index.js +11 -0
- package/lib/typechain-types/factories/src/contracts/DomainRegistry.sol/index.js.map +1 -0
- package/lib/typechain-types/factories/src/contracts/index.d.ts +1 -0
- package/lib/typechain-types/factories/src/contracts/index.js +2 -1
- package/lib/typechain-types/factories/src/contracts/index.js.map +1 -1
- package/lib/typechain-types/factories/src/contracts/test/TestERC1155__factory.d.ts +11 -9
- package/lib/typechain-types/factories/src/contracts/test/TestERC1155__factory.js +7 -10
- package/lib/typechain-types/factories/src/contracts/test/TestERC1155__factory.js.map +1 -1
- package/lib/typechain-types/factories/src/contracts/test/TestERC1271Wallet.sol/IERC20Approve__factory.d.ts +2 -3
- package/lib/typechain-types/factories/src/contracts/test/TestERC1271Wallet.sol/IERC20Approve__factory.js +3 -3
- package/lib/typechain-types/factories/src/contracts/test/TestERC1271Wallet.sol/IERC20Approve__factory.js.map +1 -1
- package/lib/typechain-types/factories/src/contracts/test/TestERC1271Wallet.sol/TestERC1271Wallet__factory.d.ts +17 -15
- package/lib/typechain-types/factories/src/contracts/test/TestERC1271Wallet.sol/TestERC1271Wallet__factory.js +13 -16
- package/lib/typechain-types/factories/src/contracts/test/TestERC1271Wallet.sol/TestERC1271Wallet__factory.js.map +1 -1
- package/lib/typechain-types/factories/src/contracts/test/TestERC20USDC__factory.d.ts +11 -9
- package/lib/typechain-types/factories/src/contracts/test/TestERC20USDC__factory.js +7 -10
- package/lib/typechain-types/factories/src/contracts/test/TestERC20USDC__factory.js.map +1 -1
- package/lib/typechain-types/factories/src/contracts/test/TestERC20__factory.d.ts +11 -9
- package/lib/typechain-types/factories/src/contracts/test/TestERC20__factory.js +7 -10
- package/lib/typechain-types/factories/src/contracts/test/TestERC20__factory.js.map +1 -1
- package/lib/typechain-types/factories/src/contracts/test/TestERC721__factory.d.ts +11 -9
- package/lib/typechain-types/factories/src/contracts/test/TestERC721__factory.js +7 -10
- package/lib/typechain-types/factories/src/contracts/test/TestERC721__factory.js.map +1 -1
- package/lib/typechain-types/index.d.ts +68 -80
- package/lib/typechain-types/index.js +49 -53
- package/lib/typechain-types/index.js.map +1 -1
- package/lib/typechain-types/seaport_v1_5/contracts/Seaport.d.ts +448 -462
- package/lib/typechain-types/seaport_v1_5/contracts/conduit/Conduit.d.ts +133 -0
- package/lib/typechain-types/seaport_v1_5/contracts/conduit/Conduit.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/conduit/ConduitController.d.ts +226 -0
- package/lib/typechain-types/seaport_v1_5/contracts/conduit/ConduitController.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/conduit/index.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/index.d.ts +6 -0
- package/lib/typechain-types/seaport_v1_5/contracts/interfaces/AmountDerivationErrors.d.ts +20 -0
- package/lib/typechain-types/seaport_v1_5/contracts/interfaces/AmountDerivationErrors.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/interfaces/ConduitControllerInterface.d.ts +226 -0
- package/lib/typechain-types/seaport_v1_5/contracts/interfaces/ConduitControllerInterface.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/interfaces/ConduitInterface.d.ts +133 -0
- package/lib/typechain-types/seaport_v1_5/contracts/interfaces/ConduitInterface.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/interfaces/ConsiderationEventsAndErrors.d.ts +243 -0
- package/lib/typechain-types/seaport_v1_5/contracts/interfaces/ConsiderationEventsAndErrors.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/interfaces/ConsiderationInterface.d.ts +603 -0
- package/lib/typechain-types/seaport_v1_5/contracts/interfaces/ConsiderationInterface.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/interfaces/CriteriaResolutionErrors.d.ts +20 -0
- package/lib/typechain-types/seaport_v1_5/contracts/interfaces/CriteriaResolutionErrors.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/interfaces/FulfillmentApplicationErrors.d.ts +20 -0
- package/lib/typechain-types/seaport_v1_5/contracts/interfaces/FulfillmentApplicationErrors.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/interfaces/ReentrancyErrors.d.ts +20 -0
- package/lib/typechain-types/seaport_v1_5/contracts/interfaces/ReentrancyErrors.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/interfaces/SignatureVerificationErrors.d.ts +20 -0
- package/lib/typechain-types/seaport_v1_5/contracts/interfaces/SignatureVerificationErrors.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/interfaces/TokenTransferrerErrors.d.ts +20 -0
- package/lib/typechain-types/seaport_v1_5/contracts/interfaces/TokenTransferrerErrors.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/interfaces/ZoneInteractionErrors.d.ts +20 -0
- package/lib/typechain-types/seaport_v1_5/contracts/interfaces/ZoneInteractionErrors.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/interfaces/index.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/AmountDeriver.d.ts +20 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/AmountDeriver.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/Assertions.d.ts +243 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/Assertions.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/BasicOrderFulfiller.d.ts +243 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/BasicOrderFulfiller.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/Consideration.d.ts +697 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/Consideration.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/ConsiderationBase.d.ts +243 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/ConsiderationBase.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/CounterManager.d.ts +243 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/CounterManager.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/CriteriaResolution.d.ts +20 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/CriteriaResolution.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/Executor.d.ts +243 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/Executor.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/FulfillmentApplier.d.ts +20 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/FulfillmentApplier.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/GettersAndDerivers.d.ts +243 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/GettersAndDerivers.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/OrderCombiner.d.ts +243 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/OrderCombiner.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/OrderFulfiller.d.ts +243 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/OrderFulfiller.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/OrderValidator.d.ts +243 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/OrderValidator.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/ReentrancyGuard.d.ts +20 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/ReentrancyGuard.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/SignatureVerification.d.ts +20 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/SignatureVerification.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/TokenTransferrer.d.ts +20 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/TokenTransferrer.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/Verifiers.d.ts +243 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/Verifiers.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/ZoneInteraction.d.ts +20 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/ZoneInteraction.js.map +1 -0
- package/lib/typechain-types/seaport_v1_5/contracts/lib/index.js.map +1 -0
- package/lib/typechain-types/src/contracts/DomainRegistry.sol/DomainRegistry.d.ts +69 -0
- package/lib/typechain-types/src/contracts/DomainRegistry.sol/DomainRegistry.js.map +1 -0
- package/lib/typechain-types/src/contracts/DomainRegistry.sol/DomainRegistryInterface.d.ts +69 -0
- package/lib/typechain-types/src/contracts/DomainRegistry.sol/DomainRegistryInterface.js.map +1 -0
- package/lib/typechain-types/src/contracts/DomainRegistry.sol/index.d.ts +2 -0
- package/lib/typechain-types/src/contracts/DomainRegistry.sol/index.js.map +1 -0
- package/lib/typechain-types/src/contracts/index.d.ts +2 -0
- package/lib/typechain-types/src/contracts/test/TestERC1155.d.ts +231 -184
- package/lib/typechain-types/src/contracts/test/TestERC1271Wallet.sol/IERC20Approve.d.ts +29 -44
- package/lib/typechain-types/src/contracts/test/TestERC1271Wallet.sol/TestERC1271Wallet.d.ts +62 -71
- package/lib/typechain-types/src/contracts/test/TestERC20.d.ts +166 -205
- package/lib/typechain-types/src/contracts/test/TestERC20USDC.d.ts +166 -205
- package/lib/typechain-types/src/contracts/test/TestERC721.d.ts +196 -214
- package/lib/types.d.ts +10 -44
- package/lib/utils/approval.d.ts +3 -4
- package/lib/utils/approval.js +21 -26
- package/lib/utils/approval.js.map +1 -1
- package/lib/utils/balance.d.ts +2 -3
- package/lib/utils/balance.js +12 -24
- package/lib/utils/balance.js.map +1 -1
- package/lib/utils/balanceAndApprovalCheck.d.ts +9 -10
- package/lib/utils/balanceAndApprovalCheck.js +28 -31
- package/lib/utils/balanceAndApprovalCheck.js.map +1 -1
- package/lib/utils/criteria.js.map +1 -1
- package/lib/utils/eip712/Eip712MerkleTree.d.ts +1 -1
- package/lib/utils/eip712/Eip712MerkleTree.js +14 -15
- package/lib/utils/eip712/Eip712MerkleTree.js.map +1 -1
- package/lib/utils/eip712/bulk-orders.js +7 -7
- package/lib/utils/eip712/bulk-orders.js.map +1 -1
- package/lib/utils/eip712/defaults.d.ts +1 -1
- package/lib/utils/eip712/defaults.js +11 -12
- package/lib/utils/eip712/defaults.js.map +1 -1
- package/lib/utils/eip712/utils.js +4 -4
- package/lib/utils/eip712/utils.js.map +1 -1
- package/lib/utils/fulfill.d.ts +13 -12
- package/lib/utils/fulfill.js +86 -53
- package/lib/utils/fulfill.js.map +1 -1
- package/lib/utils/gcd.d.ts +3 -3
- package/lib/utils/gcd.js +6 -7
- package/lib/utils/gcd.js.map +1 -1
- package/lib/utils/item.d.ts +3 -4
- package/lib/utils/item.js +30 -25
- package/lib/utils/item.js.map +1 -1
- package/lib/utils/merkletree.js +2 -3
- package/lib/utils/merkletree.js.map +1 -1
- package/lib/utils/order.d.ts +8 -7
- package/lib/utils/order.js +77 -46
- package/lib/utils/order.js.map +1 -1
- package/lib/utils/usecase.d.ts +12 -4
- package/lib/utils/usecase.js +37 -37
- package/lib/utils/usecase.js.map +1 -1
- package/package.json +15 -27
- package/src/abi/Seaport_v1_5.ts +2815 -0
- package/src/artifacts/@rari-capital/solmate/src/tokens/ERC1155.sol/ERC1155.dbg.json +1 -1
- package/src/artifacts/@rari-capital/solmate/src/tokens/ERC1155.sol/ERC1155TokenReceiver.dbg.json +1 -1
- package/src/artifacts/@rari-capital/solmate/src/tokens/ERC20.sol/ERC20.dbg.json +1 -1
- package/src/artifacts/@rari-capital/solmate/src/tokens/ERC721.sol/ERC721.dbg.json +1 -1
- package/src/artifacts/@rari-capital/solmate/src/tokens/ERC721.sol/ERC721TokenReceiver.dbg.json +1 -1
- package/src/artifacts/build-info/632b35bbd6fe5c9f99b0f05bfe6049f4.json +1 -0
- package/src/artifacts/seaport_v1_5/contracts/Seaport.sol/Seaport.dbg.json +1 -1
- package/src/artifacts/seaport_v1_5/contracts/Seaport.sol/Seaport.json +2 -2
- package/src/artifacts/seaport_v1_5/contracts/conduit/Conduit.sol/Conduit.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/conduit/Conduit.sol/Conduit.json +395 -0
- package/src/artifacts/seaport_v1_5/contracts/conduit/ConduitController.sol/ConduitController.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/conduit/ConduitController.sol/ConduitController.json +446 -0
- package/src/artifacts/seaport_v1_5/contracts/helpers/PointerLibraries.sol/CalldataPointerLib.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/helpers/PointerLibraries.sol/CalldataPointerLib.json +10 -0
- package/src/artifacts/seaport_v1_5/contracts/helpers/PointerLibraries.sol/CalldataReaders.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/helpers/PointerLibraries.sol/CalldataReaders.json +10 -0
- package/src/artifacts/seaport_v1_5/contracts/helpers/PointerLibraries.sol/MemoryPointerLib.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/helpers/PointerLibraries.sol/MemoryPointerLib.json +10 -0
- package/src/artifacts/seaport_v1_5/contracts/helpers/PointerLibraries.sol/MemoryReaders.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/helpers/PointerLibraries.sol/MemoryReaders.json +10 -0
- package/src/artifacts/seaport_v1_5/contracts/helpers/PointerLibraries.sol/MemoryWriters.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/helpers/PointerLibraries.sol/MemoryWriters.json +10 -0
- package/src/artifacts/seaport_v1_5/contracts/helpers/PointerLibraries.sol/ReturndataPointerLib.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/helpers/PointerLibraries.sol/ReturndataPointerLib.json +10 -0
- package/src/artifacts/seaport_v1_5/contracts/helpers/PointerLibraries.sol/ReturndataReaders.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/helpers/PointerLibraries.sol/ReturndataReaders.json +10 -0
- package/src/artifacts/seaport_v1_5/contracts/interfaces/AmountDerivationErrors.sol/AmountDerivationErrors.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/interfaces/AmountDerivationErrors.sol/AmountDerivationErrors.json +16 -0
- package/src/artifacts/seaport_v1_5/contracts/interfaces/ConduitControllerInterface.sol/ConduitControllerInterface.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/interfaces/ConduitControllerInterface.sol/ConduitControllerInterface.json +441 -0
- package/src/artifacts/seaport_v1_5/contracts/interfaces/ConduitInterface.sol/ConduitInterface.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/interfaces/ConduitInterface.sol/ConduitInterface.json +265 -0
- package/src/artifacts/seaport_v1_5/contracts/interfaces/ConsiderationEventsAndErrors.sol/ConsiderationEventsAndErrors.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/interfaces/ConsiderationEventsAndErrors.sol/ConsiderationEventsAndErrors.json +464 -0
- package/src/artifacts/seaport_v1_5/contracts/interfaces/ConsiderationInterface.sol/ConsiderationInterface.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/interfaces/ConsiderationInterface.sol/ConsiderationInterface.json +2199 -0
- package/src/artifacts/seaport_v1_5/contracts/interfaces/CriteriaResolutionErrors.sol/CriteriaResolutionErrors.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/interfaces/CriteriaResolutionErrors.sol/CriteriaResolutionErrors.json +74 -0
- package/src/artifacts/seaport_v1_5/contracts/interfaces/FulfillmentApplicationErrors.sol/FulfillmentApplicationErrors.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/interfaces/FulfillmentApplicationErrors.sol/FulfillmentApplicationErrors.json +43 -0
- package/src/artifacts/seaport_v1_5/contracts/interfaces/ReentrancyErrors.sol/ReentrancyErrors.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/interfaces/ReentrancyErrors.sol/ReentrancyErrors.json +16 -0
- package/src/artifacts/seaport_v1_5/contracts/interfaces/SignatureVerificationErrors.sol/SignatureVerificationErrors.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/interfaces/SignatureVerificationErrors.sol/SignatureVerificationErrors.json +37 -0
- package/src/artifacts/seaport_v1_5/contracts/interfaces/TokenTransferrerErrors.sol/TokenTransferrerErrors.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/interfaces/TokenTransferrerErrors.sol/TokenTransferrerErrors.json +136 -0
- package/src/artifacts/seaport_v1_5/contracts/interfaces/ZoneInteractionErrors.sol/ZoneInteractionErrors.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/interfaces/ZoneInteractionErrors.sol/ZoneInteractionErrors.json +33 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/AmountDeriver.sol/AmountDeriver.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/AmountDeriver.sol/AmountDeriver.json +16 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/Assertions.sol/Assertions.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/Assertions.sol/Assertions.json +605 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/BasicOrderFulfiller.sol/BasicOrderFulfiller.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/BasicOrderFulfiller.sol/BasicOrderFulfiller.json +653 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/Consideration.sol/Consideration.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/Consideration.sol/Consideration.json +2945 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/ConsiderationBase.sol/ConsiderationBase.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/ConsiderationBase.sol/ConsiderationBase.json +475 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/ConsiderationDecoder.sol/ConsiderationDecoder.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/ConsiderationDecoder.sol/ConsiderationDecoder.json +10 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/ConsiderationEncoder.sol/ConsiderationEncoder.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/ConsiderationEncoder.sol/ConsiderationEncoder.json +10 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/ConsiderationStructs.sol/StructPointers.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/ConsiderationStructs.sol/StructPointers.json +10 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/CounterManager.sol/CounterManager.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/CounterManager.sol/CounterManager.json +469 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/CriteriaResolution.sol/CriteriaResolution.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/CriteriaResolution.sol/CriteriaResolution.json +74 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/Executor.sol/Executor.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/Executor.sol/Executor.json +631 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/FulfillmentApplier.sol/FulfillmentApplier.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/FulfillmentApplier.sol/FulfillmentApplier.json +43 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/GettersAndDerivers.sol/GettersAndDerivers.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/GettersAndDerivers.sol/GettersAndDerivers.json +475 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/LowLevelHelpers.sol/LowLevelHelpers.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/LowLevelHelpers.sol/LowLevelHelpers.json +10 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/OrderCombiner.sol/OrderCombiner.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/OrderCombiner.sol/OrderCombiner.json +753 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/OrderFulfiller.sol/OrderFulfiller.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/OrderFulfiller.sol/OrderFulfiller.json +721 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/OrderValidator.sol/OrderValidator.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/OrderValidator.sol/OrderValidator.json +653 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/ReentrancyGuard.sol/ReentrancyGuard.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/ReentrancyGuard.sol/ReentrancyGuard.json +21 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/SignatureVerification.sol/SignatureVerification.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/SignatureVerification.sol/SignatureVerification.json +37 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/TokenTransferrer.sol/TokenTransferrer.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/TokenTransferrer.sol/TokenTransferrer.json +136 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/Verifiers.sol/Verifiers.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/Verifiers.sol/Verifiers.json +631 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/ZoneInteraction.sol/ZoneInteraction.dbg.json +4 -0
- package/src/artifacts/seaport_v1_5/contracts/lib/ZoneInteraction.sol/ZoneInteraction.json +33 -0
- package/src/artifacts/src/contracts/DomainRegistry.sol/DomainRegistry.dbg.json +4 -0
- package/src/artifacts/src/contracts/DomainRegistry.sol/DomainRegistry.json +149 -0
- package/src/artifacts/src/contracts/DomainRegistry.sol/DomainRegistryInterface.dbg.json +4 -0
- package/src/artifacts/src/contracts/DomainRegistry.sol/DomainRegistryInterface.json +149 -0
- package/src/artifacts/src/contracts/test/TestERC1155.sol/TestERC1155.dbg.json +1 -1
- package/src/artifacts/src/contracts/test/TestERC1271Wallet.sol/IERC20Approve.dbg.json +1 -1
- package/src/artifacts/src/contracts/test/TestERC1271Wallet.sol/TestERC1271Wallet.dbg.json +1 -1
- package/src/artifacts/src/contracts/test/TestERC1271Wallet.sol/TestERC1271Wallet.json +7 -7
- package/src/artifacts/src/contracts/test/TestERC20.sol/TestERC20.dbg.json +1 -1
- package/src/artifacts/src/contracts/test/TestERC20USDC.sol/TestERC20USDC.dbg.json +1 -1
- package/src/artifacts/src/contracts/test/TestERC721.sol/TestERC721.dbg.json +1 -1
- package/src/constants.ts +4 -7
- package/src/contracts/Conduit.sol +1 -1
- package/src/contracts/ConduitController.sol +1 -1
- package/src/contracts/DomainRegistry.sol +133 -1
- package/src/contracts/test/TestERC1271Wallet.sol +5 -7
- package/src/seaport.ts +137 -158
- package/src/typechain-types/@rari-capital/solmate/src/tokens/ERC1155.sol/ERC1155.ts +336 -397
- package/src/typechain-types/@rari-capital/solmate/src/tokens/ERC1155.sol/ERC1155TokenReceiver.ts +102 -130
- package/src/typechain-types/@rari-capital/solmate/src/tokens/ERC20.ts +237 -357
- package/src/typechain-types/@rari-capital/solmate/src/tokens/ERC721.sol/ERC721.ts +290 -443
- package/src/typechain-types/@rari-capital/solmate/src/tokens/ERC721.sol/ERC721TokenReceiver.ts +63 -83
- package/src/typechain-types/common.ts +108 -21
- package/src/typechain-types/factories/@rari-capital/solmate/src/tokens/ERC1155.sol/ERC1155TokenReceiver__factory.ts +5 -6
- package/src/typechain-types/factories/@rari-capital/solmate/src/tokens/ERC1155.sol/ERC1155__factory.ts +4 -8
- package/src/typechain-types/factories/@rari-capital/solmate/src/tokens/ERC20__factory.ts +4 -5
- package/src/typechain-types/factories/@rari-capital/solmate/src/tokens/ERC721.sol/ERC721TokenReceiver__factory.ts +8 -5
- package/src/typechain-types/factories/@rari-capital/solmate/src/tokens/ERC721.sol/ERC721__factory.ts +4 -5
- package/src/typechain-types/factories/index.ts +0 -4
- package/src/typechain-types/factories/seaport_v1_5/contracts/Seaport__factory.ts +31 -22
- package/src/typechain-types/factories/seaport_v1_5/contracts/conduit/ConduitController__factory.ts +502 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/conduit/Conduit__factory.ts +448 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/index.ts +3 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/interfaces/AmountDerivationErrors__factory.ts +34 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/interfaces/ConduitControllerInterface__factory.ts +459 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/interfaces/ConduitInterface__factory.ts +279 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/interfaces/ConsiderationEventsAndErrors__factory.ts +482 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/interfaces/ConsiderationInterface__factory.ts +2217 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/interfaces/CriteriaResolutionErrors__factory.ts +92 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/interfaces/FulfillmentApplicationErrors__factory.ts +61 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/interfaces/ReentrancyErrors__factory.ts +30 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/interfaces/SignatureVerificationErrors__factory.ts +55 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/interfaces/TokenTransferrerErrors__factory.ts +154 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/interfaces/ZoneInteractionErrors__factory.ts +51 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/lib/AmountDeriver__factory.ts +72 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/lib/Assertions__factory.ts +667 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/lib/BasicOrderFulfiller__factory.ts +724 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/lib/ConsiderationBase__factory.ts +540 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/lib/Consideration__factory.ts +3010 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/lib/CounterManager__factory.ts +525 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/lib/CriteriaResolution__factory.ts +130 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/lib/Executor__factory.ts +693 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/lib/FulfillmentApplier__factory.ts +99 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/lib/GettersAndDerivers__factory.ts +540 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/lib/OrderCombiner__factory.ts +818 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/lib/OrderFulfiller__factory.ts +786 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/lib/OrderValidator__factory.ts +718 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/lib/ReentrancyGuard__factory.ts +77 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/lib/SignatureVerification__factory.ts +99 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/lib/TokenTransferrer__factory.ts +192 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/lib/Verifiers__factory.ts +693 -0
- package/src/typechain-types/factories/seaport_v1_5/contracts/lib/ZoneInteraction__factory.ts +89 -0
- package/src/typechain-types/factories/src/contracts/DomainRegistry.sol/DomainRegistryInterface__factory.ts +167 -0
- package/src/typechain-types/factories/src/contracts/DomainRegistry.sol/DomainRegistry__factory.ts +205 -0
- package/src/typechain-types/factories/src/contracts/DomainRegistry.sol/index.ts +5 -0
- package/src/typechain-types/factories/src/contracts/index.ts +1 -0
- package/src/typechain-types/factories/src/contracts/test/TestERC1155__factory.ts +21 -19
- package/src/typechain-types/factories/src/contracts/test/TestERC1271Wallet.sol/IERC20Approve__factory.ts +4 -5
- package/src/typechain-types/factories/src/contracts/test/TestERC1271Wallet.sol/TestERC1271Wallet__factory.ts +27 -22
- package/src/typechain-types/factories/src/contracts/test/TestERC20USDC__factory.ts +21 -16
- package/src/typechain-types/factories/src/contracts/test/TestERC20__factory.ts +21 -19
- package/src/typechain-types/factories/src/contracts/test/TestERC721__factory.ts +21 -19
- package/src/typechain-types/hardhat.d.ts +544 -154
- package/src/typechain-types/index.ts +68 -80
- package/src/typechain-types/seaport_v1_5/contracts/Seaport.ts +584 -779
- package/src/typechain-types/seaport_v1_5/contracts/conduit/Conduit.ts +255 -0
- package/src/typechain-types/seaport_v1_5/contracts/conduit/ConduitController.ts +445 -0
- package/src/typechain-types/seaport_v1_5/contracts/index.ts +6 -0
- package/src/typechain-types/seaport_v1_5/contracts/interfaces/AmountDerivationErrors.ts +69 -0
- package/src/typechain-types/seaport_v1_5/contracts/interfaces/ConduitControllerInterface.ts +445 -0
- package/src/typechain-types/seaport_v1_5/contracts/interfaces/ConduitInterface.ts +255 -0
- package/src/typechain-types/seaport_v1_5/contracts/interfaces/ConsiderationEventsAndErrors.ts +390 -0
- package/src/typechain-types/seaport_v1_5/contracts/interfaces/ConsiderationInterface.ts +831 -0
- package/src/typechain-types/seaport_v1_5/contracts/interfaces/CriteriaResolutionErrors.ts +69 -0
- package/src/typechain-types/seaport_v1_5/contracts/interfaces/FulfillmentApplicationErrors.ts +69 -0
- package/src/typechain-types/seaport_v1_5/contracts/interfaces/ReentrancyErrors.ts +69 -0
- package/src/typechain-types/seaport_v1_5/contracts/interfaces/SignatureVerificationErrors.ts +69 -0
- package/src/typechain-types/seaport_v1_5/contracts/interfaces/TokenTransferrerErrors.ts +69 -0
- package/src/typechain-types/seaport_v1_5/contracts/interfaces/ZoneInteractionErrors.ts +69 -0
- package/src/typechain-types/seaport_v1_5/contracts/lib/AmountDeriver.ts +69 -0
- package/src/typechain-types/seaport_v1_5/contracts/lib/Assertions.ts +390 -0
- package/src/typechain-types/seaport_v1_5/contracts/lib/BasicOrderFulfiller.ts +390 -0
- package/src/typechain-types/seaport_v1_5/contracts/lib/Consideration.ts +1016 -0
- package/src/typechain-types/seaport_v1_5/contracts/lib/ConsiderationBase.ts +390 -0
- package/src/typechain-types/seaport_v1_5/contracts/lib/CounterManager.ts +390 -0
- package/src/typechain-types/seaport_v1_5/contracts/lib/CriteriaResolution.ts +69 -0
- package/src/typechain-types/seaport_v1_5/contracts/lib/Executor.ts +390 -0
- package/src/typechain-types/seaport_v1_5/contracts/lib/FulfillmentApplier.ts +69 -0
- package/src/typechain-types/seaport_v1_5/contracts/lib/GettersAndDerivers.ts +390 -0
- package/src/typechain-types/seaport_v1_5/contracts/lib/OrderCombiner.ts +390 -0
- package/src/typechain-types/seaport_v1_5/contracts/lib/OrderFulfiller.ts +390 -0
- package/src/typechain-types/seaport_v1_5/contracts/lib/OrderValidator.ts +390 -0
- package/src/typechain-types/seaport_v1_5/contracts/lib/ReentrancyGuard.ts +69 -0
- package/src/typechain-types/seaport_v1_5/contracts/lib/SignatureVerification.ts +69 -0
- package/src/typechain-types/seaport_v1_5/contracts/lib/TokenTransferrer.ts +69 -0
- package/src/typechain-types/seaport_v1_5/contracts/lib/Verifiers.ts +390 -0
- package/src/typechain-types/seaport_v1_5/contracts/lib/ZoneInteraction.ts +69 -0
- package/src/typechain-types/src/contracts/DomainRegistry.sol/DomainRegistry.ts +173 -0
- package/src/typechain-types/src/contracts/DomainRegistry.sol/DomainRegistryInterface.ts +173 -0
- package/src/typechain-types/src/contracts/DomainRegistry.sol/index.ts +5 -0
- package/src/typechain-types/src/contracts/index.ts +2 -0
- package/src/typechain-types/src/contracts/test/TestERC1155.ts +350 -434
- package/src/typechain-types/src/contracts/test/TestERC1271Wallet.sol/IERC20Approve.ts +63 -73
- package/src/typechain-types/src/contracts/test/TestERC1271Wallet.sol/TestERC1271Wallet.ts +100 -167
- package/src/typechain-types/src/contracts/test/TestERC20.ts +261 -423
- package/src/typechain-types/src/contracts/test/TestERC20USDC.ts +261 -423
- package/src/typechain-types/src/contracts/test/TestERC721.ts +304 -475
- package/src/types.ts +17 -92
- package/src/utils/approval.ts +25 -32
- package/src/utils/balance.ts +17 -33
- package/src/utils/balanceAndApprovalCheck.ts +29 -31
- package/src/utils/eip712/Eip712MerkleTree.ts +10 -8
- package/src/utils/eip712/bulk-orders.ts +3 -3
- package/src/utils/eip712/defaults.ts +6 -12
- package/src/utils/eip712/utils.ts +3 -3
- package/src/utils/fulfill.ts +58 -46
- package/src/utils/gcd.ts +8 -8
- package/src/utils/item.ts +25 -26
- package/src/utils/merkletree.ts +2 -8
- package/src/utils/order.ts +64 -37
- package/src/utils/usecase.ts +59 -34
- package/lib/abi/DomainRegistry.d.ts +0 -40
- package/lib/abi/DomainRegistry.js +0 -145
- package/lib/abi/DomainRegistry.js.map +0 -1
- package/lib/abi/Seaport_v1_4.d.ts +0 -129
- package/lib/abi/Seaport_v1_4.js +0 -2818
- package/lib/abi/Seaport_v1_4.js.map +0 -1
- package/lib/bundle.js +0 -54263
- package/lib/typechain-types/domain-registry/contracts/DomainRegistry.d.ts +0 -97
- package/lib/typechain-types/domain-registry/contracts/DomainRegistry.js.map +0 -1
- package/lib/typechain-types/domain-registry/contracts/index.d.ts +0 -3
- package/lib/typechain-types/domain-registry/contracts/index.js.map +0 -1
- package/lib/typechain-types/domain-registry/contracts/interfaces/DomainRegistryInterface.d.ts +0 -97
- package/lib/typechain-types/domain-registry/contracts/interfaces/DomainRegistryInterface.js.map +0 -1
- package/lib/typechain-types/domain-registry/contracts/interfaces/index.d.ts +0 -1
- package/lib/typechain-types/domain-registry/contracts/interfaces/index.js.map +0 -1
- package/lib/typechain-types/domain-registry/index.d.ts +0 -2
- package/lib/typechain-types/domain-registry/index.js.map +0 -1
- package/lib/typechain-types/factories/domain-registry/contracts/DomainRegistry__factory.d.ts +0 -124
- package/lib/typechain-types/factories/domain-registry/contracts/DomainRegistry__factory.js +0 -181
- package/lib/typechain-types/factories/domain-registry/contracts/DomainRegistry__factory.js.map +0 -1
- package/lib/typechain-types/factories/domain-registry/contracts/index.d.ts +0 -2
- package/lib/typechain-types/factories/domain-registry/contracts/index.js +0 -10
- package/lib/typechain-types/factories/domain-registry/contracts/index.js.map +0 -1
- package/lib/typechain-types/factories/domain-registry/contracts/interfaces/DomainRegistryInterface__factory.d.ts +0 -112
- package/lib/typechain-types/factories/domain-registry/contracts/interfaces/DomainRegistryInterface__factory.js +0 -158
- package/lib/typechain-types/factories/domain-registry/contracts/interfaces/DomainRegistryInterface__factory.js.map +0 -1
- package/lib/typechain-types/factories/domain-registry/contracts/interfaces/index.d.ts +0 -1
- package/lib/typechain-types/factories/domain-registry/contracts/interfaces/index.js +0 -9
- package/lib/typechain-types/factories/domain-registry/contracts/interfaces/index.js.map +0 -1
- package/lib/typechain-types/factories/domain-registry/index.d.ts +0 -1
- package/lib/typechain-types/factories/domain-registry/index.js +0 -8
- package/lib/typechain-types/factories/domain-registry/index.js.map +0 -1
- package/lib/typechain-types/factories/seaport-core/index.d.ts +0 -1
- package/lib/typechain-types/factories/seaport-core/index.js +0 -8
- package/lib/typechain-types/factories/seaport-core/index.js.map +0 -1
- package/lib/typechain-types/factories/seaport-core/src/conduit/ConduitController__factory.d.ts +0 -349
- package/lib/typechain-types/factories/seaport-core/src/conduit/ConduitController__factory.js +0 -478
- package/lib/typechain-types/factories/seaport-core/src/conduit/ConduitController__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-core/src/conduit/Conduit__factory.d.ts +0 -315
- package/lib/typechain-types/factories/seaport-core/src/conduit/Conduit__factory.js +0 -427
- package/lib/typechain-types/factories/seaport-core/src/conduit/Conduit__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-core/src/conduit/index.js.map +0 -1
- package/lib/typechain-types/factories/seaport-core/src/index.d.ts +0 -2
- package/lib/typechain-types/factories/seaport-core/src/index.js +0 -9
- package/lib/typechain-types/factories/seaport-core/src/index.js.map +0 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/AmountDeriver__factory.d.ts +0 -24
- package/lib/typechain-types/factories/seaport-core/src/lib/AmountDeriver__factory.js +0 -48
- package/lib/typechain-types/factories/seaport-core/src/lib/AmountDeriver__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/Assertions__factory.d.ts +0 -480
- package/lib/typechain-types/factories/seaport-core/src/lib/Assertions__factory.js +0 -637
- package/lib/typechain-types/factories/seaport-core/src/lib/Assertions__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/BasicOrderFulfiller__factory.d.ts +0 -516
- package/lib/typechain-types/factories/seaport-core/src/lib/BasicOrderFulfiller__factory.js +0 -685
- package/lib/typechain-types/factories/seaport-core/src/lib/BasicOrderFulfiller__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/ConsiderationBase__factory.d.ts +0 -380
- package/lib/typechain-types/factories/seaport-core/src/lib/ConsiderationBase__factory.js +0 -507
- package/lib/typechain-types/factories/seaport-core/src/lib/ConsiderationBase__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/Consideration__factory.d.ts +0 -2292
- package/lib/typechain-types/factories/seaport-core/src/lib/Consideration__factory.js +0 -2977
- package/lib/typechain-types/factories/seaport-core/src/lib/Consideration__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/CounterManager__factory.d.ts +0 -376
- package/lib/typechain-types/factories/seaport-core/src/lib/CounterManager__factory.js +0 -501
- package/lib/typechain-types/factories/seaport-core/src/lib/CounterManager__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/CriteriaResolution__factory.d.ts +0 -68
- package/lib/typechain-types/factories/seaport-core/src/lib/CriteriaResolution__factory.js +0 -106
- package/lib/typechain-types/factories/seaport-core/src/lib/CriteriaResolution__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/Executor__factory.d.ts +0 -500
- package/lib/typechain-types/factories/seaport-core/src/lib/Executor__factory.js +0 -663
- package/lib/typechain-types/factories/seaport-core/src/lib/Executor__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/FulfillmentApplier__factory.d.ts +0 -44
- package/lib/typechain-types/factories/seaport-core/src/lib/FulfillmentApplier__factory.js +0 -75
- package/lib/typechain-types/factories/seaport-core/src/lib/FulfillmentApplier__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/GettersAndDerivers__factory.d.ts +0 -380
- package/lib/typechain-types/factories/seaport-core/src/lib/GettersAndDerivers__factory.js +0 -507
- package/lib/typechain-types/factories/seaport-core/src/lib/GettersAndDerivers__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/OrderCombiner__factory.d.ts +0 -592
- package/lib/typechain-types/factories/seaport-core/src/lib/OrderCombiner__factory.js +0 -785
- package/lib/typechain-types/factories/seaport-core/src/lib/OrderCombiner__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/OrderFulfiller__factory.d.ts +0 -568
- package/lib/typechain-types/factories/seaport-core/src/lib/OrderFulfiller__factory.js +0 -753
- package/lib/typechain-types/factories/seaport-core/src/lib/OrderFulfiller__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/OrderValidator__factory.d.ts +0 -516
- package/lib/typechain-types/factories/seaport-core/src/lib/OrderValidator__factory.js +0 -685
- package/lib/typechain-types/factories/seaport-core/src/lib/OrderValidator__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/ReentrancyGuard__factory.d.ts +0 -28
- package/lib/typechain-types/factories/seaport-core/src/lib/ReentrancyGuard__factory.js +0 -53
- package/lib/typechain-types/factories/seaport-core/src/lib/ReentrancyGuard__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/SignatureVerification__factory.d.ts +0 -40
- package/lib/typechain-types/factories/seaport-core/src/lib/SignatureVerification__factory.js +0 -69
- package/lib/typechain-types/factories/seaport-core/src/lib/SignatureVerification__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/TokenTransferrer__factory.d.ts +0 -116
- package/lib/typechain-types/factories/seaport-core/src/lib/TokenTransferrer__factory.js +0 -168
- package/lib/typechain-types/factories/seaport-core/src/lib/TokenTransferrer__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/Verifiers__factory.d.ts +0 -500
- package/lib/typechain-types/factories/seaport-core/src/lib/Verifiers__factory.js +0 -663
- package/lib/typechain-types/factories/seaport-core/src/lib/Verifiers__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/ZoneInteraction__factory.d.ts +0 -36
- package/lib/typechain-types/factories/seaport-core/src/lib/ZoneInteraction__factory.js +0 -65
- package/lib/typechain-types/factories/seaport-core/src/lib/ZoneInteraction__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/index.js.map +0 -1
- package/lib/typechain-types/factories/seaport-types/index.d.ts +0 -1
- package/lib/typechain-types/factories/seaport-types/index.js +0 -8
- package/lib/typechain-types/factories/seaport-types/index.js.map +0 -1
- package/lib/typechain-types/factories/seaport-types/src/index.d.ts +0 -1
- package/lib/typechain-types/factories/seaport-types/src/index.js +0 -8
- package/lib/typechain-types/factories/seaport-types/src/index.js.map +0 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/AmountDerivationErrors__factory.d.ts +0 -12
- package/lib/typechain-types/factories/seaport-types/src/interfaces/AmountDerivationErrors__factory.js +0 -25
- package/lib/typechain-types/factories/seaport-types/src/interfaces/AmountDerivationErrors__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ConduitControllerInterface__factory.d.ts +0 -333
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ConduitControllerInterface__factory.js +0 -450
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ConduitControllerInterface__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ConduitInterface__factory.d.ts +0 -203
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ConduitInterface__factory.js +0 -274
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ConduitInterface__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ConsiderationEventsAndErrors__factory.d.ts +0 -360
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ConsiderationEventsAndErrors__factory.js +0 -473
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ConsiderationEventsAndErrors__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ConsiderationInterface__factory.d.ts +0 -1705
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ConsiderationInterface__factory.js +0 -2208
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ConsiderationInterface__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/CriteriaResolutionErrors__factory.d.ts +0 -56
- package/lib/typechain-types/factories/seaport-types/src/interfaces/CriteriaResolutionErrors__factory.js +0 -83
- package/lib/typechain-types/factories/seaport-types/src/interfaces/CriteriaResolutionErrors__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/FulfillmentApplicationErrors__factory.d.ts +0 -32
- package/lib/typechain-types/factories/seaport-types/src/interfaces/FulfillmentApplicationErrors__factory.js +0 -52
- package/lib/typechain-types/factories/seaport-types/src/interfaces/FulfillmentApplicationErrors__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ReentrancyErrors__factory.d.ts +0 -12
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ReentrancyErrors__factory.js +0 -25
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ReentrancyErrors__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/SignatureVerificationErrors__factory.d.ts +0 -28
- package/lib/typechain-types/factories/seaport-types/src/interfaces/SignatureVerificationErrors__factory.js +0 -46
- package/lib/typechain-types/factories/seaport-types/src/interfaces/SignatureVerificationErrors__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/TokenTransferrerErrors__factory.d.ts +0 -104
- package/lib/typechain-types/factories/seaport-types/src/interfaces/TokenTransferrerErrors__factory.js +0 -145
- package/lib/typechain-types/factories/seaport-types/src/interfaces/TokenTransferrerErrors__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ZoneInteractionErrors__factory.d.ts +0 -24
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ZoneInteractionErrors__factory.js +0 -42
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ZoneInteractionErrors__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/index.js.map +0 -1
- package/lib/typechain-types/factories/seaport_v1_4/contracts/Seaport__factory.d.ts +0 -2292
- package/lib/typechain-types/factories/seaport_v1_4/contracts/Seaport__factory.js +0 -2977
- package/lib/typechain-types/factories/seaport_v1_4/contracts/Seaport__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport_v1_4/contracts/conduit/Conduit.sol/LocalConduit__factory.d.ts +0 -311
- package/lib/typechain-types/factories/seaport_v1_4/contracts/conduit/Conduit.sol/LocalConduit__factory.js +0 -422
- package/lib/typechain-types/factories/seaport_v1_4/contracts/conduit/Conduit.sol/LocalConduit__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport_v1_4/contracts/conduit/Conduit.sol/index.d.ts +0 -1
- package/lib/typechain-types/factories/seaport_v1_4/contracts/conduit/Conduit.sol/index.js +0 -9
- package/lib/typechain-types/factories/seaport_v1_4/contracts/conduit/Conduit.sol/index.js.map +0 -1
- package/lib/typechain-types/factories/seaport_v1_4/contracts/conduit/ConduitController.sol/LocalConduitController__factory.d.ts +0 -345
- package/lib/typechain-types/factories/seaport_v1_4/contracts/conduit/ConduitController.sol/LocalConduitController__factory.js +0 -473
- package/lib/typechain-types/factories/seaport_v1_4/contracts/conduit/ConduitController.sol/LocalConduitController__factory.js.map +0 -1
- package/lib/typechain-types/factories/seaport_v1_4/contracts/conduit/ConduitController.sol/index.d.ts +0 -1
- package/lib/typechain-types/factories/seaport_v1_4/contracts/conduit/ConduitController.sol/index.js +0 -9
- package/lib/typechain-types/factories/seaport_v1_4/contracts/conduit/ConduitController.sol/index.js.map +0 -1
- package/lib/typechain-types/factories/seaport_v1_4/contracts/conduit/index.d.ts +0 -2
- package/lib/typechain-types/factories/seaport_v1_4/contracts/conduit/index.js +0 -9
- package/lib/typechain-types/factories/seaport_v1_4/contracts/conduit/index.js.map +0 -1
- package/lib/typechain-types/factories/seaport_v1_4/contracts/index.d.ts +0 -2
- package/lib/typechain-types/factories/seaport_v1_4/contracts/index.js +0 -10
- package/lib/typechain-types/factories/seaport_v1_4/contracts/index.js.map +0 -1
- package/lib/typechain-types/factories/seaport_v1_4/index.d.ts +0 -1
- package/lib/typechain-types/factories/seaport_v1_4/index.js +0 -8
- package/lib/typechain-types/factories/seaport_v1_4/index.js.map +0 -1
- package/lib/typechain-types/seaport-core/index.d.ts +0 -2
- package/lib/typechain-types/seaport-core/index.js.map +0 -1
- package/lib/typechain-types/seaport-core/src/conduit/Conduit.d.ts +0 -156
- package/lib/typechain-types/seaport-core/src/conduit/Conduit.js.map +0 -1
- package/lib/typechain-types/seaport-core/src/conduit/ConduitController.d.ts +0 -268
- package/lib/typechain-types/seaport-core/src/conduit/ConduitController.js.map +0 -1
- package/lib/typechain-types/seaport-core/src/conduit/index.js +0 -3
- package/lib/typechain-types/seaport-core/src/conduit/index.js.map +0 -1
- package/lib/typechain-types/seaport-core/src/index.d.ts +0 -4
- package/lib/typechain-types/seaport-core/src/index.js +0 -3
- package/lib/typechain-types/seaport-core/src/index.js.map +0 -1
- package/lib/typechain-types/seaport-core/src/lib/AmountDeriver.d.ts +0 -27
- package/lib/typechain-types/seaport-core/src/lib/AmountDeriver.js.map +0 -1
- package/lib/typechain-types/seaport-core/src/lib/Assertions.d.ts +0 -216
- package/lib/typechain-types/seaport-core/src/lib/Assertions.js.map +0 -1
- package/lib/typechain-types/seaport-core/src/lib/BasicOrderFulfiller.d.ts +0 -216
- package/lib/typechain-types/seaport-core/src/lib/BasicOrderFulfiller.js.map +0 -1
- package/lib/typechain-types/seaport-core/src/lib/Consideration.d.ts +0 -711
- package/lib/typechain-types/seaport-core/src/lib/Consideration.js.map +0 -1
- package/lib/typechain-types/seaport-core/src/lib/ConsiderationBase.d.ts +0 -216
- package/lib/typechain-types/seaport-core/src/lib/ConsiderationBase.js.map +0 -1
- package/lib/typechain-types/seaport-core/src/lib/CounterManager.d.ts +0 -216
- package/lib/typechain-types/seaport-core/src/lib/CounterManager.js.map +0 -1
- package/lib/typechain-types/seaport-core/src/lib/CriteriaResolution.d.ts +0 -27
- package/lib/typechain-types/seaport-core/src/lib/CriteriaResolution.js.map +0 -1
- package/lib/typechain-types/seaport-core/src/lib/Executor.d.ts +0 -216
- package/lib/typechain-types/seaport-core/src/lib/Executor.js.map +0 -1
- package/lib/typechain-types/seaport-core/src/lib/FulfillmentApplier.d.ts +0 -27
- package/lib/typechain-types/seaport-core/src/lib/FulfillmentApplier.js.map +0 -1
- package/lib/typechain-types/seaport-core/src/lib/GettersAndDerivers.d.ts +0 -216
- package/lib/typechain-types/seaport-core/src/lib/GettersAndDerivers.js.map +0 -1
- package/lib/typechain-types/seaport-core/src/lib/OrderCombiner.d.ts +0 -216
- package/lib/typechain-types/seaport-core/src/lib/OrderCombiner.js.map +0 -1
- package/lib/typechain-types/seaport-core/src/lib/OrderFulfiller.d.ts +0 -216
- package/lib/typechain-types/seaport-core/src/lib/OrderFulfiller.js.map +0 -1
- package/lib/typechain-types/seaport-core/src/lib/OrderValidator.d.ts +0 -216
- package/lib/typechain-types/seaport-core/src/lib/OrderValidator.js.map +0 -1
- package/lib/typechain-types/seaport-core/src/lib/ReentrancyGuard.d.ts +0 -27
- package/lib/typechain-types/seaport-core/src/lib/ReentrancyGuard.js.map +0 -1
- package/lib/typechain-types/seaport-core/src/lib/SignatureVerification.d.ts +0 -27
- package/lib/typechain-types/seaport-core/src/lib/SignatureVerification.js.map +0 -1
- package/lib/typechain-types/seaport-core/src/lib/TokenTransferrer.d.ts +0 -27
- package/lib/typechain-types/seaport-core/src/lib/TokenTransferrer.js.map +0 -1
- package/lib/typechain-types/seaport-core/src/lib/Verifiers.d.ts +0 -216
- package/lib/typechain-types/seaport-core/src/lib/Verifiers.js.map +0 -1
- package/lib/typechain-types/seaport-core/src/lib/ZoneInteraction.d.ts +0 -27
- package/lib/typechain-types/seaport-core/src/lib/ZoneInteraction.js.map +0 -1
- package/lib/typechain-types/seaport-core/src/lib/index.js +0 -3
- package/lib/typechain-types/seaport-core/src/lib/index.js.map +0 -1
- package/lib/typechain-types/seaport-types/index.d.ts +0 -2
- package/lib/typechain-types/seaport-types/index.js +0 -3
- package/lib/typechain-types/seaport-types/index.js.map +0 -1
- package/lib/typechain-types/seaport-types/src/index.d.ts +0 -2
- package/lib/typechain-types/seaport-types/src/index.js +0 -3
- package/lib/typechain-types/seaport-types/src/index.js.map +0 -1
- package/lib/typechain-types/seaport-types/src/interfaces/AmountDerivationErrors.d.ts +0 -27
- package/lib/typechain-types/seaport-types/src/interfaces/AmountDerivationErrors.js.map +0 -1
- package/lib/typechain-types/seaport-types/src/interfaces/ConduitControllerInterface.d.ts +0 -268
- package/lib/typechain-types/seaport-types/src/interfaces/ConduitControllerInterface.js.map +0 -1
- package/lib/typechain-types/seaport-types/src/interfaces/ConduitInterface.d.ts +0 -156
- package/lib/typechain-types/seaport-types/src/interfaces/ConduitInterface.js.map +0 -1
- package/lib/typechain-types/seaport-types/src/interfaces/ConsiderationEventsAndErrors.d.ts +0 -216
- package/lib/typechain-types/seaport-types/src/interfaces/ConsiderationEventsAndErrors.js.map +0 -1
- package/lib/typechain-types/seaport-types/src/interfaces/ConsiderationInterface.d.ts +0 -638
- package/lib/typechain-types/seaport-types/src/interfaces/ConsiderationInterface.js.map +0 -1
- package/lib/typechain-types/seaport-types/src/interfaces/CriteriaResolutionErrors.d.ts +0 -27
- package/lib/typechain-types/seaport-types/src/interfaces/CriteriaResolutionErrors.js.map +0 -1
- package/lib/typechain-types/seaport-types/src/interfaces/FulfillmentApplicationErrors.d.ts +0 -27
- package/lib/typechain-types/seaport-types/src/interfaces/FulfillmentApplicationErrors.js.map +0 -1
- package/lib/typechain-types/seaport-types/src/interfaces/ReentrancyErrors.d.ts +0 -27
- package/lib/typechain-types/seaport-types/src/interfaces/ReentrancyErrors.js.map +0 -1
- package/lib/typechain-types/seaport-types/src/interfaces/SignatureVerificationErrors.d.ts +0 -27
- package/lib/typechain-types/seaport-types/src/interfaces/SignatureVerificationErrors.js.map +0 -1
- package/lib/typechain-types/seaport-types/src/interfaces/TokenTransferrerErrors.d.ts +0 -27
- package/lib/typechain-types/seaport-types/src/interfaces/TokenTransferrerErrors.js.map +0 -1
- package/lib/typechain-types/seaport-types/src/interfaces/ZoneInteractionErrors.d.ts +0 -27
- package/lib/typechain-types/seaport-types/src/interfaces/ZoneInteractionErrors.js.map +0 -1
- package/lib/typechain-types/seaport-types/src/interfaces/index.js +0 -3
- package/lib/typechain-types/seaport-types/src/interfaces/index.js.map +0 -1
- package/lib/typechain-types/seaport_v1_4/contracts/Seaport.d.ts +0 -711
- package/lib/typechain-types/seaport_v1_4/contracts/Seaport.js +0 -3
- package/lib/typechain-types/seaport_v1_4/contracts/Seaport.js.map +0 -1
- package/lib/typechain-types/seaport_v1_4/contracts/conduit/Conduit.sol/LocalConduit.d.ts +0 -156
- package/lib/typechain-types/seaport_v1_4/contracts/conduit/Conduit.sol/LocalConduit.js +0 -3
- package/lib/typechain-types/seaport_v1_4/contracts/conduit/Conduit.sol/LocalConduit.js.map +0 -1
- package/lib/typechain-types/seaport_v1_4/contracts/conduit/Conduit.sol/index.d.ts +0 -1
- package/lib/typechain-types/seaport_v1_4/contracts/conduit/Conduit.sol/index.js +0 -3
- package/lib/typechain-types/seaport_v1_4/contracts/conduit/Conduit.sol/index.js.map +0 -1
- package/lib/typechain-types/seaport_v1_4/contracts/conduit/ConduitController.sol/LocalConduitController.d.ts +0 -268
- package/lib/typechain-types/seaport_v1_4/contracts/conduit/ConduitController.sol/LocalConduitController.js +0 -3
- package/lib/typechain-types/seaport_v1_4/contracts/conduit/ConduitController.sol/LocalConduitController.js.map +0 -1
- package/lib/typechain-types/seaport_v1_4/contracts/conduit/ConduitController.sol/index.d.ts +0 -1
- package/lib/typechain-types/seaport_v1_4/contracts/conduit/ConduitController.sol/index.js +0 -3
- package/lib/typechain-types/seaport_v1_4/contracts/conduit/ConduitController.sol/index.js.map +0 -1
- package/lib/typechain-types/seaport_v1_4/contracts/conduit/index.d.ts +0 -4
- package/lib/typechain-types/seaport_v1_4/contracts/conduit/index.js +0 -3
- package/lib/typechain-types/seaport_v1_4/contracts/conduit/index.js.map +0 -1
- package/lib/typechain-types/seaport_v1_4/contracts/index.d.ts +0 -3
- package/lib/typechain-types/seaport_v1_4/contracts/index.js +0 -3
- package/lib/typechain-types/seaport_v1_4/contracts/index.js.map +0 -1
- package/lib/typechain-types/seaport_v1_4/index.d.ts +0 -2
- package/lib/typechain-types/seaport_v1_4/index.js +0 -3
- package/lib/typechain-types/seaport_v1_4/index.js.map +0 -1
- package/src/abi/DomainRegistry.ts +0 -142
- package/src/abi/Seaport_v1_4.ts +0 -2815
- package/src/artifacts/build-info/d74aedd79bfea1f175b8b4ef785e53de.json +0 -1
- package/src/artifacts/domain-registry/contracts/DomainRegistry.sol/DomainRegistry.dbg.json +0 -4
- package/src/artifacts/domain-registry/contracts/DomainRegistry.sol/DomainRegistry.json +0 -149
- package/src/artifacts/domain-registry/contracts/interfaces/DomainRegistryInterface.sol/DomainRegistryInterface.dbg.json +0 -4
- package/src/artifacts/domain-registry/contracts/interfaces/DomainRegistryInterface.sol/DomainRegistryInterface.json +0 -149
- package/src/artifacts/seaport-core/src/conduit/Conduit.sol/Conduit.dbg.json +0 -4
- package/src/artifacts/seaport-core/src/conduit/Conduit.sol/Conduit.json +0 -395
- package/src/artifacts/seaport-core/src/conduit/ConduitController.sol/ConduitController.dbg.json +0 -4
- package/src/artifacts/seaport-core/src/conduit/ConduitController.sol/ConduitController.json +0 -446
- package/src/artifacts/seaport-core/src/lib/AmountDeriver.sol/AmountDeriver.dbg.json +0 -4
- package/src/artifacts/seaport-core/src/lib/AmountDeriver.sol/AmountDeriver.json +0 -16
- package/src/artifacts/seaport-core/src/lib/Assertions.sol/Assertions.dbg.json +0 -4
- package/src/artifacts/seaport-core/src/lib/Assertions.sol/Assertions.json +0 -605
- package/src/artifacts/seaport-core/src/lib/BasicOrderFulfiller.sol/BasicOrderFulfiller.dbg.json +0 -4
- package/src/artifacts/seaport-core/src/lib/BasicOrderFulfiller.sol/BasicOrderFulfiller.json +0 -653
- package/src/artifacts/seaport-core/src/lib/Consideration.sol/Consideration.dbg.json +0 -4
- package/src/artifacts/seaport-core/src/lib/Consideration.sol/Consideration.json +0 -2945
- package/src/artifacts/seaport-core/src/lib/ConsiderationBase.sol/ConsiderationBase.dbg.json +0 -4
- package/src/artifacts/seaport-core/src/lib/ConsiderationBase.sol/ConsiderationBase.json +0 -475
- package/src/artifacts/seaport-core/src/lib/ConsiderationDecoder.sol/ConsiderationDecoder.dbg.json +0 -4
- package/src/artifacts/seaport-core/src/lib/ConsiderationDecoder.sol/ConsiderationDecoder.json +0 -10
- package/src/artifacts/seaport-core/src/lib/ConsiderationEncoder.sol/ConsiderationEncoder.dbg.json +0 -4
- package/src/artifacts/seaport-core/src/lib/ConsiderationEncoder.sol/ConsiderationEncoder.json +0 -10
- package/src/artifacts/seaport-core/src/lib/CounterManager.sol/CounterManager.dbg.json +0 -4
- package/src/artifacts/seaport-core/src/lib/CounterManager.sol/CounterManager.json +0 -469
- package/src/artifacts/seaport-core/src/lib/CriteriaResolution.sol/CriteriaResolution.dbg.json +0 -4
- package/src/artifacts/seaport-core/src/lib/CriteriaResolution.sol/CriteriaResolution.json +0 -74
- package/src/artifacts/seaport-core/src/lib/Executor.sol/Executor.dbg.json +0 -4
- package/src/artifacts/seaport-core/src/lib/Executor.sol/Executor.json +0 -631
- package/src/artifacts/seaport-core/src/lib/FulfillmentApplier.sol/FulfillmentApplier.dbg.json +0 -4
- package/src/artifacts/seaport-core/src/lib/FulfillmentApplier.sol/FulfillmentApplier.json +0 -43
- package/src/artifacts/seaport-core/src/lib/GettersAndDerivers.sol/GettersAndDerivers.dbg.json +0 -4
- package/src/artifacts/seaport-core/src/lib/GettersAndDerivers.sol/GettersAndDerivers.json +0 -475
- package/src/artifacts/seaport-core/src/lib/LowLevelHelpers.sol/LowLevelHelpers.dbg.json +0 -4
- package/src/artifacts/seaport-core/src/lib/LowLevelHelpers.sol/LowLevelHelpers.json +0 -10
- package/src/artifacts/seaport-core/src/lib/OrderCombiner.sol/OrderCombiner.dbg.json +0 -4
- package/src/artifacts/seaport-core/src/lib/OrderCombiner.sol/OrderCombiner.json +0 -753
- package/src/artifacts/seaport-core/src/lib/OrderFulfiller.sol/OrderFulfiller.dbg.json +0 -4
- package/src/artifacts/seaport-core/src/lib/OrderFulfiller.sol/OrderFulfiller.json +0 -721
- package/src/artifacts/seaport-core/src/lib/OrderValidator.sol/OrderValidator.dbg.json +0 -4
- package/src/artifacts/seaport-core/src/lib/OrderValidator.sol/OrderValidator.json +0 -653
- package/src/artifacts/seaport-core/src/lib/ReentrancyGuard.sol/ReentrancyGuard.dbg.json +0 -4
- package/src/artifacts/seaport-core/src/lib/ReentrancyGuard.sol/ReentrancyGuard.json +0 -21
- package/src/artifacts/seaport-core/src/lib/SignatureVerification.sol/SignatureVerification.dbg.json +0 -4
- package/src/artifacts/seaport-core/src/lib/SignatureVerification.sol/SignatureVerification.json +0 -37
- package/src/artifacts/seaport-core/src/lib/TokenTransferrer.sol/TokenTransferrer.dbg.json +0 -4
- package/src/artifacts/seaport-core/src/lib/TokenTransferrer.sol/TokenTransferrer.json +0 -136
- package/src/artifacts/seaport-core/src/lib/Verifiers.sol/Verifiers.dbg.json +0 -4
- package/src/artifacts/seaport-core/src/lib/Verifiers.sol/Verifiers.json +0 -631
- package/src/artifacts/seaport-core/src/lib/ZoneInteraction.sol/ZoneInteraction.dbg.json +0 -4
- package/src/artifacts/seaport-core/src/lib/ZoneInteraction.sol/ZoneInteraction.json +0 -33
- package/src/artifacts/seaport-types/src/helpers/PointerLibraries.sol/CalldataPointerLib.dbg.json +0 -4
- package/src/artifacts/seaport-types/src/helpers/PointerLibraries.sol/CalldataPointerLib.json +0 -10
- package/src/artifacts/seaport-types/src/helpers/PointerLibraries.sol/CalldataReaders.dbg.json +0 -4
- package/src/artifacts/seaport-types/src/helpers/PointerLibraries.sol/CalldataReaders.json +0 -10
- package/src/artifacts/seaport-types/src/helpers/PointerLibraries.sol/MemoryPointerLib.dbg.json +0 -4
- package/src/artifacts/seaport-types/src/helpers/PointerLibraries.sol/MemoryPointerLib.json +0 -10
- package/src/artifacts/seaport-types/src/helpers/PointerLibraries.sol/MemoryReaders.dbg.json +0 -4
- package/src/artifacts/seaport-types/src/helpers/PointerLibraries.sol/MemoryReaders.json +0 -10
- package/src/artifacts/seaport-types/src/helpers/PointerLibraries.sol/MemoryWriters.dbg.json +0 -4
- package/src/artifacts/seaport-types/src/helpers/PointerLibraries.sol/MemoryWriters.json +0 -10
- package/src/artifacts/seaport-types/src/helpers/PointerLibraries.sol/ReturndataPointerLib.dbg.json +0 -4
- package/src/artifacts/seaport-types/src/helpers/PointerLibraries.sol/ReturndataPointerLib.json +0 -10
- package/src/artifacts/seaport-types/src/helpers/PointerLibraries.sol/ReturndataReaders.dbg.json +0 -4
- package/src/artifacts/seaport-types/src/helpers/PointerLibraries.sol/ReturndataReaders.json +0 -10
- package/src/artifacts/seaport-types/src/interfaces/AmountDerivationErrors.sol/AmountDerivationErrors.dbg.json +0 -4
- package/src/artifacts/seaport-types/src/interfaces/AmountDerivationErrors.sol/AmountDerivationErrors.json +0 -16
- package/src/artifacts/seaport-types/src/interfaces/ConduitControllerInterface.sol/ConduitControllerInterface.dbg.json +0 -4
- package/src/artifacts/seaport-types/src/interfaces/ConduitControllerInterface.sol/ConduitControllerInterface.json +0 -441
- package/src/artifacts/seaport-types/src/interfaces/ConduitInterface.sol/ConduitInterface.dbg.json +0 -4
- package/src/artifacts/seaport-types/src/interfaces/ConduitInterface.sol/ConduitInterface.json +0 -265
- package/src/artifacts/seaport-types/src/interfaces/ConsiderationEventsAndErrors.sol/ConsiderationEventsAndErrors.dbg.json +0 -4
- package/src/artifacts/seaport-types/src/interfaces/ConsiderationEventsAndErrors.sol/ConsiderationEventsAndErrors.json +0 -464
- package/src/artifacts/seaport-types/src/interfaces/ConsiderationInterface.sol/ConsiderationInterface.dbg.json +0 -4
- package/src/artifacts/seaport-types/src/interfaces/ConsiderationInterface.sol/ConsiderationInterface.json +0 -2199
- package/src/artifacts/seaport-types/src/interfaces/CriteriaResolutionErrors.sol/CriteriaResolutionErrors.dbg.json +0 -4
- package/src/artifacts/seaport-types/src/interfaces/CriteriaResolutionErrors.sol/CriteriaResolutionErrors.json +0 -74
- package/src/artifacts/seaport-types/src/interfaces/FulfillmentApplicationErrors.sol/FulfillmentApplicationErrors.dbg.json +0 -4
- package/src/artifacts/seaport-types/src/interfaces/FulfillmentApplicationErrors.sol/FulfillmentApplicationErrors.json +0 -43
- package/src/artifacts/seaport-types/src/interfaces/ReentrancyErrors.sol/ReentrancyErrors.dbg.json +0 -4
- package/src/artifacts/seaport-types/src/interfaces/ReentrancyErrors.sol/ReentrancyErrors.json +0 -16
- package/src/artifacts/seaport-types/src/interfaces/SignatureVerificationErrors.sol/SignatureVerificationErrors.dbg.json +0 -4
- package/src/artifacts/seaport-types/src/interfaces/SignatureVerificationErrors.sol/SignatureVerificationErrors.json +0 -37
- package/src/artifacts/seaport-types/src/interfaces/TokenTransferrerErrors.sol/TokenTransferrerErrors.dbg.json +0 -4
- package/src/artifacts/seaport-types/src/interfaces/TokenTransferrerErrors.sol/TokenTransferrerErrors.json +0 -136
- package/src/artifacts/seaport-types/src/interfaces/ZoneInteractionErrors.sol/ZoneInteractionErrors.dbg.json +0 -4
- package/src/artifacts/seaport-types/src/interfaces/ZoneInteractionErrors.sol/ZoneInteractionErrors.json +0 -33
- package/src/artifacts/seaport-types/src/lib/ConsiderationStructs.sol/StructPointers.dbg.json +0 -4
- package/src/artifacts/seaport-types/src/lib/ConsiderationStructs.sol/StructPointers.json +0 -10
- package/src/artifacts/seaport_v1_4/contracts/Seaport.sol/Seaport.dbg.json +0 -4
- package/src/artifacts/seaport_v1_4/contracts/Seaport.sol/Seaport.json +0 -2945
- package/src/artifacts/seaport_v1_4/contracts/conduit/Conduit.sol/LocalConduit.dbg.json +0 -4
- package/src/artifacts/seaport_v1_4/contracts/conduit/Conduit.sol/LocalConduit.json +0 -390
- package/src/artifacts/seaport_v1_4/contracts/conduit/ConduitController.sol/LocalConduitController.dbg.json +0 -4
- package/src/artifacts/seaport_v1_4/contracts/conduit/ConduitController.sol/LocalConduitController.json +0 -441
- package/src/contracts/Seaport_v1_4.sol +0 -4
- package/src/typechain-types/domain-registry/contracts/DomainRegistry.ts +0 -226
- package/src/typechain-types/domain-registry/contracts/index.ts +0 -6
- package/src/typechain-types/domain-registry/contracts/interfaces/DomainRegistryInterface.ts +0 -226
- package/src/typechain-types/domain-registry/contracts/interfaces/index.ts +0 -4
- package/src/typechain-types/domain-registry/index.ts +0 -5
- package/src/typechain-types/factories/domain-registry/contracts/DomainRegistry__factory.ts +0 -200
- package/src/typechain-types/factories/domain-registry/contracts/index.ts +0 -5
- package/src/typechain-types/factories/domain-registry/contracts/interfaces/DomainRegistryInterface__factory.ts +0 -168
- package/src/typechain-types/factories/domain-registry/contracts/interfaces/index.ts +0 -4
- package/src/typechain-types/factories/domain-registry/index.ts +0 -4
- package/src/typechain-types/factories/seaport-core/index.ts +0 -4
- package/src/typechain-types/factories/seaport-core/src/conduit/ConduitController__factory.ts +0 -497
- package/src/typechain-types/factories/seaport-core/src/conduit/Conduit__factory.ts +0 -444
- package/src/typechain-types/factories/seaport-core/src/index.ts +0 -5
- package/src/typechain-types/factories/seaport-core/src/lib/AmountDeriver__factory.ts +0 -67
- package/src/typechain-types/factories/seaport-core/src/lib/Assertions__factory.ts +0 -661
- package/src/typechain-types/factories/seaport-core/src/lib/BasicOrderFulfiller__factory.ts +0 -709
- package/src/typechain-types/factories/seaport-core/src/lib/ConsiderationBase__factory.ts +0 -531
- package/src/typechain-types/factories/seaport-core/src/lib/Consideration__factory.ts +0 -3001
- package/src/typechain-types/factories/seaport-core/src/lib/CounterManager__factory.ts +0 -520
- package/src/typechain-types/factories/seaport-core/src/lib/CriteriaResolution__factory.ts +0 -125
- package/src/typechain-types/factories/seaport-core/src/lib/Executor__factory.ts +0 -687
- package/src/typechain-types/factories/seaport-core/src/lib/FulfillmentApplier__factory.ts +0 -94
- package/src/typechain-types/factories/seaport-core/src/lib/GettersAndDerivers__factory.ts +0 -531
- package/src/typechain-types/factories/seaport-core/src/lib/OrderCombiner__factory.ts +0 -809
- package/src/typechain-types/factories/seaport-core/src/lib/OrderFulfiller__factory.ts +0 -777
- package/src/typechain-types/factories/seaport-core/src/lib/OrderValidator__factory.ts +0 -709
- package/src/typechain-types/factories/seaport-core/src/lib/ReentrancyGuard__factory.ts +0 -72
- package/src/typechain-types/factories/seaport-core/src/lib/SignatureVerification__factory.ts +0 -92
- package/src/typechain-types/factories/seaport-core/src/lib/TokenTransferrer__factory.ts +0 -187
- package/src/typechain-types/factories/seaport-core/src/lib/Verifiers__factory.ts +0 -687
- package/src/typechain-types/factories/seaport-core/src/lib/ZoneInteraction__factory.ts +0 -84
- package/src/typechain-types/factories/seaport-types/index.ts +0 -4
- package/src/typechain-types/factories/seaport-types/src/index.ts +0 -4
- package/src/typechain-types/factories/seaport-types/src/interfaces/AmountDerivationErrors__factory.ts +0 -35
- package/src/typechain-types/factories/seaport-types/src/interfaces/ConduitControllerInterface__factory.ts +0 -460
- package/src/typechain-types/factories/seaport-types/src/interfaces/ConduitInterface__factory.ts +0 -280
- package/src/typechain-types/factories/seaport-types/src/interfaces/ConsiderationEventsAndErrors__factory.ts +0 -483
- package/src/typechain-types/factories/seaport-types/src/interfaces/ConsiderationInterface__factory.ts +0 -2218
- package/src/typechain-types/factories/seaport-types/src/interfaces/CriteriaResolutionErrors__factory.ts +0 -93
- package/src/typechain-types/factories/seaport-types/src/interfaces/FulfillmentApplicationErrors__factory.ts +0 -62
- package/src/typechain-types/factories/seaport-types/src/interfaces/ReentrancyErrors__factory.ts +0 -31
- package/src/typechain-types/factories/seaport-types/src/interfaces/SignatureVerificationErrors__factory.ts +0 -56
- package/src/typechain-types/factories/seaport-types/src/interfaces/TokenTransferrerErrors__factory.ts +0 -155
- package/src/typechain-types/factories/seaport-types/src/interfaces/ZoneInteractionErrors__factory.ts +0 -52
- package/src/typechain-types/factories/seaport_v1_4/contracts/Seaport__factory.ts +0 -2998
- package/src/typechain-types/factories/seaport_v1_4/contracts/conduit/Conduit.sol/LocalConduit__factory.ts +0 -441
- package/src/typechain-types/factories/seaport_v1_4/contracts/conduit/Conduit.sol/index.ts +0 -4
- package/src/typechain-types/factories/seaport_v1_4/contracts/conduit/ConduitController.sol/LocalConduitController__factory.ts +0 -496
- package/src/typechain-types/factories/seaport_v1_4/contracts/conduit/ConduitController.sol/index.ts +0 -4
- package/src/typechain-types/factories/seaport_v1_4/contracts/conduit/index.ts +0 -5
- package/src/typechain-types/factories/seaport_v1_4/contracts/index.ts +0 -5
- package/src/typechain-types/factories/seaport_v1_4/index.ts +0 -4
- package/src/typechain-types/seaport-core/index.ts +0 -5
- package/src/typechain-types/seaport-core/src/conduit/Conduit.ts +0 -295
- package/src/typechain-types/seaport-core/src/conduit/ConduitController.ts +0 -612
- package/src/typechain-types/seaport-core/src/index.ts +0 -7
- package/src/typechain-types/seaport-core/src/lib/AmountDeriver.ts +0 -55
- package/src/typechain-types/seaport-core/src/lib/Assertions.ts +0 -313
- package/src/typechain-types/seaport-core/src/lib/BasicOrderFulfiller.ts +0 -313
- package/src/typechain-types/seaport-core/src/lib/Consideration.ts +0 -1211
- package/src/typechain-types/seaport-core/src/lib/ConsiderationBase.ts +0 -313
- package/src/typechain-types/seaport-core/src/lib/CounterManager.ts +0 -313
- package/src/typechain-types/seaport-core/src/lib/CriteriaResolution.ts +0 -55
- package/src/typechain-types/seaport-core/src/lib/Executor.ts +0 -313
- package/src/typechain-types/seaport-core/src/lib/FulfillmentApplier.ts +0 -55
- package/src/typechain-types/seaport-core/src/lib/GettersAndDerivers.ts +0 -313
- package/src/typechain-types/seaport-core/src/lib/OrderCombiner.ts +0 -313
- package/src/typechain-types/seaport-core/src/lib/OrderFulfiller.ts +0 -313
- package/src/typechain-types/seaport-core/src/lib/OrderValidator.ts +0 -313
- package/src/typechain-types/seaport-core/src/lib/ReentrancyGuard.ts +0 -55
- package/src/typechain-types/seaport-core/src/lib/SignatureVerification.ts +0 -55
- package/src/typechain-types/seaport-core/src/lib/TokenTransferrer.ts +0 -55
- package/src/typechain-types/seaport-core/src/lib/Verifiers.ts +0 -313
- package/src/typechain-types/seaport-core/src/lib/ZoneInteraction.ts +0 -55
- package/src/typechain-types/seaport-types/index.ts +0 -5
- package/src/typechain-types/seaport-types/src/index.ts +0 -5
- package/src/typechain-types/seaport-types/src/interfaces/AmountDerivationErrors.ts +0 -55
- package/src/typechain-types/seaport-types/src/interfaces/ConduitControllerInterface.ts +0 -612
- package/src/typechain-types/seaport-types/src/interfaces/ConduitInterface.ts +0 -295
- package/src/typechain-types/seaport-types/src/interfaces/ConsiderationEventsAndErrors.ts +0 -313
- package/src/typechain-types/seaport-types/src/interfaces/ConsiderationInterface.ts +0 -1080
- package/src/typechain-types/seaport-types/src/interfaces/CriteriaResolutionErrors.ts +0 -55
- package/src/typechain-types/seaport-types/src/interfaces/FulfillmentApplicationErrors.ts +0 -55
- package/src/typechain-types/seaport-types/src/interfaces/ReentrancyErrors.ts +0 -55
- package/src/typechain-types/seaport-types/src/interfaces/SignatureVerificationErrors.ts +0 -55
- package/src/typechain-types/seaport-types/src/interfaces/TokenTransferrerErrors.ts +0 -55
- package/src/typechain-types/seaport-types/src/interfaces/ZoneInteractionErrors.ts +0 -55
- package/src/typechain-types/seaport_v1_4/contracts/Seaport.ts +0 -1211
- package/src/typechain-types/seaport_v1_4/contracts/conduit/Conduit.sol/LocalConduit.ts +0 -295
- package/src/typechain-types/seaport_v1_4/contracts/conduit/Conduit.sol/index.ts +0 -4
- package/src/typechain-types/seaport_v1_4/contracts/conduit/ConduitController.sol/LocalConduitController.ts +0 -612
- package/src/typechain-types/seaport_v1_4/contracts/conduit/ConduitController.sol/index.ts +0 -4
- package/src/typechain-types/seaport_v1_4/contracts/conduit/index.ts +0 -7
- package/src/typechain-types/seaport_v1_4/contracts/index.ts +0 -6
- package/src/typechain-types/seaport_v1_4/index.ts +0 -5
- /package/lib/typechain-types/factories/{seaport-core/src → seaport_v1_5/contracts}/conduit/index.d.ts +0 -0
- /package/lib/typechain-types/factories/{seaport-core/src → seaport_v1_5/contracts}/conduit/index.js +0 -0
- /package/lib/typechain-types/factories/{seaport-types/src → seaport_v1_5/contracts}/interfaces/index.d.ts +0 -0
- /package/lib/typechain-types/factories/{seaport-types/src → seaport_v1_5/contracts}/interfaces/index.js +0 -0
- /package/lib/typechain-types/factories/{seaport-core/src → seaport_v1_5/contracts}/lib/index.d.ts +0 -0
- /package/lib/typechain-types/factories/{seaport-core/src → seaport_v1_5/contracts}/lib/index.js +0 -0
- /package/lib/typechain-types/{seaport-core/src → seaport_v1_5/contracts}/conduit/Conduit.js +0 -0
- /package/lib/typechain-types/{seaport-core/src → seaport_v1_5/contracts}/conduit/ConduitController.js +0 -0
- /package/lib/typechain-types/{seaport-core/src → seaport_v1_5/contracts}/conduit/index.d.ts +0 -0
- /package/lib/typechain-types/{domain-registry/contracts → seaport_v1_5/contracts/conduit}/index.js +0 -0
- /package/lib/typechain-types/{seaport-types/src → seaport_v1_5/contracts}/interfaces/AmountDerivationErrors.js +0 -0
- /package/lib/typechain-types/{seaport-types/src → seaport_v1_5/contracts}/interfaces/ConduitControllerInterface.js +0 -0
- /package/lib/typechain-types/{seaport-types/src → seaport_v1_5/contracts}/interfaces/ConduitInterface.js +0 -0
- /package/lib/typechain-types/{seaport-types/src → seaport_v1_5/contracts}/interfaces/ConsiderationEventsAndErrors.js +0 -0
- /package/lib/typechain-types/{seaport-types/src → seaport_v1_5/contracts}/interfaces/ConsiderationInterface.js +0 -0
- /package/lib/typechain-types/{seaport-types/src → seaport_v1_5/contracts}/interfaces/CriteriaResolutionErrors.js +0 -0
- /package/lib/typechain-types/{seaport-types/src → seaport_v1_5/contracts}/interfaces/FulfillmentApplicationErrors.js +0 -0
- /package/lib/typechain-types/{seaport-types/src → seaport_v1_5/contracts}/interfaces/ReentrancyErrors.js +0 -0
- /package/lib/typechain-types/{seaport-types/src → seaport_v1_5/contracts}/interfaces/SignatureVerificationErrors.js +0 -0
- /package/lib/typechain-types/{seaport-types/src → seaport_v1_5/contracts}/interfaces/TokenTransferrerErrors.js +0 -0
- /package/lib/typechain-types/{seaport-types/src → seaport_v1_5/contracts}/interfaces/ZoneInteractionErrors.js +0 -0
- /package/lib/typechain-types/{seaport-types/src → seaport_v1_5/contracts}/interfaces/index.d.ts +0 -0
- /package/lib/typechain-types/{domain-registry → seaport_v1_5}/contracts/interfaces/index.js +0 -0
- /package/lib/typechain-types/{seaport-core/src → seaport_v1_5/contracts}/lib/AmountDeriver.js +0 -0
- /package/lib/typechain-types/{seaport-core/src → seaport_v1_5/contracts}/lib/Assertions.js +0 -0
- /package/lib/typechain-types/{seaport-core/src → seaport_v1_5/contracts}/lib/BasicOrderFulfiller.js +0 -0
- /package/lib/typechain-types/{seaport-core/src → seaport_v1_5/contracts}/lib/Consideration.js +0 -0
- /package/lib/typechain-types/{seaport-core/src → seaport_v1_5/contracts}/lib/ConsiderationBase.js +0 -0
- /package/lib/typechain-types/{seaport-core/src → seaport_v1_5/contracts}/lib/CounterManager.js +0 -0
- /package/lib/typechain-types/{seaport-core/src → seaport_v1_5/contracts}/lib/CriteriaResolution.js +0 -0
- /package/lib/typechain-types/{seaport-core/src → seaport_v1_5/contracts}/lib/Executor.js +0 -0
- /package/lib/typechain-types/{seaport-core/src → seaport_v1_5/contracts}/lib/FulfillmentApplier.js +0 -0
- /package/lib/typechain-types/{seaport-core/src → seaport_v1_5/contracts}/lib/GettersAndDerivers.js +0 -0
- /package/lib/typechain-types/{seaport-core/src → seaport_v1_5/contracts}/lib/OrderCombiner.js +0 -0
- /package/lib/typechain-types/{seaport-core/src → seaport_v1_5/contracts}/lib/OrderFulfiller.js +0 -0
- /package/lib/typechain-types/{seaport-core/src → seaport_v1_5/contracts}/lib/OrderValidator.js +0 -0
- /package/lib/typechain-types/{seaport-core/src → seaport_v1_5/contracts}/lib/ReentrancyGuard.js +0 -0
- /package/lib/typechain-types/{seaport-core/src → seaport_v1_5/contracts}/lib/SignatureVerification.js +0 -0
- /package/lib/typechain-types/{seaport-core/src → seaport_v1_5/contracts}/lib/TokenTransferrer.js +0 -0
- /package/lib/typechain-types/{seaport-core/src → seaport_v1_5/contracts}/lib/Verifiers.js +0 -0
- /package/lib/typechain-types/{seaport-core/src → seaport_v1_5/contracts}/lib/ZoneInteraction.js +0 -0
- /package/lib/typechain-types/{seaport-core/src → seaport_v1_5/contracts}/lib/index.d.ts +0 -0
- /package/lib/typechain-types/{domain-registry → seaport_v1_5/contracts/lib}/index.js +0 -0
- /package/lib/typechain-types/{domain-registry/contracts → src/contracts/DomainRegistry.sol}/DomainRegistry.js +0 -0
- /package/lib/typechain-types/{domain-registry/contracts/interfaces → src/contracts/DomainRegistry.sol}/DomainRegistryInterface.js +0 -0
- /package/lib/typechain-types/{seaport-core → src/contracts/DomainRegistry.sol}/index.js +0 -0
- /package/src/typechain-types/factories/{seaport-core/src → seaport_v1_5/contracts}/conduit/index.ts +0 -0
- /package/src/typechain-types/factories/{seaport-types/src → seaport_v1_5/contracts}/interfaces/index.ts +0 -0
- /package/src/typechain-types/factories/{seaport-core/src → seaport_v1_5/contracts}/lib/index.ts +0 -0
- /package/src/typechain-types/{seaport-core/src → seaport_v1_5/contracts}/conduit/index.ts +0 -0
- /package/src/typechain-types/{seaport-types/src → seaport_v1_5/contracts}/interfaces/index.ts +0 -0
- /package/src/typechain-types/{seaport-core/src → seaport_v1_5/contracts}/lib/index.ts +0 -0
package/lib/seaport.js
CHANGED
|
@@ -1,20 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.Seaport = void 0;
|
|
13
|
-
const multicall_1 = require("@0xsequence/multicall");
|
|
14
4
|
const ethers_1 = require("ethers");
|
|
15
|
-
const utils_1 = require("ethers/lib/utils");
|
|
16
|
-
const DomainRegistry_1 = require("./abi/DomainRegistry");
|
|
17
|
-
const Seaport_v1_4_1 = require("./abi/Seaport_v1_4");
|
|
18
5
|
const constants_1 = require("./constants");
|
|
19
6
|
const approval_1 = require("./utils/approval");
|
|
20
7
|
const balanceAndApprovalCheck_1 = require("./utils/balanceAndApprovalCheck");
|
|
@@ -23,6 +10,7 @@ const fulfill_1 = require("./utils/fulfill");
|
|
|
23
10
|
const item_1 = require("./utils/item");
|
|
24
11
|
const order_1 = require("./utils/order");
|
|
25
12
|
const usecase_1 = require("./utils/usecase");
|
|
13
|
+
const typechain_types_1 = require("./typechain-types");
|
|
26
14
|
class Seaport {
|
|
27
15
|
/**
|
|
28
16
|
* @param providerOrSigner - The provider or signer to use for web3-related calls
|
|
@@ -31,7 +19,6 @@ class Seaport {
|
|
|
31
19
|
constructor(providerOrSigner, { overrides,
|
|
32
20
|
// Five minute buffer
|
|
33
21
|
ascendingAmountFulfillmentBuffer = 300, balanceAndApprovalChecksOnOrderCreation = true, conduitKeyToConduit, seaportVersion = "1.5", } = {}) {
|
|
34
|
-
var _a, _b, _c;
|
|
35
22
|
this.OPENSEA_CONDUIT_KEY = constants_1.OPENSEA_CONDUIT_KEY;
|
|
36
23
|
/**
|
|
37
24
|
* Calculates the order hash of order components so we can forgo executing a request to the contract
|
|
@@ -42,53 +29,53 @@ class Seaport {
|
|
|
42
29
|
const considerationItemTypeString = "ConsiderationItem(uint8 itemType,address token,uint256 identifierOrCriteria,uint256 startAmount,uint256 endAmount,address recipient)";
|
|
43
30
|
const orderComponentsPartialTypeString = "OrderComponents(address offerer,address zone,OfferItem[] offer,ConsiderationItem[] consideration,uint8 orderType,uint256 startTime,uint256 endTime,bytes32 zoneHash,uint256 salt,bytes32 conduitKey,uint256 counter)";
|
|
44
31
|
const orderTypeString = `${orderComponentsPartialTypeString}${considerationItemTypeString}${offerItemTypeString}`;
|
|
45
|
-
const offerItemTypeHash = ethers_1.ethers.
|
|
46
|
-
const considerationItemTypeHash = ethers_1.ethers.
|
|
47
|
-
const orderTypeHash = ethers_1.ethers.
|
|
48
|
-
const offerHash = ethers_1.ethers.
|
|
32
|
+
const offerItemTypeHash = ethers_1.ethers.keccak256(ethers_1.ethers.toUtf8Bytes(offerItemTypeString));
|
|
33
|
+
const considerationItemTypeHash = ethers_1.ethers.keccak256(ethers_1.ethers.toUtf8Bytes(considerationItemTypeString));
|
|
34
|
+
const orderTypeHash = ethers_1.ethers.keccak256(ethers_1.ethers.toUtf8Bytes(orderTypeString));
|
|
35
|
+
const offerHash = ethers_1.ethers.keccak256("0x" +
|
|
49
36
|
orderComponents.offer
|
|
50
37
|
.map((offerItem) => {
|
|
51
|
-
return ethers_1.ethers
|
|
38
|
+
return ethers_1.ethers
|
|
52
39
|
.keccak256("0x" +
|
|
53
40
|
[
|
|
54
41
|
offerItemTypeHash.slice(2),
|
|
55
42
|
offerItem.itemType.toString().padStart(64, "0"),
|
|
56
43
|
offerItem.token.slice(2).padStart(64, "0"),
|
|
57
|
-
ethers_1.ethers
|
|
58
|
-
.
|
|
44
|
+
ethers_1.ethers
|
|
45
|
+
.toBeHex(offerItem.identifierOrCriteria)
|
|
59
46
|
.slice(2)
|
|
60
47
|
.padStart(64, "0"),
|
|
61
|
-
ethers_1.ethers
|
|
62
|
-
.
|
|
48
|
+
ethers_1.ethers
|
|
49
|
+
.toBeHex(offerItem.startAmount)
|
|
63
50
|
.slice(2)
|
|
64
51
|
.padStart(64, "0"),
|
|
65
|
-
ethers_1.ethers
|
|
66
|
-
.
|
|
52
|
+
ethers_1.ethers
|
|
53
|
+
.toBeHex(offerItem.endAmount)
|
|
67
54
|
.slice(2)
|
|
68
55
|
.padStart(64, "0"),
|
|
69
56
|
].join(""))
|
|
70
57
|
.slice(2);
|
|
71
58
|
})
|
|
72
59
|
.join(""));
|
|
73
|
-
const considerationHash = ethers_1.ethers.
|
|
60
|
+
const considerationHash = ethers_1.ethers.keccak256("0x" +
|
|
74
61
|
orderComponents.consideration
|
|
75
62
|
.map((considerationItem) => {
|
|
76
|
-
return ethers_1.ethers
|
|
63
|
+
return ethers_1.ethers
|
|
77
64
|
.keccak256("0x" +
|
|
78
65
|
[
|
|
79
66
|
considerationItemTypeHash.slice(2),
|
|
80
67
|
considerationItem.itemType.toString().padStart(64, "0"),
|
|
81
68
|
considerationItem.token.slice(2).padStart(64, "0"),
|
|
82
|
-
ethers_1.ethers
|
|
83
|
-
.
|
|
69
|
+
ethers_1.ethers
|
|
70
|
+
.toBeHex(considerationItem.identifierOrCriteria)
|
|
84
71
|
.slice(2)
|
|
85
72
|
.padStart(64, "0"),
|
|
86
|
-
ethers_1.ethers
|
|
87
|
-
.
|
|
73
|
+
ethers_1.ethers
|
|
74
|
+
.toBeHex(considerationItem.startAmount)
|
|
88
75
|
.slice(2)
|
|
89
76
|
.padStart(64, "0"),
|
|
90
|
-
ethers_1.ethers
|
|
91
|
-
.
|
|
77
|
+
ethers_1.ethers
|
|
78
|
+
.toBeHex(considerationItem.endAmount)
|
|
92
79
|
.slice(2)
|
|
93
80
|
.padStart(64, "0"),
|
|
94
81
|
considerationItem.recipient.slice(2).padStart(64, "0"),
|
|
@@ -96,7 +83,7 @@ class Seaport {
|
|
|
96
83
|
.slice(2);
|
|
97
84
|
})
|
|
98
85
|
.join(""));
|
|
99
|
-
const derivedOrderHash = ethers_1.ethers.
|
|
86
|
+
const derivedOrderHash = ethers_1.ethers.keccak256("0x" +
|
|
100
87
|
[
|
|
101
88
|
orderTypeHash.slice(2),
|
|
102
89
|
orderComponents.offerer.slice(2).padStart(64, "0"),
|
|
@@ -104,49 +91,44 @@ class Seaport {
|
|
|
104
91
|
offerHash.slice(2),
|
|
105
92
|
considerationHash.slice(2),
|
|
106
93
|
orderComponents.orderType.toString().padStart(64, "0"),
|
|
107
|
-
ethers_1.ethers.
|
|
108
|
-
|
|
109
|
-
.slice(2)
|
|
110
|
-
.padStart(64, "0"),
|
|
111
|
-
ethers_1.ethers.BigNumber.from(orderComponents.endTime)
|
|
112
|
-
.toHexString()
|
|
113
|
-
.slice(2)
|
|
114
|
-
.padStart(64, "0"),
|
|
94
|
+
ethers_1.ethers.toBeHex(orderComponents.startTime).slice(2).padStart(64, "0"),
|
|
95
|
+
ethers_1.ethers.toBeHex(orderComponents.endTime).slice(2).padStart(64, "0"),
|
|
115
96
|
orderComponents.zoneHash.slice(2),
|
|
116
|
-
ethers_1.
|
|
117
|
-
.toHexString()
|
|
118
|
-
.slice(2)
|
|
119
|
-
.padStart(64, "0"),
|
|
97
|
+
ethers_1.ethers.toBeHex(orderComponents.salt).slice(2).padStart(64, "0"),
|
|
120
98
|
orderComponents.conduitKey.slice(2).padStart(64, "0"),
|
|
121
|
-
ethers_1.ethers.
|
|
122
|
-
.toHexString()
|
|
123
|
-
.slice(2)
|
|
124
|
-
.padStart(64, "0"),
|
|
99
|
+
ethers_1.ethers.toBeHex(orderComponents.counter).slice(2).padStart(64, "0"),
|
|
125
100
|
].join(""));
|
|
126
101
|
return derivedOrderHash;
|
|
127
102
|
};
|
|
128
|
-
const provider =
|
|
129
|
-
? providerOrSigner
|
|
130
|
-
: providerOrSigner
|
|
131
|
-
this.signer =
|
|
132
|
-
|
|
133
|
-
|
|
103
|
+
const provider = "provider" in providerOrSigner
|
|
104
|
+
? providerOrSigner.provider
|
|
105
|
+
: providerOrSigner;
|
|
106
|
+
this.signer =
|
|
107
|
+
"getAddress" in providerOrSigner
|
|
108
|
+
? providerOrSigner
|
|
109
|
+
: undefined;
|
|
134
110
|
if (!provider) {
|
|
135
111
|
throw new Error("Either a provider or custom signer with provider must be provided");
|
|
136
112
|
}
|
|
137
113
|
this.provider = provider;
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
this.
|
|
114
|
+
if (seaportVersion !== "1.5") {
|
|
115
|
+
throw new Error("Only Seaport v1.5 is supported in this version of seaport-js");
|
|
116
|
+
}
|
|
117
|
+
const seaportContractAddress = overrides?.contractAddress ?? constants_1.CROSS_CHAIN_SEAPORT_V1_5_ADDRESS;
|
|
118
|
+
this.contract = typechain_types_1.Seaport__factory.connect(seaportContractAddress, this.provider);
|
|
119
|
+
const domainRegistryContractAddress = overrides?.domainRegistryAddress ?? constants_1.DOMAIN_REGISTRY_ADDRESS;
|
|
120
|
+
this.domainRegistry = typechain_types_1.DomainRegistry__factory.connect(domainRegistryContractAddress, this.provider);
|
|
143
121
|
this.config = {
|
|
144
122
|
ascendingAmountFulfillmentBuffer,
|
|
145
123
|
balanceAndApprovalChecksOnOrderCreation,
|
|
146
|
-
conduitKeyToConduit:
|
|
124
|
+
conduitKeyToConduit: {
|
|
125
|
+
...constants_1.KNOWN_CONDUIT_KEYS_TO_CONDUIT,
|
|
126
|
+
[constants_1.NO_CONDUIT]: seaportContractAddress,
|
|
127
|
+
...conduitKeyToConduit,
|
|
128
|
+
},
|
|
147
129
|
seaportVersion,
|
|
148
130
|
};
|
|
149
|
-
this.defaultConduitKey =
|
|
131
|
+
this.defaultConduitKey = overrides?.defaultConduitKey ?? constants_1.NO_CONDUIT;
|
|
150
132
|
}
|
|
151
133
|
/**
|
|
152
134
|
* Returns a use case that will create an order.
|
|
@@ -175,30 +157,28 @@ class Seaport {
|
|
|
175
157
|
* @param exactApproval optional boolean to indicate whether the approval should be exact or not
|
|
176
158
|
* @returns a use case containing the list of actions needed to be performed in order to create the order
|
|
177
159
|
*/
|
|
178
|
-
createOrder(input, accountAddress, exactApproval) {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
};
|
|
201
|
-
});
|
|
160
|
+
async createOrder(input, accountAddress, exactApproval) {
|
|
161
|
+
const signer = await this._getSigner(accountAddress);
|
|
162
|
+
const offerer = accountAddress ?? (await signer.getAddress());
|
|
163
|
+
const { orderComponents, approvalActions } = await this._formatOrder(signer, offerer, Boolean(exactApproval), input);
|
|
164
|
+
const createOrderAction = {
|
|
165
|
+
type: "create",
|
|
166
|
+
getMessageToSign: () => {
|
|
167
|
+
return this._getMessageToSign(orderComponents);
|
|
168
|
+
},
|
|
169
|
+
createOrder: async () => {
|
|
170
|
+
const signature = await this.signOrder(orderComponents, offerer);
|
|
171
|
+
return {
|
|
172
|
+
parameters: orderComponents,
|
|
173
|
+
signature,
|
|
174
|
+
};
|
|
175
|
+
},
|
|
176
|
+
};
|
|
177
|
+
const actions = [...approvalActions, createOrderAction];
|
|
178
|
+
return {
|
|
179
|
+
actions,
|
|
180
|
+
executeAllActions: () => (0, usecase_1.executeAllActions)(actions),
|
|
181
|
+
};
|
|
202
182
|
}
|
|
203
183
|
/**
|
|
204
184
|
* Returns a use case that will create bulk orders.
|
|
@@ -210,126 +190,120 @@ class Seaport {
|
|
|
210
190
|
* @param exactApproval optional boolean to indicate whether the approval should be exact or not
|
|
211
191
|
* @returns a use case containing the list of actions needed to be performed in order to create the orders
|
|
212
192
|
*/
|
|
213
|
-
createBulkOrders(createOrderInput, accountAddress, exactApproval) {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
undefined) {
|
|
229
|
-
allApprovalActions.push(approval);
|
|
230
|
-
}
|
|
193
|
+
async createBulkOrders(createOrderInput, accountAddress, exactApproval) {
|
|
194
|
+
const signer = await this._getSigner(accountAddress);
|
|
195
|
+
const offerer = await signer.getAddress();
|
|
196
|
+
const offererCounter = await this.getCounter(offerer);
|
|
197
|
+
const allApprovalActions = [];
|
|
198
|
+
const allOrderComponents = [];
|
|
199
|
+
for (const input of createOrderInput) {
|
|
200
|
+
input.counter ?? (input.counter = offererCounter);
|
|
201
|
+
const { orderComponents, approvalActions } = await this._formatOrder(signer, offerer, Boolean(exactApproval), input);
|
|
202
|
+
allOrderComponents.push(orderComponents);
|
|
203
|
+
// Dedupe approvals by token address
|
|
204
|
+
for (const approval of approvalActions) {
|
|
205
|
+
if (allApprovalActions.find((a) => a.token === approval.token) ===
|
|
206
|
+
undefined) {
|
|
207
|
+
allApprovalActions.push(approval);
|
|
231
208
|
}
|
|
232
209
|
}
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
}
|
|
210
|
+
}
|
|
211
|
+
const createBulkOrdersAction = {
|
|
212
|
+
type: "createBulk",
|
|
213
|
+
getMessageToSign: () => {
|
|
214
|
+
return this._getBulkMessageToSign(allOrderComponents);
|
|
215
|
+
},
|
|
216
|
+
createBulkOrders: async () => {
|
|
217
|
+
const orders = await this.signBulkOrder(allOrderComponents, offerer);
|
|
218
|
+
return orders;
|
|
219
|
+
},
|
|
220
|
+
};
|
|
221
|
+
const actions = [...allApprovalActions, createBulkOrdersAction];
|
|
222
|
+
return {
|
|
223
|
+
actions,
|
|
224
|
+
executeAllActions: () => (0, usecase_1.executeAllActions)(actions),
|
|
225
|
+
};
|
|
249
226
|
}
|
|
250
227
|
/**
|
|
251
228
|
* Formats an order for creation.
|
|
252
229
|
*/
|
|
253
|
-
_formatOrder(signer, offerer, exactApproval, { conduitKey = this.defaultConduitKey, zone = ethers_1.ethers.
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
if ((fees === null || fees === void 0 ? void 0 : fees.length) &&
|
|
264
|
-
!(0, order_1.areAllCurrenciesSame)({
|
|
265
|
-
offer: offerItems,
|
|
266
|
-
consideration: considerationItems,
|
|
267
|
-
})) {
|
|
268
|
-
throw new Error("All currency tokens in the order must be the same token when applying fees");
|
|
269
|
-
}
|
|
270
|
-
const currencies = [...offerItems, ...considerationItems].filter(item_1.isCurrencyItem);
|
|
271
|
-
const totalCurrencyAmount = (0, order_1.totalItemsAmount)(currencies);
|
|
272
|
-
const operator = this.config.conduitKeyToConduit[conduitKey];
|
|
273
|
-
const orderType = this._getOrderTypeFromOrderOptions({
|
|
274
|
-
allowPartialFills,
|
|
275
|
-
restrictedByZone,
|
|
276
|
-
});
|
|
277
|
-
const considerationItemsWithFees = [
|
|
278
|
-
...(0, order_1.deductFees)(considerationItems, fees),
|
|
279
|
-
...(currencies.length
|
|
280
|
-
? (_a = fees === null || fees === void 0 ? void 0 : fees.map((fee) => (0, order_1.feeToConsiderationItem)({
|
|
281
|
-
fee,
|
|
282
|
-
token: currencies[0].token,
|
|
283
|
-
baseAmount: totalCurrencyAmount.startAmount,
|
|
284
|
-
baseEndAmount: totalCurrencyAmount.endAmount,
|
|
285
|
-
}))) !== null && _a !== void 0 ? _a : []
|
|
286
|
-
: []),
|
|
287
|
-
];
|
|
288
|
-
const saltFollowingConditional = salt !== undefined
|
|
289
|
-
? `0x${ethers_1.BigNumber.from(salt).toHexString().slice(2).padStart(64, "0")}`
|
|
290
|
-
: (0, order_1.generateRandomSalt)(domain);
|
|
291
|
-
const orderComponents = {
|
|
292
|
-
offerer,
|
|
293
|
-
zone,
|
|
294
|
-
zoneHash,
|
|
295
|
-
startTime,
|
|
296
|
-
endTime,
|
|
297
|
-
orderType,
|
|
230
|
+
async _formatOrder(signer, offerer, exactApproval, { conduitKey = this.defaultConduitKey, zone = ethers_1.ethers.ZeroAddress, zoneHash = ethers_1.ethers.ZeroHash, startTime = Math.floor(Date.now() / 1000).toString(), endTime = constants_1.MAX_INT.toString(), offer, consideration, counter, allowPartialFills, restrictedByZone, fees, domain, salt, }) {
|
|
231
|
+
const offerItems = offer.map(order_1.mapInputItemToOfferItem);
|
|
232
|
+
const considerationItems = [
|
|
233
|
+
...consideration.map((consideration) => ({
|
|
234
|
+
...(0, order_1.mapInputItemToOfferItem)(consideration),
|
|
235
|
+
recipient: consideration.recipient ?? offerer,
|
|
236
|
+
})),
|
|
237
|
+
];
|
|
238
|
+
if (fees?.length &&
|
|
239
|
+
!(0, order_1.areAllCurrenciesSame)({
|
|
298
240
|
offer: offerItems,
|
|
299
|
-
consideration:
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
items: offerItems,
|
|
310
|
-
criterias: [],
|
|
311
|
-
multicallProvider: this.multicallProvider,
|
|
312
|
-
operator,
|
|
313
|
-
});
|
|
314
|
-
const insufficientApprovals = (0, balanceAndApprovalCheck_1.validateOfferBalancesAndApprovals)({
|
|
315
|
-
offer: offerItems,
|
|
316
|
-
criterias: [],
|
|
317
|
-
balancesAndApprovals,
|
|
318
|
-
throwOnInsufficientBalances: true,
|
|
319
|
-
operator,
|
|
320
|
-
});
|
|
321
|
-
const approvals = (0, approval_1.getApprovalActions)(insufficientApprovals, exactApproval, signer);
|
|
322
|
-
approvalActions.push(...approvals);
|
|
323
|
-
}
|
|
324
|
-
return { orderComponents, approvalActions };
|
|
241
|
+
consideration: considerationItems,
|
|
242
|
+
})) {
|
|
243
|
+
throw new Error("All currency tokens in the order must be the same token when applying fees");
|
|
244
|
+
}
|
|
245
|
+
const currencies = [...offerItems, ...considerationItems].filter(item_1.isCurrencyItem);
|
|
246
|
+
const totalCurrencyAmount = (0, order_1.totalItemsAmount)(currencies);
|
|
247
|
+
const operator = this.config.conduitKeyToConduit[conduitKey];
|
|
248
|
+
const orderType = this._getOrderTypeFromOrderOptions({
|
|
249
|
+
allowPartialFills,
|
|
250
|
+
restrictedByZone,
|
|
325
251
|
});
|
|
252
|
+
const considerationItemsWithFees = [
|
|
253
|
+
...(0, order_1.deductFees)(considerationItems, fees),
|
|
254
|
+
...(currencies.length
|
|
255
|
+
? fees?.map((fee) => (0, order_1.feeToConsiderationItem)({
|
|
256
|
+
fee,
|
|
257
|
+
token: currencies[0].token,
|
|
258
|
+
baseAmount: totalCurrencyAmount.startAmount,
|
|
259
|
+
baseEndAmount: totalCurrencyAmount.endAmount,
|
|
260
|
+
})) ?? []
|
|
261
|
+
: []),
|
|
262
|
+
];
|
|
263
|
+
const saltFollowingConditional = salt !== undefined
|
|
264
|
+
? `0x${ethers_1.ethers.toBeHex(salt).slice(2).padStart(64, "0")}`
|
|
265
|
+
: (0, order_1.generateRandomSalt)(domain);
|
|
266
|
+
const orderComponents = {
|
|
267
|
+
offerer,
|
|
268
|
+
zone,
|
|
269
|
+
zoneHash,
|
|
270
|
+
startTime,
|
|
271
|
+
endTime,
|
|
272
|
+
orderType,
|
|
273
|
+
offer: offerItems,
|
|
274
|
+
consideration: considerationItemsWithFees,
|
|
275
|
+
totalOriginalConsiderationItems: considerationItemsWithFees.length,
|
|
276
|
+
salt: saltFollowingConditional,
|
|
277
|
+
conduitKey,
|
|
278
|
+
counter: (counter ?? (await this.getCounter(offerer))).toString(),
|
|
279
|
+
};
|
|
280
|
+
const approvalActions = [];
|
|
281
|
+
if (this.config.balanceAndApprovalChecksOnOrderCreation) {
|
|
282
|
+
const balancesAndApprovals = await (0, balanceAndApprovalCheck_1.getBalancesAndApprovals)({
|
|
283
|
+
owner: offerer,
|
|
284
|
+
items: offerItems,
|
|
285
|
+
criterias: [],
|
|
286
|
+
provider: this.provider,
|
|
287
|
+
operator,
|
|
288
|
+
});
|
|
289
|
+
const insufficientApprovals = (0, balanceAndApprovalCheck_1.validateOfferBalancesAndApprovals)({
|
|
290
|
+
offer: offerItems,
|
|
291
|
+
criterias: [],
|
|
292
|
+
balancesAndApprovals,
|
|
293
|
+
throwOnInsufficientBalances: true,
|
|
294
|
+
operator,
|
|
295
|
+
});
|
|
296
|
+
const approvals = (0, approval_1.getApprovalActions)(insufficientApprovals, exactApproval, signer);
|
|
297
|
+
approvalActions.push(...approvals);
|
|
298
|
+
}
|
|
299
|
+
return { orderComponents, approvalActions };
|
|
326
300
|
}
|
|
327
|
-
_getSigner(accountAddress) {
|
|
301
|
+
async _getSigner(accountAddress) {
|
|
328
302
|
if (this.signer) {
|
|
329
303
|
return this.signer;
|
|
330
304
|
}
|
|
331
|
-
if (!(this.provider
|
|
332
|
-
throw new Error("Either signer or
|
|
305
|
+
if (!("send" in this.provider)) {
|
|
306
|
+
throw new Error("Either signer or JsonRpcProvider with signer must be provided");
|
|
333
307
|
}
|
|
334
308
|
return this.provider.getSigner(accountAddress);
|
|
335
309
|
}
|
|
@@ -353,29 +327,25 @@ class Seaport {
|
|
|
353
327
|
* Returns the domain data used when signing typed data
|
|
354
328
|
* @returns domain data
|
|
355
329
|
*/
|
|
356
|
-
_getDomainData() {
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
};
|
|
367
|
-
});
|
|
330
|
+
async _getDomainData() {
|
|
331
|
+
const { chainId } = await this.provider.getNetwork();
|
|
332
|
+
return {
|
|
333
|
+
name: constants_1.SEAPORT_CONTRACT_NAME,
|
|
334
|
+
version: this.config.seaportVersion === "1.5"
|
|
335
|
+
? constants_1.SEAPORT_CONTRACT_VERSION_V1_5
|
|
336
|
+
: constants_1.SEAPORT_CONTRACT_VERSION_V1_4,
|
|
337
|
+
chainId,
|
|
338
|
+
verifyingContract: await this.contract.getAddress(),
|
|
339
|
+
};
|
|
368
340
|
}
|
|
369
341
|
/**
|
|
370
342
|
* Returns a raw message to be signed using EIP-712
|
|
371
343
|
* @param orderParameters order parameter struct
|
|
372
344
|
* @returns JSON string of the message to be signed
|
|
373
345
|
*/
|
|
374
|
-
_getMessageToSign(orderComponents) {
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
return JSON.stringify(utils_1._TypedDataEncoder.getPayload(domainData, constants_1.EIP_712_ORDER_TYPE, orderComponents));
|
|
378
|
-
});
|
|
346
|
+
async _getMessageToSign(orderComponents) {
|
|
347
|
+
const domainData = await this._getDomainData();
|
|
348
|
+
return JSON.stringify(ethers_1.TypedDataEncoder.getPayload(domainData, constants_1.EIP_712_ORDER_TYPE, orderComponents));
|
|
379
349
|
}
|
|
380
350
|
/**
|
|
381
351
|
* Returns a raw bulk order message to be signed using EIP-712
|
|
@@ -383,14 +353,12 @@ class Seaport {
|
|
|
383
353
|
* @param counter counter of the order
|
|
384
354
|
* @returns JSON string of the message to be signed
|
|
385
355
|
*/
|
|
386
|
-
_getBulkMessageToSign(orderComponents) {
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
return JSON.stringify(utils_1._TypedDataEncoder.getPayload(domainData, bulkOrderType, { tree: chunks }));
|
|
393
|
-
});
|
|
356
|
+
async _getBulkMessageToSign(orderComponents) {
|
|
357
|
+
const domainData = await this._getDomainData();
|
|
358
|
+
const tree = (0, bulk_orders_1.getBulkOrderTree)(orderComponents);
|
|
359
|
+
const bulkOrderType = tree.types;
|
|
360
|
+
const chunks = tree.getDataToSign();
|
|
361
|
+
return JSON.stringify(ethers_1.TypedDataEncoder.getPayload(domainData, bulkOrderType, { tree: chunks }));
|
|
394
362
|
}
|
|
395
363
|
/**
|
|
396
364
|
* Submits a request to your provider to sign the order. Signed orders are used for off-chain order books.
|
|
@@ -398,17 +366,15 @@ class Seaport {
|
|
|
398
366
|
* @param accountAddress optional account address from which to sign the order with.
|
|
399
367
|
* @returns the order signature
|
|
400
368
|
*/
|
|
401
|
-
signOrder(orderComponents, accountAddress) {
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
return signature;
|
|
411
|
-
});
|
|
369
|
+
async signOrder(orderComponents, accountAddress) {
|
|
370
|
+
const signer = await this._getSigner(accountAddress);
|
|
371
|
+
const domainData = await this._getDomainData();
|
|
372
|
+
let signature = await signer.signTypedData(domainData, constants_1.EIP_712_ORDER_TYPE, orderComponents);
|
|
373
|
+
// Use EIP-2098 compact signatures to save gas.
|
|
374
|
+
if (signature.length === 132) {
|
|
375
|
+
signature = ethers_1.ethers.Signature.from(signature).compactSerialized;
|
|
376
|
+
}
|
|
377
|
+
return signature;
|
|
412
378
|
}
|
|
413
379
|
/**
|
|
414
380
|
* Submits a request to your provider to sign the bulk order. Signed orders are used for off-chain order books.
|
|
@@ -416,25 +382,23 @@ class Seaport {
|
|
|
416
382
|
* @param accountAddress optional account address from which to sign the order with.
|
|
417
383
|
* @returns the orders with their signatures
|
|
418
384
|
*/
|
|
419
|
-
signBulkOrder(orderComponents, accountAddress) {
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
return orders;
|
|
437
|
-
});
|
|
385
|
+
async signBulkOrder(orderComponents, accountAddress) {
|
|
386
|
+
const signer = await this._getSigner(accountAddress);
|
|
387
|
+
const domainData = await this._getDomainData();
|
|
388
|
+
const tree = (0, bulk_orders_1.getBulkOrderTree)(orderComponents);
|
|
389
|
+
const bulkOrderType = tree.types;
|
|
390
|
+
const chunks = tree.getDataToSign();
|
|
391
|
+
const value = { tree: chunks };
|
|
392
|
+
let signature = await signer.signTypedData(domainData, bulkOrderType, value);
|
|
393
|
+
// Use EIP-2098 compact signatures to save gas.
|
|
394
|
+
if (signature.length === 132) {
|
|
395
|
+
signature = ethers_1.ethers.Signature.from(signature).compactSerialized;
|
|
396
|
+
}
|
|
397
|
+
const orders = orderComponents.map((parameters, i) => ({
|
|
398
|
+
parameters,
|
|
399
|
+
signature: tree.getEncodedProofAndSignature(i, signature),
|
|
400
|
+
}));
|
|
401
|
+
return orders;
|
|
438
402
|
}
|
|
439
403
|
/**
|
|
440
404
|
* Cancels a list of orders so that they are no longer fulfillable.
|
|
@@ -446,8 +410,7 @@ class Seaport {
|
|
|
446
410
|
* @returns the set of transaction methods that can be used
|
|
447
411
|
*/
|
|
448
412
|
cancelOrders(orders, accountAddress, domain, overrides) {
|
|
449
|
-
|
|
450
|
-
return (0, usecase_1.getTransactionMethods)(this.contract.connect(signer), "cancel", [orders, overrides], domain);
|
|
413
|
+
return (0, usecase_1.getTransactionMethods)(this._getSigner(accountAddress), this.contract, "cancel", [orders, overrides], domain);
|
|
451
414
|
}
|
|
452
415
|
/**
|
|
453
416
|
* Bulk cancels all existing orders for a given account
|
|
@@ -457,12 +420,11 @@ class Seaport {
|
|
|
457
420
|
* @returns the set of transaction methods that can be used
|
|
458
421
|
*/
|
|
459
422
|
bulkCancelOrders(offerer, domain, overrides) {
|
|
460
|
-
|
|
461
|
-
return (0, usecase_1.getTransactionMethods)(this.contract.connect(signer), "incrementCounter", [overrides], domain);
|
|
423
|
+
return (0, usecase_1.getTransactionMethods)(this._getSigner(offerer), this.contract, "incrementCounter", [overrides], domain);
|
|
462
424
|
}
|
|
463
425
|
/**
|
|
464
426
|
* Approves a list of orders on-chain. This allows accounts to fulfill the order without requiring
|
|
465
|
-
* a signature. Can also check if an order is valid using `
|
|
427
|
+
* a signature. Can also check if an order is valid using `staticCall`
|
|
466
428
|
* @param orders list of order structs
|
|
467
429
|
* @param accountAddress optional account address to approve orders.
|
|
468
430
|
* @param domain optional domain to be hashed and appended to calldata
|
|
@@ -470,23 +432,24 @@ class Seaport {
|
|
|
470
432
|
* @returns the set of transaction methods that can be used
|
|
471
433
|
*/
|
|
472
434
|
validate(orders, accountAddress, domain, overrides) {
|
|
473
|
-
|
|
474
|
-
return (0, usecase_1.getTransactionMethods)(this.contract.connect(signer), "validate", [orders, overrides], domain);
|
|
435
|
+
return (0, usecase_1.getTransactionMethods)(this._getSigner(accountAddress), this.contract, "validate", [orders, overrides], domain);
|
|
475
436
|
}
|
|
476
437
|
/**
|
|
477
438
|
* Returns the order status given an order hash
|
|
478
439
|
* @param orderHash the hash of the order
|
|
479
440
|
* @returns an order status struct
|
|
480
441
|
*/
|
|
481
|
-
getOrderStatus(orderHash) {
|
|
482
|
-
|
|
442
|
+
async getOrderStatus(orderHash) {
|
|
443
|
+
const result = await this.contract.getOrderStatus(orderHash);
|
|
444
|
+
const [isValidated, isCancelled, totalFilled, totalSize] = result;
|
|
445
|
+
return { isValidated, isCancelled, totalFilled, totalSize };
|
|
483
446
|
}
|
|
484
447
|
/**
|
|
485
448
|
* Gets the counter of a given offerer
|
|
486
449
|
* @param offerer the offerer to get the counter of
|
|
487
450
|
* @returns counter as a number
|
|
488
451
|
*/
|
|
489
|
-
getCounter(offerer) {
|
|
452
|
+
async getCounter(offerer) {
|
|
490
453
|
return this.contract.getCounter(offerer);
|
|
491
454
|
}
|
|
492
455
|
/**
|
|
@@ -510,94 +473,93 @@ class Seaport {
|
|
|
510
473
|
* @param input.overrides any transaction overrides the client wants, ignored if not set
|
|
511
474
|
* @returns a use case containing the set of approval actions and fulfillment action
|
|
512
475
|
*/
|
|
513
|
-
fulfillOrder({ order, unitsToFill, offerCriteria = [], considerationCriteria = [], tips = [], extraData = "0x", accountAddress, conduitKey = this.defaultConduitKey, recipientAddress = ethers_1.ethers.
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
offererBalancesAndApprovals,
|
|
565
|
-
fulfillerBalancesAndApprovals,
|
|
566
|
-
timeBasedItemParams,
|
|
567
|
-
conduitKey,
|
|
568
|
-
offererOperator,
|
|
569
|
-
fulfillerOperator,
|
|
570
|
-
signer: fulfiller,
|
|
571
|
-
tips: tipConsiderationItems,
|
|
572
|
-
domain,
|
|
573
|
-
overrides,
|
|
574
|
-
}, exactApproval);
|
|
575
|
-
}
|
|
576
|
-
// Else, we fallback to the standard fulfill order
|
|
577
|
-
return (0, fulfill_1.fulfillStandardOrder)({
|
|
476
|
+
async fulfillOrder({ order, unitsToFill, offerCriteria = [], considerationCriteria = [], tips = [], extraData = "0x", accountAddress, conduitKey = this.defaultConduitKey, recipientAddress = ethers_1.ethers.ZeroAddress, domain, exactApproval = false, overrides, }) {
|
|
477
|
+
if (!order.signature) {
|
|
478
|
+
throw new Error("Order is missing signature");
|
|
479
|
+
}
|
|
480
|
+
const { parameters: orderParameters } = order;
|
|
481
|
+
const { offerer, offer, consideration } = orderParameters;
|
|
482
|
+
const fulfiller = await this._getSigner(accountAddress);
|
|
483
|
+
const fulfillerAddress = await fulfiller.getAddress();
|
|
484
|
+
const offererOperator = this.config.conduitKeyToConduit[orderParameters.conduitKey];
|
|
485
|
+
const fulfillerOperator = this.config.conduitKeyToConduit[conduitKey];
|
|
486
|
+
const [offererBalancesAndApprovals, fulfillerBalancesAndApprovals, currentBlock, orderStatus,] = await Promise.all([
|
|
487
|
+
(0, balanceAndApprovalCheck_1.getBalancesAndApprovals)({
|
|
488
|
+
owner: offerer,
|
|
489
|
+
items: offer,
|
|
490
|
+
criterias: offerCriteria,
|
|
491
|
+
provider: this.provider,
|
|
492
|
+
operator: offererOperator,
|
|
493
|
+
}),
|
|
494
|
+
// Get fulfiller balances and approvals of all items in the set, as offer items
|
|
495
|
+
// may be received by the fulfiller for standard fulfills
|
|
496
|
+
(0, balanceAndApprovalCheck_1.getBalancesAndApprovals)({
|
|
497
|
+
owner: fulfillerAddress,
|
|
498
|
+
items: [...offer, ...consideration],
|
|
499
|
+
criterias: [...offerCriteria, ...considerationCriteria],
|
|
500
|
+
provider: this.provider,
|
|
501
|
+
operator: fulfillerOperator,
|
|
502
|
+
}),
|
|
503
|
+
this.provider.getBlock("latest"),
|
|
504
|
+
this.getOrderStatus(this.getOrderHash(orderParameters)),
|
|
505
|
+
]);
|
|
506
|
+
const currentBlockTimestamp = currentBlock.timestamp;
|
|
507
|
+
const { totalFilled, totalSize } = orderStatus;
|
|
508
|
+
const sanitizedOrder = (0, fulfill_1.validateAndSanitizeFromOrderStatus)(order, orderStatus);
|
|
509
|
+
const timeBasedItemParams = {
|
|
510
|
+
startTime: sanitizedOrder.parameters.startTime,
|
|
511
|
+
endTime: sanitizedOrder.parameters.endTime,
|
|
512
|
+
currentBlockTimestamp,
|
|
513
|
+
ascendingAmountTimestampBuffer: this.config.ascendingAmountFulfillmentBuffer,
|
|
514
|
+
};
|
|
515
|
+
const tipConsiderationItems = tips.map((tip) => ({
|
|
516
|
+
...(0, order_1.mapInputItemToOfferItem)(tip),
|
|
517
|
+
recipient: tip.recipient,
|
|
518
|
+
}));
|
|
519
|
+
const isRecipientSelf = recipientAddress === ethers_1.ethers.ZeroAddress;
|
|
520
|
+
// We use basic fulfills as they are more optimal for simple and "hot" use cases
|
|
521
|
+
// We cannot use basic fulfill if user is trying to partially fill though.
|
|
522
|
+
if (!unitsToFill &&
|
|
523
|
+
isRecipientSelf &&
|
|
524
|
+
(0, fulfill_1.shouldUseBasicFulfill)(sanitizedOrder.parameters, totalFilled)) {
|
|
525
|
+
// TODO: Use fulfiller proxy if there are approvals needed directly, but none needed for proxy
|
|
526
|
+
return (0, fulfill_1.fulfillBasicOrder)({
|
|
578
527
|
order: sanitizedOrder,
|
|
579
|
-
unitsToFill,
|
|
580
|
-
totalFilled,
|
|
581
|
-
totalSize: totalSize.eq(0)
|
|
582
|
-
? (0, item_1.getMaximumSizeForOrder)(sanitizedOrder)
|
|
583
|
-
: totalSize,
|
|
584
|
-
offerCriteria,
|
|
585
|
-
considerationCriteria,
|
|
586
|
-
tips: tipConsiderationItems,
|
|
587
|
-
extraData,
|
|
588
528
|
seaportContract: this.contract,
|
|
589
529
|
offererBalancesAndApprovals,
|
|
590
530
|
fulfillerBalancesAndApprovals,
|
|
591
531
|
timeBasedItemParams,
|
|
592
532
|
conduitKey,
|
|
593
|
-
signer: fulfiller,
|
|
594
533
|
offererOperator,
|
|
595
534
|
fulfillerOperator,
|
|
596
|
-
|
|
535
|
+
signer: fulfiller,
|
|
536
|
+
tips: tipConsiderationItems,
|
|
597
537
|
domain,
|
|
598
538
|
overrides,
|
|
599
539
|
}, exactApproval);
|
|
600
|
-
}
|
|
540
|
+
}
|
|
541
|
+
// Else, we fallback to the standard fulfill order
|
|
542
|
+
return (0, fulfill_1.fulfillStandardOrder)({
|
|
543
|
+
order: sanitizedOrder,
|
|
544
|
+
unitsToFill,
|
|
545
|
+
totalFilled,
|
|
546
|
+
totalSize: totalSize === 0n ? (0, item_1.getMaximumSizeForOrder)(sanitizedOrder) : totalSize,
|
|
547
|
+
offerCriteria,
|
|
548
|
+
considerationCriteria,
|
|
549
|
+
tips: tipConsiderationItems,
|
|
550
|
+
extraData,
|
|
551
|
+
seaportContract: this.contract,
|
|
552
|
+
offererBalancesAndApprovals,
|
|
553
|
+
fulfillerBalancesAndApprovals,
|
|
554
|
+
timeBasedItemParams,
|
|
555
|
+
conduitKey,
|
|
556
|
+
signer: fulfiller,
|
|
557
|
+
offererOperator,
|
|
558
|
+
fulfillerOperator,
|
|
559
|
+
recipientAddress,
|
|
560
|
+
domain,
|
|
561
|
+
overrides,
|
|
562
|
+
}, exactApproval);
|
|
601
563
|
}
|
|
602
564
|
/**
|
|
603
565
|
* Fulfills an order through best-effort fashion. Orders that fail will not revert the whole transaction
|
|
@@ -612,66 +574,64 @@ class Seaport {
|
|
|
612
574
|
* @param input.exactApproval optional boolean to indicate whether the approval should be exact or not
|
|
613
575
|
* @returns a use case containing the set of approval actions and fulfillment action
|
|
614
576
|
*/
|
|
615
|
-
fulfillOrders({ fulfillOrderDetails, accountAddress, conduitKey = this.defaultConduitKey, recipientAddress = ethers_1.ethers.
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
exactApproval,
|
|
674
|
-
});
|
|
577
|
+
async fulfillOrders({ fulfillOrderDetails, accountAddress, conduitKey = this.defaultConduitKey, recipientAddress = ethers_1.ethers.ZeroAddress, domain, exactApproval = false, }) {
|
|
578
|
+
if (fulfillOrderDetails.some((orderDetails) => !orderDetails.order.signature)) {
|
|
579
|
+
throw new Error("All orders must include signatures");
|
|
580
|
+
}
|
|
581
|
+
const fulfiller = await this._getSigner(accountAddress);
|
|
582
|
+
const fulfillerAddress = await fulfiller.getAddress();
|
|
583
|
+
const allOffererOperators = fulfillOrderDetails.map(({ order }) => this.config.conduitKeyToConduit[order.parameters.conduitKey]);
|
|
584
|
+
const fulfillerOperator = this.config.conduitKeyToConduit[conduitKey];
|
|
585
|
+
const allOfferItems = fulfillOrderDetails.flatMap(({ order }) => order.parameters.offer);
|
|
586
|
+
const allConsiderationItems = fulfillOrderDetails.flatMap(({ order }) => order.parameters.consideration);
|
|
587
|
+
const allOfferCriteria = fulfillOrderDetails.flatMap(({ offerCriteria = [] }) => offerCriteria);
|
|
588
|
+
const allConsiderationCriteria = fulfillOrderDetails.flatMap(({ considerationCriteria = [] }) => considerationCriteria);
|
|
589
|
+
const [offerersBalancesAndApprovals, fulfillerBalancesAndApprovals, currentBlock, orderStatuses,] = await Promise.all([
|
|
590
|
+
Promise.all(fulfillOrderDetails.map(({ order, offerCriteria = [] }, i) => (0, balanceAndApprovalCheck_1.getBalancesAndApprovals)({
|
|
591
|
+
owner: order.parameters.offerer,
|
|
592
|
+
items: order.parameters.offer,
|
|
593
|
+
criterias: offerCriteria,
|
|
594
|
+
operator: allOffererOperators[i],
|
|
595
|
+
provider: this.provider,
|
|
596
|
+
}))),
|
|
597
|
+
// Get fulfiller balances and approvals of all items in the set, as offer items
|
|
598
|
+
// may be received by the fulfiller for standard fulfills
|
|
599
|
+
(0, balanceAndApprovalCheck_1.getBalancesAndApprovals)({
|
|
600
|
+
owner: fulfillerAddress,
|
|
601
|
+
items: [...allOfferItems, ...allConsiderationItems],
|
|
602
|
+
criterias: [...allOfferCriteria, ...allConsiderationCriteria],
|
|
603
|
+
operator: fulfillerOperator,
|
|
604
|
+
provider: this.provider,
|
|
605
|
+
}),
|
|
606
|
+
this.provider.getBlock("latest"),
|
|
607
|
+
Promise.all(fulfillOrderDetails.map(({ order }) => this.getOrderStatus(this.getOrderHash(order.parameters)))),
|
|
608
|
+
]);
|
|
609
|
+
const ordersMetadata = fulfillOrderDetails.map((orderDetails, index) => ({
|
|
610
|
+
order: orderDetails.order,
|
|
611
|
+
unitsToFill: orderDetails.unitsToFill,
|
|
612
|
+
orderStatus: orderStatuses[index],
|
|
613
|
+
offerCriteria: orderDetails.offerCriteria ?? [],
|
|
614
|
+
considerationCriteria: orderDetails.considerationCriteria ?? [],
|
|
615
|
+
tips: orderDetails.tips?.map((tip) => ({
|
|
616
|
+
...(0, order_1.mapInputItemToOfferItem)(tip),
|
|
617
|
+
recipient: tip.recipient,
|
|
618
|
+
})) ?? [],
|
|
619
|
+
extraData: orderDetails.extraData ?? "0x",
|
|
620
|
+
offererBalancesAndApprovals: offerersBalancesAndApprovals[index],
|
|
621
|
+
offererOperator: allOffererOperators[index],
|
|
622
|
+
}));
|
|
623
|
+
return (0, fulfill_1.fulfillAvailableOrders)({
|
|
624
|
+
ordersMetadata,
|
|
625
|
+
seaportContract: this.contract,
|
|
626
|
+
fulfillerBalancesAndApprovals,
|
|
627
|
+
currentBlockTimestamp: currentBlock.timestamp,
|
|
628
|
+
ascendingAmountTimestampBuffer: this.config.ascendingAmountFulfillmentBuffer,
|
|
629
|
+
fulfillerOperator,
|
|
630
|
+
signer: fulfiller,
|
|
631
|
+
conduitKey,
|
|
632
|
+
recipientAddress,
|
|
633
|
+
domain,
|
|
634
|
+
exactApproval,
|
|
675
635
|
});
|
|
676
636
|
}
|
|
677
637
|
/**
|
|
@@ -687,8 +647,7 @@ class Seaport {
|
|
|
687
647
|
* @returns set of transaction methods for matching orders
|
|
688
648
|
*/
|
|
689
649
|
matchOrders({ orders, fulfillments, overrides, accountAddress, domain, }) {
|
|
690
|
-
|
|
691
|
-
return (0, usecase_1.getTransactionMethods)(this.contract.connect(signer), "matchOrders", [orders, fulfillments, overrides], domain);
|
|
650
|
+
return (0, usecase_1.getTransactionMethods)(this._getSigner(accountAddress), this.contract, "matchOrders", [orders, fulfillments, overrides], domain);
|
|
692
651
|
}
|
|
693
652
|
/**
|
|
694
653
|
* Set a domain on the canonical domain registry.
|
|
@@ -698,8 +657,7 @@ class Seaport {
|
|
|
698
657
|
* @returns The domain tag (4 byte keccak hash of the domain)
|
|
699
658
|
*/
|
|
700
659
|
setDomain(domain, accountAddress, overrides) {
|
|
701
|
-
|
|
702
|
-
return (0, usecase_1.getTransactionMethods)(this.domainRegistry.connect(signer), "setDomain", [domain, overrides]);
|
|
660
|
+
return (0, usecase_1.getTransactionMethods)(this._getSigner(accountAddress), this.domainRegistry, "setDomain", [domain, overrides]);
|
|
703
661
|
}
|
|
704
662
|
/**
|
|
705
663
|
* Get the number of domains registered under a domain tag.
|
|
@@ -707,9 +665,7 @@ class Seaport {
|
|
|
707
665
|
* @returns The number of domains registered under the tag.
|
|
708
666
|
*/
|
|
709
667
|
getNumberOfDomains(tag) {
|
|
710
|
-
return
|
|
711
|
-
return this.domainRegistry.getNumberOfDomains(tag);
|
|
712
|
-
});
|
|
668
|
+
return this.domainRegistry.getNumberOfDomains(tag);
|
|
713
669
|
}
|
|
714
670
|
/**
|
|
715
671
|
* Gets the domain at a given index under a domain tag.
|
|
@@ -725,19 +681,17 @@ class Seaport {
|
|
|
725
681
|
* @param tag The domain tag.
|
|
726
682
|
* @returns The domains registered under the tag.
|
|
727
683
|
*/
|
|
728
|
-
getDomains(tag) {
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
}
|
|
740
|
-
});
|
|
684
|
+
async getDomains(tag) {
|
|
685
|
+
try {
|
|
686
|
+
return this.domainRegistry.getDomains(tag);
|
|
687
|
+
}
|
|
688
|
+
catch (error) {
|
|
689
|
+
// If there are too many domains set under the tag, it will revert when trying to return in memory.
|
|
690
|
+
// This fallback will manually query each index to get the full list of domains.
|
|
691
|
+
const totalDomains = await this.domainRegistry.getNumberOfDomains(tag);
|
|
692
|
+
const domainArray = Promise.all([...Array(Number(totalDomains)).keys()].map((i) => this.domainRegistry.getDomain(tag, i)));
|
|
693
|
+
return await domainArray;
|
|
694
|
+
}
|
|
741
695
|
}
|
|
742
696
|
}
|
|
743
697
|
exports.Seaport = Seaport;
|