Skip to content

SystemStatus

Description

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

Source: contracts/SystemStatus.sol

Architecture

Inheritance Graph

graph TD SystemStatus[SystemStatus] --> Owned[Owned]

Structs

Status

Source

Field Type Description
canSuspend bool TBA
canResume bool TBA

Suspension

Source

Field Type Description
suspended bool TBA
reason uint248 TBA

Constants

SECTION_EXCHANGE

Source

Type: bytes32

SECTION_ISSUANCE

Source

Type: bytes32

SECTION_SYNTH

Source

Type: bytes32

SECTION_SYSTEM

Source

Type: bytes32

SUSPENSION_REASON_UPGRADE

Source

Type: uint248

Variables

accessControl

Source

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

exchangeSuspension

Source

Type: struct SystemStatus.Suspension

issuanceSuspension

Source

Type: struct SystemStatus.Suspension

synthSuspension

Source

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

systemSuspension

Source

Type: struct SystemStatus.Suspension

Constructor

constructor

Source

Details

Signature

(address _owner)

Visibility

public

State Mutability

nonpayable

Views

getSynthSuspensions

Source

Details

Signature

getSynthSuspensions(bytes32[] synths) returns (bool[], uint256[])

Visibility

external

State Mutability

view

isSystemUpgrading

Source

Details

Signature

isSystemUpgrading() returns (bool)

Visibility

external

State Mutability

view

requireExchangeActive

Source

Details

Signature

requireExchangeActive()

Visibility

external

State Mutability

view

Requires

requireIssuanceActive

Source

Details

Signature

requireIssuanceActive()

Visibility

external

State Mutability

view

Requires

requireSynthActive

Source

Details

Signature

requireSynthActive(bytes32 currencyKey)

Visibility

external

State Mutability

view

Requires

requireSynthsActive

Source

Details

Signature

requireSynthsActive(bytes32 sourceCurrencyKey, bytes32 destinationCurrencyKey)

Visibility

external

State Mutability

view

Requires

requireSystemActive

Source

Details

Signature

requireSystemActive()

Visibility

external

State Mutability

view

Requires

Restricted Functions

resumeExchange

Source

Details

Signature

resumeExchange()

Visibility

external

State Mutability

nonpayable

Requires

Emits

resumeIssuance

Source

Details

Signature

resumeIssuance()

Visibility

external

State Mutability

nonpayable

Requires

Emits

resumeSynth

Source

Details

Signature

resumeSynth(bytes32 currencyKey)

Visibility

external

State Mutability

nonpayable

Requires

Emits

resumeSystem

Source

Details

Signature

resumeSystem()

Visibility

external

State Mutability

nonpayable

Requires

Emits

suspendExchange

Source

Details

Signature

suspendExchange(uint256 reason)

Visibility

external

State Mutability

nonpayable

Requires

Emits

suspendIssuance

Source

Details

Signature

suspendIssuance(uint256 reason)

Visibility

external

State Mutability

nonpayable

Requires

Emits

suspendSynth

Source

Details

Signature

suspendSynth(bytes32 currencyKey, uint256 reason)

Visibility

external

State Mutability

nonpayable

Requires

Emits

suspendSystem

Source

Details

Signature

suspendSystem(uint256 reason)

Visibility

external

State Mutability

nonpayable

Requires

Emits

updateAccessControl

Source

Details

Signature

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

Visibility

external

State Mutability

nonpayable

Modifiers

Internal Functions

_internalRequireSystemActive

Source

Details

Signature

_internalRequireSystemActive()

Visibility

internal

State Mutability

view

Requires

_internalUpdateAccessControl

Source

Details

Signature

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

Visibility

internal

State Mutability

nonpayable

Requires

Emits

_requireAccessToResume

Source

Details

Signature

_requireAccessToResume(bytes32 section)

Visibility

internal

State Mutability

view

Requires

_requireAccessToSuspend

Source

Details

Signature

_requireAccessToSuspend(bytes32 section)

Visibility

internal

State Mutability

view

Requires

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)

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)