Skip to main content

PauseData

Represents pause-related data, containing flags for pause functionality.

Hierarchy

  • { canPause: Bool; isPaused: Bool }
    • PauseData

Index

Constructors

Properties

Methods

Constructors

externalconstructor

  • new PauseData(value: { canPause: Bool; isPaused: Bool }): PauseData
  • Parameters

    • externalvalue: { canPause: Bool; isPaused: Bool }
      • externalcanPause: Bool = Bool

        Indicates whether the contract can be paused.

      • externalisPaused: Bool = Bool

        Indicates whether the contract is currently paused.

    Returns PauseData

Properties

canPause

canPause: Bool = Bool

Indicates whether the contract can be paused.

isPaused

isPaused: Bool = Bool

Indicates whether the contract is currently paused.

Methods

pack

  • pack(): Field
  • Packs the pause data into a Field.


    Returns Field

    A Field representing the packed pause data.

staticunpack

  • Unpacks a Field into PauseData.


    Parameters

    • field: Field

      The Field to unpack.

    Returns PauseData

    An instance of PauseData.