token contract doc improvements
This commit is contained in:
@ -1,9 +1,11 @@
|
||||
pragma solidity ^0.4.4;
|
||||
|
||||
|
||||
import './ERC20Basic.sol';
|
||||
import '../SafeMath.sol';
|
||||
|
||||
/**
|
||||
|
||||
/*
|
||||
* Basic token
|
||||
* Basic version of StandardToken, with no allowances
|
||||
*/
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user