Struct ethjson::vm::vm::Vm [−][src]
pub struct Vm {
pub calls: Option<Vec<Call>>,
pub env: Env,
pub transaction: Transaction,
pub gas_left: Option<Uint>,
pub logs: Option<H256>,
pub output: Option<Bytes>,
pub post_state: Option<State>,
pub pre_state: State,
}Represents vm execution environment before and after execution of transaction.
Fields
calls: Option<Vec<Call>>
Contract calls made internaly by executed transaction.
env: Env
Env info.
transaction: Transaction
Executed transaction
gas_left: Option<Uint>
Gas left after transaction execution.
logs: Option<H256>
Hash of logs created during execution of transaction.
output: Option<Bytes>
Transaction output.
post_state: Option<State>
Post execution vm state.
pre_state: State
Pre execution vm state.
Methods
impl Vm[src]
impl Vmpub fn out_of_gas(&self) -> bool[src]
pub fn out_of_gas(&self) -> boolReturns true if transaction execution run out of gas.
Trait Implementations
impl Debug for Vm[src]
impl Debug for Vmfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Vm[src]
impl PartialEq for Vm