OniReimu's picture
NFTBench 0.9.0 preview (part 7)
7fc80d0 verified
Raw History Blame Contribute Delete
756 Bytes
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
/// @title ERC-5192: Minimal Soulbound NFTs
/// @dev See https://eips.ethereum.org/EIPS/eip-5192
interface IERC5192 {
/// @notice Emitted when the locking status is changed to locked.
/// @param tokenId The identifier for a token.
event Locked(uint256 indexed tokenId);
/// @notice Emitted when the locking status is changed to unlocked.
/// @param tokenId The identifier for a token.
event Unlocked(uint256 indexed tokenId);
/// @notice Returns the locking status of an Soulbound Token
/// @param tokenId The identifier for an SBT.
/// @return True if the token is locked, false otherwise.
function locked(uint256 tokenId) external view returns (bool);
}