pub struct TransactionEffectsV1 {Show 15 fields
pub status: ExecutionStatus,
pub epoch: EpochId,
pub gas_used: GasCostSummary,
pub modified_at_versions: Vec<ModifiedAtVersion>,
pub consensus_objects: Vec<ObjectReference>,
pub transaction_digest: Digest,
pub created: Vec<ObjectReferenceWithOwner>,
pub mutated: Vec<ObjectReferenceWithOwner>,
pub unwrapped: Vec<ObjectReferenceWithOwner>,
pub deleted: Vec<ObjectReference>,
pub unwrapped_then_deleted: Vec<ObjectReference>,
pub wrapped: Vec<ObjectReference>,
pub gas_object: ObjectReferenceWithOwner,
pub events_digest: Option<Digest>,
pub dependencies: Vec<Digest>,
}Expand description
Version 1 of TransactionEffects
§BCS
The BCS serialized form for this type is defined by the following ABNF:
effects-v1 = execution-status
u64 ; epoch
gas-cost-summary
(vector modified-at-version)
(vector object-ref) ; consensus object references
digest ; transaction digest
(vector object-ref-with-owner) ; created objects
(vector object-ref-with-owner) ; mutated objects
(vector object-ref-with-owner) ; unwrapped objects
(vector object-ref) ; deleted objects
(vector object-ref) ; unwrapped then deleted objects
(vector object-ref) ; wrapped objects
object-ref-with-owner ; gas object
(option digest) ; events digest
(vector digest) ; list of transaction dependenciesFields§
§status: ExecutionStatusThe status of the execution
epoch: EpochIdThe epoch when this transaction was executed.
gas_used: GasCostSummaryThe gas used by this transaction
modified_at_versions: Vec<ModifiedAtVersion>The version that every modified (mutated or deleted) object had before it was modified by this transaction.
consensus_objects: Vec<ObjectReference>The object references of the consensus objects used in this transaction. Empty if no consensus objects were used.
transaction_digest: DigestThe transaction digest
created: Vec<ObjectReferenceWithOwner>ObjectReference and owner of new objects created.
mutated: Vec<ObjectReferenceWithOwner>ObjectReference and owner of mutated objects, including gas object.
unwrapped: Vec<ObjectReferenceWithOwner>ObjectReference and owner of objects that are unwrapped in this transaction. Unwrapped objects are objects that were wrapped into other objects in the past, and just got extracted out.
deleted: Vec<ObjectReference>Object Refs of objects now deleted (the new refs).
unwrapped_then_deleted: Vec<ObjectReference>Object refs of objects previously wrapped in other objects but now deleted.
wrapped: Vec<ObjectReference>Object refs of objects now wrapped in other objects.
gas_object: ObjectReferenceWithOwnerThe updated gas object reference. Have a dedicated field for convenient access. It’s also included in mutated.
events_digest: Option<Digest>The digest of the events emitted during execution, can be None if the transaction does not emit any event.
dependencies: Vec<Digest>The set of transaction digests this transaction depends on.
Implementations§
Source§impl TransactionEffectsV1
impl TransactionEffectsV1
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 TransactionEffectsV1
impl Arbitrary for TransactionEffectsV1
Source§type Parameters = ()
type Parameters = ()
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = BoxedStrategy<TransactionEffectsV1>
type Strategy = BoxedStrategy<TransactionEffectsV1>
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 TransactionEffectsV1
impl Clone for TransactionEffectsV1
Source§fn clone(&self) -> TransactionEffectsV1
fn clone(&self) -> TransactionEffectsV1
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TransactionEffectsV1
impl Debug for TransactionEffectsV1
Source§impl<'de> Deserialize<'de> for TransactionEffectsV1
impl<'de> Deserialize<'de> for TransactionEffectsV1
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 TransactionEffectsV1
impl PartialEq for TransactionEffectsV1
Source§impl Serialize for TransactionEffectsV1
impl Serialize for TransactionEffectsV1
impl Eq for TransactionEffectsV1
impl StructuralPartialEq for TransactionEffectsV1
Auto Trait Implementations§
impl !Freeze for TransactionEffectsV1
impl RefUnwindSafe for TransactionEffectsV1
impl Send for TransactionEffectsV1
impl Sync for TransactionEffectsV1
impl Unpin for TransactionEffectsV1
impl UnwindSafe for TransactionEffectsV1
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more