Lifecycle

Pausable

Pausable

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.

whenNotPaused() modifier

Modifier to make a function callable only when the contract is not paused.

whenPaused() modifier

Modifier to make a function callable only when the contract is paused.

constructor() internal

Initializes the contract in unpaused state. Assigns the Pauser role to the deployer.

paused() → bool public

Returns true if the contract is paused, and false otherwise.

pause() public

Called by a pauser to pause, triggers stopped state.

unpause() public

Called by a pauser to unpause, returns to normal state.

Paused(address account) event

Emitted when the pause is triggered by a pauser (account).

Unpaused(address account) event

Emitted when the pause is lifted by a pauser (account).