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
2fc0aaab
Commit
2fc0aaab
authored
Feb 24, 2019
by
William Entriken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use canonical EIP reference format
parent
ae411958
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
12 additions
and
12 deletions
+12
-12
ERC165Checker.sol
contracts/introspection/ERC165Checker.sol
+1
-1
IERC165.sol
contracts/introspection/IERC165.sol
+1
-1
ERC165InterfacesSupported.sol
contracts/mocks/ERC165/ERC165InterfacesSupported.sol
+1
-1
OwnableInterfaceId.sol
contracts/mocks/OwnableInterfaceId.sol
+1
-1
ERC20.sol
contracts/token/ERC20/ERC20.sol
+1
-1
IERC20.sol
contracts/token/ERC20/IERC20.sol
+1
-1
ERC721.sol
contracts/token/ERC721/ERC721.sol
+1
-1
ERC721Enumerable.sol
contracts/token/ERC721/ERC721Enumerable.sol
+1
-1
ERC721Full.sol
contracts/token/ERC721/ERC721Full.sol
+1
-1
IERC721Enumerable.sol
contracts/token/ERC721/IERC721Enumerable.sol
+1
-1
IERC721Full.sol
contracts/token/ERC721/IERC721Full.sol
+1
-1
IERC721Metadata.sol
contracts/token/ERC721/IERC721Metadata.sol
+1
-1
No files found.
contracts/introspection/ERC165Checker.sol
View file @
2fc0aaab
...
@@ -3,7 +3,7 @@ pragma solidity ^0.5.2;
...
@@ -3,7 +3,7 @@ pragma solidity ^0.5.2;
/**
/**
* @title ERC165Checker
* @title ERC165Checker
* @dev Use `using ERC165Checker for address`; to include this library
* @dev Use `using ERC165Checker for address`; to include this library
* https://
github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md
* https://
eips.ethereum.org/EIPS/eip-165
*/
*/
library ERC165Checker {
library ERC165Checker {
// As per the EIP-165 spec, no interface should ever match 0xffffffff
// As per the EIP-165 spec, no interface should ever match 0xffffffff
...
...
contracts/introspection/IERC165.sol
View file @
2fc0aaab
...
@@ -2,7 +2,7 @@ pragma solidity ^0.5.2;
...
@@ -2,7 +2,7 @@ pragma solidity ^0.5.2;
/**
/**
* @title IERC165
* @title IERC165
* @dev https://
github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md
* @dev https://
eips.ethereum.org/EIPS/eip-165
*/
*/
interface IERC165 {
interface IERC165 {
/**
/**
...
...
contracts/mocks/ERC165/ERC165InterfacesSupported.sol
View file @
2fc0aaab
...
@@ -3,7 +3,7 @@ pragma solidity ^0.5.2;
...
@@ -3,7 +3,7 @@ pragma solidity ^0.5.2;
import "../../introspection/IERC165.sol";
import "../../introspection/IERC165.sol";
/**
/**
* https://
github.com/ethereum/EIPs/blob/master/EIPS/eip-214.md
#specification
* https://
eips.ethereum.org/EIPS/eip-214
#specification
* From the specification:
* From the specification:
* > Any attempts to make state-changing operations inside an execution instance with STATIC set to true will instead
* > Any attempts to make state-changing operations inside an execution instance with STATIC set to true will instead
* throw an exception.
* throw an exception.
...
...
contracts/mocks/OwnableInterfaceId.sol
View file @
2fc0aaab
...
@@ -5,7 +5,7 @@ import "../ownership/Ownable.sol";
...
@@ -5,7 +5,7 @@ import "../ownership/Ownable.sol";
/**
/**
* @title Ownable interface id calculator.
* @title Ownable interface id calculator.
* @dev See the EIP165 specification for more information:
* @dev See the EIP165 specification for more information:
* https://
github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md
#specification
* https://
eips.ethereum.org/EIPS/eip-165
#specification
*/
*/
contract OwnableInterfaceId {
contract OwnableInterfaceId {
function getInterfaceId() public pure returns (bytes4) {
function getInterfaceId() public pure returns (bytes4) {
...
...
contracts/token/ERC20/ERC20.sol
View file @
2fc0aaab
...
@@ -7,7 +7,7 @@ import "../../math/SafeMath.sol";
...
@@ -7,7 +7,7 @@ import "../../math/SafeMath.sol";
* @title Standard ERC20 token
* @title Standard ERC20 token
*
*
* @dev Implementation of the basic standard token.
* @dev Implementation of the basic standard token.
* https://
github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
* https://
eips.ethereum.org/EIPS/eip-20
* Originally based on code by FirstBlood:
* Originally based on code by FirstBlood:
* https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
* https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*
*
...
...
contracts/token/ERC20/IERC20.sol
View file @
2fc0aaab
...
@@ -2,7 +2,7 @@ pragma solidity ^0.5.2;
...
@@ -2,7 +2,7 @@ pragma solidity ^0.5.2;
/**
/**
* @title ERC20 interface
* @title ERC20 interface
* @dev see https://
github.com/ethereum/EIPs/issues/
20
* @dev see https://
eips.ethereum.org/EIPS/eip-
20
*/
*/
interface IERC20 {
interface IERC20 {
function transfer(address to, uint256 value) external returns (bool);
function transfer(address to, uint256 value) external returns (bool);
...
...
contracts/token/ERC721/ERC721.sol
View file @
2fc0aaab
...
@@ -9,7 +9,7 @@ import "../../introspection/ERC165.sol";
...
@@ -9,7 +9,7 @@ import "../../introspection/ERC165.sol";
/**
/**
* @title ERC721 Non-Fungible Token Standard basic implementation
* @title ERC721 Non-Fungible Token Standard basic implementation
* @dev see https://
github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
* @dev see https://
eips.ethereum.org/EIPS/eip-721
*/
*/
contract ERC721 is ERC165, IERC721 {
contract ERC721 is ERC165, IERC721 {
using SafeMath for uint256;
using SafeMath for uint256;
...
...
contracts/token/ERC721/ERC721Enumerable.sol
View file @
2fc0aaab
...
@@ -6,7 +6,7 @@ import "../../introspection/ERC165.sol";
...
@@ -6,7 +6,7 @@ import "../../introspection/ERC165.sol";
/**
/**
* @title ERC-721 Non-Fungible Token with optional enumeration extension logic
* @title ERC-721 Non-Fungible Token with optional enumeration extension logic
* @dev See https://
github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
* @dev See https://
eips.ethereum.org/EIPS/eip-721
*/
*/
contract ERC721Enumerable is ERC165, ERC721, IERC721Enumerable {
contract ERC721Enumerable is ERC165, ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
// Mapping from owner to list of owned token IDs
...
...
contracts/token/ERC721/ERC721Full.sol
View file @
2fc0aaab
...
@@ -8,7 +8,7 @@ import "./ERC721Metadata.sol";
...
@@ -8,7 +8,7 @@ import "./ERC721Metadata.sol";
* @title Full ERC721 Token
* @title Full ERC721 Token
* This implementation includes all the required and some optional functionality of the ERC721 standard
* This implementation includes all the required and some optional functionality of the ERC721 standard
* Moreover, it includes approve all functionality using operator terminology
* Moreover, it includes approve all functionality using operator terminology
* @dev see https://
github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
* @dev see https://
eips.ethereum.org/EIPS/eip-721
*/
*/
contract ERC721Full is ERC721, ERC721Enumerable, ERC721Metadata {
contract ERC721Full is ERC721, ERC721Enumerable, ERC721Metadata {
constructor (string memory name, string memory symbol) public ERC721Metadata(name, symbol) {
constructor (string memory name, string memory symbol) public ERC721Metadata(name, symbol) {
...
...
contracts/token/ERC721/IERC721Enumerable.sol
View file @
2fc0aaab
...
@@ -4,7 +4,7 @@ import "./IERC721.sol";
...
@@ -4,7 +4,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://
eips.ethereum.org/EIPS/eip-721
*/
*/
contract IERC721Enumerable is IERC721 {
contract IERC721Enumerable is IERC721 {
function totalSupply() public view returns (uint256);
function totalSupply() public view returns (uint256);
...
...
contracts/token/ERC721/IERC721Full.sol
View file @
2fc0aaab
...
@@ -6,7 +6,7 @@ import "./IERC721Metadata.sol";
...
@@ -6,7 +6,7 @@ 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://
eips.ethereum.org/EIPS/eip-721
*/
*/
contract IERC721Full is IERC721, IERC721Enumerable, IERC721Metadata {
contract IERC721Full is IERC721, IERC721Enumerable, IERC721Metadata {
// solhint-disable-previous-line no-empty-blocks
// solhint-disable-previous-line no-empty-blocks
...
...
contracts/token/ERC721/IERC721Metadata.sol
View file @
2fc0aaab
...
@@ -4,7 +4,7 @@ import "./IERC721.sol";
...
@@ -4,7 +4,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://
eips.ethereum.org/EIPS/eip-721
*/
*/
contract IERC721Metadata is IERC721 {
contract IERC721Metadata is IERC721 {
function name() external view returns (string memory);
function name() external view returns (string memory);
...
...
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