pub struct MemoryStackSubstate<'config> { /* private fields */ }

Implementations§

source§

impl<'config> MemoryStackSubstate<'config>

source

pub fn new(metadata: StackSubstateMetadata<'config>) -> Self

source

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

source

pub fn logs_mut(&mut self) -> &mut Vec<Log>

source

pub fn metadata(&self) -> &StackSubstateMetadata<'config>

source

pub fn metadata_mut(&mut self) -> &mut StackSubstateMetadata<'config>

source

pub fn deconstruct<B: Backend>( self, backend: &B ) -> (impl IntoIterator<Item = Apply<impl IntoIterator<Item = (H256, H256)>>>, impl IntoIterator<Item = Log>)

Deconstruct the memory stack substate, return state to be applied. Panic if the substate is not in the top-level substate.

source

pub fn enter(&mut self, gas_limit: u64, is_static: bool)

source

pub fn exit_commit(&mut self) -> Result<(), ExitError>

source

pub fn exit_revert(&mut self) -> Result<(), ExitError>

source

pub fn exit_discard(&mut self) -> Result<(), ExitError>

source

pub fn known_account(&self, address: H160) -> Option<&MemoryStackAccount>

source

pub fn known_basic(&self, address: H160) -> Option<Basic>

source

pub fn known_code(&self, address: H160) -> Option<Vec<u8>>

source

pub fn known_empty(&self, address: H160) -> Option<bool>

source

pub fn known_storage(&self, address: H160, key: H256) -> Option<H256>

source

pub fn known_original_storage(&self, address: H160) -> Option<H256>

source

pub fn is_cold(&self, address: H160) -> bool

source

pub fn is_storage_cold(&self, address: H160, key: H256) -> bool

source

pub fn deleted(&self, address: H160) -> bool

source

pub fn inc_nonce<B: Backend>( &mut self, address: H160, backend: &B ) -> Result<(), ExitError>

source

pub fn set_storage(&mut self, address: H160, key: H256, value: H256)

source

pub fn reset_storage<B: Backend>(&mut self, address: H160, backend: &B)

source

pub fn log(&mut self, address: H160, topics: Vec<H256>, data: Vec<u8>)

source

pub fn set_deleted(&mut self, address: H160)

source

pub fn set_code<B: Backend>( &mut self, address: H160, code: Vec<u8>, backend: &B )

source

pub fn transfer<B: Backend>( &mut self, transfer: Transfer, backend: &B ) -> Result<(), ExitError>

source

pub fn withdraw<B: Backend>( &mut self, address: H160, value: U256, backend: &B ) -> Result<(), ExitError>

source

pub fn deposit<B: Backend>(&mut self, address: H160, value: U256, backend: &B)

source

pub fn reset_balance<B: Backend>(&mut self, address: H160, backend: &B)

source

pub fn touch<B: Backend>(&mut self, address: H160, backend: &B)

Trait Implementations§

source§

impl<'config> Clone for MemoryStackSubstate<'config>

source§

fn clone(&self) -> MemoryStackSubstate<'config>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'config> Debug for MemoryStackSubstate<'config>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'config> RefUnwindSafe for MemoryStackSubstate<'config>

§

impl<'config> Send for MemoryStackSubstate<'config>

§

impl<'config> Sync for MemoryStackSubstate<'config>

§

impl<'config> Unpin for MemoryStackSubstate<'config>

§

impl<'config> UnwindSafe for MemoryStackSubstate<'config>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> JsonSchemaMaybe for T

§

impl<T> MaybeDebug for T
where T: Debug,