Download contracts/lib/erc6551-reference/src/interfaces/IERC6551Registry.sol from UTSCybeR/nftbench: direct link, hf CLI and curl.
- Browser
- Download file 1.47 kB
-
https://huggingface.co/datasets/UTSCybeR/nftbench/resolve/main/contracts/lib/erc6551-reference/src/interfaces/IERC6551Registry.sol
- Command line
-
hf download hf://datasets/UTSCybeR/nftbench/contracts/lib/erc6551-reference/src/interfaces/IERC6551Registry.sol
-
curl -L -o IERC6551Registry.sol https://huggingface.co/datasets/UTSCybeR/nftbench/resolve/main/contracts/lib/erc6551-reference/src/interfaces/IERC6551Registry.sol
1.47 kB
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.0; | |
| interface IERC6551Registry { | |
| /** | |
| * @dev The registry MUST emit the ERC6551AccountCreated event upon successful account creation. | |
| */ | |
| event ERC6551AccountCreated( | |
| address account, | |
| address indexed implementation, | |
| bytes32 salt, | |
| uint256 chainId, | |
| address indexed tokenContract, | |
| uint256 indexed tokenId | |
| ); | |
| /** | |
| * @dev The registry MUST revert with AccountCreationFailed error if the create2 operation fails. | |
| */ | |
| error AccountCreationFailed(); | |
| /** | |
| * @dev Creates a token bound account for a non-fungible token. | |
| * | |
| * If account has already been created, returns the account address without calling create2. | |
| * | |
| * Emits ERC6551AccountCreated event. | |
| * | |
| * @return account The address of the token bound account | |
| */ | |
| function createAccount( | |
| address implementation, | |
| bytes32 salt, | |
| uint256 chainId, | |
| address tokenContract, | |
| uint256 tokenId | |
| ) external returns (address account); | |
| /** | |
| * @dev Returns the computed token bound account address for a non-fungible token. | |
| * | |
| * @return account The address of the token bound account | |
| */ | |
| function account( | |
| address implementation, | |
| bytes32 salt, | |
| uint256 chainId, | |
| address tokenContract, | |
| uint256 tokenId | |
| ) external view returns (address account); | |
| } | |