* Update ERC721 to latest 1.11.0 from OpenZeppelin-solidity * Hardcode supported interfaces instead of using lookup table. This avoids shifting storage when extending supports interface. * Update build artifacts * Fix linter errors
51 lines
1.4 KiB
Solidity
51 lines
1.4 KiB
Solidity
pragma solidity ^0.4.21;
|
|
|
|
import "../../introspection/ERC165.sol";
|
|
|
|
|
|
/**
|
|
* @title ERC721 Non-Fungible Token Standard basic interface
|
|
* @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
|
|
*/
|
|
contract ERC721Basic is ERC165 {
|
|
event Transfer(
|
|
address indexed _from,
|
|
address indexed _to,
|
|
uint256 indexed _tokenId
|
|
);
|
|
event Approval(
|
|
address indexed _owner,
|
|
address indexed _approved,
|
|
uint256 indexed _tokenId
|
|
);
|
|
event ApprovalForAll(
|
|
address indexed _owner,
|
|
address indexed _operator,
|
|
bool _approved
|
|
);
|
|
|
|
function balanceOf(address _owner) public view returns (uint256 _balance);
|
|
function ownerOf(uint256 _tokenId) public view returns (address _owner);
|
|
function exists(uint256 _tokenId) public view returns (bool _exists);
|
|
|
|
function approve(address _to, uint256 _tokenId) public;
|
|
function getApproved(uint256 _tokenId)
|
|
public view returns (address _operator);
|
|
|
|
function setApprovalForAll(address _operator, bool _approved) public;
|
|
function isApprovedForAll(address _owner, address _operator)
|
|
public view returns (bool);
|
|
|
|
function transferFrom(address _from, address _to, uint256 _tokenId) public;
|
|
function safeTransferFrom(address _from, address _to, uint256 _tokenId)
|
|
public;
|
|
|
|
function safeTransferFrom(
|
|
address _from,
|
|
address _to,
|
|
uint256 _tokenId,
|
|
bytes _data
|
|
)
|
|
public;
|
|
}
|