ValidatorSetV1
Namespace: IotaSdk
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.
public class ValidatorSetV1 : IValidatorSetV1, System.IDisposable
Inheritance Object → ValidatorSetV1
Implements IValidatorSetV1, IDisposable
Attributes NullableContextAttribute, NullableAttribute
Constructors
ValidatorSetV1(UInt64)
public ValidatorSetV1(ulong pointer)
Parameters
pointer UInt64
Methods
Destroy()
public void Destroy()
Dispose()
public void Dispose()
ActiveValidators()
The current list of active validators.
public ValidatorV1[] ActiveValidators()
Returns
AtRiskValidators()
Number of epochs each at-risk validator has had stake below the low-stake threshold.
public Dictionary<Address, ulong> AtRiskValidators()
Returns
ExtraFieldsId()
Object ID of the Bag holding fields added to this struct after its
current on-chain layout was set.
public ObjectId ExtraFieldsId()
Returns
InactiveValidatorsId()
Object ID of the Table holding the inactive validators, keyed by
staking pool ID.
public ObjectId InactiveValidatorsId()
Returns
PendingActiveValidatorsId()
Object ID of the TableVec holding the pending validator candidates,
keyed by their index.
public ObjectId PendingActiveValidatorsId()
Returns
PendingActiveValidatorsSize()
Number of pending validator candidates. The candidates themselves are stored in dynamic fields and are not part of this struct's contents.
public ulong PendingActiveValidatorsSize()
Returns
PendingRemovals()
Indices into active_validators with pending removal requests.
public UInt64[] PendingRemovals()
Returns
StakingPoolMappingsId()
Object ID of the Table mapping each staking pool ID to its validator
address.
public ObjectId StakingPoolMappingsId()
Returns
TotalStake()
Total stake from all active validators at the beginning of the epoch, in nanos.
public ulong TotalStake()
Returns
ValidatorCandidatesId()
Object ID of the Table holding the validator candidates, keyed by
their address.
public ObjectId ValidatorCandidatesId()