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: Dict<HashBytes, LibDescr>,
pub master_ref: Option<BlockRef>,
pub custom: Option<Lazy<McStateExtra>>,
}Expand description
State of the single shard.
§TLB scheme
Old:
shard_state#9023afe2
global_id:int32
shard_id:ShardIdent
seq_no:uint32 vert_seq_no:#
gen_utime:uint32 gen_lt:uint64
min_ref_mc_seqno:uint32
out_msg_queue_info:^OutMsgQueueInfo
before_split:(## 1)
accounts:^ShardAccounts
^[
overload_history:uint64
underload_history:uint64
total_balance:CurrencyCollection
total_validator_fees:CurrencyCollection
libraries:(HashmapE 256 LibDescr)
master_ref:(Maybe BlkMasterInfo)
]
custom:(Maybe ^McStateExtra)
= ShardStateUnsplit;New:
shard_state#9023aeee
global_id:int32
shard_id:ShardIdent
seq_no:uint32 vert_seq_no:#
gen_utime:uint32
gen_utime_ms:uint16
gen_lt:uint64
min_ref_mc_seqno:uint32
processed_upto:^ProcessedUptoInfo
before_split:(## 1)
accounts:^ShardAccounts
^[
overload_history:uint64
underload_history:uint64
total_balance:CurrencyCollection
total_validator_fees:CurrencyCollection
libraries:(HashmapE 256 LibDescr)
master_ref:(Maybe BlkMasterInfo)
]
custom:(Maybe ^McStateExtra)
= ShardStateUnsplit;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 (stub).
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: Dict<HashBytes, LibDescr>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 empty_shard_accounts() -> &'static Lazy<ShardAccounts>
pub fn empty_shard_accounts() -> &'static Lazy<ShardAccounts>
Returns a static reference to the empty shard accounts.
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.
Sourcepub fn set_custom(&mut self, value: Option<&McStateExtra>) -> Result<(), Error>
pub fn set_custom(&mut self, value: Option<&McStateExtra>) -> Result<(), Error>
Tries to set additional masterchain data.
Trait Implementations§
Source§impl Clone for ShardStateUnsplit
impl Clone for ShardStateUnsplit
Source§fn clone(&self) -> ShardStateUnsplit
fn clone(&self) -> ShardStateUnsplit
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ShardStateUnsplit
impl Debug for ShardStateUnsplit
Source§impl Default for ShardStateUnsplit
impl Default for ShardStateUnsplit
Source§impl<'a> Load<'a> for ShardStateUnsplit
impl<'a> Load<'a> for ShardStateUnsplit
Source§impl PartialEq for ShardStateUnsplit
impl PartialEq for ShardStateUnsplit
Source§impl Store for ShardStateUnsplit
impl Store for ShardStateUnsplit
Source§fn store_into(
&self,
builder: &mut CellBuilder,
context: &dyn CellContext,
) -> Result<(), Error>
fn store_into( &self, builder: &mut CellBuilder, context: &dyn CellContext, ) -> Result<(), Error>
impl Eq for ShardStateUnsplit
impl StructuralPartialEq for ShardStateUnsplit
Auto Trait Implementations§
impl Freeze for ShardStateUnsplit
impl !RefUnwindSafe for ShardStateUnsplit
impl Send for ShardStateUnsplit
impl Sync for ShardStateUnsplit
impl Unpin for ShardStateUnsplit
impl !UnwindSafe for ShardStateUnsplit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
self to key and returns true if they are equal.