sui_graphql_client::query_types

Struct Epoch

Source
pub struct Epoch {
Show 17 fields pub epoch_id: u64, pub fund_inflow: Option<BigInt>, pub fund_outflow: Option<BigInt>, pub fund_size: Option<BigInt>, pub live_object_set_digest: Option<String>, pub net_inflow: Option<BigInt>, pub protocol_configs: Option<ProtocolConfigs>, pub reference_gas_price: Option<BigInt>, pub start_timestamp: DateTime, pub end_timestamp: Option<DateTime>, pub system_state_version: Option<u64>, pub total_checkpoints: Option<u64>, pub total_gas_fees: Option<BigInt>, pub total_stake_rewards: Option<BigInt>, pub total_stake_subsidies: Option<BigInt>, pub total_transactions: Option<u64>, pub validator_set: Option<ValidatorSet>,
}

Fields§

§epoch_id: u64

The epoch’s id as a sequence number that starts at 0 and is incremented by one at every epoch change.

§fund_inflow: Option<BigInt>

The storage fees paid for transactions executed during the epoch.

§fund_outflow: Option<BigInt>

The storage fee rebates paid to users who deleted the data associated with past transactions.

§fund_size: Option<BigInt>

The storage fund available in this epoch. This fund is used to redistribute storage fees from past transactions to future validators.

§live_object_set_digest: Option<String>

A commitment by the committee at the end of epoch on the contents of the live object set at that time. This can be used to verify state snapshots.

§net_inflow: Option<BigInt>

The difference between the fund inflow and outflow, representing the net amount of storage fees accumulated in this epoch.

§protocol_configs: Option<ProtocolConfigs>

The epoch’s corresponding protocol configuration, including the feature flags and the configuration options.

§reference_gas_price: Option<BigInt>

The minimum gas price that a quorum of validators are guaranteed to sign a transaction for.

§start_timestamp: DateTime

The epoch’s starting timestamp.

§end_timestamp: Option<DateTime>

The epoch’s ending timestamp. Note that this is available only on epochs that have ended.

§system_state_version: Option<u64>

The value of the version field of 0x5, the 0x3::sui::SuiSystemState object. This version changes whenever the fields contained in the system state object (held in a dynamic field attached to 0x5) change.

§total_checkpoints: Option<u64>

The total number of checkpoints in this epoch.

§total_gas_fees: Option<BigInt>

The total amount of gas fees (in MIST) that were paid in this epoch.

§total_stake_rewards: Option<BigInt>

The total MIST rewarded as stake.

§total_stake_subsidies: Option<BigInt>

The amount added to total gas fees to make up the total stake rewards.

§total_transactions: Option<u64>

The total number of transaction in this epoch.

§validator_set: Option<ValidatorSet>

Validator related properties. For active validators, see active_validators API.

Trait Implementations§

Source§

impl Clone for Epoch

Source§

fn clone(&self) -> Epoch

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Epoch

Source§

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

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

impl<'de> Deserialize<'de> for Epoch

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 Epoch

Source§

const TYPE: Option<&'static str>

The name of the type in the GraphQL schema
Source§

type SchemaType = Epoch

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§

§

impl Freeze for Epoch

§

impl RefUnwindSafe for Epoch

§

impl Send for Epoch

§

impl Sync for Epoch

§

impl Unpin for Epoch

§

impl UnwindSafe for Epoch

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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