@opensea/seaport-js 2.0.3 → 2.0.5
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 +4 -4
- package/lib/bundle.js +34 -12
- package/lib/constants.js +4 -4
- package/lib/constants.js.map +1 -1
- package/lib/seaport.js +3 -3
- package/lib/seaport.js.map +1 -1
- package/lib/typechain-types/factories/@rari-capital/solmate/src/tokens/ERC1155.sol/ERC1155TokenReceiver__factory.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- package/lib/typechain-types/factories/@rari-capital/solmate/src/tokens/ERC721.sol/ERC721__factory.js.map +1 -1
- package/lib/typechain-types/factories/domain-registry/contracts/DomainRegistry__factory.js +1 -1
- package/lib/typechain-types/factories/domain-registry/contracts/DomainRegistry__factory.js.map +1 -1
- package/lib/typechain-types/factories/domain-registry/contracts/interfaces/DomainRegistryInterface__factory.js +1 -1
- package/lib/typechain-types/factories/domain-registry/contracts/interfaces/DomainRegistryInterface__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-core/src/conduit/ConduitController__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-core/src/conduit/ConduitController__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-core/src/conduit/Conduit__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-core/src/conduit/Conduit__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/AmountDeriver__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/AmountDeriver__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/Assertions__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/Assertions__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/BasicOrderFulfiller__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/BasicOrderFulfiller__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/ConsiderationBase__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/ConsiderationBase__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/Consideration__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/Consideration__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/CounterManager__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/CounterManager__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/CriteriaResolution__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/CriteriaResolution__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/Executor__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/Executor__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/FulfillmentApplier__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/FulfillmentApplier__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/GettersAndDerivers__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/GettersAndDerivers__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/OrderCombiner__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/OrderCombiner__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/OrderFulfiller__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/OrderFulfiller__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/OrderValidator__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/OrderValidator__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/ReentrancyGuard__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/ReentrancyGuard__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/SignatureVerification__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/SignatureVerification__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/TokenTransferrer__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/TokenTransferrer__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/Verifiers__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/Verifiers__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/ZoneInteraction__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-core/src/lib/ZoneInteraction__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/AmountDerivationErrors__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/AmountDerivationErrors__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ConduitControllerInterface__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ConduitControllerInterface__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ConduitInterface__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ConduitInterface__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ConsiderationEventsAndErrors__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ConsiderationEventsAndErrors__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ConsiderationInterface__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ConsiderationInterface__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/CriteriaResolutionErrors__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/CriteriaResolutionErrors__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/FulfillmentApplicationErrors__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/FulfillmentApplicationErrors__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ReentrancyErrors__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ReentrancyErrors__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/SignatureVerificationErrors__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/SignatureVerificationErrors__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/TokenTransferrerErrors__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/TokenTransferrerErrors__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ZoneInteractionErrors__factory.js +1 -1
- package/lib/typechain-types/factories/seaport-types/src/interfaces/ZoneInteractionErrors__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport_v1_4/contracts/Seaport__factory.js +1 -1
- package/lib/typechain-types/factories/seaport_v1_4/contracts/Seaport__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport_v1_4/contracts/conduit/Conduit.sol/LocalConduit__factory.js +1 -1
- package/lib/typechain-types/factories/seaport_v1_4/contracts/conduit/Conduit.sol/LocalConduit__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport_v1_4/contracts/conduit/ConduitController.sol/LocalConduitController__factory.js +1 -1
- package/lib/typechain-types/factories/seaport_v1_4/contracts/conduit/ConduitController.sol/LocalConduitController__factory.js.map +1 -1
- package/lib/typechain-types/factories/seaport_v1_5/contracts/Seaport__factory.js +1 -1
- package/lib/typechain-types/factories/seaport_v1_5/contracts/Seaport__factory.js.map +1 -1
- package/lib/typechain-types/factories/src/contracts/test/TestERC1155__factory.js +1 -1
- 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 +26 -0
- package/lib/typechain-types/factories/src/contracts/test/TestERC1271Wallet.sol/IERC20Approve__factory.js +44 -0
- package/lib/typechain-types/factories/src/contracts/test/TestERC1271Wallet.sol/IERC20Approve__factory.js.map +1 -0
- package/lib/typechain-types/factories/src/contracts/test/TestERC1271Wallet.sol/TestERC1271Wallet__factory.d.ts +96 -0
- package/lib/typechain-types/factories/src/contracts/test/TestERC1271Wallet.sol/TestERC1271Wallet__factory.js +142 -0
- package/lib/typechain-types/factories/src/contracts/test/TestERC1271Wallet.sol/TestERC1271Wallet__factory.js.map +1 -0
- package/lib/typechain-types/factories/src/contracts/test/TestERC1271Wallet.sol/index.d.ts +2 -0
- package/lib/typechain-types/factories/src/contracts/test/TestERC1271Wallet.sol/index.js +11 -0
- package/lib/typechain-types/factories/src/contracts/test/TestERC1271Wallet.sol/index.js.map +1 -0
- package/lib/typechain-types/factories/src/contracts/test/TestERC20USDC__factory.js +1 -1
- package/lib/typechain-types/factories/src/contracts/test/TestERC20USDC__factory.js.map +1 -1
- package/lib/typechain-types/factories/src/contracts/test/TestERC20__factory.js +1 -1
- package/lib/typechain-types/factories/src/contracts/test/TestERC20__factory.js.map +1 -1
- package/lib/typechain-types/factories/src/contracts/test/TestERC721__factory.js +1 -1
- package/lib/typechain-types/factories/src/contracts/test/TestERC721__factory.js.map +1 -1
- package/lib/typechain-types/factories/src/contracts/test/index.d.ts +1 -0
- package/lib/typechain-types/factories/src/contracts/test/index.js +2 -1
- package/lib/typechain-types/factories/src/contracts/test/index.js.map +1 -1
- package/lib/typechain-types/index.d.ts +4 -0
- package/lib/typechain-types/index.js +5 -1
- package/lib/typechain-types/index.js.map +1 -1
- package/lib/typechain-types/src/contracts/test/TestERC1271Wallet.sol/IERC20Approve.d.ts +50 -0
- package/lib/typechain-types/src/contracts/test/TestERC1271Wallet.sol/IERC20Approve.js +3 -0
- package/lib/typechain-types/src/contracts/test/TestERC1271Wallet.sol/IERC20Approve.js.map +1 -0
- package/lib/typechain-types/src/contracts/test/TestERC1271Wallet.sol/TestERC1271Wallet.d.ts +82 -0
- package/lib/typechain-types/src/contracts/test/TestERC1271Wallet.sol/TestERC1271Wallet.js +3 -0
- package/lib/typechain-types/src/contracts/test/TestERC1271Wallet.sol/TestERC1271Wallet.js.map +1 -0
- package/lib/typechain-types/src/contracts/test/TestERC1271Wallet.sol/index.d.ts +2 -0
- package/lib/typechain-types/src/contracts/test/TestERC1271Wallet.sol/index.js +3 -0
- package/lib/typechain-types/src/contracts/test/TestERC1271Wallet.sol/index.js.map +1 -0
- package/lib/typechain-types/src/contracts/test/index.d.ts +2 -0
- package/lib/types.d.ts +1 -0
- package/lib/utils/criteria.js.map +1 -1
- package/package.json +4 -4
- 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/{9bdb09ed3cce3558b76665325e604aed.json → d74aedd79bfea1f175b8b4ef785e53de.json} +1 -1
- package/src/artifacts/domain-registry/contracts/DomainRegistry.sol/DomainRegistry.dbg.json +1 -1
- package/src/artifacts/domain-registry/contracts/interfaces/DomainRegistryInterface.sol/DomainRegistryInterface.dbg.json +1 -1
- package/src/artifacts/seaport-core/src/conduit/Conduit.sol/Conduit.dbg.json +1 -1
- package/src/artifacts/seaport-core/src/conduit/ConduitController.sol/ConduitController.dbg.json +1 -1
- package/src/artifacts/seaport-core/src/lib/AmountDeriver.sol/AmountDeriver.dbg.json +1 -1
- package/src/artifacts/seaport-core/src/lib/Assertions.sol/Assertions.dbg.json +1 -1
- package/src/artifacts/seaport-core/src/lib/BasicOrderFulfiller.sol/BasicOrderFulfiller.dbg.json +1 -1
- package/src/artifacts/seaport-core/src/lib/Consideration.sol/Consideration.dbg.json +1 -1
- package/src/artifacts/seaport-core/src/lib/ConsiderationBase.sol/ConsiderationBase.dbg.json +1 -1
- package/src/artifacts/seaport-core/src/lib/ConsiderationDecoder.sol/ConsiderationDecoder.dbg.json +1 -1
- package/src/artifacts/seaport-core/src/lib/ConsiderationEncoder.sol/ConsiderationEncoder.dbg.json +1 -1
- package/src/artifacts/seaport-core/src/lib/CounterManager.sol/CounterManager.dbg.json +1 -1
- package/src/artifacts/seaport-core/src/lib/CriteriaResolution.sol/CriteriaResolution.dbg.json +1 -1
- package/src/artifacts/seaport-core/src/lib/Executor.sol/Executor.dbg.json +1 -1
- package/src/artifacts/seaport-core/src/lib/FulfillmentApplier.sol/FulfillmentApplier.dbg.json +1 -1
- package/src/artifacts/seaport-core/src/lib/GettersAndDerivers.sol/GettersAndDerivers.dbg.json +1 -1
- package/src/artifacts/seaport-core/src/lib/LowLevelHelpers.sol/LowLevelHelpers.dbg.json +1 -1
- package/src/artifacts/seaport-core/src/lib/OrderCombiner.sol/OrderCombiner.dbg.json +1 -1
- package/src/artifacts/seaport-core/src/lib/OrderFulfiller.sol/OrderFulfiller.dbg.json +1 -1
- package/src/artifacts/seaport-core/src/lib/OrderValidator.sol/OrderValidator.dbg.json +1 -1
- package/src/artifacts/seaport-core/src/lib/ReentrancyGuard.sol/ReentrancyGuard.dbg.json +1 -1
- package/src/artifacts/seaport-core/src/lib/SignatureVerification.sol/SignatureVerification.dbg.json +1 -1
- package/src/artifacts/seaport-core/src/lib/TokenTransferrer.sol/TokenTransferrer.dbg.json +1 -1
- package/src/artifacts/seaport-core/src/lib/Verifiers.sol/Verifiers.dbg.json +1 -1
- package/src/artifacts/seaport-core/src/lib/ZoneInteraction.sol/ZoneInteraction.dbg.json +1 -1
- package/src/artifacts/seaport-types/src/helpers/PointerLibraries.sol/CalldataPointerLib.dbg.json +1 -1
- package/src/artifacts/seaport-types/src/helpers/PointerLibraries.sol/CalldataReaders.dbg.json +1 -1
- package/src/artifacts/seaport-types/src/helpers/PointerLibraries.sol/MemoryPointerLib.dbg.json +1 -1
- package/src/artifacts/seaport-types/src/helpers/PointerLibraries.sol/MemoryReaders.dbg.json +1 -1
- package/src/artifacts/seaport-types/src/helpers/PointerLibraries.sol/MemoryWriters.dbg.json +1 -1
- package/src/artifacts/seaport-types/src/helpers/PointerLibraries.sol/ReturndataPointerLib.dbg.json +1 -1
- package/src/artifacts/seaport-types/src/helpers/PointerLibraries.sol/ReturndataReaders.dbg.json +1 -1
- package/src/artifacts/seaport-types/src/interfaces/AmountDerivationErrors.sol/AmountDerivationErrors.dbg.json +1 -1
- package/src/artifacts/seaport-types/src/interfaces/ConduitControllerInterface.sol/ConduitControllerInterface.dbg.json +1 -1
- package/src/artifacts/seaport-types/src/interfaces/ConduitInterface.sol/ConduitInterface.dbg.json +1 -1
- package/src/artifacts/seaport-types/src/interfaces/ConsiderationEventsAndErrors.sol/ConsiderationEventsAndErrors.dbg.json +1 -1
- package/src/artifacts/seaport-types/src/interfaces/ConsiderationInterface.sol/ConsiderationInterface.dbg.json +1 -1
- package/src/artifacts/seaport-types/src/interfaces/CriteriaResolutionErrors.sol/CriteriaResolutionErrors.dbg.json +1 -1
- package/src/artifacts/seaport-types/src/interfaces/FulfillmentApplicationErrors.sol/FulfillmentApplicationErrors.dbg.json +1 -1
- package/src/artifacts/seaport-types/src/interfaces/ReentrancyErrors.sol/ReentrancyErrors.dbg.json +1 -1
- package/src/artifacts/seaport-types/src/interfaces/SignatureVerificationErrors.sol/SignatureVerificationErrors.dbg.json +1 -1
- package/src/artifacts/seaport-types/src/interfaces/TokenTransferrerErrors.sol/TokenTransferrerErrors.dbg.json +1 -1
- package/src/artifacts/seaport-types/src/interfaces/ZoneInteractionErrors.sol/ZoneInteractionErrors.dbg.json +1 -1
- package/src/artifacts/seaport-types/src/lib/ConsiderationStructs.sol/StructPointers.dbg.json +1 -1
- package/src/artifacts/seaport_v1_4/contracts/Seaport.sol/Seaport.dbg.json +1 -1
- package/src/artifacts/seaport_v1_4/contracts/conduit/Conduit.sol/LocalConduit.dbg.json +1 -1
- package/src/artifacts/seaport_v1_4/contracts/conduit/ConduitController.sol/LocalConduitController.dbg.json +1 -1
- package/src/artifacts/seaport_v1_5/contracts/Seaport.sol/Seaport.dbg.json +1 -1
- package/src/artifacts/src/contracts/test/TestERC1155.sol/TestERC1155.dbg.json +1 -1
- package/src/artifacts/src/contracts/test/TestERC1271Wallet.sol/IERC20Approve.dbg.json +4 -0
- package/src/artifacts/src/contracts/test/TestERC1271Wallet.sol/IERC20Approve.json +35 -0
- package/src/artifacts/src/contracts/test/TestERC1271Wallet.sol/TestERC1271Wallet.dbg.json +4 -0
- package/src/artifacts/src/contracts/test/TestERC1271Wallet.sol/TestERC1271Wallet.json +110 -0
- 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 +1 -1
- package/src/contracts/test/TestERC1271Wallet.sol +89 -0
- package/src/seaport.ts +58 -57
- package/src/typechain-types/factories/src/contracts/test/TestERC1271Wallet.sol/IERC20Approve__factory.ts +50 -0
- package/src/typechain-types/factories/src/contracts/test/TestERC1271Wallet.sol/TestERC1271Wallet__factory.ts +161 -0
- package/src/typechain-types/factories/src/contracts/test/TestERC1271Wallet.sol/index.ts +5 -0
- package/src/typechain-types/factories/src/contracts/test/index.ts +1 -0
- package/src/typechain-types/hardhat.d.ts +18 -0
- package/src/typechain-types/index.ts +4 -0
- package/src/typechain-types/src/contracts/test/TestERC1271Wallet.sol/IERC20Approve.ts +107 -0
- package/src/typechain-types/src/contracts/test/TestERC1271Wallet.sol/TestERC1271Wallet.ts +228 -0
- package/src/typechain-types/src/contracts/test/TestERC1271Wallet.sol/index.ts +5 -0
- package/src/typechain-types/src/contracts/test/index.ts +2 -0
- package/src/types.ts +13 -12
- package/src/utils/approval.ts +9 -9
- package/src/utils/balance.ts +7 -7
- package/src/utils/balanceAndApprovalCheck.ts +22 -22
- package/src/utils/criteria.ts +7 -7
- package/src/utils/eip712/Eip712MerkleTree.ts +2 -2
- package/src/utils/eip712/bulk-orders.ts +2 -2
- package/src/utils/eip712/defaults.ts +5 -5
- package/src/utils/eip712/utils.ts +1 -1
- package/src/utils/fulfill.ts +44 -44
- package/src/utils/item.ts +3 -3
- package/src/utils/merkletree.ts +2 -2
- package/src/utils/order.ts +15 -15
- package/src/utils/usecase.ts +8 -8
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
|
|
5
|
+
import type { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
6
|
+
import type {
|
|
7
|
+
TestERC1271Wallet,
|
|
8
|
+
TestERC1271WalletInterface,
|
|
9
|
+
} from "../../../../../src/contracts/test/TestERC1271Wallet.sol/TestERC1271Wallet";
|
|
10
|
+
|
|
11
|
+
const _abi = [
|
|
12
|
+
{
|
|
13
|
+
inputs: [],
|
|
14
|
+
stateMutability: "nonpayable",
|
|
15
|
+
type: "constructor",
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
inputs: [
|
|
19
|
+
{
|
|
20
|
+
internalType: "address",
|
|
21
|
+
name: "token",
|
|
22
|
+
type: "address",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
internalType: "address",
|
|
26
|
+
name: "spender",
|
|
27
|
+
type: "address",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
internalType: "uint256",
|
|
31
|
+
name: "amount",
|
|
32
|
+
type: "uint256",
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
name: "approveToken",
|
|
36
|
+
outputs: [],
|
|
37
|
+
stateMutability: "nonpayable",
|
|
38
|
+
type: "function",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
inputs: [
|
|
42
|
+
{
|
|
43
|
+
internalType: "bytes32",
|
|
44
|
+
name: "hash",
|
|
45
|
+
type: "bytes32",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
internalType: "bytes",
|
|
49
|
+
name: "signature",
|
|
50
|
+
type: "bytes",
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
name: "isValidSignature",
|
|
54
|
+
outputs: [
|
|
55
|
+
{
|
|
56
|
+
internalType: "bytes4",
|
|
57
|
+
name: "",
|
|
58
|
+
type: "bytes4",
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
stateMutability: "view",
|
|
62
|
+
type: "function",
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
inputs: [
|
|
66
|
+
{
|
|
67
|
+
internalType: "address",
|
|
68
|
+
name: "operator",
|
|
69
|
+
type: "address",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
internalType: "address",
|
|
73
|
+
name: "from",
|
|
74
|
+
type: "address",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
internalType: "uint256",
|
|
78
|
+
name: "tokenId",
|
|
79
|
+
type: "uint256",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
internalType: "bytes",
|
|
83
|
+
name: "_data",
|
|
84
|
+
type: "bytes",
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
name: "onERC721Received",
|
|
88
|
+
outputs: [
|
|
89
|
+
{
|
|
90
|
+
internalType: "bytes4",
|
|
91
|
+
name: "",
|
|
92
|
+
type: "bytes4",
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
stateMutability: "nonpayable",
|
|
96
|
+
type: "function",
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
inputs: [],
|
|
100
|
+
name: "orderSigner",
|
|
101
|
+
outputs: [
|
|
102
|
+
{
|
|
103
|
+
internalType: "address",
|
|
104
|
+
name: "",
|
|
105
|
+
type: "address",
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
stateMutability: "view",
|
|
109
|
+
type: "function",
|
|
110
|
+
},
|
|
111
|
+
] as const;
|
|
112
|
+
|
|
113
|
+
const _bytecode =
|
|
114
|
+
"0x608060405234801561001057600080fd5b50600080546001600160a01b031916331790556104fc806100326000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c8063150b7a02146100515780631626ba7e1461008e578063da3e3397146100a1578063f299f8b3146100b6575b600080fd5b61007061005f366004610386565b630a85bd0160e11b95945050505050565b6040516001600160e01b031990911681526020015b60405180910390f35b61007061009c3660046103f5565b6100e1565b6100b46100af366004610441565b61015a565b005b6000546100c9906001600160a01b031681565b6040516001600160a01b039091168152602001610085565b6000806101248585858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506101d392505050565b6000549091506001600160a01b039081169082160361014d5750630b135d3f60e11b9050610153565b50600090505b9392505050565b60405163095ea7b360e01b81526001600160a01b0383811660048301526024820183905284169063095ea7b3906044016020604051808303816000875af11580156101a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101cd919061047d565b50505050565b60008060008084516041036101fc5750505060208201516040830151606084015160001a610275565b84516040036102295750505060408201516020830151906001600160ff1b0381169060ff1c601b01610275565b60405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640160405180910390fd5b601b8160ff16101561028f5761028c601b8261049f565b90505b8060ff16601b141580156102a757508060ff16601c14155b156102b8576000935050505061031b565b60408051600081526020810180835288905260ff831691810191909152606081018490526080810183905260019060a0016020604051602081039080840390855afa15801561030b573d6000803e3d6000fd5b5050506020604051035193505050505b92915050565b80356001600160a01b038116811461033857600080fd5b919050565b60008083601f84011261034f57600080fd5b50813567ffffffffffffffff81111561036757600080fd5b60208301915083602082850101111561037f57600080fd5b9250929050565b60008060008060006080868803121561039e57600080fd5b6103a786610321565b94506103b560208701610321565b935060408601359250606086013567ffffffffffffffff8111156103d857600080fd5b6103e48882890161033d565b969995985093965092949392505050565b60008060006040848603121561040a57600080fd5b83359250602084013567ffffffffffffffff81111561042857600080fd5b6104348682870161033d565b9497909650939450505050565b60008060006060848603121561045657600080fd5b61045f84610321565b925061046d60208501610321565b9150604084013590509250925092565b60006020828403121561048f57600080fd5b8151801515811461015357600080fd5b60ff818116838216019081111561031b57634e487b7160e01b600052601160045260246000fdfea2646970667358221220ac7fe68b7d06d8c1c5e7b875efc5ed50d1c6df55bcf1085b96ad33f92a27701664736f6c63430008110033";
|
|
115
|
+
|
|
116
|
+
type TestERC1271WalletConstructorParams =
|
|
117
|
+
| [signer?: Signer]
|
|
118
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
119
|
+
|
|
120
|
+
const isSuperArgs = (
|
|
121
|
+
xs: TestERC1271WalletConstructorParams
|
|
122
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
123
|
+
|
|
124
|
+
export class TestERC1271Wallet__factory extends ContractFactory {
|
|
125
|
+
constructor(...args: TestERC1271WalletConstructorParams) {
|
|
126
|
+
if (isSuperArgs(args)) {
|
|
127
|
+
super(...args);
|
|
128
|
+
} else {
|
|
129
|
+
super(_abi, _bytecode, args[0]);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
override deploy(
|
|
134
|
+
overrides?: Overrides & { from?: string }
|
|
135
|
+
): Promise<TestERC1271Wallet> {
|
|
136
|
+
return super.deploy(overrides || {}) as Promise<TestERC1271Wallet>;
|
|
137
|
+
}
|
|
138
|
+
override getDeployTransaction(
|
|
139
|
+
overrides?: Overrides & { from?: string }
|
|
140
|
+
): TransactionRequest {
|
|
141
|
+
return super.getDeployTransaction(overrides || {});
|
|
142
|
+
}
|
|
143
|
+
override attach(address: string): TestERC1271Wallet {
|
|
144
|
+
return super.attach(address) as TestERC1271Wallet;
|
|
145
|
+
}
|
|
146
|
+
override connect(signer: Signer): TestERC1271Wallet__factory {
|
|
147
|
+
return super.connect(signer) as TestERC1271Wallet__factory;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
static readonly bytecode = _bytecode;
|
|
151
|
+
static readonly abi = _abi;
|
|
152
|
+
static createInterface(): TestERC1271WalletInterface {
|
|
153
|
+
return new utils.Interface(_abi) as TestERC1271WalletInterface;
|
|
154
|
+
}
|
|
155
|
+
static connect(
|
|
156
|
+
address: string,
|
|
157
|
+
signerOrProvider: Signer | Provider
|
|
158
|
+
): TestERC1271Wallet {
|
|
159
|
+
return new Contract(address, _abi, signerOrProvider) as TestERC1271Wallet;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* Autogenerated file. Do not edit manually. */
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
|
+
export * as testErc1271WalletSol from "./TestERC1271Wallet.sol";
|
|
4
5
|
export { TestERC1155__factory } from "./TestERC1155__factory";
|
|
5
6
|
export { TestERC20__factory } from "./TestERC20__factory";
|
|
6
7
|
export { TestERC20USDC__factory } from "./TestERC20USDC__factory";
|
|
@@ -184,6 +184,14 @@ declare module "hardhat/types/runtime" {
|
|
|
184
184
|
name: "TestERC1155",
|
|
185
185
|
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
186
186
|
): Promise<Contracts.TestERC1155__factory>;
|
|
187
|
+
getContractFactory(
|
|
188
|
+
name: "IERC20Approve",
|
|
189
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
190
|
+
): Promise<Contracts.IERC20Approve__factory>;
|
|
191
|
+
getContractFactory(
|
|
192
|
+
name: "TestERC1271Wallet",
|
|
193
|
+
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
194
|
+
): Promise<Contracts.TestERC1271Wallet__factory>;
|
|
187
195
|
getContractFactory(
|
|
188
196
|
name: "TestERC20",
|
|
189
197
|
signerOrOptions?: ethers.Signer | FactoryOptions
|
|
@@ -412,6 +420,16 @@ declare module "hardhat/types/runtime" {
|
|
|
412
420
|
address: string,
|
|
413
421
|
signer?: ethers.Signer
|
|
414
422
|
): Promise<Contracts.TestERC1155>;
|
|
423
|
+
getContractAt(
|
|
424
|
+
name: "IERC20Approve",
|
|
425
|
+
address: string,
|
|
426
|
+
signer?: ethers.Signer
|
|
427
|
+
): Promise<Contracts.IERC20Approve>;
|
|
428
|
+
getContractAt(
|
|
429
|
+
name: "TestERC1271Wallet",
|
|
430
|
+
address: string,
|
|
431
|
+
signer?: ethers.Signer
|
|
432
|
+
): Promise<Contracts.TestERC1271Wallet>;
|
|
415
433
|
getContractAt(
|
|
416
434
|
name: "TestERC20",
|
|
417
435
|
address: string,
|
|
@@ -100,6 +100,10 @@ export type { ZoneInteractionErrors } from "./seaport-types/src/interfaces/ZoneI
|
|
|
100
100
|
export { ZoneInteractionErrors__factory } from "./factories/seaport-types/src/interfaces/ZoneInteractionErrors__factory";
|
|
101
101
|
export type { TestERC1155 } from "./src/contracts/test/TestERC1155";
|
|
102
102
|
export { TestERC1155__factory } from "./factories/src/contracts/test/TestERC1155__factory";
|
|
103
|
+
export type { IERC20Approve } from "./src/contracts/test/TestERC1271Wallet.sol/IERC20Approve";
|
|
104
|
+
export { IERC20Approve__factory } from "./factories/src/contracts/test/TestERC1271Wallet.sol/IERC20Approve__factory";
|
|
105
|
+
export type { TestERC1271Wallet } from "./src/contracts/test/TestERC1271Wallet.sol/TestERC1271Wallet";
|
|
106
|
+
export { TestERC1271Wallet__factory } from "./factories/src/contracts/test/TestERC1271Wallet.sol/TestERC1271Wallet__factory";
|
|
103
107
|
export type { TestERC20 } from "./src/contracts/test/TestERC20";
|
|
104
108
|
export { TestERC20__factory } from "./factories/src/contracts/test/TestERC20__factory";
|
|
105
109
|
export type { TestERC20USDC } from "./src/contracts/test/TestERC20USDC";
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BigNumberish,
|
|
8
|
+
BytesLike,
|
|
9
|
+
CallOverrides,
|
|
10
|
+
ContractTransaction,
|
|
11
|
+
Overrides,
|
|
12
|
+
PopulatedTransaction,
|
|
13
|
+
Signer,
|
|
14
|
+
utils,
|
|
15
|
+
} from "ethers";
|
|
16
|
+
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
17
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
18
|
+
import type {
|
|
19
|
+
TypedEventFilter,
|
|
20
|
+
TypedEvent,
|
|
21
|
+
TypedListener,
|
|
22
|
+
OnEvent,
|
|
23
|
+
} from "../../../../common";
|
|
24
|
+
|
|
25
|
+
export interface IERC20ApproveInterface extends utils.Interface {
|
|
26
|
+
functions: {
|
|
27
|
+
"approve(address,uint256)": FunctionFragment;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
getFunction(nameOrSignatureOrTopic: "approve"): FunctionFragment;
|
|
31
|
+
|
|
32
|
+
encodeFunctionData(
|
|
33
|
+
functionFragment: "approve",
|
|
34
|
+
values: [string, BigNumberish]
|
|
35
|
+
): string;
|
|
36
|
+
|
|
37
|
+
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
|
|
38
|
+
|
|
39
|
+
events: {};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface IERC20Approve extends BaseContract {
|
|
43
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
44
|
+
attach(addressOrName: string): this;
|
|
45
|
+
deployed(): Promise<this>;
|
|
46
|
+
|
|
47
|
+
interface: IERC20ApproveInterface;
|
|
48
|
+
|
|
49
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
50
|
+
event: TypedEventFilter<TEvent>,
|
|
51
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
52
|
+
toBlock?: string | number | undefined
|
|
53
|
+
): Promise<Array<TEvent>>;
|
|
54
|
+
|
|
55
|
+
listeners<TEvent extends TypedEvent>(
|
|
56
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
57
|
+
): Array<TypedListener<TEvent>>;
|
|
58
|
+
listeners(eventName?: string): Array<Listener>;
|
|
59
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
60
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
61
|
+
): this;
|
|
62
|
+
removeAllListeners(eventName?: string): this;
|
|
63
|
+
off: OnEvent<this>;
|
|
64
|
+
on: OnEvent<this>;
|
|
65
|
+
once: OnEvent<this>;
|
|
66
|
+
removeListener: OnEvent<this>;
|
|
67
|
+
|
|
68
|
+
functions: {
|
|
69
|
+
approve(
|
|
70
|
+
spender: string,
|
|
71
|
+
amount: BigNumberish,
|
|
72
|
+
overrides?: Overrides & { from?: string }
|
|
73
|
+
): Promise<ContractTransaction>;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
approve(
|
|
77
|
+
spender: string,
|
|
78
|
+
amount: BigNumberish,
|
|
79
|
+
overrides?: Overrides & { from?: string }
|
|
80
|
+
): Promise<ContractTransaction>;
|
|
81
|
+
|
|
82
|
+
callStatic: {
|
|
83
|
+
approve(
|
|
84
|
+
spender: string,
|
|
85
|
+
amount: BigNumberish,
|
|
86
|
+
overrides?: CallOverrides
|
|
87
|
+
): Promise<boolean>;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
filters: {};
|
|
91
|
+
|
|
92
|
+
estimateGas: {
|
|
93
|
+
approve(
|
|
94
|
+
spender: string,
|
|
95
|
+
amount: BigNumberish,
|
|
96
|
+
overrides?: Overrides & { from?: string }
|
|
97
|
+
): Promise<BigNumber>;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
populateTransaction: {
|
|
101
|
+
approve(
|
|
102
|
+
spender: string,
|
|
103
|
+
amount: BigNumberish,
|
|
104
|
+
overrides?: Overrides & { from?: string }
|
|
105
|
+
): Promise<PopulatedTransaction>;
|
|
106
|
+
};
|
|
107
|
+
}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BigNumberish,
|
|
8
|
+
BytesLike,
|
|
9
|
+
CallOverrides,
|
|
10
|
+
ContractTransaction,
|
|
11
|
+
Overrides,
|
|
12
|
+
PopulatedTransaction,
|
|
13
|
+
Signer,
|
|
14
|
+
utils,
|
|
15
|
+
} from "ethers";
|
|
16
|
+
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
17
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
18
|
+
import type {
|
|
19
|
+
TypedEventFilter,
|
|
20
|
+
TypedEvent,
|
|
21
|
+
TypedListener,
|
|
22
|
+
OnEvent,
|
|
23
|
+
} from "../../../../common";
|
|
24
|
+
|
|
25
|
+
export interface TestERC1271WalletInterface extends utils.Interface {
|
|
26
|
+
functions: {
|
|
27
|
+
"approveToken(address,address,uint256)": FunctionFragment;
|
|
28
|
+
"isValidSignature(bytes32,bytes)": FunctionFragment;
|
|
29
|
+
"onERC721Received(address,address,uint256,bytes)": FunctionFragment;
|
|
30
|
+
"orderSigner()": FunctionFragment;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
getFunction(
|
|
34
|
+
nameOrSignatureOrTopic:
|
|
35
|
+
| "approveToken"
|
|
36
|
+
| "isValidSignature"
|
|
37
|
+
| "onERC721Received"
|
|
38
|
+
| "orderSigner"
|
|
39
|
+
): FunctionFragment;
|
|
40
|
+
|
|
41
|
+
encodeFunctionData(
|
|
42
|
+
functionFragment: "approveToken",
|
|
43
|
+
values: [string, string, BigNumberish]
|
|
44
|
+
): string;
|
|
45
|
+
encodeFunctionData(
|
|
46
|
+
functionFragment: "isValidSignature",
|
|
47
|
+
values: [BytesLike, BytesLike]
|
|
48
|
+
): string;
|
|
49
|
+
encodeFunctionData(
|
|
50
|
+
functionFragment: "onERC721Received",
|
|
51
|
+
values: [string, string, BigNumberish, BytesLike]
|
|
52
|
+
): string;
|
|
53
|
+
encodeFunctionData(
|
|
54
|
+
functionFragment: "orderSigner",
|
|
55
|
+
values?: undefined
|
|
56
|
+
): string;
|
|
57
|
+
|
|
58
|
+
decodeFunctionResult(
|
|
59
|
+
functionFragment: "approveToken",
|
|
60
|
+
data: BytesLike
|
|
61
|
+
): Result;
|
|
62
|
+
decodeFunctionResult(
|
|
63
|
+
functionFragment: "isValidSignature",
|
|
64
|
+
data: BytesLike
|
|
65
|
+
): Result;
|
|
66
|
+
decodeFunctionResult(
|
|
67
|
+
functionFragment: "onERC721Received",
|
|
68
|
+
data: BytesLike
|
|
69
|
+
): Result;
|
|
70
|
+
decodeFunctionResult(
|
|
71
|
+
functionFragment: "orderSigner",
|
|
72
|
+
data: BytesLike
|
|
73
|
+
): Result;
|
|
74
|
+
|
|
75
|
+
events: {};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface TestERC1271Wallet extends BaseContract {
|
|
79
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
80
|
+
attach(addressOrName: string): this;
|
|
81
|
+
deployed(): Promise<this>;
|
|
82
|
+
|
|
83
|
+
interface: TestERC1271WalletInterface;
|
|
84
|
+
|
|
85
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
86
|
+
event: TypedEventFilter<TEvent>,
|
|
87
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
88
|
+
toBlock?: string | number | undefined
|
|
89
|
+
): Promise<Array<TEvent>>;
|
|
90
|
+
|
|
91
|
+
listeners<TEvent extends TypedEvent>(
|
|
92
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
93
|
+
): Array<TypedListener<TEvent>>;
|
|
94
|
+
listeners(eventName?: string): Array<Listener>;
|
|
95
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
96
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
97
|
+
): this;
|
|
98
|
+
removeAllListeners(eventName?: string): this;
|
|
99
|
+
off: OnEvent<this>;
|
|
100
|
+
on: OnEvent<this>;
|
|
101
|
+
once: OnEvent<this>;
|
|
102
|
+
removeListener: OnEvent<this>;
|
|
103
|
+
|
|
104
|
+
functions: {
|
|
105
|
+
approveToken(
|
|
106
|
+
token: string,
|
|
107
|
+
spender: string,
|
|
108
|
+
amount: BigNumberish,
|
|
109
|
+
overrides?: Overrides & { from?: string }
|
|
110
|
+
): Promise<ContractTransaction>;
|
|
111
|
+
|
|
112
|
+
isValidSignature(
|
|
113
|
+
hash: BytesLike,
|
|
114
|
+
signature: BytesLike,
|
|
115
|
+
overrides?: CallOverrides
|
|
116
|
+
): Promise<[string]>;
|
|
117
|
+
|
|
118
|
+
onERC721Received(
|
|
119
|
+
operator: string,
|
|
120
|
+
from: string,
|
|
121
|
+
tokenId: BigNumberish,
|
|
122
|
+
_data: BytesLike,
|
|
123
|
+
overrides?: Overrides & { from?: string }
|
|
124
|
+
): Promise<ContractTransaction>;
|
|
125
|
+
|
|
126
|
+
orderSigner(overrides?: CallOverrides): Promise<[string]>;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
approveToken(
|
|
130
|
+
token: string,
|
|
131
|
+
spender: string,
|
|
132
|
+
amount: BigNumberish,
|
|
133
|
+
overrides?: Overrides & { from?: string }
|
|
134
|
+
): Promise<ContractTransaction>;
|
|
135
|
+
|
|
136
|
+
isValidSignature(
|
|
137
|
+
hash: BytesLike,
|
|
138
|
+
signature: BytesLike,
|
|
139
|
+
overrides?: CallOverrides
|
|
140
|
+
): Promise<string>;
|
|
141
|
+
|
|
142
|
+
onERC721Received(
|
|
143
|
+
operator: string,
|
|
144
|
+
from: string,
|
|
145
|
+
tokenId: BigNumberish,
|
|
146
|
+
_data: BytesLike,
|
|
147
|
+
overrides?: Overrides & { from?: string }
|
|
148
|
+
): Promise<ContractTransaction>;
|
|
149
|
+
|
|
150
|
+
orderSigner(overrides?: CallOverrides): Promise<string>;
|
|
151
|
+
|
|
152
|
+
callStatic: {
|
|
153
|
+
approveToken(
|
|
154
|
+
token: string,
|
|
155
|
+
spender: string,
|
|
156
|
+
amount: BigNumberish,
|
|
157
|
+
overrides?: CallOverrides
|
|
158
|
+
): Promise<void>;
|
|
159
|
+
|
|
160
|
+
isValidSignature(
|
|
161
|
+
hash: BytesLike,
|
|
162
|
+
signature: BytesLike,
|
|
163
|
+
overrides?: CallOverrides
|
|
164
|
+
): Promise<string>;
|
|
165
|
+
|
|
166
|
+
onERC721Received(
|
|
167
|
+
operator: string,
|
|
168
|
+
from: string,
|
|
169
|
+
tokenId: BigNumberish,
|
|
170
|
+
_data: BytesLike,
|
|
171
|
+
overrides?: CallOverrides
|
|
172
|
+
): Promise<string>;
|
|
173
|
+
|
|
174
|
+
orderSigner(overrides?: CallOverrides): Promise<string>;
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
filters: {};
|
|
178
|
+
|
|
179
|
+
estimateGas: {
|
|
180
|
+
approveToken(
|
|
181
|
+
token: string,
|
|
182
|
+
spender: string,
|
|
183
|
+
amount: BigNumberish,
|
|
184
|
+
overrides?: Overrides & { from?: string }
|
|
185
|
+
): Promise<BigNumber>;
|
|
186
|
+
|
|
187
|
+
isValidSignature(
|
|
188
|
+
hash: BytesLike,
|
|
189
|
+
signature: BytesLike,
|
|
190
|
+
overrides?: CallOverrides
|
|
191
|
+
): Promise<BigNumber>;
|
|
192
|
+
|
|
193
|
+
onERC721Received(
|
|
194
|
+
operator: string,
|
|
195
|
+
from: string,
|
|
196
|
+
tokenId: BigNumberish,
|
|
197
|
+
_data: BytesLike,
|
|
198
|
+
overrides?: Overrides & { from?: string }
|
|
199
|
+
): Promise<BigNumber>;
|
|
200
|
+
|
|
201
|
+
orderSigner(overrides?: CallOverrides): Promise<BigNumber>;
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
populateTransaction: {
|
|
205
|
+
approveToken(
|
|
206
|
+
token: string,
|
|
207
|
+
spender: string,
|
|
208
|
+
amount: BigNumberish,
|
|
209
|
+
overrides?: Overrides & { from?: string }
|
|
210
|
+
): Promise<PopulatedTransaction>;
|
|
211
|
+
|
|
212
|
+
isValidSignature(
|
|
213
|
+
hash: BytesLike,
|
|
214
|
+
signature: BytesLike,
|
|
215
|
+
overrides?: CallOverrides
|
|
216
|
+
): Promise<PopulatedTransaction>;
|
|
217
|
+
|
|
218
|
+
onERC721Received(
|
|
219
|
+
operator: string,
|
|
220
|
+
from: string,
|
|
221
|
+
tokenId: BigNumberish,
|
|
222
|
+
_data: BytesLike,
|
|
223
|
+
overrides?: Overrides & { from?: string }
|
|
224
|
+
): Promise<PopulatedTransaction>;
|
|
225
|
+
|
|
226
|
+
orderSigner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
227
|
+
};
|
|
228
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/* Autogenerated file. Do not edit manually. */
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
|
+
import type * as testErc1271WalletSol from "./TestERC1271Wallet.sol";
|
|
5
|
+
export type { testErc1271WalletSol };
|
|
4
6
|
export type { TestERC1155 } from "./TestERC1155";
|
|
5
7
|
export type { TestERC20 } from "./TestERC20";
|
|
6
8
|
export type { TestERC20USDC } from "./TestERC20USDC";
|
package/src/types.ts
CHANGED
|
@@ -56,7 +56,7 @@ export type Signer = ethers.Signer & {
|
|
|
56
56
|
_signTypedData(
|
|
57
57
|
domain: TypedDataDomain,
|
|
58
58
|
types: Record<string, Array<TypedDataField>>,
|
|
59
|
-
value: Record<string, any
|
|
59
|
+
value: Record<string, any>,
|
|
60
60
|
): Promise<string>;
|
|
61
61
|
};
|
|
62
62
|
|
|
@@ -159,6 +159,7 @@ export type Fee = {
|
|
|
159
159
|
export type CreateOrderInput = {
|
|
160
160
|
conduitKey?: string;
|
|
161
161
|
zone?: string;
|
|
162
|
+
zoneHash?: string;
|
|
162
163
|
startTime?: BigNumberish;
|
|
163
164
|
endTime?: BigNumberish;
|
|
164
165
|
offer: readonly CreateInputItem[];
|
|
@@ -190,7 +191,7 @@ export type OrderWithCounter = {
|
|
|
190
191
|
|
|
191
192
|
export type ContractMethodReturnType<
|
|
192
193
|
T extends Contract,
|
|
193
|
-
U extends keyof T["callStatic"]
|
|
194
|
+
U extends keyof T["callStatic"],
|
|
194
195
|
// eslint-disable-next-line no-undef
|
|
195
196
|
> = Awaited<ReturnType<T["callStatic"][U]>>;
|
|
196
197
|
|
|
@@ -235,21 +236,21 @@ export type TransactionAction = ApprovalAction | ExchangeAction;
|
|
|
235
236
|
|
|
236
237
|
export type CreateOrderActions = readonly [
|
|
237
238
|
...ApprovalAction[],
|
|
238
|
-
CreateOrderAction
|
|
239
|
+
CreateOrderAction,
|
|
239
240
|
];
|
|
240
241
|
|
|
241
242
|
export type CreateBulkOrdersActions = readonly [
|
|
242
243
|
...ApprovalAction[],
|
|
243
|
-
CreateBulkOrdersAction
|
|
244
|
+
CreateBulkOrdersAction,
|
|
244
245
|
];
|
|
245
246
|
|
|
246
247
|
export type OrderExchangeActions<T> = readonly [
|
|
247
248
|
...ApprovalAction[],
|
|
248
|
-
ExchangeAction<T
|
|
249
|
+
ExchangeAction<T>,
|
|
249
250
|
];
|
|
250
251
|
|
|
251
252
|
export type OrderUseCase<
|
|
252
|
-
T extends CreateOrderAction | CreateBulkOrdersAction | ExchangeAction
|
|
253
|
+
T extends CreateOrderAction | CreateBulkOrdersAction | ExchangeAction,
|
|
253
254
|
> = {
|
|
254
255
|
actions: T extends CreateOrderAction
|
|
255
256
|
? CreateOrderActions
|
|
@@ -290,20 +291,20 @@ export type MatchOrdersFulfillment = {
|
|
|
290
291
|
export type SeaportContract = TypeChainSeaportContract & {
|
|
291
292
|
encodeFunctionData(
|
|
292
293
|
functionFragment: "matchOrders",
|
|
293
|
-
values: [OrderStruct[], MatchOrdersFulfillment[]]
|
|
294
|
+
values: [OrderStruct[], MatchOrdersFulfillment[]],
|
|
294
295
|
): string;
|
|
295
296
|
|
|
296
297
|
matchOrders(
|
|
297
298
|
orders: OrderStruct[],
|
|
298
299
|
fulfillments: MatchOrdersFulfillment[],
|
|
299
|
-
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
300
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> },
|
|
300
301
|
): Promise<ContractTransaction>;
|
|
301
302
|
|
|
302
303
|
functions: TypeChainSeaportContract["functions"] & {
|
|
303
304
|
matchOrders(
|
|
304
305
|
orders: OrderStruct[],
|
|
305
306
|
fulfillments: MatchOrdersFulfillment[],
|
|
306
|
-
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
307
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> },
|
|
307
308
|
): Promise<ContractTransaction>;
|
|
308
309
|
};
|
|
309
310
|
|
|
@@ -311,7 +312,7 @@ export type SeaportContract = TypeChainSeaportContract & {
|
|
|
311
312
|
matchOrders(
|
|
312
313
|
orders: OrderStruct[],
|
|
313
314
|
fulfillments: MatchOrdersFulfillment[],
|
|
314
|
-
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
315
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> },
|
|
315
316
|
): Promise<ContractTransaction>;
|
|
316
317
|
};
|
|
317
318
|
|
|
@@ -319,7 +320,7 @@ export type SeaportContract = TypeChainSeaportContract & {
|
|
|
319
320
|
matchOrders(
|
|
320
321
|
orders: OrderStruct[],
|
|
321
322
|
fulfillments: MatchOrdersFulfillment[],
|
|
322
|
-
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
323
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> },
|
|
323
324
|
): Promise<BigNumber>;
|
|
324
325
|
};
|
|
325
326
|
|
|
@@ -327,7 +328,7 @@ export type SeaportContract = TypeChainSeaportContract & {
|
|
|
327
328
|
matchOrders(
|
|
328
329
|
orders: OrderStruct[],
|
|
329
330
|
fulfillments: MatchOrdersFulfillment[],
|
|
330
|
-
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
331
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> },
|
|
331
332
|
): Promise<PopulatedTransaction>;
|
|
332
333
|
};
|
|
333
334
|
};
|