Trait cfx_executor::observer::InternalTransferTracer
source · 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§
sourcefn trace_internal_transfer(
&mut self,
from: AddressPocket,
to: AddressPocket,
value: U256
)
fn trace_internal_transfer( &mut self, from: AddressPocket, to: AddressPocket, value: U256 )
Prepares internal transfer action
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)
Implementations on Foreign Types§
source§impl InternalTransferTracer for ()
impl InternalTransferTracer for ()
source§fn trace_internal_transfer(
&mut self,
from: AddressPocket,
to: AddressPocket,
value: U256
)
fn trace_internal_transfer( &mut self, from: AddressPocket, to: AddressPocket, value: U256 )
Prepares internal transfer action
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)
source§impl<T: InternalTransferTracer + ?Sized> InternalTransferTracer for &mut T
impl<T: InternalTransferTracer + ?Sized> InternalTransferTracer for &mut T
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)
source§impl<TupleElement0: InternalTransferTracer> InternalTransferTracer for (TupleElement0,)
impl<TupleElement0: InternalTransferTracer> InternalTransferTracer for (TupleElement0,)
source§fn trace_internal_transfer(
&mut self,
from: AddressPocket,
to: AddressPocket,
value: U256
)
fn trace_internal_transfer( &mut self, from: AddressPocket, to: AddressPocket, value: U256 )
Prepares internal transfer action
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)
source§impl<TupleElement0: InternalTransferTracer, TupleElement1: InternalTransferTracer> InternalTransferTracer for (TupleElement0, TupleElement1)
impl<TupleElement0: InternalTransferTracer, TupleElement1: InternalTransferTracer> InternalTransferTracer for (TupleElement0, TupleElement1)
source§fn trace_internal_transfer(
&mut self,
from: AddressPocket,
to: AddressPocket,
value: U256
)
fn trace_internal_transfer( &mut self, from: AddressPocket, to: AddressPocket, value: U256 )
Prepares internal transfer action
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)
source§impl<TupleElement0: InternalTransferTracer, TupleElement1: InternalTransferTracer, TupleElement2: InternalTransferTracer> InternalTransferTracer for (TupleElement0, TupleElement1, TupleElement2)
impl<TupleElement0: InternalTransferTracer, TupleElement1: InternalTransferTracer, TupleElement2: InternalTransferTracer> InternalTransferTracer for (TupleElement0, TupleElement1, TupleElement2)
source§fn trace_internal_transfer(
&mut self,
from: AddressPocket,
to: AddressPocket,
value: U256
)
fn trace_internal_transfer( &mut self, from: AddressPocket, to: AddressPocket, value: U256 )
Prepares internal transfer action