Browse Source

token contract doc improvements

Manuel Araoz 9 years ago
parent
commit
b99fc005a3

+ 3 - 1
contracts/token/BasicToken.sol

@@ -1,9 +1,11 @@
 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
  */
  */

+ 4 - 0
contracts/token/CrowdsaleToken.sol

@@ -1,8 +1,12 @@
 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 {

+ 4 - 2
contracts/token/ERC20.sol

@@ -1,8 +1,10 @@
 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);

+ 5 - 0
contracts/token/ERC20Basic.sol

@@ -1,6 +1,11 @@
 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);

+ 4 - 0
contracts/token/SimpleToken.sol

@@ -1,8 +1,12 @@
 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.