Merge with master
This commit is contained in:
@ -55,6 +55,6 @@ If researchers break the contract, they can claim their reward.
|
||||
|
||||
For each researcher who wants to hack the contract and claims the reward, refer to our `Test <https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/test/Bounty.js/>`_ for the detail.
|
||||
|
||||
Finally, if you manage to protect your contract from security researchers, you can reclaim the bounty funds. To end the bounty, kill the contract so that all the rewards go back to the owner.::
|
||||
Finally, if you manage to protect your contract from security researchers, you can reclaim the bounty funds. To end the bounty, destroy the contract so that all the rewards go back to the owner.::
|
||||
|
||||
bounty.kill();
|
||||
bounty.destroy();
|
||||
|
||||
@ -27,7 +27,7 @@ The code is open-source, and `available on github <https://github.com/OpenZeppel
|
||||
|
||||
ownable
|
||||
Pausable
|
||||
killable
|
||||
destructible
|
||||
claimable
|
||||
migrations
|
||||
safemath
|
||||
|
||||
@ -1,11 +1,16 @@
|
||||
Killable
|
||||
Destructible
|
||||
=============================================
|
||||
|
||||
Base contract that can be killed by owner.
|
||||
Base contract that can be destroyed by owner.
|
||||
|
||||
Inherits from contract Ownable.
|
||||
|
||||
kill( ) onlyOwner
|
||||
destroy( ) onlyOwner
|
||||
"""""""""""""""""""
|
||||
|
||||
Destroys the contract and sends funds back to the owner.
|
||||
Destroys the contract and sends funds back to the owner.
|
||||
|
||||
destroyAndSend(address _recipient) onlyOwner
|
||||
"""""""""""""""""""
|
||||
|
||||
Destroys the contract and sends funds back to the _recepient.
|
||||
@ -1,26 +1,27 @@
|
||||
Pausable
|
||||
=============================================
|
||||
|
||||
Base contract that provides an emergency stop mechanism.
|
||||
Base contract that provides a pause mechanism.
|
||||
|
||||
Inherits from contract Ownable.
|
||||
|
||||
emergencyStop( ) external onlyOwner
|
||||
pause() onlyOwner whenNotPaused returns (bool)
|
||||
"""""""""""""""""""""""""""""""""""""
|
||||
|
||||
Triggers the stop mechanism on the contract. After this function is called (by the owner of the contract), any function with modifier stopInEmergency will not run.
|
||||
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 stopInEmergency
|
||||
|
||||
modifier whenNotPaused()
|
||||
"""""""""""""""""""""""""""""""""""""
|
||||
|
||||
Prevents function from running if stop mechanism is activated.
|
||||
Prevents function from running if pause mechanism is activated.
|
||||
|
||||
modifier onlyInEmergency
|
||||
modifier whenPaused()
|
||||
"""""""""""""""""""""""""""""""""""""
|
||||
|
||||
Only runs if stop mechanism is activated.
|
||||
Only runs if pause mechanism is activated.
|
||||
|
||||
release( ) external onlyOwner onlyInEmergency
|
||||
unpause() onlyOwner whenPaused returns (bool)
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
|
||||
Deactivates the stop mechanism.
|
||||
Deactivates the pause mechanism.
|
||||
Reference in New Issue
Block a user