-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update EIP-6454: Use overloaded methods
Merged by EIP-Bot.
- Loading branch information
1 parent
305737b
commit ad1408c
Showing
6 changed files
with
92 additions
and
51 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
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,26 @@ | ||
// SPDX-License-Identifier: CC0-1.0 | ||
|
||
pragma solidity ^0.8.16; | ||
|
||
interface IERC6454 { | ||
|
||
/** | ||
* @notice Used to check whether the given token is transferable or not. | ||
* @dev If this function returns `false`, the transfer of the token MUST revert execution | ||
* @dev If the tokenId does not exist, this method MUST revert execution | ||
* @param tokenId ID of the token being checked | ||
* @return Boolean value indicating whether the given token is transferable | ||
*/ | ||
function isTransferable(uint256 tokenId) external view returns (bool); | ||
|
||
/** | ||
* @notice Used to check whether the given token is transferable or not based on source and destination address. | ||
* @dev If this function returns `false`, the transfer of the token MUST revert execution | ||
* @dev If the tokenId does not exist, this method MUST revert execution | ||
* @param tokenId ID of the token being checked | ||
* @param from Address from which the token is being transferred | ||
* @param to Address to which the token is being transferred | ||
* @return Boolean value indicating whether the given token is transferable | ||
*/ | ||
function isTransferable(uint256 tokenId, address from, address to) external view returns (bool); | ||
} |
This file was deleted.
Oops, something went wrong.
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
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
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