Struct everscale_types::models::shard::ShardStateUnsplit
source · pub struct ShardStateUnsplit {Show 17 fields
pub global_id: i32,
pub shard_ident: ShardIdent,
pub seqno: u32,
pub vert_seqno: u32,
pub gen_utime: u32,
pub gen_lt: u64,
pub min_ref_mc_seqno: u32,
pub out_msg_queue_info: Cell,
pub before_split: bool,
pub accounts: Lazy<ShardAccounts>,
pub overload_history: u64,
pub underload_history: u64,
pub total_balance: CurrencyCollection,
pub total_validator_fees: CurrencyCollection,
pub libraries: RawDict<256>,
pub master_ref: Option<BlockRef>,
pub custom: Option<Lazy<McStateExtra>>,
}Expand description
State of the single shard.
Fields§
§global_id: i32Global network id.
shard_ident: ShardIdentId of the shard.
seqno: u32Sequence number of the corresponding block.
vert_seqno: u32Vertical sequcent number of the corresponding block.
gen_utime: u32Unix timestamp when the block was created.
gen_lt: u64Logical time when the state was created.
min_ref_mc_seqno: u32Minimal referenced seqno of the masterchain block.
out_msg_queue_info: CellOutput messages queue info.
before_split: boolWhether this state was produced before the shards split.
accounts: Lazy<ShardAccounts>Reference to the dictionary with shard accounts.
overload_history: u64Mask for the overloaded blocks.
underload_history: u64Mask for the underloaded blocks.
total_balance: CurrencyCollectionTotal balance for all currencies.
total_validator_fees: CurrencyCollectionTotal pending validator fees.
libraries: RawDict<256>Dictionary with all libraries and its providers.
master_ref: Option<BlockRef>Optional reference to the masterchain block.
custom: Option<Lazy<McStateExtra>>Shard state additional info.
Implementations§
source§impl ShardStateUnsplit
impl ShardStateUnsplit
sourcepub fn load_accounts(&self) -> Result<ShardAccounts, Error>
pub fn load_accounts(&self) -> Result<ShardAccounts, Error>
Tries to load shard accounts dictionary.
sourcepub fn load_custom(&self) -> Result<Option<McStateExtra>, Error>
pub fn load_custom(&self) -> Result<Option<McStateExtra>, Error>
Tries to load additional masterchain data.
Trait Implementations§
source§impl Clone for ShardStateUnsplit
impl Clone for ShardStateUnsplit
source§fn clone(&self) -> ShardStateUnsplit
fn clone(&self) -> ShardStateUnsplit
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ShardStateUnsplit
impl Debug for ShardStateUnsplit
source§impl<'a> Load<'a> for ShardStateUnsplit
impl<'a> Load<'a> for ShardStateUnsplit
source§impl PartialEq<ShardStateUnsplit> for ShardStateUnsplit
impl PartialEq<ShardStateUnsplit> for ShardStateUnsplit
source§fn eq(&self, other: &ShardStateUnsplit) -> bool
fn eq(&self, other: &ShardStateUnsplit) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Store for ShardStateUnsplit
impl Store for ShardStateUnsplit
source§fn store_into(
&self,
builder: &mut CellBuilder,
finalizer: &mut dyn Finalizer
) -> Result<(), Error>
fn store_into( &self, builder: &mut CellBuilder, finalizer: &mut dyn Finalizer ) -> Result<(), Error>
Tries to store itself into the cell builder.