pub enum AccountChange {
    Full {
        nonce: U256,
        address: Address,
        balance: U256,
        changing_storage: Storage,
        code: Rc<Vec<u8>>,
    },
    IncreaseBalance(AddressU256),
    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.

code: Rc<Vec<u8>>

Code associated with this account.

A full account. The client is expected to replace its own account state with this.

IncreaseBalance(AddressU256)

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.

code: Rc<Vec<u8>>

Code associated with this account.

Create or delete a (new) account.

Nonexist(Address)

The account should remain nonexist, or should be deleted if exists.

Implementations

Address of this account.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.