diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-07-07 00:51:23 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-07-07 01:58:28 +0800 |
commit | d2e422cd5eab26108e6c7a9f73c944f4b6fb4fdd (patch) | |
tree | 978dd0a5132eee644d2163a33e25a24fdd4a3f14 /packages/contracts/src/2.0.0/tokens/ERC721Token/IERC721Token.sol | |
parent | e796734659ddea76622d81b4416e0b36d5e7c0ed (diff) | |
download | dexon-0x-contracts-d2e422cd5eab26108e6c7a9f73c944f4b6fb4fdd.tar dexon-0x-contracts-d2e422cd5eab26108e6c7a9f73c944f4b6fb4fdd.tar.gz dexon-0x-contracts-d2e422cd5eab26108e6c7a9f73c944f4b6fb4fdd.tar.bz2 dexon-0x-contracts-d2e422cd5eab26108e6c7a9f73c944f4b6fb4fdd.tar.lz dexon-0x-contracts-d2e422cd5eab26108e6c7a9f73c944f4b6fb4fdd.tar.xz dexon-0x-contracts-d2e422cd5eab26108e6c7a9f73c944f4b6fb4fdd.tar.zst dexon-0x-contracts-d2e422cd5eab26108e6c7a9f73c944f4b6fb4fdd.zip |
Apply new linter rules
Diffstat (limited to 'packages/contracts/src/2.0.0/tokens/ERC721Token/IERC721Token.sol')
-rw-r--r-- | packages/contracts/src/2.0.0/tokens/ERC721Token/IERC721Token.sol | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/packages/contracts/src/2.0.0/tokens/ERC721Token/IERC721Token.sol b/packages/contracts/src/2.0.0/tokens/ERC721Token/IERC721Token.sol index 0d64ee861..4d57ece38 100644 --- a/packages/contracts/src/2.0.0/tokens/ERC721Token/IERC721Token.sol +++ b/packages/contracts/src/2.0.0/tokens/ERC721Token/IERC721Token.sol @@ -23,7 +23,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -pragma solidity ^0.4.24; +pragma solidity 0.4.24; /** @@ -40,11 +40,13 @@ contract IERC721Token { address indexed _to, uint256 _tokenId ); + event Approval( address indexed _owner, address indexed _approved, uint256 _tokenId ); + event ApprovalForAll( address indexed _owner, address indexed _operator, @@ -55,6 +57,7 @@ contract IERC721Token { public view returns (string); + function symbol() public view @@ -64,10 +67,12 @@ contract IERC721Token { public view returns (uint256 _balance); + function ownerOf(uint256 _tokenId) public view returns (address _owner); + function exists(uint256 _tokenId) public view @@ -75,6 +80,7 @@ contract IERC721Token { function approve(address _to, uint256 _tokenId) public; + function getApproved(uint256 _tokenId) public view @@ -82,6 +88,7 @@ contract IERC721Token { function setApprovalForAll(address _operator, bool _approved) public; + function isApprovedForAll(address _owner, address _operator) public view @@ -90,17 +97,22 @@ contract IERC721Token { function transferFrom( address _from, address _to, - uint256 _tokenId) + uint256 _tokenId + ) public; + function safeTransferFrom( address _from, address _to, - uint256 _tokenId) + uint256 _tokenId + ) public; + function safeTransferFrom( address _from, address _to, uint256 _tokenId, - bytes _data) + bytes _data + ) public; } |