Stoppable
View Source: moc-governance/contracts/Stopper/Stoppable.sol
↗ Extends: Governed ↘ Derived Contracts: MoC, MoCEvents
Stoppable - version: 0.1.12
Allow a contract to be paused through the stopper subsystem. This contracts is able to disable the stoppability feature through governance.This contract was heavily based on the Pausable contract of openzeppelin-eth but it was modified in order to being able to turn on and off its stopability
Contract Members
Constants & Variables
Paused
Parameters
Unpaused
Parameters
Modifiers
whenStoppable
Modifier to make a function callable only when the contract is enable to be paused
Arguments
whenNotPaused
Modifier to make a function callable only when the contract is not paused
Arguments
whenPaused
Modifier to make a function callable only when the contract is paused
Arguments
onlyPauser
Modifier to make a function callable only by the pauser
Arguments
Functions
initialize
Initialize the contract with the basic settingsThis initialize replaces the constructor but it is not called automatically. It is necessary because of the upgradeability of the contracts. Either this function or the next can be used
Arguments
initialize
Initialize the contract with the basic settingsThis initialize replaces the constructor but it is not called automatically. It is necessary because of the upgradeability of the contracts. Either this function or the previous can be used
Arguments
paused
Returns true if paused
Arguments
pause
Called by the owner to pause, triggers stopped stateShould only be called by the pauser and when it is stoppable
Arguments
unpause
Called by the owner to unpause, returns to normal state
Arguments
makeUnstoppable
Switches OFF the stoppability of the contract; if the contract was paused it will no longer be soShould be called through governance
Arguments
makeStoppable
Switches ON the stoppability of the contract; if the contract was paused before making it unstoppable it will be paused again after calling this functionShould be called through governance
Arguments
setStopper
Changes the address which is enable to stop this contractShould be called through governance
Arguments
Last updated