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
b99fc005
Commit
b99fc005
authored
Nov 23, 2016
by
Manuel Araoz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
token contract doc improvements
parent
635c4c10
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
3 deletions
+20
-3
BasicToken.sol
contracts/token/BasicToken.sol
+3
-1
CrowdsaleToken.sol
contracts/token/CrowdsaleToken.sol
+4
-0
ERC20.sol
contracts/token/ERC20.sol
+4
-2
ERC20Basic.sol
contracts/token/ERC20Basic.sol
+5
-0
SimpleToken.sol
contracts/token/SimpleToken.sol
+4
-0
No files found.
contracts/token/BasicToken.sol
View file @
b99fc005
pragma solidity ^0.4.4;
pragma solidity ^0.4.4;
import './ERC20Basic.sol';
import './ERC20Basic.sol';
import '../SafeMath.sol';
import '../SafeMath.sol';
/**
/*
* Basic token
* Basic token
* Basic version of StandardToken, with no allowances
* Basic version of StandardToken, with no allowances
*/
*/
...
...
contracts/token/CrowdsaleToken.sol
View file @
b99fc005
pragma solidity ^0.4.4;
pragma solidity ^0.4.4;
import "./StandardToken.sol";
import "./StandardToken.sol";
/*
/*
* CrowdsaleToken
*
* Simple ERC20 Token example, with crowdsale token creation
* Simple ERC20 Token example, with crowdsale token creation
*/
*/
contract CrowdsaleToken is StandardToken {
contract CrowdsaleToken is StandardToken {
...
...
contracts/token/ERC20.sol
View file @
b99fc005
pragma solidity ^0.4.4;
pragma solidity ^0.4.4;
// see https://github.com/ethereum/EIPs/issues/20
/*
* ERC20 interface
* see https://github.com/ethereum/EIPs/issues/20
*/
contract ERC20 {
contract ERC20 {
uint public totalSupply;
uint public totalSupply;
function balanceOf(address who) constant returns (uint);
function balanceOf(address who) constant returns (uint);
...
...
contracts/token/ERC20Basic.sol
View file @
b99fc005
pragma solidity ^0.4.4;
pragma solidity ^0.4.4;
/*
* ERC20Basic
* Simpler version of ERC20 interface
* see https://github.com/ethereum/EIPs/issues/20
*/
contract ERC20Basic {
contract ERC20Basic {
uint public totalSupply;
uint public totalSupply;
function balanceOf(address who) constant returns (uint);
function balanceOf(address who) constant returns (uint);
...
...
contracts/token/SimpleToken.sol
View file @
b99fc005
pragma solidity ^0.4.4;
pragma solidity ^0.4.4;
import "./StandardToken.sol";
import "./StandardToken.sol";
/*
/*
* SimpleToken
*
* Very simple ERC20 Token example, where all tokens are pre-assigned
* Very simple ERC20 Token example, where all tokens are pre-assigned
* to the creator. Note they can later distribute these tokens
* to the creator. Note they can later distribute these tokens
* as they wish using `transfer` and other `StandardToken` functions.
* as they wish using `transfer` and other `StandardToken` functions.
...
...
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