UNPKG

@hyperlane-xyz/core

Version:

Core solidity contracts for Hyperlane

84 lines (39 loc) 1.28 kB
# 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 ```solidity 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 ```solidity event Initialized(uint8 version) ``` #### Parameters | Name | Type | Description | |---|---|---| | version | uint8 | undefined | ### Paused ```solidity event Paused(address account) ``` *Emitted when the pause is triggered by `account`.* #### Parameters | Name | Type | Description | |---|---|---| | account | address | undefined | ### Unpaused ```solidity event Unpaused(address account) ``` *Emitted when the pause is lifted by `account`.* #### Parameters | Name | Type | Description | |---|---|---| | account | address | undefined |