Enum sputnikvm::AccountChange
source · pub enum AccountChange {
Full {
nonce: U256,
address: Address,
balance: U256,
changing_storage: Storage,
code: Rc<Vec<u8>>,
},
IncreaseBalance(Address, U256),
Create {
nonce: U256,
address: Address,
balance: U256,
storage: Storage,
code: Rc<Vec<u8>>,
},
Nonexist(Address),
}
Expand description
Represents an account. This is usually returned by the EVM.
Variants
Full
Fields
nonce: U256
Account nonce.
address: Address
Account address.
balance: U256
Account balance.
changing_storage: Storage
Change storage with given indexes and values.
A full account. The client is expected to replace its own account state with this.
IncreaseBalance(Address, U256)
Only balance is changed, and it is increasing for this address.
Create
Fields
nonce: U256
Account nonce.
address: Address
Account address.
balance: U256
Account balance.
storage: Storage
All storage values of this account, with given indexes and values.
Create or delete a (new) account.
Nonexist(Address)
The account should remain nonexist, or should be deleted if exists.
Implementations
sourceimpl AccountChange
impl AccountChange
Trait Implementations
sourceimpl Clone for AccountChange
impl Clone for AccountChange
sourcefn clone(&self) -> AccountChange
fn clone(&self) -> AccountChange
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for AccountChange
impl !Send for AccountChange
impl !Sync for AccountChange
impl Unpin for AccountChange
impl UnwindSafe for AccountChange
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more