[−][src]Struct evm::executors::memory::Executor
Methods
impl<'ostate, 'vicinity, 'gconfig> Executor<'ostate, 'vicinity, 'gconfig>
[src]
pub fn new(
original_state: &'ostate HashMap<H160, Account>,
vicinity: &'vicinity Vicinity,
gas_limit: usize,
gasometer_config: &'gconfig Config
) -> Self
[src]
original_state: &'ostate HashMap<H160, Account>,
vicinity: &'vicinity Vicinity,
gas_limit: usize,
gasometer_config: &'gconfig Config
) -> Self
pub fn execute(&mut self, runtime: &mut Runtime) -> ExitReason
[src]
pub fn gas(&self) -> usize
[src]
pub fn state(&self) -> &HashMap<H160, Account>
[src]
pub fn finalize(&mut self)
[src]
pub fn nonce(&self, address: H160) -> U256
[src]
Trait Implementations
impl<'ostate, 'vicinity, 'gconfig> Handler for Executor<'ostate, 'vicinity, 'gconfig>
[src]
type CreateInterrupt = Infallible
type CreateFeedback = Infallible
type CallInterrupt = Infallible
type CallFeedback = Infallible
fn balance(&self, address: H160) -> U256
[src]
fn code_size(&self, address: H160) -> U256
[src]
fn code_hash(&self, address: H160) -> H256
[src]
fn code(&self, address: H160) -> Vec<u8>
[src]
fn storage(&self, address: H160, index: H256) -> H256
[src]
fn original_storage(&self, address: H160, index: H256) -> H256
[src]
fn gas_left(&self) -> U256
[src]
fn gas_price(&self) -> U256
[src]
fn origin(&self) -> H160
[src]
fn block_hash(&self, number: U256) -> H256
[src]
fn block_number(&self) -> U256
[src]
fn block_coinbase(&self) -> H160
[src]
fn block_timestamp(&self) -> U256
[src]
fn block_difficulty(&self) -> U256
[src]
fn block_gas_limit(&self) -> U256
[src]
fn create_address(&self, address: H160, scheme: CreateScheme) -> H160
[src]
fn exists(&self, address: H160) -> bool
[src]
fn deleted(&self, address: H160) -> bool
[src]
fn is_recoverable(&self) -> bool
[src]
fn set_storage(
&mut self,
address: H160,
index: H256,
value: H256
) -> Result<(), ExitError>
[src]
&mut self,
address: H160,
index: H256,
value: H256
) -> Result<(), ExitError>
fn log(
&mut self,
address: H160,
topics: Vec<H256>,
data: Vec<u8>
) -> Result<(), ExitError>
[src]
&mut self,
address: H160,
topics: Vec<H256>,
data: Vec<u8>
) -> Result<(), ExitError>
fn transfer(
&mut self,
source: H160,
target: H160,
value: U256
) -> Result<(), ExitError>
[src]
&mut self,
source: H160,
target: H160,
value: U256
) -> Result<(), ExitError>
fn mark_delete(&mut self, address: H160) -> Result<(), ExitError>
[src]
fn create(
&mut self,
address: H160,
init_code: Vec<u8>,
target_gas: Option<usize>,
context: Context
) -> Result<Capture<(), Self::CreateInterrupt>, ExitError>
[src]
&mut self,
address: H160,
init_code: Vec<u8>,
target_gas: Option<usize>,
context: Context
) -> Result<Capture<(), Self::CreateInterrupt>, ExitError>
fn call(
&mut self,
code_address: H160,
input: Vec<u8>,
target_gas: Option<usize>,
_is_static: bool,
context: Context
) -> Result<Capture<Vec<u8>, Self::CallInterrupt>, ExitError>
[src]
&mut self,
code_address: H160,
input: Vec<u8>,
target_gas: Option<usize>,
_is_static: bool,
context: Context
) -> Result<Capture<Vec<u8>, Self::CallInterrupt>, ExitError>
fn pre_validate(
&mut self,
context: &Context,
opcode: Result<Opcode, ExternalOpcode>,
stack: &Stack
) -> Result<(), ExitError>
[src]
&mut self,
context: &Context,
opcode: Result<Opcode, ExternalOpcode>,
stack: &Stack
) -> Result<(), ExitError>
fn create_feedback(
&mut self,
_feedback: Self::CreateFeedback
) -> Result<(), ExitError>
[src]
&mut self,
_feedback: Self::CreateFeedback
) -> Result<(), ExitError>
fn call_feedback(
&mut self,
_feedback: Self::CallFeedback
) -> Result<(), ExitError>
[src]
&mut self,
_feedback: Self::CallFeedback
) -> Result<(), ExitError>
fn other(&mut self, _opcode: u8, _stack: &mut Machine) -> Result<(), ExitError>
[src]
Auto Trait Implementations
impl<'ostate, 'vicinity, 'gconfig> Send for Executor<'ostate, 'vicinity, 'gconfig>
impl<'ostate, 'vicinity, 'gconfig> Sync for Executor<'ostate, 'vicinity, 'gconfig>
impl<'ostate, 'vicinity, 'gconfig> Unpin for Executor<'ostate, 'vicinity, 'gconfig>
impl<'ostate, 'vicinity, 'gconfig> UnwindSafe for Executor<'ostate, 'vicinity, 'gconfig>
impl<'ostate, 'vicinity, 'gconfig> RefUnwindSafe for Executor<'ostate, 'vicinity, 'gconfig>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Same<T> for T
type Output = T
Should always be Self