-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(world-modules): add missing interfaces (#2605)
- Loading branch information
Showing
4 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@latticexyz/world-modules": patch | ||
--- | ||
|
||
Added missing system interfaces for ERC721, UniqueEntity, and CallWithSignature modules. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
13 changes: 13 additions & 0 deletions
13
packages/world-modules/src/interfaces/IUniqueEntitySystem.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} |
22 changes: 22 additions & 0 deletions
22
packages/world-modules/src/interfaces/IUnstable_CallWithSignatureSystem.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} |