diff --git a/.changeset/dry-cooks-rescue.md b/.changeset/dry-cooks-rescue.md new file mode 100644 index 0000000000..2508635956 --- /dev/null +++ b/.changeset/dry-cooks-rescue.md @@ -0,0 +1,5 @@ +--- +"@latticexyz/world-modules": patch +--- + +Added missing system interfaces for ERC721, UniqueEntity, and CallWithSignature modules. diff --git a/packages/world-modules/src/interfaces/IERC721System.sol b/packages/world-modules/src/interfaces/IERC721System.sol new file mode 100644 index 0000000000..58a9e86b41 --- /dev/null +++ b/packages/world-modules/src/interfaces/IERC721System.sol @@ -0,0 +1,43 @@ +// SPDX-License-Identifier: MIT +pragma solidity >=0.8.24; + +/* Autogenerated file. Do not edit manually. */ + +/** + * @title IERC721System + * @author MUD (https://mud.dev) by Lattice (https://lattice.xyz) + * @dev This interface is automatically generated from the corresponding system contract. Do not edit manually. + */ +interface IERC721System { + function balanceOf(address owner) external view returns (uint256); + + function ownerOf(uint256 tokenId) external view returns (address); + + function name() external view returns (string memory); + + function symbol() external view returns (string memory); + + function tokenURI(uint256 tokenId) external view returns (string memory); + + function approve(address to, uint256 tokenId) external; + + function getApproved(uint256 tokenId) external view returns (address); + + function setApprovalForAll(address operator, bool approved) external; + + function isApprovedForAll(address owner, address operator) external view returns (bool); + + function transferFrom(address from, address to, uint256 tokenId) external; + + function safeTransferFrom(address from, address to, uint256 tokenId) external; + + function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) external; + + function mint(address to, uint256 tokenId) external; + + function safeMint(address to, uint256 tokenId) external; + + function safeMint(address to, uint256 tokenId, bytes memory data) external; + + function burn(uint256 tokenId) external; +} diff --git a/packages/world-modules/src/interfaces/IUniqueEntitySystem.sol b/packages/world-modules/src/interfaces/IUniqueEntitySystem.sol new file mode 100644 index 0000000000..91c66c9208 --- /dev/null +++ b/packages/world-modules/src/interfaces/IUniqueEntitySystem.sol @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: MIT +pragma solidity >=0.8.24; + +/* Autogenerated file. Do not edit manually. */ + +/** + * @title IUniqueEntitySystem + * @author MUD (https://mud.dev) by Lattice (https://lattice.xyz) + * @dev This interface is automatically generated from the corresponding system contract. Do not edit manually. + */ +interface IUniqueEntitySystem { + function getUniqueEntity() external returns (bytes32); +} diff --git a/packages/world-modules/src/interfaces/IUnstable_CallWithSignatureSystem.sol b/packages/world-modules/src/interfaces/IUnstable_CallWithSignatureSystem.sol new file mode 100644 index 0000000000..11f0ab8371 --- /dev/null +++ b/packages/world-modules/src/interfaces/IUnstable_CallWithSignatureSystem.sol @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: MIT +pragma solidity >=0.8.24; + +/* Autogenerated file. Do not edit manually. */ + +import { ResourceId } from "@latticexyz/store/src/ResourceId.sol"; + +/** + * @title IUnstable_CallWithSignatureSystem + * @author MUD (https://mud.dev) by Lattice (https://lattice.xyz) + * @dev This interface is automatically generated from the corresponding system contract. Do not edit manually. + */ +interface IUnstable_CallWithSignatureSystem { + error InvalidSignature(address signer); + + function callWithSignature( + address signer, + ResourceId systemId, + bytes memory callData, + bytes memory signature + ) external payable returns (bytes memory); +}