PausableUpgradeable
Contract module which allows children to implement an emergency stop mechanism that can be triggered by an authorized account. This module is used through inheritance. It will make available the modifiers whenNotPaused
and whenPaused
, which can be applied to the functions of your contract. Note that they will not be pausable by simply including this module, only once the modifiers are put in place.
Methods
paused
function paused() external view returns (bool)
Returns true if the contract is paused, and false otherwise.
Returns
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
Events
Initialized
event Initialized(uint8 version)
Parameters
Name | Type | Description |
---|---|---|
version | uint8 | undefined |
Paused
event Paused(address account)
Emitted when the pause is triggered by account
.
Parameters
Name | Type | Description |
---|---|---|
account | address | undefined |
Unpaused
event Unpaused(address account)
Emitted when the pause is lifted by account
.
Parameters
Name | Type | Description |
---|---|---|
account | address | undefined |