Enum evm::AccountChange
[−]
[src]
pub enum AccountChange { Full { nonce: U256, address: Address, balance: U256, changing_storage: Storage, code: Vec<u8>, }, IncreaseBalance(Address, U256), DecreaseBalance(Address, U256), Create { nonce: U256, address: Address, balance: U256, storage: Storage, code: Vec<u8>, exists: bool, }, }
Represents an account. This is usually returned by the EVM.
Variants
Full
A full account. The client is expected to replace its own account state with this.
Fields of Full
nonce: U256 | Account nonce. |
address: Address | Account address. |
balance: U256 | Account balance. |
changing_storage: Storage | Change storage with given indexes and values. |
code: Vec<u8> | Code associated with this account. |
IncreaseBalance(Address, U256)
Only balance is changed, and it is increasing for this address.
DecreaseBalance(Address, U256)
Only balance is changed, and it is decreasing for this address.
Create
Create or delete a (new) account.
Fields of Create
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. |
code: Vec<u8> | Code associated with this account. |
exists: bool | Whether, at this point, the account is considered
existing. The client should delete this address if this is
set to |
Methods
impl AccountChange
[src]
Trait Implementations
impl Debug for AccountChange
[src]
impl Clone for AccountChange
[src]
fn clone(&self) -> AccountChange
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more