Struct everscale_types::models::block::Block
source · pub struct Block {
pub global_id: i32,
pub info: Lazy<BlockInfo>,
pub value_flow: Lazy<ValueFlow>,
pub state_update: Lazy<MerkleUpdate>,
pub out_msg_queue_updates: Option<Dict<u32, Lazy<MerkleUpdate>>>,
pub extra: Lazy<BlockExtra>,
}Expand description
Shard block.
Fields§
§global_id: i32Global network id.
info: Lazy<BlockInfo>Block info.
value_flow: Lazy<ValueFlow>Tokens flow info.
state_update: Lazy<MerkleUpdate>Merkle update for the shard state.
out_msg_queue_updates: Option<Dict<u32, Lazy<MerkleUpdate>>>Merkle updates for the outgoing messages queue.
extra: Lazy<BlockExtra>Block content.
Implementations§
source§impl Block
impl Block
sourcepub fn load_value_flow(&self) -> Result<ValueFlow, Error>
pub fn load_value_flow(&self) -> Result<ValueFlow, Error>
Tries to load tokens flow info.
sourcepub fn load_state_update(&self) -> Result<MerkleUpdate, Error>
pub fn load_state_update(&self) -> Result<MerkleUpdate, Error>
Tries to load state update.
sourcepub fn load_extra(&self) -> Result<BlockExtra, Error>
pub fn load_extra(&self) -> Result<BlockExtra, Error>
Tries to load block content.
Trait Implementations§
source§impl PartialEq<Block> for Block
impl PartialEq<Block> for Block
source§impl Store for Block
impl Store for Block
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.