Struct evm::AccountState [] [src]

pub struct AccountState { /* fields omitted */ }

A struct that manages the current account state for one EVM.

Methods

impl AccountState
[src]

[src]

Returns all fetched or modified addresses.

[src]

Returns all accounts right now in this account state.

[src]

Returns Ok(()) if a full account is in this account state. Otherwise raise a RequireError.

[src]

Returns Ok(()) if either a full account or a partial code account is in this account state. Otherwise raise a RequireError.

[src]

Returns Ok(()) if the storage exists in the VM. Otherwise raise a RequireError.

[src]

Commit an account commitment into this account state.

[src]

Test whether an account at given address is considered existing.

[src]

Premark an address as exist.

[src]

Find code by its address in this account state. If the search failed, returns a RequireError.

[src]

Find nonce by its address in this account state. If the search failed, returns a RequireError.

[src]

Find balance by its address in this account state. If the search failed, returns a RequireError.

[src]

Returns the storage of an account. If the account is not yet committed, returns a RequireError.

[src]

Returns the mutable storage of an account. If the account is not yet committed. returns a RequireError.

[src]

Create a new account (that should not yet have existed before).

[src]

Deposit code in to a created account.

[src]

Increase the balance of an account.

[src]

Decrease the balance of an account.

[src]

Set nonce of an account. If the account is not already commited, returns a RequireError.

[src]

Delete an account from this account state. The account is set to null. If the account is not already commited, returns a RequireError.

Trait Implementations

impl Debug for AccountState
[src]

[src]

Formats the value using the given formatter.

impl Clone for AccountState
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for AccountState
[src]

[src]

Returns the "default value" for a type. Read more