ValidatorSetV2
type ValidatorSetV2
A typed view of the `0x3::validator_set::ValidatorSetV2` embedded in the system state.
type ValidatorSetV2 struct {
// contains filtered or unexported fields
}
func LiftFromExternalValidatorSetV2
func LiftFromExternalValidatorSetV2(handle uint64) *ValidatorSetV2
func (*ValidatorSetV2) ActiveValidators
func (_self *ValidatorSetV2) ActiveValidators() []*ValidatorV1
The current list of active validators.
func (*ValidatorSetV2) AtRiskValidators
func (_self *ValidatorSetV2) AtRiskValidators() map[*Address]uint64
Number of epochs each at-risk validator has had stake below the low-stake threshold.
func (*ValidatorSetV2) CommitteeMembers
func (_self *ValidatorSetV2) CommitteeMembers() []uint64
Indices into `active_validators` of the validators responsible for consensus.
func (*ValidatorSetV2) DebugString
func (_self *ValidatorSetV2) DebugString() string
func (*ValidatorSetV2) Destroy
func (object *ValidatorSetV2) Destroy()
func (*ValidatorSetV2) ExtraFieldsId
func (_self *ValidatorSetV2) ExtraFieldsId() *ObjectId
Object ID of the `Bag` holding fields added to this struct after its current on-chain layout was set.
func (*ValidatorSetV2) InactiveValidatorsId
func (_self *ValidatorSetV2) InactiveValidatorsId() *ObjectId
Object ID of the `Table` holding the inactive validators, keyed by staking pool ID.
func (*ValidatorSetV2) PendingActiveValidatorsId
func (_self *ValidatorSetV2) PendingActiveValidatorsId() *ObjectId
Object ID of the `TableVec` holding the pending validator candidates, keyed by their index.
func (*ValidatorSetV2) PendingActiveValidatorsSize
func (_self *ValidatorSetV2) PendingActiveValidatorsSize() uint64
Number of pending validator candidates. The candidates themselves are stored in dynamic fields and are not part of this struct's contents.
func (*ValidatorSetV2) PendingRemovals
func (_self *ValidatorSetV2) PendingRemovals() []uint64
Indices into `active_validators` with pending removal requests.
func (*ValidatorSetV2) StakingPoolMappingsId
func (_self *ValidatorSetV2) StakingPoolMappingsId() *ObjectId
Object ID of the `Table` mapping each staking pool ID to its validator address.
func (*ValidatorSetV2) TotalStake
func (_self *ValidatorSetV2) TotalStake() uint64
Total stake from all committee validators at the beginning of the epoch, in nanos.
func (*ValidatorSetV2) ValidatorCandidatesId
func (_self *ValidatorSetV2) ValidatorCandidatesId() *ObjectId
Object ID of the `Table` holding the validator candidates, keyed by their address.