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

27 lines
772 B

Pausable
=============================================
Base contract that provides a pause mechanism.
Inherits from contract Ownable.
pause() onlyOwner whenNotPaused returns (bool)
"""""""""""""""""""""""""""""""""""""
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.
modifier whenNotPaused()
"""""""""""""""""""""""""""""""""""""
Prevents function from running if pause mechanism is activated.
modifier whenPaused()
"""""""""""""""""""""""""""""""""""""
Only runs if pause mechanism is activated.
unpause() onlyOwner whenPaused returns (bool)
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Deactivates the pause mechanism.