ValidatorsDecision
Hierarchy
- { chainId: Field; contractAddress: PublicKey; decisionType: Field; expiry: UInt32; updateValidatorsList: ValidatorsState; upgradeDatabase: UpgradeDatabaseState; validators: ValidatorsState }
- ValidatorsDecision
Index
Constructors
Properties
Methods
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
Chain ID
contractAddress
UpgradeAuthority contract address
decisionType
Type of decision (e.g., 'updateDatabase')
expiry
Slot when decision expires
updateValidatorsList
Proposed update to validators state
upgradeDatabase
Current upgrade database state
validators
Current validators state
Methods
staticassertEquals
Asserts that two
ValidatorsDecision
instances are equal.Parameters
a: ValidatorsDecision
First
ValidatorsDecision
instance.b: ValidatorsDecision
Second
ValidatorsDecision
instance.
Returns void
Represents a decision made by the validators.