IBosonPauseHandler
View Source: contracts/interfaces/handlers/IBosonPauseHandler.sol
↗ Extends: IBosonPauseEvents
IBosonPauseHandler
Handles pausing all or part of the protocol.
The ERC-165 identifier for this interface is: 0x770b96d0
Functions
- pause(enum BosonTypes.PausableRegion[] _regions)
- unpause(enum BosonTypes.PausableRegion[] _regions)
- getPausedRegions()
pause
Pauses some or all of the protocol.
Emits a ProtocolPaused event if successful.
Reverts if:
- Caller does not have PAUSER role
function pause(enum BosonTypes.PausableRegion[] _regions)
external
Arguments
Name | Type | Description |
---|---|---|
_regions | enum BosonTypes.PausableRegion[] | an array of regions to pause. See: {BosonTypes.PausableRegion} |
unpause
Unpauses the protocol.
Emits a ProtocolUnpaused event if successful.
Reverts if:
- Caller does not have PAUSER role
- Protocol is not currently paused
function unpause(enum BosonTypes.PausableRegion[] _regions)
external
Arguments
Name | Type | Description |
---|---|---|
_regions | enum BosonTypes.PausableRegion[] | an array of regions to pause. See: {BosonTypes.PausableRegion} |
getPausedRegions
Returns the regions paused
function getPausedRegions()
external
view
returns(enum BosonTypes.PausableRegion[] regions)
Returns
BosonTypes.PausableRegion[]