Skip to content

SystemStatus

Description

Implemented to address SIP-44 - various mechanisms to suspend the Synthetix system

Source: contracts/SystemStatus.sol

Variables

SECTION_EXCHANGE

Source

Type: bytes32

SECTION_ISSUANCE

Source

Type: bytes32

SECTION_SYNTH

Source

Type: bytes32

SECTION_SYNTH_EXCHANGE

Source

Type: bytes32

SECTION_SYSTEM

Source

Type: bytes32

SUSPENSION_REASON_UPGRADE

Source

Type: uint248

accessControl

Source

Type: mapping(bytes32 => mapping(address => struct ISystemStatus.Status))

exchangeSuspension

Source

Type: struct ISystemStatus.Suspension

issuanceSuspension

Source

Type: struct ISystemStatus.Suspension

synthExchangeSuspension

Source

Type: mapping(bytes32 => struct ISystemStatus.Suspension)

synthSuspension

Source

Type: mapping(bytes32 => struct ISystemStatus.Suspension)

systemSuspension

Source

Type: struct ISystemStatus.Suspension

Constructor

constructor

Source

Details

Signature

constructor(address _owner)

Visibility

public

State Mutability

``

Views

getSynthExchangeSuspensions

Source

Details

Signature

getSynthExchangeSuspensions(bytes32[] synths) view returns (bool[] exchangeSuspensions, uint256[] reasons)

Visibility

external

State Mutability

view

getSynthSuspensions

Source

Details

Signature

getSynthSuspensions(bytes32[] synths) view returns (bool[] suspensions, uint256[] reasons)

Visibility

external

State Mutability

view

isSystemUpgrading

Source

Details

Signature

isSystemUpgrading() view returns (bool)

Visibility

external

State Mutability

view

requireExchangeActive

Source

Details

Signature

requireExchangeActive() view

Visibility

external

State Mutability

view

Requires

requireExchangeBetweenSynthsAllowed

Source

Details

Signature

requireExchangeBetweenSynthsAllowed(bytes32 sourceCurrencyKey, bytes32 destinationCurrencyKey) view

Visibility

external

State Mutability

view

Requires

requireIssuanceActive

Source

Details

Signature

requireIssuanceActive() view

Visibility

external

State Mutability

view

Requires

requireSynthActive

Source

Details

Signature

requireSynthActive(bytes32 currencyKey) view

Visibility

external

State Mutability

view

Requires

requireSynthExchangeActive

Source

Details

Signature

requireSynthExchangeActive(bytes32 currencyKey) view

Visibility

external

State Mutability

view

Requires

requireSynthsActive

Source

Details

Signature

requireSynthsActive(bytes32 sourceCurrencyKey, bytes32 destinationCurrencyKey) view

Visibility

external

State Mutability

view

Requires

requireSystemActive

Source

Details

Signature

requireSystemActive() view

Visibility

external

State Mutability

view

Requires

Restricted Functions

_internalResumeSynths

Source

Details

Signature

_internalResumeSynths(bytes32[] currencyKeys)

Visibility

internal

State Mutability

``

Requires

_internalResumeSynthsExchange

Source

Details

Signature

_internalResumeSynthsExchange(bytes32[] currencyKeys)

Visibility

internal

State Mutability

``

Requires

_internalSuspendSynthExchange

Source

Details

Signature

_internalSuspendSynthExchange(bytes32[] currencyKeys, uint256 reason)

Visibility

internal

State Mutability

``

Requires

_internalSuspendSynths

Source

Details

Signature

_internalSuspendSynths(bytes32[] currencyKeys, uint256 reason)

Visibility

internal

State Mutability

``

Requires

resumeExchange

Source

Details

Signature

resumeExchange()

Visibility

external

State Mutability

``

Requires

Emits

resumeIssuance

Source

Details

Signature

resumeIssuance()

Visibility

external

State Mutability

``

Requires

Emits

resumeSystem

Source

Details

Signature

resumeSystem()

Visibility

external

State Mutability

``

Requires

Emits

suspendExchange

Source

Details

Signature

suspendExchange(uint256 reason)

Visibility

external

State Mutability

``

Requires

Emits

suspendIssuance

Source

Details

Signature

suspendIssuance(uint256 reason)

Visibility

external

State Mutability

``

Requires

Emits

suspendSystem

Source

Details

Signature

suspendSystem(uint256 reason)

Visibility

external

State Mutability

``

Requires

Emits

updateAccessControl

Source

Details

Signature

updateAccessControl(bytes32 section, address account, bool canSuspend, bool canResume)

Visibility

external

State Mutability

``

Modifiers

updateAccessControls

Source

Details

Signature

updateAccessControls(bytes32[] sections, address[] accounts, bool[] canSuspends, bool[] canResumes)

Visibility

external

State Mutability

``

Requires

Modifiers

Internal Functions

_internalRequireExchangeActive

Source

Details

Signature

_internalRequireExchangeActive() view

Visibility

internal

State Mutability

view

Requires

_internalRequireIssuanceActive

Source

Details

Signature

_internalRequireIssuanceActive() view

Visibility

internal

State Mutability

view

Requires

_internalRequireSynthActive

Source

Details

Signature

_internalRequireSynthActive(bytes32 currencyKey) view

Visibility

internal

State Mutability

view

Requires

_internalRequireSynthExchangeActive

Source

Details

Signature

_internalRequireSynthExchangeActive(bytes32 currencyKey) view

Visibility

internal

State Mutability

view

Requires

_internalRequireSystemActive

Source

Details

Signature

_internalRequireSystemActive() view

Visibility

internal

State Mutability

view

Requires

_internalResumeSynths

Source

Details

Signature

_internalResumeSynths(bytes32[] currencyKeys)

Visibility

internal

State Mutability

``

Requires

_internalResumeSynthsExchange

Source

Details

Signature

_internalResumeSynthsExchange(bytes32[] currencyKeys)

Visibility

internal

State Mutability

``

Requires

_internalSuspendSynthExchange

Source

Details

Signature

_internalSuspendSynthExchange(bytes32[] currencyKeys, uint256 reason)

Visibility

internal

State Mutability

``

Requires

_internalSuspendSynths

Source

Details

Signature

_internalSuspendSynths(bytes32[] currencyKeys, uint256 reason)

Visibility

internal

State Mutability

``

Requires

_internalUpdateAccessControl

Source

Details

Signature

_internalUpdateAccessControl(bytes32 section, address account, bool canSuspend, bool canResume)

Visibility

internal

State Mutability

``

Requires

Emits

_requireAccessToResume

Source

Details

Signature

_requireAccessToResume(bytes32 section) view

Visibility

internal

State Mutability

view

Requires

_requireAccessToSuspend

Source

Details

Signature

_requireAccessToSuspend(bytes32 section) view

Visibility

internal

State Mutability

view

Requires

External Functions

resumeSynth

Source

Details

Signature

resumeSynth(bytes32 currencyKey)

Visibility

external

State Mutability

``

resumeSynthExchange

Source

Details

Signature

resumeSynthExchange(bytes32 currencyKey)

Visibility

external

State Mutability

``

resumeSynths

Source

Details

Signature

resumeSynths(bytes32[] currencyKeys)

Visibility

external

State Mutability

``

resumeSynthsExchange

Source

Details

Signature

resumeSynthsExchange(bytes32[] currencyKeys)

Visibility

external

State Mutability

``

suspendSynth

Source

Details

Signature

suspendSynth(bytes32 currencyKey, uint256 reason)

Visibility

external

State Mutability

``

suspendSynthExchange

Source

Details

Signature

suspendSynthExchange(bytes32 currencyKey, uint256 reason)

Visibility

external

State Mutability

``

suspendSynths

Source

Details

Signature

suspendSynths(bytes32[] currencyKeys, uint256 reason)

Visibility

external

State Mutability

``

suspendSynthsExchange

Source

Details

Signature

suspendSynthsExchange(bytes32[] currencyKeys, uint256 reason)

Visibility

external

State Mutability

``

Events

AccessControlUpdated

Source

Signature: AccessControlUpdated(bytes32 section, address account, bool canSuspend, bool canResume)

ExchangeResumed

Source

Signature: ExchangeResumed(uint256 reason)

ExchangeSuspended

Source

Signature: ExchangeSuspended(uint256 reason)

IssuanceResumed

Source

Signature: IssuanceResumed(uint256 reason)

IssuanceSuspended

Source

Signature: IssuanceSuspended(uint256 reason)

SynthExchangeResumed

Source

Signature: SynthExchangeResumed(bytes32 currencyKey, uint256 reason)

SynthExchangeSuspended

Source

Signature: SynthExchangeSuspended(bytes32 currencyKey, uint256 reason)

SynthResumed

Source

Signature: SynthResumed(bytes32 currencyKey, uint256 reason)

SynthSuspended

Source

Signature: SynthSuspended(bytes32 currencyKey, uint256 reason)

SystemResumed

Source

Signature: SystemResumed(uint256 reason)

SystemSuspended

Source

Signature: SystemSuspended(uint256 reason)