sui_graphql_rpc/types/safe_mode.rs
1// Copyright (c) Mysten Labs, Inc.
2// SPDX-License-Identifier: Apache-2.0
3
4use super::gas::GasCostSummary;
5use async_graphql::*;
6
7/// Information about whether epoch changes are using safe mode.
8#[derive(Clone, Debug, PartialEq, Eq, SimpleObject)]
9pub(crate) struct SafeMode {
10 /// Whether safe mode was used for the last epoch change. The system will retry a full epoch
11 /// change on every epoch boundary and automatically reset this flag if so.
12 pub enabled: Option<bool>,
13
14 /// Accumulated fees for computation and cost that have not been added to the various reward
15 /// pools, because the full epoch change did not happen.
16 pub gas_summary: Option<GasCostSummary>,
17}