ValidatorSet

interface ValidatorSet

Properties

Link copied to clipboard

The current list of active validators.

Link copied to clipboard
abstract val atRiskValidators: Map<String, <Error class: unknown class>>

Table storing the number of epochs during which a validator's stake has been below the low stake threshold.

Link copied to clipboard
abstract val extraFields: MoveTable

Any extra fields that's not defined statically.

Link copied to clipboard

Mapping from a staking pool ID to the inactive validator that has that pool as its staking pool. When a validator is deactivated the validator is removed from active_validators it is added to this table so that stakers can continue to withdraw their stake from it.

Link copied to clipboard

List of new validator candidates added during the current epoch. They will be processed at the end of the epoch.

Link copied to clipboard
abstract val pendingRemovals: List<<Error class: unknown class>>

Removal requests from the validators. Each element is an index pointing to active_validators.

Link copied to clipboard

Returns the field-presence view for this ValidatorSet instance.

Link copied to clipboard

Mappings from staking pool's ID to the sui address of a validator.

Link copied to clipboard
abstract val totalStake: <Error class: unknown class>?

Total amount of stake from all active validators at the beginning of the epoch. Written only once per epoch, in advance_epoch function.

Link copied to clipboard

Table storing preactive/candidate validators, mapping their addresses to their Validator structs. When an address calls request_add_validator_candidate, they get added to this table and become a preactive validator. When the candidate has met the min stake requirement, they can call request_add_validator to officially add them to the active validator set active_validators next epoch.

Functions

Link copied to clipboard
Link copied to clipboard
fun ValidatorSet.copy(body: <Error class: unknown class>.() -> Unit = {}): ValidatorSet

Copies the original message, including unknown fields.