Enum sputnikvm::AccountChange
[−]
[src]
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), }
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: Rc<Vec<u8>> | Code associated with this account. |
IncreaseBalance(Address, U256)
Only balance is changed, and it is increasing 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: Rc<Vec<u8>> | Code associated with this account. |
Nonexist(Address)
The account should remain nonexist, or should be deleted if exists.
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