Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
d3116fce
Commit
d3116fce
authored
Sep 26, 2018
by
Francisco Giordano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add Initializable to simple ERC721 contracts
parent
cda2866e
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
5 deletions
+10
-5
ERC721Holder.sol
contracts/token/ERC721/ERC721Holder.sol
+2
-1
IERC721.sol
contracts/token/ERC721/IERC721.sol
+2
-1
IERC721Enumerable.sol
contracts/token/ERC721/IERC721Enumerable.sol
+2
-1
IERC721Full.sol
contracts/token/ERC721/IERC721Full.sol
+2
-1
IERC721Metadata.sol
contracts/token/ERC721/IERC721Metadata.sol
+2
-1
No files found.
contracts/token/ERC721/ERC721Holder.sol
View file @
d3116fce
pragma solidity ^0.4.24;
pragma solidity ^0.4.24;
import "../../Initializable.sol";
import "./IERC721Receiver.sol";
import "./IERC721Receiver.sol";
contract ERC721Holder is IERC721Receiver {
contract ERC721Holder is I
nitializable, I
ERC721Receiver {
function onERC721Received(
function onERC721Received(
address,
address,
address,
address,
...
...
contracts/token/ERC721/IERC721.sol
View file @
d3116fce
pragma solidity ^0.4.24;
pragma solidity ^0.4.24;
import "../../Initializable.sol";
import "../../introspection/IERC165.sol";
import "../../introspection/IERC165.sol";
...
@@ -7,7 +8,7 @@ import "../../introspection/IERC165.sol";
...
@@ -7,7 +8,7 @@ import "../../introspection/IERC165.sol";
* @title ERC721 Non-Fungible Token Standard basic interface
* @title ERC721 Non-Fungible Token Standard basic interface
* @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
* @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
*/
*/
contract IERC721 is IERC165 {
contract IERC721 is I
nitializable, I
ERC165 {
event Transfer(
event Transfer(
address indexed from,
address indexed from,
...
...
contracts/token/ERC721/IERC721Enumerable.sol
View file @
d3116fce
pragma solidity ^0.4.24;
pragma solidity ^0.4.24;
import "../../Initializable.sol";
import "./IERC721.sol";
import "./IERC721.sol";
...
@@ -7,7 +8,7 @@ import "./IERC721.sol";
...
@@ -7,7 +8,7 @@ import "./IERC721.sol";
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
* @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
*/
*/
contract IERC721Enumerable is IERC721 {
contract IERC721Enumerable is I
nitializable, I
ERC721 {
function totalSupply() public view returns (uint256);
function totalSupply() public view returns (uint256);
function tokenOfOwnerByIndex(
function tokenOfOwnerByIndex(
address owner,
address owner,
...
...
contracts/token/ERC721/IERC721Full.sol
View file @
d3116fce
pragma solidity ^0.4.24;
pragma solidity ^0.4.24;
import "../../Initializable.sol";
import "./IERC721.sol";
import "./IERC721.sol";
import "./IERC721Enumerable.sol";
import "./IERC721Enumerable.sol";
import "./IERC721Metadata.sol";
import "./IERC721Metadata.sol";
...
@@ -9,5 +10,5 @@ import "./IERC721Metadata.sol";
...
@@ -9,5 +10,5 @@ import "./IERC721Metadata.sol";
* @title ERC-721 Non-Fungible Token Standard, full implementation interface
* @title ERC-721 Non-Fungible Token Standard, full implementation interface
* @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
* @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
*/
*/
contract IERC721Full is IERC721, IERC721Enumerable, IERC721Metadata {
contract IERC721Full is I
nitializable, I
ERC721, IERC721Enumerable, IERC721Metadata {
}
}
contracts/token/ERC721/IERC721Metadata.sol
View file @
d3116fce
pragma solidity ^0.4.24;
pragma solidity ^0.4.24;
import "../../Initializable.sol";
import "./IERC721.sol";
import "./IERC721.sol";
...
@@ -7,7 +8,7 @@ import "./IERC721.sol";
...
@@ -7,7 +8,7 @@ import "./IERC721.sol";
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
* @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
*/
*/
contract IERC721Metadata is IERC721 {
contract IERC721Metadata is I
nitializable, I
ERC721 {
function name() external view returns (string);
function name() external view returns (string);
function symbol() external view returns (string);
function symbol() external view returns (string);
function tokenURI(uint256 tokenId) public view returns (string);
function tokenURI(uint256 tokenId) public view returns (string);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment