mirror of
https://github.com/placeholder-soft/tokenbound.git
synced 2026-01-12 22:44:58 +08:00
49 lines
1.0 KiB
Solidity
49 lines
1.0 KiB
Solidity
// SPDX-License-Identifier: UNLICENSED
|
|
pragma solidity ^0.8.13;
|
|
|
|
import "./MockReverter.sol";
|
|
import "@openzeppelin/contracts/interfaces/IERC1271.sol";
|
|
|
|
contract MockExecutor is MockReverter {
|
|
function customFunction() external pure returns (uint256) {
|
|
return 12345;
|
|
}
|
|
|
|
function supportsInterface(bytes4 interfaceId)
|
|
external
|
|
pure
|
|
returns (bool)
|
|
{
|
|
return interfaceId == 0x12345678;
|
|
}
|
|
|
|
function onERC721Received(
|
|
address,
|
|
address,
|
|
uint256,
|
|
bytes memory
|
|
) public pure returns (bytes4) {
|
|
return bytes4("");
|
|
}
|
|
|
|
function onERC1155Received(
|
|
address,
|
|
address,
|
|
uint256,
|
|
uint256,
|
|
bytes memory
|
|
) public pure returns (bytes4) {
|
|
return bytes4("");
|
|
}
|
|
|
|
function onERC1155BatchReceived(
|
|
address,
|
|
address,
|
|
uint256[] memory,
|
|
uint256[] memory,
|
|
bytes memory
|
|
) public pure returns (bytes4) {
|
|
return bytes4("");
|
|
}
|
|
}
|