pub struct TransactionEffectsV2 {
pub status: ExecutionStatus,
pub epoch: EpochId,
pub gas_used: GasCostSummary,
pub transaction_digest: TransactionDigest,
pub gas_object_index: Option<u32>,
pub events_digest: Option<TransactionEventsDigest>,
pub dependencies: Vec<TransactionDigest>,
pub lamport_version: Version,
pub changed_objects: Vec<ChangedObject>,
pub unchanged_shared_objects: Vec<UnchangedSharedObject>,
pub auxiliary_data_digest: Option<EffectsAuxiliaryDataDigest>,
}
Expand description
The response from processing a transaction or a certified transaction
Fields§
§status: ExecutionStatus
The status of the execution
epoch: EpochId
The epoch when this transaction was executed.
gas_used: GasCostSummary
§transaction_digest: TransactionDigest
The transaction digest
gas_object_index: Option<u32>
The updated gas object reference, as an index into the changed_objects
vector.
Having a dedicated field for convenient access.
System transaction that don’t require gas will leave this as None.
events_digest: Option<TransactionEventsDigest>
The digest of the events emitted during execution, can be None if the transaction does not emit any event.
dependencies: Vec<TransactionDigest>
The set of transaction digests this transaction depends on.
lamport_version: Version
The version number of all the written Move objects by this transaction.
changed_objects: Vec<ChangedObject>
Objects whose state are changed in the object store.
Shared objects that are not mutated in this transaction. Unlike owned objects, read-only shared objects’ version are not committed in the transaction, and in order for a node to catch up and execute it without consensus sequencing, the version needs to be committed in the effects.
auxiliary_data_digest: Option<EffectsAuxiliaryDataDigest>
Auxiliary data that are not protocol-critical, generated as part of the effects but are stored separately. Storing it separately allows us to avoid bloating the effects with data that are not critical. It also provides more flexibility on the format and type of the data.
Implementations§
source§impl TransactionEffectsV2
impl TransactionEffectsV2
sourcepub fn status(&self) -> &ExecutionStatus
pub fn status(&self) -> &ExecutionStatus
The status of the execution
sourcepub fn gas_summary(&self) -> &GasCostSummary
pub fn gas_summary(&self) -> &GasCostSummary
The gas used in this transaction.
Trait Implementations§
source§impl Arbitrary for TransactionEffectsV2
impl Arbitrary for TransactionEffectsV2
source§type Parameters = ()
type Parameters = ()
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.source§type Strategy = BoxedStrategy<TransactionEffectsV2>
type Strategy = BoxedStrategy<TransactionEffectsV2>
Strategy
used to generate values of type Self
.source§fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
source§impl Clone for TransactionEffectsV2
impl Clone for TransactionEffectsV2
source§fn clone(&self) -> TransactionEffectsV2
fn clone(&self) -> TransactionEffectsV2
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TransactionEffectsV2
impl Debug for TransactionEffectsV2
source§impl<'de> Deserialize<'de> for TransactionEffectsV2
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for TransactionEffectsV2
serde
only.source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
source§impl PartialEq for TransactionEffectsV2
impl PartialEq for TransactionEffectsV2
source§impl Serialize for TransactionEffectsV2
Available on crate feature serde
only.
impl Serialize for TransactionEffectsV2
serde
only.impl Eq for TransactionEffectsV2
impl StructuralPartialEq for TransactionEffectsV2
Auto Trait Implementations§
impl Freeze for TransactionEffectsV2
impl RefUnwindSafe for TransactionEffectsV2
impl Send for TransactionEffectsV2
impl Sync for TransactionEffectsV2
impl Unpin for TransactionEffectsV2
impl UnwindSafe for TransactionEffectsV2
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)