Skip to main content

Interface: ValidatorSetV1Like

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.

Methods​

activeValidators()​

activeValidators(): ValidatorV1Like[];

The current list of active validators.

Returns​

ValidatorV1Like[]


atRiskValidators()​

atRiskValidators(): Map<AddressLike, bigint>;

Number of epochs each at-risk validator has had stake below the low-stake threshold.

Returns​

Map<AddressLike, bigint>


extraFieldsId()​

extraFieldsId(): ObjectIdLike;

Object ID of the Bag holding fields added to this struct after its current on-chain layout was set.

Returns​

ObjectIdLike


inactiveValidatorsId()​

inactiveValidatorsId(): ObjectIdLike;

Object ID of the Table holding the inactive validators, keyed by staking pool ID.

Returns​

ObjectIdLike


pendingActiveValidatorsId()​

pendingActiveValidatorsId(): ObjectIdLike;

Object ID of the TableVec holding the pending validator candidates, keyed by their index.

Returns​

ObjectIdLike


pendingActiveValidatorsSize()​

pendingActiveValidatorsSize(): bigint;

Number of pending validator candidates. The candidates themselves are stored in dynamic fields and are not part of this struct's contents.

Returns​

bigint


pendingRemovals()​

pendingRemovals(): bigint[];

Indices into active_validators with pending removal requests.

Returns​

bigint[]


stakingPoolMappingsId()​

stakingPoolMappingsId(): ObjectIdLike;

Object ID of the Table mapping each staking pool ID to its validator address.

Returns​

ObjectIdLike


totalStake()​

totalStake(): bigint;

Total stake from all active validators at the beginning of the epoch, in nanos.

Returns​

bigint


validatorCandidatesId()​

validatorCandidatesId(): ObjectIdLike;

Object ID of the Table holding the validator candidates, keyed by their address.

Returns​

ObjectIdLike