Skip to main content

Class: ValidatorV1

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

Extends​

  • UniffiAbstractObject

Implements​

Properties​

[destructorGuardSymbol]​

readonly [destructorGuardSymbol]: UniffiGcObject;

[pointerLiteralSymbol]​

readonly [pointerLiteralSymbol]: bigint;

[uniffiTypeNameSymbol]​

readonly [uniffiTypeNameSymbol]: "ValidatorV1" = "ValidatorV1";

Methods​

commissionRate()​

commissionRate(): bigint;

Commission rate of the validator, in basis points.

Returns​

bigint

Implementation of​

ValidatorV1Like.commissionRate


extraFieldsId()​

extraFieldsId(): ObjectIdLike;

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

Returns​

ObjectIdLike

Implementation of​

ValidatorV1Like.extraFieldsId


gasPrice()​

gasPrice(): bigint;

Gas price quote, updated only at end of epoch.

Returns​

bigint

Implementation of​

ValidatorV1Like.gasPrice


metadata()​

metadata(): ValidatorMetadataV1Like;

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

Returns​

ValidatorMetadataV1Like

Implementation of​

ValidatorV1Like.metadata


nextEpochCommissionRate()​

nextEpochCommissionRate(): bigint;

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

Returns​

bigint

Implementation of​

ValidatorV1Like.nextEpochCommissionRate


nextEpochGasPrice()​

nextEpochGasPrice(): bigint;

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

Returns​

bigint

Implementation of​

ValidatorV1Like.nextEpochGasPrice


nextEpochStake()​

nextEpochStake(): bigint;

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

Returns​

bigint

Implementation of​

ValidatorV1Like.nextEpochStake


operationCapId()​

operationCapId(): ObjectIdLike;

Object ID of this validator's current valid UnverifiedValidatorOperationCap.

Returns​

ObjectIdLike

Implementation of​

ValidatorV1Like.operationCapId


stakingPool()​

stakingPool(): StakingPoolV1Like;

Staking pool for this validator.

Returns​

StakingPoolV1Like

Implementation of​

ValidatorV1Like.stakingPool


toDebugString()​

toDebugString(): string;

Returns​

string


toString()​

toString(): string;

Returns a string representation of an object.

Returns​

string


uniffiDestroy()​

uniffiDestroy(): void;

Explicitly tell Rust to destroy the native peer that backs this object.

Once this method has been called, any following method calls will throw an error.

Can be called more than once.

Returns​

void

Overrides​

UniffiAbstractObject.uniffiDestroy

uniffiUse()​

uniffiUse<T>(block): T;

A convenience method to use this object, then destroy it after its use.

Type Parameters​

T​

T

Parameters​

block​

(obj) => T

Returns​

T

Inherited from​

UniffiAbstractObject.uniffiUse

votingPower()​

votingPower(): bigint;

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

Returns​

bigint

Implementation of​

ValidatorV1Like.votingPower


instanceOf()​

static instanceOf(obj_): obj_ is ValidatorV1;

Parameters​

obj_​

any

Returns​

obj_ is ValidatorV1