ValidatorSetV2Protocol
ValidatorSetV2Protocol Objects
class ValidatorSetV2Protocol(typing.Protocol)
A typed view of the 0x3::validator_set::ValidatorSetV2 embedded in the
system state.
active_validators
def active_validators() -> typing.List[ValidatorV1]
The current list of active validators.
at_risk_validators
def at_risk_validators() -> dict[Address, int]
Number of epochs each at-risk validator has had stake below the low-stake threshold.
committee_members
def committee_members() -> typing.List[int]
Indices into active_validators of the validators responsible for
consensus.
extra_fields_id
def extra_fields_id() -> ObjectId
Object ID of the Bag holding fields added to this struct after its
current on-chain layout was set.
inactive_validators_id
def inactive_validators_id() -> ObjectId
Object ID of the Table holding the inactive validators, keyed by
staking pool ID.
pending_active_validators_id
def pending_active_validators_id() -> ObjectId
Object ID of the TableVec holding the pending validator candidates,
keyed by their index.
pending_active_validators_size
def pending_active_validators_size() -> int
Number of pending validator candidates. The candidates themselves are stored in dynamic fields and are not part of this struct's contents.
pending_removals
def pending_removals() -> typing.List[int]
Indices into active_validators with pending removal requests.
staking_pool_mappings_id
def staking_pool_mappings_id() -> ObjectId
Object ID of the Table mapping each staking pool ID to its validator
address.
total_stake
def total_stake() -> int
Total stake from all committee validators at the beginning of the epoch, in nanos.
validator_candidates_id
def validator_candidates_id() -> ObjectId
Object ID of the Table holding the validator candidates, keyed by
their address.