JournalExt

Trait JournalExt 

pub trait JournalExt {
    // Required methods
    fn logs(&self) -> &[Log];
    fn journal(&self) -> &[JournalEntry];
    fn evm_state(&self) -> &HashMap<Address, Account, DefaultHashBuilder>;
    fn evm_state_mut(
        &mut self,
    ) -> &mut HashMap<Address, Account, DefaultHashBuilder>;
}
Expand description

Extends the journal with additional methods that are used by the inspector.

Required Methods§

fn logs(&self) -> &[Log]

Get all logs from the journal.

fn journal(&self) -> &[JournalEntry]

Get the journal entries that are created from last checkpoint. new checkpoint is created when sub call is made.

fn evm_state(&self) -> &HashMap<Address, Account, DefaultHashBuilder>

Return the current Journaled state.

fn evm_state_mut( &mut self, ) -> &mut HashMap<Address, Account, DefaultHashBuilder>

Return the mutable current Journaled state.

Implementations on Foreign Types§

§

impl<'a, T> JournalExt for &'a mut T
where T: 'a + JournalExt + ?Sized,

§

impl<T> JournalExt for Box<T>
where T: JournalExt + ?Sized,

Implementors§

§

impl<DB> JournalExt for Journal<DB>
where DB: Database,