[][src]Struct evm_stateful::Stateful

pub struct Stateful<'a, D: 'a> { /* fields omitted */ }

Methods

impl<'a, D> Stateful<'a, D>[src]

pub fn new(database: &'a D, root: H256) -> Self[src]

pub fn empty(database: &'a D) -> Self[src]

impl<'b, D: DatabaseOwned> Stateful<'b, D>[src]

pub fn database(&self) -> &'b D[src]

pub fn code(&self, hash: H256) -> Option<Vec<u8>>[src]

pub fn step<V: VM>(
    &self,
    vm: &mut V,
    block_number: U256,
    most_recent_block_hashes: &[H256]
)
[src]

pub fn require_to_commit(
    &self,
    require: RequireError,
    root: Option<H256>
) -> AccountCommitment
[src]

pub fn call<'a, M: Memory, P: Patch>(
    &self,
    patch: &'a P,
    transaction: ValidTransaction,
    block: &HeaderParams,
    most_recent_block_hashes: &[H256]
) -> TransactionVM<'a, M, P>
[src]

pub fn sets(&mut self, accounts: &[(Address, LiteralAccount)])[src]

pub fn transit(&mut self, accounts: &[AccountChange])[src]

pub fn execute<'a, M: Memory, P: Patch>(
    &mut self,
    patch: &'a P,
    transaction: ValidTransaction,
    block: &HeaderParams,
    most_recent_block_hashes: &[H256]
) -> TransactionVM<'a, M, P>
[src]

pub fn to_valid<P: Patch>(
    &self,
    patch: &P,
    transaction: &Transaction
) -> Result<ValidTransaction, PreExecutionError>
[src]

pub fn root(&self) -> H256[src]

pub fn state_of<'a>(
    &'a self,
    root: H256
) -> FixedSecureTrie<<D as Database<'a>>::Guard, Address, Account>
[src]

pub fn state<'a>(
    &'a self
) -> FixedSecureTrie<<D as Database<'a>>::Guard, Address, Account>
[src]

pub fn storage_state_of<'a>(
    &'a self,
    root: H256
) -> FixedSecureTrie<<D as Database<'a>>::Guard, H256, M256>
[src]

pub fn storage_state<'a>(
    &'a self,
    address: Address
) -> Option<FixedSecureTrie<<D as Database<'a>>::Guard, H256, M256>>
[src]

Trait Implementations

impl<'a, D: Copy + 'a> Copy for Stateful<'a, D>[src]

impl<'a, D: Clone + 'a> Clone for Stateful<'a, D>[src]

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

Performs copy-assignment from source. Read more

impl<'a, D: Debug + 'a> Debug for Stateful<'a, D>[src]

Auto Trait Implementations

impl<'a, D> Send for Stateful<'a, D> where
    D: Sync

impl<'a, D> Sync for Stateful<'a, D> where
    D: Sync

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