Skip to main content

ValidatorV1

type ValidatorV1

A typed view of a `0x3::validator::ValidatorV1` from the active validator set.

type ValidatorV1 struct {
// contains filtered or unexported fields
}

func LiftFromExternalValidatorV1

func LiftFromExternalValidatorV1(handle uint64) *ValidatorV1

func (*ValidatorV1) CommissionRate

func (_self *ValidatorV1) CommissionRate() uint64

Commission rate of the validator, in basis points.

func (*ValidatorV1) DebugString

func (_self *ValidatorV1) DebugString() string

func (*ValidatorV1) Destroy

func (object *ValidatorV1) Destroy()

func (*ValidatorV1) ExtraFieldsId

func (_self *ValidatorV1) ExtraFieldsId() *ObjectId

Object ID of the `Bag` holding fields added to this struct after its current on-chain layout was set.

func (*ValidatorV1) GasPrice

func (_self *ValidatorV1) GasPrice() uint64

Gas price quote, updated only at end of epoch.

func (*ValidatorV1) Metadata

func (_self *ValidatorV1) Metadata() *ValidatorMetadataV1

The validator's metadata (addresses, keys, and descriptive info).

func (*ValidatorV1) NextEpochCommissionRate

func (_self *ValidatorV1) NextEpochCommissionRate() uint64

The commission rate of the validator starting next epoch, in basis points.

func (*ValidatorV1) NextEpochGasPrice

func (_self *ValidatorV1) NextEpochGasPrice() uint64

This validator's gas price quote for the next epoch.

func (*ValidatorV1) NextEpochStake

func (_self *ValidatorV1) NextEpochStake() uint64

Total amount of stake that would be active in the next epoch, in nanos.

func (*ValidatorV1) OperationCapId

func (_self *ValidatorV1) OperationCapId() *ObjectId

Object ID of this validator's current valid `UnverifiedValidatorOperationCap`.

func (*ValidatorV1) StakingPool

func (_self *ValidatorV1) StakingPool() *StakingPoolV1

Staking pool for this validator.

func (*ValidatorV1) VotingPower

func (_self *ValidatorV1) VotingPower() uint64

The voting power of this validator, which may differ from its stake amount.