pub trait TransactionEffectsAPI {
Show 27 methods // Required methods fn status(&self) -> &ExecutionStatus; fn into_status(self) -> ExecutionStatus; fn executed_epoch(&self) -> EpochId; fn modified_at_versions(&self) -> Vec<(ObjectID, SequenceNumber)>; fn lamport_version(&self) -> SequenceNumber; fn old_object_metadata(&self) -> Vec<(ObjectRef, Owner)>; fn input_shared_objects(&self) -> Vec<InputSharedObject>; fn created(&self) -> Vec<(ObjectRef, Owner)>; fn mutated(&self) -> Vec<(ObjectRef, Owner)>; fn unwrapped(&self) -> Vec<(ObjectRef, Owner)>; fn deleted(&self) -> Vec<ObjectRef>; fn unwrapped_then_deleted(&self) -> Vec<ObjectRef>; fn wrapped(&self) -> Vec<ObjectRef>; fn object_changes(&self) -> Vec<ObjectChange>; fn gas_object(&self) -> (ObjectRef, Owner); fn events_digest(&self) -> Option<&TransactionEventsDigest>; fn dependencies(&self) -> &[TransactionDigest]; fn transaction_digest(&self) -> &TransactionDigest; fn gas_cost_summary(&self) -> &GasCostSummary; fn status_mut_for_testing(&mut self) -> &mut ExecutionStatus; fn gas_cost_summary_mut_for_testing(&mut self) -> &mut GasCostSummary; fn transaction_digest_mut_for_testing(&mut self) -> &mut TransactionDigest; fn dependencies_mut_for_testing(&mut self) -> &mut Vec<TransactionDigest>; fn unsafe_add_input_shared_object_for_testing( &mut self, kind: InputSharedObject ); fn unsafe_add_deleted_live_object_for_testing(&mut self, obj_ref: ObjectRef); fn unsafe_add_object_tombstone_for_testing(&mut self, obj_ref: ObjectRef); // Provided method fn deleted_mutably_accessed_shared_objects(&self) -> Vec<ObjectID> { ... }
}

Required Methods§

source

fn status(&self) -> &ExecutionStatus

source

fn into_status(self) -> ExecutionStatus

source

fn executed_epoch(&self) -> EpochId

source

fn modified_at_versions(&self) -> Vec<(ObjectID, SequenceNumber)>

source

fn lamport_version(&self) -> SequenceNumber

The version assigned to all output objects (apart from packages).

source

fn old_object_metadata(&self) -> Vec<(ObjectRef, Owner)>

Metadata of objects prior to modification. This includes any object that exists in the store prior to this transaction and is modified in this transaction. It includes objects that are mutated, wrapped and deleted. This API is only available on effects v2 and above.

source

fn input_shared_objects(&self) -> Vec<InputSharedObject>

Returns the list of shared objects used in the input, with full object reference and use kind. This is needed in effects because in transaction we only have object ID for shared objects. Their version and digest can only be figured out after sequencing. Also provides the use kind to indicate whether the object was mutated or read-only. Down the road it could also indicate use-of-deleted.

source

fn created(&self) -> Vec<(ObjectRef, Owner)>

source

fn mutated(&self) -> Vec<(ObjectRef, Owner)>

source

fn unwrapped(&self) -> Vec<(ObjectRef, Owner)>

source

fn deleted(&self) -> Vec<ObjectRef>

source

fn unwrapped_then_deleted(&self) -> Vec<ObjectRef>

source

fn wrapped(&self) -> Vec<ObjectRef>

source

fn object_changes(&self) -> Vec<ObjectChange>

source

fn gas_object(&self) -> (ObjectRef, Owner)

source

fn events_digest(&self) -> Option<&TransactionEventsDigest>

source

fn dependencies(&self) -> &[TransactionDigest]

source

fn transaction_digest(&self) -> &TransactionDigest

source

fn gas_cost_summary(&self) -> &GasCostSummary

source

fn status_mut_for_testing(&mut self) -> &mut ExecutionStatus

source

fn gas_cost_summary_mut_for_testing(&mut self) -> &mut GasCostSummary

source

fn transaction_digest_mut_for_testing(&mut self) -> &mut TransactionDigest

source

fn dependencies_mut_for_testing(&mut self) -> &mut Vec<TransactionDigest>

source

fn unsafe_add_input_shared_object_for_testing( &mut self, kind: InputSharedObject )

source

fn unsafe_add_deleted_live_object_for_testing(&mut self, obj_ref: ObjectRef)

source

fn unsafe_add_object_tombstone_for_testing(&mut self, obj_ref: ObjectRef)

Provided Methods§

Implementors§