Download third_party/real_code/rc01/sources/src/IERC5192.sol from UTSCybeR/nftbench: direct link, hf CLI and curl.
- Browser
- Download file 1.22 kB
-
https://huggingface.co/datasets/UTSCybeR/nftbench/resolve/main/third_party/real_code/rc01/sources/src/IERC5192.sol
- Command line
-
hf download hf://datasets/UTSCybeR/nftbench/third_party/real_code/rc01/sources/src/IERC5192.sol
-
curl -L -o IERC5192.sol https://huggingface.co/datasets/UTSCybeR/nftbench/resolve/main/third_party/real_code/rc01/sources/src/IERC5192.sol
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); | |
| } |