Skip to main content

ValidatorSet

ValidatorSet

struct ValidatorSet

init(inactivePoolsId:inactivePoolsSize:pendingActiveValidatorsId:pendingActiveValidatorsSize:pendingRemovals:stakingPoolMappingsId:stakingPoolMappingsSize:totalStake:validatorCandidatesSize:validatorCandidatesId:)

init(inactivePoolsId: ObjectId? = nil, inactivePoolsSize: Int32? = nil, pendingActiveValidatorsId: ObjectId? = nil, pendingActiveValidatorsSize: Int32? = nil, pendingRemovals: [Int32]? = nil, stakingPoolMappingsId: ObjectId? = nil, stakingPoolMappingsSize: Int32? = nil, totalStake: String? = nil, validatorCandidatesSize: Int32? = nil, validatorCandidatesId: ObjectId? = nil)

inactivePoolsId

var inactivePoolsId: ObjectId?

Object ID of the Table storing the inactive staking pools.

inactivePoolsSize

var inactivePoolsSize: Int32?

Size of the inactive pools Table.

pendingActiveValidatorsId

var pendingActiveValidatorsId: ObjectId?

Object ID of the wrapped object TableVec storing the pending active validators.

pendingActiveValidatorsSize

var pendingActiveValidatorsSize: Int32?

Size of the pending active validators table.

pendingRemovals

var pendingRemovals: [Int32]?

Validators that are pending removal from the active validator set, expressed as indices in to activeValidators.

stakingPoolMappingsId

var stakingPoolMappingsId: ObjectId?

Object ID of the Table storing the mapping from staking pool ids to the addresses of the corresponding validators. This is needed because a validator's address can potentially change but the object ID of its pool will not.

stakingPoolMappingsSize

var stakingPoolMappingsSize: Int32?

Size of the stake pool mappings Table.

totalStake

var totalStake: String?

Total amount of stake for all active validators at the beginning of the epoch.

validatorCandidatesId

var validatorCandidatesId: ObjectId?

Object ID of the Table storing the validator candidates.

validatorCandidatesSize

var validatorCandidatesSize: Int32?

Size of the validator candidates Table.