pub struct Executed<T = FlatTrace, V = VMTrace> {
pub exception: Option<Error>,
pub gas: U256,
pub gas_used: U256,
pub refunded: U256,
pub cumulative_gas_used: U256,
pub logs: Vec<LogEntry>,
pub contracts_created: Vec<Address>,
pub output: Bytes,
pub trace: Vec<T>,
pub vm_trace: Option<V>,
pub state_diff: Option<StateDiff>,
}
Expand description
Transaction execution receipt.
Fields
exception: Option<Error>
True if the outer call/create resulted in an exceptional exit.
gas: U256
Gas paid up front for execution of transaction.
gas_used: U256
Gas used during execution of transaction.
refunded: U256
Gas refunded after the execution of transaction.
To get gas that was required up front, add refunded
and gas_used
.
cumulative_gas_used: U256
Cumulative gas used in current block so far.
cumulative_gas_used = gas_used(t0) + gas_used(t1) + ... gas_used(tn)
where tn
is current transaction.
logs: Vec<LogEntry>
Vector of logs generated by transaction.
contracts_created: Vec<Address>
Addresses of contracts created during execution of transaction. Ordered from earliest creation.
eg. sender creates contract A and A in constructor creates contract B
B creation ends first, and it will be the first element of the vector.
output: Bytes
Transaction output.
trace: Vec<T>
The trace of this transaction.
vm_trace: Option<V>
The VM trace of this transaction.
state_diff: Option<StateDiff>
The state diff, if we traced it.
Trait Implementations
impl<T, V> StructuralPartialEq for Executed<T, V>
Auto Trait Implementations
impl<T, V> RefUnwindSafe for Executed<T, V> where
T: RefUnwindSafe,
V: RefUnwindSafe,
impl<T, V> Send for Executed<T, V> where
T: Send,
V: Send,
impl<T, V> Sync for Executed<T, V> where
T: Sync,
V: Sync,
impl<T, V> Unpin for Executed<T, V> where
T: Unpin,
V: Unpin,
impl<T, V> UnwindSafe for Executed<T, V> where
T: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more