Skip to content

Commit

Permalink
fix(world-modules): add missing interfaces (#2605)
Browse files Browse the repository at this point in the history
  • Loading branch information
holic authored Apr 3, 2024
1 parent d02efd8 commit e2e8ec8
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/dry-cooks-rescue.md
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.
43 changes: 43 additions & 0 deletions packages/world-modules/src/interfaces/IERC721System.sol
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 packages/world-modules/src/interfaces/IUniqueEntitySystem.sol
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);
}
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);
}

0 comments on commit e2e8ec8

Please sign in to comment.