OniReimu's picture
NFTBench 0.9.0 preview (part 7)
7fc80d0 verified
Raw History Blame Contribute Delete
1.22 kB
// SPDX-License-Identifier: CC0-1.0
pragma solidity 0.8.17;
/// @title Minimal interface for soulbinding EIP-721 NFTs
/// @author Kfish n Chips
/// @notice interfaceID=0xb45a3c0e
/// @dev https://eips.ethereum.org/EIPS/eip-5192
/// @custom:security-contact security@kfishnchips.com
interface IERC5192 {
error InvalidTokenID();
error InvalidBaseURI();
error TransferNotAllowed();
error ApprovalNotAllowed();
/// @notice Emitted when the locking status is changed to locked.
/// @dev If a token is minted and the status is locked, this event should be emitted.
/// @param tokenId The identifier for a token.
event Locked(uint256 tokenId);
/// @notice Emitted when the locking status is changed to unlocked.
/// @dev If a token is minted and the status is unlocked, this event should be emitted.
/// @param tokenId The identifier for a token.
event Unlocked(uint256 tokenId);
/// @notice Returns the locking status of an Soulbound Token
/// @dev SBTs assigned to zero address are considered invalid, and queries
/// about them do throw.
/// @param tokenId The identifier for an SBT.
function locked(uint256 tokenId) external view returns (bool);
}