You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
569 B
Solidity
32 lines
569 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8.0;
|
|
|
|
import "../security/Pausable.sol";
|
|
|
|
contract PausableMock is Pausable {
|
|
bool public drasticMeasureTaken;
|
|
uint256 public count;
|
|
|
|
constructor() {
|
|
drasticMeasureTaken = false;
|
|
count = 0;
|
|
}
|
|
|
|
function normalProcess() external whenNotPaused {
|
|
count++;
|
|
}
|
|
|
|
function drasticMeasure() external whenPaused {
|
|
drasticMeasureTaken = true;
|
|
}
|
|
|
|
function pause() external {
|
|
_pause();
|
|
}
|
|
|
|
function unpause() external {
|
|
_unpause();
|
|
}
|
|
}
|