token contract doc improvements

This commit is contained in:
Manuel Araoz
2016-11-23 16:51:40 -08:00
parent 635c4c10ba
commit b99fc005a3
5 changed files with 20 additions and 3 deletions

View File

@ -1,9 +1,11 @@
pragma solidity ^0.4.4;
import './ERC20Basic.sol';
import '../SafeMath.sol';
/**
/*
* Basic token
* Basic version of StandardToken, with no allowances
*/

View File

@ -1,8 +1,12 @@
pragma solidity ^0.4.4;
import "./StandardToken.sol";
/*
* CrowdsaleToken
*
* Simple ERC20 Token example, with crowdsale token creation
*/
contract CrowdsaleToken is StandardToken {

View File

@ -1,8 +1,10 @@
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 {
uint public totalSupply;
function balanceOf(address who) constant returns (uint);

View File

@ -1,6 +1,11 @@
pragma solidity ^0.4.4;
/*
* ERC20Basic
* Simpler version of ERC20 interface
* see https://github.com/ethereum/EIPs/issues/20
*/
contract ERC20Basic {
uint public totalSupply;
function balanceOf(address who) constant returns (uint);

View File

@ -1,8 +1,12 @@
pragma solidity ^0.4.4;
import "./StandardToken.sol";
/*
* SimpleToken
*
* Very simple ERC20 Token example, where all tokens are pre-assigned
* to the creator. Note they can later distribute these tokens
* as they wish using `transfer` and other `StandardToken` functions.