[][src]Enum evm::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> From for T
[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Same for T

type Output = T

Should always be Self