Download contracts/lib/erc6551-reference/src/interfaces/IERC6551Executable.sol from UTSCybeR/nftbench: direct link, hf CLI and curl.
- Browser
- Download file 1.13 kB
-
https://huggingface.co/datasets/UTSCybeR/nftbench/resolve/main/contracts/lib/erc6551-reference/src/interfaces/IERC6551Executable.sol
- Command line
-
hf download hf://datasets/UTSCybeR/nftbench/contracts/lib/erc6551-reference/src/interfaces/IERC6551Executable.sol
-
curl -L -o IERC6551Executable.sol https://huggingface.co/datasets/UTSCybeR/nftbench/resolve/main/contracts/lib/erc6551-reference/src/interfaces/IERC6551Executable.sol
1.13 kB
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.0; | |
| /// @dev the ERC-165 identifier for this interface is `0x51945447` | |
| interface IERC6551Executable { | |
| /** | |
| * @dev Executes a low-level operation if the caller is a valid signer on the account. | |
| * | |
| * Reverts and bubbles up error if operation fails. | |
| * | |
| * Accounts implementing this interface MUST accept the following operation parameter values: | |
| * - 0 = CALL | |
| * - 1 = DELEGATECALL | |
| * - 2 = CREATE | |
| * - 3 = CREATE2 | |
| * | |
| * Accounts implementing this interface MAY support additional operations or restrict a signer's | |
| * ability to execute certain operations. | |
| * | |
| * @param to The target address of the operation | |
| * @param value The Ether value to be sent to the target | |
| * @param data The encoded operation calldata | |
| * @param operation A value indicating the type of operation to perform | |
| * @return The result of the operation | |
| */ | |
| function execute(address to, uint256 value, bytes calldata data, uint8 operation) | |
| external | |
| payable | |
| returns (bytes memory); | |
| } | |