* Move Pausable into utils * Move Strings into utils * Move Counters into utils * Move SignedSafeMath into math * Remove ERC1046 * Make ERC20Snapshot.snapshot internal * Move ERC20Snapshot into ERC20 * Add drafts deprecation notice * Remove drafts directory * Add changelog entry * Apply suggestions from code review Co-Authored-By: Francisco Giordano <frangio.1@gmail.com> Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
30 lines
541 B
Solidity
30 lines
541 B
Solidity
pragma solidity ^0.6.0;
|
|
|
|
import "../utils/Pausable.sol";
|
|
|
|
contract PausableMock is Pausable {
|
|
bool public drasticMeasureTaken;
|
|
uint256 public count;
|
|
|
|
constructor () public {
|
|
drasticMeasureTaken = false;
|
|
count = 0;
|
|
}
|
|
|
|
function normalProcess() external whenNotPaused {
|
|
count++;
|
|
}
|
|
|
|
function drasticMeasure() external whenPaused {
|
|
drasticMeasureTaken = true;
|
|
}
|
|
|
|
function pause() external {
|
|
_pause();
|
|
}
|
|
|
|
function unpause() external {
|
|
_unpause();
|
|
}
|
|
}
|