pub struct Stateful<'a, D: 'a> { /* private fields */ }Implementations§
Source§impl<'b, D: DatabaseOwned> Stateful<'b, D>
impl<'b, D: DatabaseOwned> Stateful<'b, D>
pub fn database(&self) -> &'b D
pub fn code(&self, hash: H256) -> Option<Vec<u8>>
pub fn step<V: VM>( &self, vm: &mut V, block_number: U256, most_recent_block_hashes: &[H256], )
pub fn call<M: Memory + Default, P: Patch>( &self, transaction: ValidTransaction, block: HeaderParams, most_recent_block_hashes: &[H256], ) -> TransactionVM<M, P>
pub fn sets(&mut self, accounts: &[(Address, LiteralAccount)])
pub fn transit(&mut self, accounts: &[AccountChange])
pub fn execute<M: Memory + Default, P: Patch>( &mut self, transaction: ValidTransaction, block: HeaderParams, most_recent_block_hashes: &[H256], ) -> TransactionVM<M, P>
pub fn to_valid<P: Patch>( &self, transaction: Transaction, ) -> Result<ValidTransaction, PreExecutionError>
pub fn root(&self) -> H256
pub fn state_of<'a>( &'a self, root: H256, ) -> FixedSecureTrie<<D as Database<'a>>::Guard, Address, Account>
pub fn state<'a>( &'a self, ) -> FixedSecureTrie<<D as Database<'a>>::Guard, Address, Account>
pub fn storage_state_of<'a>( &'a self, root: H256, ) -> FixedSecureTrie<<D as Database<'a>>::Guard, H256, M256>
pub fn storage_state<'a>( &'a self, address: Address, ) -> Option<FixedSecureTrie<<D as Database<'a>>::Guard, H256, M256>>
Trait Implementations§
Auto Trait Implementations§
impl<'a, D> Freeze for Stateful<'a, D>
impl<'a, D> RefUnwindSafe for Stateful<'a, D>where
D: RefUnwindSafe,
impl<'a, D> Send for Stateful<'a, D>where
D: Sync,
impl<'a, D> Sync for Stateful<'a, D>where
D: Sync,
impl<'a, D> Unpin for Stateful<'a, D>
impl<'a, D> UnwindSafe for Stateful<'a, D>where
D: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more