Added natsec for all lifecycle contracts + bounty.sol, DayLimit.sol and LimitBalance.sol
This commit is contained in:
committed by
maurelian
parent
e851938199
commit
b5d4120adb
@ -5,10 +5,14 @@ import "../ownership/Ownable.sol";
|
||||
|
||||
|
||||
/*
|
||||
* Destructible
|
||||
* Base contract that can be destroyed by owner. All funds in contract will be sent to the owner.
|
||||
* @title Destructible
|
||||
* @dev Base contract that can be destroyed by owner. All funds in contract will be sent to the owner.
|
||||
*/
|
||||
contract Destructible is Ownable {
|
||||
|
||||
/*
|
||||
*@dev The destroy function transfer the current balance to the owner and terminate de lifecycle
|
||||
*/
|
||||
function destroy() onlyOwner {
|
||||
selfdestruct(owner);
|
||||
}
|
||||
|
||||
@ -3,8 +3,10 @@ pragma solidity ^0.4.8;
|
||||
|
||||
import '../ownership/Ownable.sol';
|
||||
|
||||
|
||||
// This is a truffle contract, needed for truffle integration, not meant for use by Zeppelin users.
|
||||
/*
|
||||
* @title Migrations
|
||||
* @dev This is a truffle contract, needed for truffle integration, not meant for use by Zeppelin users.
|
||||
*/
|
||||
contract Migrations is Ownable {
|
||||
uint public lastCompletedMigration;
|
||||
|
||||
|
||||
@ -4,10 +4,9 @@ pragma solidity ^0.4.8;
|
||||
import "../ownership/Ownable.sol";
|
||||
|
||||
|
||||
/*
|
||||
* Pausable
|
||||
* Abstract contract that allows children to implement a
|
||||
* pause mechanism.
|
||||
/**
|
||||
* @title Pausable
|
||||
* @dev Abstract contract that allows children to implement an emergency stop mechanism.
|
||||
*/
|
||||
contract Pausable is Ownable {
|
||||
event Pause();
|
||||
@ -15,24 +14,35 @@ contract Pausable is Ownable {
|
||||
|
||||
bool public paused = false;
|
||||
|
||||
|
||||
/**
|
||||
* @dev modifier to allow actions only when the contract IS paused
|
||||
*/
|
||||
modifier whenNotPaused() {
|
||||
if (paused) throw;
|
||||
_;
|
||||
}
|
||||
|
||||
/**
|
||||
* @dev modifier to allow actions only when the contract IS NOT paused
|
||||
*/
|
||||
modifier whenPaused {
|
||||
if (!paused) throw;
|
||||
_;
|
||||
}
|
||||
|
||||
// called by the owner to pause, triggers stopped state
|
||||
/**
|
||||
* @dev called by the owner to pause, triggers stopped state
|
||||
*/
|
||||
function pause() onlyOwner whenNotPaused returns (bool) {
|
||||
paused = true;
|
||||
Pause();
|
||||
return true;
|
||||
}
|
||||
|
||||
// called by the owner to unpause, returns to normal state
|
||||
/**
|
||||
* @dev called by the owner to unpause, returns to normal state
|
||||
*/
|
||||
function unpause() onlyOwner whenPaused returns (bool) {
|
||||
paused = false;
|
||||
Unpause();
|
||||
|
||||
@ -6,7 +6,7 @@ import "../token/ERC20Basic.sol";
|
||||
|
||||
/// @title TokenDestructible:
|
||||
/// @author Remco Bloemen <remco@2π.com>
|
||||
///.Base contract that can be destroyed by owner. All funds in contract including
|
||||
/// @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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user