Skip to main content

ValidatorsDecision

Represents a decision made by the validators.

Hierarchy

Index

Constructors

externalconstructor

  • Parameters

    • externalvalue: { chainId: Field; contractAddress: PublicKey; decisionType: Field; expiry: UInt32; updateValidatorsList: ValidatorsState; upgradeDatabase: UpgradeDatabaseState; validators: ValidatorsState }
      • externalchainId: Field = Field

        Chain ID

      • externalcontractAddress: PublicKey = PublicKey

        UpgradeAuthority contract address

      • externaldecisionType: Field = Field

        Type of decision (e.g., 'updateDatabase')

      • externalexpiry: UInt32 = UInt32

        Slot when decision expires

      • externalupdateValidatorsList: ValidatorsState = ValidatorsState

        Proposed update to validators state

      • externalupgradeDatabase: UpgradeDatabaseState = UpgradeDatabaseState

        Current upgrade database state

      • externalvalidators: ValidatorsState = ValidatorsState

        Current validators state

    Returns ValidatorsDecision

Properties

chainId

chainId: Field = Field

Chain ID

contractAddress

contractAddress: PublicKey = PublicKey

UpgradeAuthority contract address

decisionType

decisionType: Field = Field

Type of decision (e.g., 'updateDatabase')

expiry

expiry: UInt32 = UInt32

Slot when decision expires

updateValidatorsList

updateValidatorsList: ValidatorsState = ValidatorsState

Proposed update to validators state

upgradeDatabase

upgradeDatabase: UpgradeDatabaseState = UpgradeDatabaseState

Current upgrade database state

validators

validators: ValidatorsState = ValidatorsState

Current validators state

Methods

staticassertEquals

  • Asserts that two ValidatorsDecision instances are equal.


    Parameters

    Returns void