Struct everscale_types::models::shard::ShardStateUnsplit
source · pub struct ShardStateUnsplit<C: CellFamily> {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: CellContainer<C>,
pub before_split: bool,
pub accounts: Lazy<C, ShardAccounts<C>>,
pub overload_history: u64,
pub underload_history: u64,
pub total_balance: CurrencyCollection<C>,
pub total_validator_fees: CurrencyCollection<C>,
pub libraries: RawDict<C, 256>,
pub master_ref: Option<BlockRef>,
pub custom: Option<Lazy<C, McStateExtra<C>>>,
}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: CellContainer<C>Output messages queue info.
before_split: boolWhether this state was produced before the shards split.
accounts: Lazy<C, ShardAccounts<C>>Reference to the dictionary with shard accounts.
overload_history: u64Mask for the overloaded blocks.
underload_history: u64Mask for the underloaded blocks.
total_balance: CurrencyCollection<C>Total balance for all currencies.
total_validator_fees: CurrencyCollection<C>Total pending validator fees.
libraries: RawDict<C, 256>Dictionary with all libraries and its providers.
master_ref: Option<BlockRef>Optional reference to the masterchain block.
custom: Option<Lazy<C, McStateExtra<C>>>Shard state additional info.
Implementations§
source§impl<C: CellFamily> ShardStateUnsplit<C>
impl<C: CellFamily> ShardStateUnsplit<C>
sourcepub fn load_accounts(&self) -> Result<ShardAccounts<C>, Error>
pub fn load_accounts(&self) -> Result<ShardAccounts<C>, Error>
Tries to load shard accounts dictionary.
sourcepub fn load_custom(&self) -> Result<Option<McStateExtra<C>>, Error>
pub fn load_custom(&self) -> Result<Option<McStateExtra<C>>, Error>
Tries to load additional masterchain data.
Trait Implementations§
source§impl<C: CellFamily> Clone for ShardStateUnsplit<C>
impl<C: CellFamily> Clone for ShardStateUnsplit<C>
source§impl<C: CellFamily> Debug for ShardStateUnsplit<C>
impl<C: CellFamily> Debug for ShardStateUnsplit<C>
source§impl<'a, C: CellFamily> Load<'a, C> for ShardStateUnsplit<C>
impl<'a, C: CellFamily> Load<'a, C> for ShardStateUnsplit<C>
source§impl<C: CellFamily> PartialEq<ShardStateUnsplit<C>> for ShardStateUnsplit<C>
impl<C: CellFamily> PartialEq<ShardStateUnsplit<C>> for ShardStateUnsplit<C>
source§impl<C: CellFamily> Store<C> for ShardStateUnsplit<C>
impl<C: CellFamily> Store<C> for ShardStateUnsplit<C>
source§fn store_into(
&self,
builder: &mut CellBuilder<C>,
finalizer: &mut dyn Finalizer<C>
) -> bool
fn store_into( &self, builder: &mut CellBuilder<C>, finalizer: &mut dyn Finalizer<C> ) -> bool
Tries to store itself into the cell builder.