Skip to main content

ValidatorSetV1

open class ValidatorSetV1 : Disposable, AutoCloseable, ValidatorSetV1Interface

A typed view of the 0x3::validator_set::ValidatorSetV1 embedded in IotaSystemStateV1.

Unlike ValidatorSetV2 there are no committee members: in this layout every active validator is part of the committee.

Functions

NameSummary
activeValidatorsopen override fun activeValidators(): List<ValidatorV1>
The current list of active validators.
atRiskValidatorsopen override fun atRiskValidators(): Map<Address, ULong>
Number of epochs each at-risk validator has had stake below the low-stake threshold.
close@Synchronized
open override fun close()
destroyopen override fun destroy()
extraFieldsIdopen override fun extraFieldsId(): ObjectId
Object ID of the Bag holding fields added to this struct after its current on-chain layout was set.
inactiveValidatorsIdopen override fun inactiveValidatorsId(): ObjectId
Object ID of the Table holding the inactive validators, keyed by staking pool ID.
pendingActiveValidatorsIdopen override fun pendingActiveValidatorsId(): ObjectId
Object ID of the TableVec holding the pending validator candidates, keyed by their index.
pendingActiveValidatorsSizeopen override fun pendingActiveValidatorsSize(): ULong
Number of pending validator candidates. The candidates themselves are stored in dynamic fields and are not part of this struct's contents.
pendingRemovalsopen override fun pendingRemovals(): List<ULong>
Indices into active_validators with pending removal requests.
stakingPoolMappingsIdopen override fun stakingPoolMappingsId(): ObjectId
Object ID of the Table mapping each staking pool ID to its validator address.
toStringopen override fun toString(): String
totalStakeopen override fun totalStake(): ULong
Total stake from all active validators at the beginning of the epoch, in nanos.
validatorCandidatesIdopen override fun validatorCandidatesId(): ObjectId
Object ID of the Table holding the validator candidates, keyed by their address.