Trait vapcore_trace::Tracer[][src]

pub trait Tracer: Send {
    type Output;
    fn prepare_trace_call(
        &mut self,
        params: &ActionParams,
        depth: usize,
        is_builtin: bool
    );
fn prepare_trace_create(&mut self, params: &ActionParams);
fn done_trace_call(&mut self, gas_used: U256, output: &[u8]);
fn done_trace_create(
        &mut self,
        gas_used: U256,
        code: &[u8],
        address: Address
    );
fn done_trace_failed(&mut self, error: &VmError);
fn trace_suicide(
        &mut self,
        address: Address,
        balance: U256,
        refund_address: Address
    );
fn trace_reward(
        &mut self,
        author: Address,
        value: U256,
        reward_type: RewardType
    );
fn drain(self) -> Vec<Self::Output>; }

This trait is used by executive to build traces.

Associated Types

type Output[src]

Data returned when draining the Tracer.

Loading content...

Required methods

fn prepare_trace_call(
    &mut self,
    params: &ActionParams,
    depth: usize,
    is_builtin: bool
)
[src]

Prepares call trace for given params. Would panic if prepare/done_trace are not balanced.

fn prepare_trace_create(&mut self, params: &ActionParams)[src]

Prepares create trace for given params. Would panic if prepare/done_trace are not balanced.

fn done_trace_call(&mut self, gas_used: U256, output: &[u8])[src]

Finishes a successful call trace. Would panic if prepare/done_trace are not balanced.

fn done_trace_create(&mut self, gas_used: U256, code: &[u8], address: Address)[src]

Finishes a successful create trace. Would panic if prepare/done_trace are not balanced.

fn done_trace_failed(&mut self, error: &VmError)[src]

Finishes a failed trace. Would panic if prepare/done_trace are not balanced.

fn trace_suicide(
    &mut self,
    address: Address,
    balance: U256,
    refund_address: Address
)
[src]

Stores suicide info.

fn trace_reward(
    &mut self,
    author: Address,
    value: U256,
    reward_type: RewardType
)
[src]

Stores reward info.

fn drain(self) -> Vec<Self::Output>[src]

Consumes self and returns all traces.

Loading content...

Implementors

impl Tracer for ExecutiveTracer[src]

type Output = FlatTrace

impl Tracer for NoopTracer[src]

type Output = FlatTrace

Loading content...