Download contracts/src/interfaces/IERC5006.sol from UTSCybeR/nftbench: direct link, hf CLI and curl.
- Browser
- Download file 973 Bytes
-
https://huggingface.co/datasets/UTSCybeR/nftbench/resolve/main/contracts/src/interfaces/IERC5006.sol
- Command line
-
hf download hf://datasets/UTSCybeR/nftbench/contracts/src/interfaces/IERC5006.sol
-
curl -L -o IERC5006.sol https://huggingface.co/datasets/UTSCybeR/nftbench/resolve/main/contracts/src/interfaces/IERC5006.sol
973 Bytes
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.20; | |
| interface IERC5006 { | |
| struct UserRecord { | |
| uint256 tokenId; | |
| address owner; | |
| uint64 amount; | |
| address user; | |
| uint64 expiry; | |
| } | |
| event CreateUserRecord( | |
| uint256 recordId, | |
| uint256 tokenId, | |
| uint64 amount, | |
| address owner, | |
| address user, | |
| uint64 expiry | |
| ); | |
| event DeleteUserRecord(uint256 recordId); | |
| function usableBalanceOf(address account, uint256 tokenId) external view returns (uint256); | |
| function frozenBalanceOf(address account, uint256 tokenId) external view returns (uint256); | |
| function userRecordOf(uint256 recordId) external view returns (UserRecord memory); | |
| function createUserRecord( | |
| address owner, | |
| address user, | |
| uint256 tokenId, | |
| uint64 amount, | |
| uint64 expiry | |
| ) external returns (uint256); | |
| function deleteUserRecord(uint256 recordId) external; | |
| } | |