pub trait InternalTransferTracer {
    // Provided methods
    fn trace_internal_transfer(
        &mut self,
        from: AddressPocket,
        to: AddressPocket,
        value: U256
    ) { ... }
    fn trace_convert_storage_points(
        &mut self,
        addr: Address,
        from_balance: U256,
        from_collateral: U256
    ) { ... }
    fn trace_refund_collateral(&mut self, addr: Address, by: U256) { ... }
    fn trace_occupy_collateral(&mut self, addr: Address, by: U256) { ... }
}
Expand description

This trait is used by executive to build traces.

Provided Methods§

source

fn trace_internal_transfer( &mut self, from: AddressPocket, to: AddressPocket, value: U256 )

Prepares internal transfer action

source

fn trace_convert_storage_points( &mut self, addr: Address, from_balance: U256, from_collateral: U256 )

source

fn trace_refund_collateral(&mut self, addr: Address, by: U256)

source

fn trace_occupy_collateral(&mut self, addr: Address, by: U256)

Implementations on Foreign Types§

source§

impl InternalTransferTracer for ()
where AddressPocket: Clone, U256: Clone, Address: Clone,

source§

fn trace_internal_transfer( &mut self, from: AddressPocket, to: AddressPocket, value: U256 )

Prepares internal transfer action

source§

fn trace_convert_storage_points( &mut self, addr: Address, from_balance: U256, from_collateral: U256 )

source§

fn trace_refund_collateral(&mut self, addr: Address, by: U256)

source§

fn trace_occupy_collateral(&mut self, addr: Address, by: U256)

source§

impl<T: InternalTransferTracer + ?Sized> InternalTransferTracer for &mut T

source§

fn trace_internal_transfer( &mut self, from: AddressPocket, to: AddressPocket, value: U256 )

source§

fn trace_convert_storage_points( &mut self, addr: Address, from_balance: U256, from_collateral: U256 )

source§

fn trace_refund_collateral(&mut self, addr: Address, by: U256)

source§

fn trace_occupy_collateral(&mut self, addr: Address, by: U256)

source§

impl<TupleElement0: InternalTransferTracer> InternalTransferTracer for (TupleElement0,)
where AddressPocket: Clone, U256: Clone, Address: Clone,

source§

fn trace_internal_transfer( &mut self, from: AddressPocket, to: AddressPocket, value: U256 )

Prepares internal transfer action

source§

fn trace_convert_storage_points( &mut self, addr: Address, from_balance: U256, from_collateral: U256 )

source§

fn trace_refund_collateral(&mut self, addr: Address, by: U256)

source§

fn trace_occupy_collateral(&mut self, addr: Address, by: U256)

source§

impl<TupleElement0: InternalTransferTracer, TupleElement1: InternalTransferTracer> InternalTransferTracer for (TupleElement0, TupleElement1)
where AddressPocket: Clone, U256: Clone, Address: Clone,

source§

fn trace_internal_transfer( &mut self, from: AddressPocket, to: AddressPocket, value: U256 )

Prepares internal transfer action

source§

fn trace_convert_storage_points( &mut self, addr: Address, from_balance: U256, from_collateral: U256 )

source§

fn trace_refund_collateral(&mut self, addr: Address, by: U256)

source§

fn trace_occupy_collateral(&mut self, addr: Address, by: U256)

source§

impl<TupleElement0: InternalTransferTracer, TupleElement1: InternalTransferTracer, TupleElement2: InternalTransferTracer> InternalTransferTracer for (TupleElement0, TupleElement1, TupleElement2)
where AddressPocket: Clone, U256: Clone, Address: Clone,

source§

fn trace_internal_transfer( &mut self, from: AddressPocket, to: AddressPocket, value: U256 )

Prepares internal transfer action

source§

fn trace_convert_storage_points( &mut self, addr: Address, from_balance: U256, from_collateral: U256 )

source§

fn trace_refund_collateral(&mut self, addr: Address, by: U256)

source§

fn trace_occupy_collateral(&mut self, addr: Address, by: U256)

Implementors§