Validator
data class Validator(var apy: Int? = null, var address: Address, var commissionRate: Int? = null, var credentials: ValidatorCredentials? = null, var description: String? = null, var exchangeRatesSize: ULong? = null, var gasPrice: ULong? = null, var name: String? = null, var imageUrl: String? = null, var nextEpochCommissionRate: Int? = null, var nextEpochCredentials: ValidatorCredentials? = null, var nextEpochGasPrice: ULong? = null, var nextEpochStake: ULong? = null, var operationCap: ByteArray? = null, var pendingPoolTokenWithdraw: ULong? = null, var pendingStake: ULong? = null, var pendingTotalIotaWithdraw: ULong? = null, var poolTokenBalance: ULong? = null, var projectUrl: String? = null, var rewardsPool: ULong? = null, var stakingPoolActivationEpoch: ULong? = null, var stakingPoolId: ObjectId, var stakingPoolIotaBalance: ULong? = null, var votingPower: Int? = null) : Disposable
Represents a validator in the system.
Constructors
| Validator | constructor(apy: Int? = null, address: Address, commissionRate: Int? = null, credentials: ValidatorCredentials? = null, description: String? = null, exchangeRatesSize: ULong? = null, gasPrice: ULong? = null, name: String? = null, imageUrl: String? = null, nextEpochCommissionRate: Int? = null, nextEpochCredentials: ValidatorCredentials? = null, nextEpochGasPrice: ULong? = null, nextEpochStake: ULong? = null, operationCap: ByteArray? = null, pendingPoolTokenWithdraw: ULong? = null, pendingStake: ULong? = null, pendingTotalIotaWithdraw: ULong? = null, poolTokenBalance: ULong? = null, projectUrl: String? = null, rewardsPool: ULong? = null, stakingPoolActivationEpoch: ULong? = null, stakingPoolId: ObjectId, stakingPoolIotaBalance: ULong? = null, votingPower: Int? = null) |
Properties
| Name | Summary |
|---|---|
| address | var address: Address The validator's address. |
| apy | var apy: Int? The APY of this validator in basis points. To get the APY in percentage, divide by 100. |
| commissionRate | var commissionRate: Int? The fee charged by the validator for staking services. |
| credentials | var credentials: ValidatorCredentials? Validator's credentials. |
| description | var description: String? Validator's description. |
| exchangeRatesSize | var exchangeRatesSize: ULong? Number of exchange rates in the table. |
| gasPrice | var gasPrice: ULong? The reference gas price for this epoch. |
| imageUrl | var imageUrl: String? Validator's url containing their custom image. |
| name | var name: String? Validator's name. |
| nextEpochCommissionRate | var nextEpochCommissionRate: Int? The proposed next epoch fee for the validator's staking services. |
| nextEpochCredentials | var nextEpochCredentials: ValidatorCredentials? Validator's credentials for the next epoch. |
| nextEpochGasPrice | var nextEpochGasPrice: ULong? The validator's gas price quote for the next epoch. |
| nextEpochStake | var nextEpochStake: ULong? The total number of IOTA tokens in this pool plus the pending stake amount for this epoch. |
| operationCap | var operationCap: ByteArray? 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. |
| pendingPoolTokenWithdraw | var pendingPoolTokenWithdraw: ULong? Pending pool token withdrawn during the current epoch, emptied at epoch boundaries. Zero for past epochs. |
| pendingStake | var pendingStake: ULong? Pending stake amount for the current epoch, emptied at epoch boundaries. Zero for past epochs. |
| pendingTotalIotaWithdraw | var pendingTotalIotaWithdraw: ULong? Pending stake withdrawn during the current epoch, emptied at epoch boundaries. Zero for past epochs. |
| poolTokenBalance | var poolTokenBalance: ULong? Total number of pool tokens issued by the pool. |
| projectUrl | var projectUrl: String? Validator's homepage URL. |
| rewardsPool | var rewardsPool: ULong? The epoch stake rewards will be added here at the end of each epoch. |
| stakingPoolActivationEpoch | var stakingPoolActivationEpoch: ULong? The epoch at which this pool became active. |
| stakingPoolId | var stakingPoolId: ObjectId The ID of this validator's 0x3::staking_pool::StakingPool. |
| stakingPoolIotaBalance | var stakingPoolIotaBalance: ULong? The total number of IOTA tokens in this pool. |
| votingPower | var votingPower: Int? The voting power of this validator in basis points (e.g., 100 = 1% voting power). |
Functions
| Name | Summary |
|---|---|
| destroy | open override fun destroy() |