浏览代码

token contract doc improvements

Manuel Araoz 9 年之前
父节点
当前提交
b99fc005a3

+ 3 - 1
contracts/token/BasicToken.sol

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

+ 4 - 0
contracts/token/CrowdsaleToken.sol

@@ -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 {

+ 4 - 2
contracts/token/ERC20.sol

@@ -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);

+ 5 - 0
contracts/token/ERC20Basic.sol

@@ -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);

+ 4 - 0
contracts/token/SimpleToken.sol

@@ -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.