Skip to main content

TransactionEffectsV1Protocol

TransactionEffectsV1Protocol Objects​

class TransactionEffectsV1Protocol(typing.Protocol)

Version 1 of TransactionEffects

BCS

The BCS serialized form of this type is specified in bcs-schema.abnf.

all_changed_objects​

def all_changed_objects() -> typing.List[ChangedObjectWrite]

Every object still in the store after this transaction, tagged with how it got there.

all_removed_objects​

def all_removed_objects() -> typing.List[RemovedObject]

Every object that was in the store before this transaction and is not after it, tagged with why.

auxiliary_data_digest​

def auxiliary_data_digest() -> typing.Optional[EffectsAuxDataDigest]

Auxiliary data generated as part of the effects but stored separately.

changed_objects​

def changed_objects() -> typing.List[ChangedObject]

Objects whose state changed in the object store.

created​

def created() -> typing.List[OwnedObjectReference]

Objects newly created by this transaction, paired with their owner.

deleted​

def deleted() -> typing.List[ObjectReference]

Objects that existed before this transaction and that it deleted.

dependencies​

def dependencies() -> typing.List[TransactionDigest]

The transactions this one depends on.

epoch​

def epoch() -> int

The epoch when this transaction was executed.

events_digest​

def events_digest() -> typing.Optional[TransactionEventsDigest]

The digest of the events emitted during execution, or None if the transaction emitted none.

gas_cost_summary​

def gas_cost_summary() -> GasCostSummary

The gas used by this transaction.

gas_object​

def gas_object() -> typing.Optional[OwnedObjectReference]

The post-transaction reference and owner of the gas object, or None for a system transaction, which pays no gas.

gas_object_index​

def gas_object_index() -> typing.Optional[int]

The updated gas object, as an index into changed_objects. None for a system transaction, which pays no gas.

input_shared_objects​

def input_shared_objects() -> typing.List[InputSharedObject]

The shared objects this transaction was sequenced against, whether or not it changed them.

lamport_version​

def lamport_version() -> Version

The version this transaction assigned to every output object other than packages.

modified_at_versions​

def modified_at_versions() -> typing.List[ObjectVersion]

The id and pre-transaction version of every object that existed before this transaction and was modified by it.

mutated​

def mutated() -> typing.List[OwnedObjectReference]

Objects that existed before this transaction and whose contents it updated, at their post-transaction reference and owner.

old_object_metadata​

def old_object_metadata() -> typing.List[OwnedObjectReference]

The reference and owner, before this transaction, of every object it modified.

status​

def status() -> ExecutionStatus

The status of the execution.

to_bcs​

def to_bcs() -> bytes

Convert this type to BCS encoded bytes.

to_display_string​

def to_display_string() -> str

Render this type as human-readable text.

Some types also print this through the binding's native string conversion; this method is the spelling every object type has.

The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.

to_json​

def to_json() -> str

Convert this type to a JSON encoded string.

transaction_digest​

def transaction_digest() -> TransactionDigest

The transaction digest.

unchanged_shared_objects​

def unchanged_shared_objects() -> typing.List[UnchangedSharedObject]

Shared objects this transaction was sequenced against without changing.

unwrapped​

def unwrapped() -> typing.List[OwnedObjectReference]

Objects that were wrapped inside another object before this transaction and that it restored to the store.

unwrapped_then_deleted​

def unwrapped_then_deleted() -> typing.List[ObjectReference]

Objects unwrapped and then deleted within this same transaction.

wrapped​

def wrapped() -> typing.List[ObjectReference]

Objects that this transaction wrapped inside another object.