Validator
type Validator
Represents a validator in the system.
type Validator struct {
// The APY of this validator in basis points.
// To get the APY in percentage, divide by 100.
Apy *int32
// The validator's address.
Address *Address
// The fee charged by the validator for staking services.
CommissionRate *int32
// Validator's credentials.
Credentials *ValidatorCredentials
// Validator's description.
Description *string
// Number of exchange rates in the table.
ExchangeRatesSize *uint64
// The reference gas price for this epoch.
GasPrice *uint64
// Validator's name.
Name *string
// Validator's url containing their custom image.
ImageUrl *string
// The proposed next epoch fee for the validator's staking services.
NextEpochCommissionRate *int32
// Validator's credentials for the next epoch.
NextEpochCredentials *ValidatorCredentials
// The validator's gas price quote for the next epoch.
NextEpochGasPrice *uint64
// The total number of IOTA tokens in this pool plus
// the pending stake amount for this epoch.
NextEpochStake *uint64
// The validator's current valid `Cap` object. Validators can delegate
// the operation ability to another address. The address holding this `Cap`
// object can then update the reference gas price and tallying rule on
// behalf of the validator.
OperationCap *[]byte
// Pending pool token withdrawn during the current epoch, emptied at epoch
// boundaries. Zero for past epochs.
PendingPoolTokenWithdraw *uint64
// Pending stake amount for the current epoch, emptied at epoch boundaries.
// Zero for past epochs.
PendingStake *uint64
// Pending stake withdrawn during the current epoch, emptied at epoch
// boundaries. Zero for past epochs.
PendingTotalIotaWithdraw *uint64
// Total number of pool tokens issued by the pool.
PoolTokenBalance *uint64
// Validator's homepage URL.
ProjectUrl *string
// The epoch stake rewards will be added here at the end of each epoch.
RewardsPool *uint64
// The epoch at which this pool became active.
StakingPoolActivationEpoch *uint64
// The ID of this validator's `0x3::staking_pool::StakingPool`.
StakingPoolId *ObjectId
// The total number of IOTA tokens in this pool.
StakingPoolIotaBalance *uint64
// The voting power of this validator in basis points (e.g., 100 = 1%
// voting power).
VotingPower *int32
}
func (*Validator) Destroy
func (r *Validator) Destroy()