Struct ethcore::client::Executive
[−]
[src]
pub struct Executive<'a> { /* fields omitted */ }
Transaction executor.
Methods
impl<'a> Executive<'a>
[src]
fn new(state: &'a mut State,
info: &'a EnvInfo,
engine: &'a Engine,
vm_factory: &'a Factory)
-> Self
info: &'a EnvInfo,
engine: &'a Engine,
vm_factory: &'a Factory)
-> Self
Basic constructor.
fn from_parent(state: &'a mut State,
info: &'a EnvInfo,
engine: &'a Engine,
vm_factory: &'a Factory,
parent_depth: usize)
-> Self
info: &'a EnvInfo,
engine: &'a Engine,
vm_factory: &'a Factory,
parent_depth: usize)
-> Self
Populates executive from parent properties. Increments executive depth.
fn as_externalities<'any, T, V>(&'any mut self,
origin_info: OriginInfo,
substate: &'any mut Substate,
output: OutputPolicy<'any, 'any>,
tracer: &'any mut T,
vm_tracer: &'any mut V)
-> Externalities<'any, T, V> where T: Tracer, V: VMTracer
origin_info: OriginInfo,
substate: &'any mut Substate,
output: OutputPolicy<'any, 'any>,
tracer: &'any mut T,
vm_tracer: &'any mut V)
-> Externalities<'any, T, V> where T: Tracer, V: VMTracer
Creates Externalities
from Executive
.
fn transact(&'a mut self,
t: &SignedTransaction,
options: TransactOptions)
-> Result<Executed, ExecutionError>
t: &SignedTransaction,
options: TransactOptions)
-> Result<Executed, ExecutionError>
This function should be used to execute transaction.
fn transact_with_tracer<T, V>(&'a mut self,
t: &SignedTransaction,
check_nonce: bool,
tracer: T,
vm_tracer: V)
-> Result<Executed, ExecutionError> where T: Tracer, V: VMTracer
t: &SignedTransaction,
check_nonce: bool,
tracer: T,
vm_tracer: V)
-> Result<Executed, ExecutionError> where T: Tracer, V: VMTracer
Execute transaction/call with tracing enabled
fn call<T, V>(&mut self,
params: ActionParams,
substate: &mut Substate,
output: BytesRef,
tracer: &mut T,
vm_tracer: &mut V)
-> Result<U256> where T: Tracer, V: VMTracer
params: ActionParams,
substate: &mut Substate,
output: BytesRef,
tracer: &mut T,
vm_tracer: &mut V)
-> Result<U256> where T: Tracer, V: VMTracer
Calls contract function with given contract params.
NOTE. It does not finalize the transaction (doesn't do refunds, nor suicides).
Modifies the substate and the output.
Returns either gas_left or evm::Error
.
fn create<T, V>(&mut self,
params: ActionParams,
substate: &mut Substate,
tracer: &mut T,
vm_tracer: &mut V)
-> Result<U256> where T: Tracer, V: VMTracer
params: ActionParams,
substate: &mut Substate,
tracer: &mut T,
vm_tracer: &mut V)
-> Result<U256> where T: Tracer, V: VMTracer
Creates contract with given contract params. NOTE. It does not finalize the transaction (doesn't do refunds, nor suicides). Modifies the substate.