pub struct AccountChanges {
pub address: Address,
pub storage_changes: Vec<SlotChanges>,
pub storage_reads: Vec<U256>,
pub balance_changes: Vec<BalanceChange>,
pub nonce_changes: Vec<NonceChange>,
pub code_changes: Vec<CodeChange>,
}Expand description
Everything that happened to one account within the block.
Fields§
§address: AddressAccount address.
storage_changes: Vec<SlotChanges>Sorted by slot key.
storage_reads: Vec<U256>Keys only — slots read (or written with an unchanged value). Sorted.
balance_changes: Vec<BalanceChange>Sorted by index.
nonce_changes: Vec<NonceChange>Sorted by index.
code_changes: Vec<CodeChange>Sorted by index.
Implementations§
Source§impl AccountChanges
impl AccountChanges
Sourcepub fn slot(&self, key: &B256) -> Option<&SlotChanges>
pub fn slot(&self, key: &B256) -> Option<&SlotChanges>
Binary search by slot key.
Sourcepub fn has_storage_changes(&self) -> bool
pub fn has_storage_changes(&self) -> bool
true iff the account has at least one storage write. Presence in the
BAL alone (reads, balance touches) does NOT count.
Trait Implementations§
Source§impl Clone for AccountChanges
impl Clone for AccountChanges
Source§fn clone(&self) -> AccountChanges
fn clone(&self) -> AccountChanges
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AccountChanges
impl Debug for AccountChanges
Source§impl Decodable for AccountChanges
impl Decodable for AccountChanges
Source§impl Encodable for AccountChanges
impl Encodable for AccountChanges
impl Eq for AccountChanges
Source§impl PartialEq for AccountChanges
impl PartialEq for AccountChanges
impl StructuralPartialEq for AccountChanges
Auto Trait Implementations§
impl Freeze for AccountChanges
impl RefUnwindSafe for AccountChanges
impl Send for AccountChanges
impl Sync for AccountChanges
impl Unpin for AccountChanges
impl UnsafeUnpin for AccountChanges
impl UnwindSafe for AccountChanges
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
Mutably borrows from an owned value. Read more