Minor edits to doc commenst in lifecycle, ownership, payment contracts.

This commit is contained in:
maurelian
2017-05-08 08:08:06 -04:00
parent d85be4a866
commit 83f2849446
14 changed files with 121 additions and 121 deletions

View File

@ -11,7 +11,7 @@ import "../ownership/Ownable.sol";
contract Destructible is Ownable {
/**
*@dev The destroy function transfer the current balance to the owner and terminate de lifecycle
* @dev Transfers the current balance to the owner and terminates the contract.
*/
function destroy() onlyOwner {
selfdestruct(owner);

View File

@ -6,7 +6,7 @@ import "../ownership/Ownable.sol";
/**
* @title Pausable
* @dev Abstract contract that allows children to implement an emergency stop mechanism.
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/
contract Pausable is Ownable {
event Pause();

View File

@ -4,19 +4,21 @@ pragma solidity ^0.4.8;
import "../ownership/Ownable.sol";
import "../token/ERC20Basic.sol";
/** @title TokenDestructible:
* @author Remco Bloemen <remco@2π.com>
* @dev Base contract that can be destroyed by owner. All funds in contract including
* listed tokens will be sent to the owner
*/
/**
* @title TokenDestructible:
* @author Remco Bloemen <remco@2π.com>
* @dev Base contract that can be destroyed by owner. All funds in contract including
* listed tokens will be sent to the owner.
*/
contract TokenDestructible is Ownable {
/** @notice Terminate contract and refund to owner
* @param tokens List of addresses of ERC20 or ERC20Basic token contracts to
refund
* @notice The called token contracts could try to re-enter this contract.Only
supply token contracts you
*/
/**
* @notice Terminate contract and refund to owner
* @param tokens List of addresses of ERC20 or ERC20Basic token contracts to
refund.
* @notice The called token contracts could try to re-enter this contract. Only
supply token contracts you trust.
*/
function destroy(address[] tokens) onlyOwner {
// Transfer tokens to owner