[][src]Enum ethereumvm::AccountChange

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]

pub fn address(&self) -> Address[src]

Address of this account.

Trait Implementations

impl Clone for AccountChange[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for AccountChange[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self