diff options
Diffstat (limited to 'test/compilationTests/zeppelin/lifecycle/Pausable.sol')
-rw-r--r-- | test/compilationTests/zeppelin/lifecycle/Pausable.sol | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/test/compilationTests/zeppelin/lifecycle/Pausable.sol b/test/compilationTests/zeppelin/lifecycle/Pausable.sol deleted file mode 100644 index 0c48f2f6..00000000 --- a/test/compilationTests/zeppelin/lifecycle/Pausable.sol +++ /dev/null @@ -1,51 +0,0 @@ -pragma solidity ^0.4.11; - - -import "../ownership/Ownable.sol"; - - -/** - * @title Pausable - * @dev Base contract which allows children to implement an emergency stop mechanism. - */ -contract Pausable is Ownable { - event Pause(); - event Unpause(); - - bool public paused = false; - - - /** - * @dev modifier to allow actions only when the contract IS paused - */ - modifier whenNotPaused() { - if (paused) revert(); - _; - } - - /** - * @dev modifier to allow actions only when the contract IS NOT paused - */ - modifier whenPaused { - if (!paused) revert(); - _; - } - - /** - * @dev called by the owner to pause, triggers stopped state - */ - function pause() public onlyOwner whenNotPaused returns (bool) { - paused = true; - emit Pause(); - return true; - } - - /** - * @dev called by the owner to unpause, returns to normal state - */ - function unpause() public onlyOwner whenPaused returns (bool) { - paused = false; - emit Unpause(); - return true; - } -} |