ValidatorSetV1
type ValidatorSetV1
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.
type ValidatorSetV1 struct {
// contains filtered or unexported fields
}
func LiftFromExternalValidatorSetV1
func LiftFromExternalValidatorSetV1(handle uint64) *ValidatorSetV1
func (*ValidatorSetV1) ActiveValidators
func (_self *ValidatorSetV1) ActiveValidators() []*ValidatorV1
The current list of active validators.
func (*ValidatorSetV1) AtRiskValidators
func (_self *ValidatorSetV1) AtRiskValidators() map[*Address]uint64
Number of epochs each at-risk validator has had stake below the low-stake threshold.
func (*ValidatorSetV1) DebugString
func (_self *ValidatorSetV1) DebugString() string
func (*ValidatorSetV1) Destroy
func (object *ValidatorSetV1) Destroy()
func (*ValidatorSetV1) ExtraFieldsId
func (_self *ValidatorSetV1) ExtraFieldsId() *ObjectId
Object ID of the `Bag` holding fields added to this struct after its current on-chain layout was set.
func (*ValidatorSetV1) InactiveValidatorsId
func (_self *ValidatorSetV1) InactiveValidatorsId() *ObjectId
Object ID of the `Table` holding the inactive validators, keyed by staking pool ID.
func (*ValidatorSetV1) PendingActiveValidatorsId
func (_self *ValidatorSetV1) PendingActiveValidatorsId() *ObjectId
Object ID of the `TableVec` holding the pending validator candidates, keyed by their index.
func (*ValidatorSetV1) PendingActiveValidatorsSize
func (_self *ValidatorSetV1) 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 (*ValidatorSetV1) PendingRemovals
func (_self *ValidatorSetV1) PendingRemovals() []uint64
Indices into `active_validators` with pending removal requests.
func (*ValidatorSetV1) StakingPoolMappingsId
func (_self *ValidatorSetV1) StakingPoolMappingsId() *ObjectId
Object ID of the `Table` mapping each staking pool ID to its validator address.
func (*ValidatorSetV1) TotalStake
func (_self *ValidatorSetV1) TotalStake() uint64
Total stake from all active validators at the beginning of the epoch, in nanos.
func (*ValidatorSetV1) ValidatorCandidatesId
func (_self *ValidatorSetV1) ValidatorCandidatesId() *ObjectId
Object ID of the `Table` holding the validator candidates, keyed by their address.