Skip to content

Commit 1ac28f2

Browse files
authored
Merge branch 'master' into fix/signaturebouncer-fixes
2 parents 9e9b9dc + b120b9a commit 1ac28f2

File tree

3 files changed

+37
-36
lines changed

3 files changed

+37
-36
lines changed

contracts/token/ERC721/ERC721Basic.sol

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,43 @@ import "../../introspection/ERC165.sol";
88
* @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
99
*/
1010
contract ERC721Basic is ERC165 {
11+
12+
bytes4 internal constant InterfaceId_ERC721 = 0x80ac58cd;
13+
/*
14+
* 0x80ac58cd ===
15+
* bytes4(keccak256('balanceOf(address)')) ^
16+
* bytes4(keccak256('ownerOf(uint256)')) ^
17+
* bytes4(keccak256('approve(address,uint256)')) ^
18+
* bytes4(keccak256('getApproved(uint256)')) ^
19+
* bytes4(keccak256('setApprovalForAll(address,bool)')) ^
20+
* bytes4(keccak256('isApprovedForAll(address,address)')) ^
21+
* bytes4(keccak256('transferFrom(address,address,uint256)')) ^
22+
* bytes4(keccak256('safeTransferFrom(address,address,uint256)')) ^
23+
* bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)'))
24+
*/
25+
26+
bytes4 internal constant InterfaceId_ERC721Exists = 0x4f558e79;
27+
/*
28+
* 0x4f558e79 ===
29+
* bytes4(keccak256('exists(uint256)'))
30+
*/
31+
32+
bytes4 internal constant InterfaceId_ERC721Enumerable = 0x780e9d63;
33+
/**
34+
* 0x780e9d63 ===
35+
* bytes4(keccak256('totalSupply()')) ^
36+
* bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) ^
37+
* bytes4(keccak256('tokenByIndex(uint256)'))
38+
*/
39+
40+
bytes4 internal constant InterfaceId_ERC721Metadata = 0x5b5e139f;
41+
/**
42+
* 0x5b5e139f ===
43+
* bytes4(keccak256('name()')) ^
44+
* bytes4(keccak256('symbol()')) ^
45+
* bytes4(keccak256('tokenURI(uint256)'))
46+
*/
47+
1148
event Transfer(
1249
address indexed _from,
1350
address indexed _to,

contracts/token/ERC721/ERC721BasicToken.sol

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,6 @@ import "../../introspection/SupportsInterfaceWithLookup.sol";
1313
*/
1414
contract ERC721BasicToken is SupportsInterfaceWithLookup, ERC721Basic {
1515

16-
bytes4 private constant InterfaceId_ERC721 = 0x80ac58cd;
17-
/*
18-
* 0x80ac58cd ===
19-
* bytes4(keccak256('balanceOf(address)')) ^
20-
* bytes4(keccak256('ownerOf(uint256)')) ^
21-
* bytes4(keccak256('approve(address,uint256)')) ^
22-
* bytes4(keccak256('getApproved(uint256)')) ^
23-
* bytes4(keccak256('setApprovalForAll(address,bool)')) ^
24-
* bytes4(keccak256('isApprovedForAll(address,address)')) ^
25-
* bytes4(keccak256('transferFrom(address,address,uint256)')) ^
26-
* bytes4(keccak256('safeTransferFrom(address,address,uint256)')) ^
27-
* bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)'))
28-
*/
29-
30-
bytes4 private constant InterfaceId_ERC721Exists = 0x4f558e79;
31-
/*
32-
* 0x4f558e79 ===
33-
* bytes4(keccak256('exists(uint256)'))
34-
*/
35-
3616
using SafeMath for uint256;
3717
using AddressUtils for address;
3818

contracts/token/ERC721/ERC721Token.sol

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,6 @@ import "../../introspection/SupportsInterfaceWithLookup.sol";
1313
*/
1414
contract ERC721Token is SupportsInterfaceWithLookup, ERC721BasicToken, ERC721 {
1515

16-
bytes4 private constant InterfaceId_ERC721Enumerable = 0x780e9d63;
17-
/**
18-
* 0x780e9d63 ===
19-
* bytes4(keccak256('totalSupply()')) ^
20-
* bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) ^
21-
* bytes4(keccak256('tokenByIndex(uint256)'))
22-
*/
23-
24-
bytes4 private constant InterfaceId_ERC721Metadata = 0x5b5e139f;
25-
/**
26-
* 0x5b5e139f ===
27-
* bytes4(keccak256('name()')) ^
28-
* bytes4(keccak256('symbol()')) ^
29-
* bytes4(keccak256('tokenURI(uint256)'))
30-
*/
31-
3216
// Token name
3317
string internal name_;
3418

0 commit comments

Comments
 (0)