sui_graphql_client::query_types

Struct Validator

Source
pub struct Validator {
Show 24 fields pub apy: Option<i32>, pub address: GQLAddress, pub commission_rate: Option<i32>, pub credentials: Option<ValidatorCredentials>, pub description: Option<String>, pub exchange_rates_size: Option<u64>, pub gas_price: Option<BigInt>, pub name: Option<String>, pub image_url: Option<String>, pub next_epoch_commission_rate: Option<i32>, pub next_epoch_credentials: Option<ValidatorCredentials>, pub next_epoch_gas_price: Option<BigInt>, pub next_epoch_stake: Option<BigInt>, pub operation_cap: Option<MoveObject>, pub pending_pool_token_withdraw: Option<BigInt>, pub pending_stake: Option<BigInt>, pub pending_total_sui_withdraw: Option<BigInt>, pub pool_token_balance: Option<BigInt>, pub project_url: Option<String>, pub rewards_pool: Option<BigInt>, pub staking_pool_activation_epoch: Option<u64>, pub staking_pool_id: Address, pub staking_pool_sui_balance: Option<BigInt>, pub voting_power: Option<i32>,
}
Expand description

Represents a validator in the system.

Fields§

§apy: Option<i32>

The APY of this validator in basis points. To get the APY in percentage, divide by 100.

§address: GQLAddress

The validator’s address.

§commission_rate: Option<i32>

The fee charged by the validator for staking services.

§credentials: Option<ValidatorCredentials>

Validator’s credentials.

§description: Option<String>

Validator’s description.

§exchange_rates_size: Option<u64>

Number of exchange rates in the table.

§gas_price: Option<BigInt>

The reference gas price for this epoch.

§name: Option<String>

Validator’s name.

§image_url: Option<String>

Validator’s url containing their custom image.

§next_epoch_commission_rate: Option<i32>

The proposed next epoch fee for the validator’s staking services.

§next_epoch_credentials: Option<ValidatorCredentials>

Validator’s credentials for the next epoch.

§next_epoch_gas_price: Option<BigInt>

The validator’s gas price quote for the next epoch.

§next_epoch_stake: Option<BigInt>

The total number of SUI tokens in this pool plus the pending stake amount for this epoch.

§operation_cap: Option<MoveObject>

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.

§pending_pool_token_withdraw: Option<BigInt>

Pending pool token withdrawn during the current epoch, emptied at epoch boundaries.

§pending_stake: Option<BigInt>

Pending stake amount for this epoch.

§pending_total_sui_withdraw: Option<BigInt>

Pending stake withdrawn during the current epoch, emptied at epoch boundaries.

§pool_token_balance: Option<BigInt>

Total number of pool tokens issued by the pool.

§project_url: Option<String>

Validator’s homepage URL.

§rewards_pool: Option<BigInt>

The epoch stake rewards will be added here at the end of each epoch.

§staking_pool_activation_epoch: Option<u64>

The epoch at which this pool became active.

§staking_pool_id: Address

The ID of this validator’s 0x3::staking_pool::StakingPool.

§staking_pool_sui_balance: Option<BigInt>

The total number of SUI tokens in this pool.

§voting_power: Option<i32>

The voting power of this validator in basis points (e.g., 100 = 1% voting power).

Trait Implementations§

Source§

impl Debug for Validator

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Validator

Source§

fn deserialize<__D>(deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl QueryFragment for Validator

Source§

const TYPE: Option<&'static str>

The name of the type in the GraphQL schema
Source§

type SchemaType = Validator

The type in a schema that this QueryFragment represents
Source§

type VariablesFields = ()

The variables that are required to execute this QueryFragment
Source§

fn query(builder: SelectionBuilder<'_, Self::SchemaType, Self::VariablesFields>)

Adds this fragment to the query being built by builder
Source§

fn name() -> Option<Cow<'static, str>>

The name of this fragment, useful for operations, maybe fragments if we ever support them…

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<U> As for U

§

fn as_<T>(self) -> T
where T: CastFrom<U>,

Casts self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> IsFieldType<T> for T

§

impl<T> MaybeSendSync for T