mirror of openzeppelin-contracts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openzeppelin-contracts/docs/source/pausable.rst

28 lines
773 B

Pausable
8 years ago
=============================================
Base contract that provides a pause mechanism.
8 years ago
Inherits from contract Ownable.
pause() onlyOwner whenNotPaused returns (bool)
8 years ago
"""""""""""""""""""""""""""""""""""""
Triggers pause mechanism on the contract. After this function is called (by the owner of the contract), any function with modifier whenNotPaused will not run.
8 years ago
modifier whenNotPaused()
8 years ago
"""""""""""""""""""""""""""""""""""""
Prevents function from running if pause mechanism is activated.
8 years ago
modifier whenPaused()
8 years ago
"""""""""""""""""""""""""""""""""""""
Only runs if pause mechanism is activated.
8 years ago
unpause() onlyOwner whenPaused returns (bool)
8 years ago
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Deactivates the pause mechanism.