Skip to main content

TransactionEffectsV1Interface

type TransactionEffectsV1Interface​

Version 1 of TransactionEffects

BCS​

The BCS serialized form of this type is specified in [`bcs-schema.abnf`](https://github.com/iotaledger/iota-rust-sdk/blob/develop/crates/iota-sdk-types/bcs-schema.abnf\).

type TransactionEffectsV1Interface interface {
// Every object still in the store after this transaction, tagged with how it got there.
AllChangedObjects() []ChangedObjectWrite
// Every object that was in the store before this transaction and is not after it, tagged with
// why.
AllRemovedObjects() []RemovedObject
// Auxiliary data generated as part of the effects but stored separately.
AuxiliaryDataDigest() **EffectsAuxDataDigest
// Objects whose state changed in the object store.
ChangedObjects() []ChangedObject
// Objects newly created by this transaction, paired with their owner.
Created() []OwnedObjectReference
// Objects that existed before this transaction and that it deleted.
Deleted() []ObjectReference
// The transactions this one depends on.
Dependencies() []*TransactionDigest
// The epoch when this transaction was executed.
Epoch() uint64
// The digest of the events emitted during execution, or `None` if the transaction emitted
// none.
EventsDigest() **TransactionEventsDigest
// The gas used by this transaction.
GasCostSummary() GasCostSummary
// The post-transaction reference and owner of the gas object, or `None` for a system
// transaction, which pays no gas.
GasObject() *OwnedObjectReference
// The updated gas object, as an index into `changed_objects`. `None` for a system transaction,
// which pays no gas.
GasObjectIndex() *uint32
// The shared objects this transaction was sequenced against, whether or not it changed them.
InputSharedObjects() []InputSharedObject
// The version this transaction assigned to every output object other than packages.
LamportVersion() *Version
// The id and pre-transaction version of every object that existed before this transaction and
// was modified by it.
ModifiedAtVersions() []ObjectVersion
// Objects that existed before this transaction and whose contents it updated, at their
// post-transaction reference and owner.
Mutated() []OwnedObjectReference
// The reference and owner, before this transaction, of every object it modified.
OldObjectMetadata() []OwnedObjectReference
// The status of the execution.
Status() ExecutionStatus
// Convert this type to BCS encoded bytes.
ToBcs() ([]byte, error)
// 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.
ToDisplayString() string
// Convert this type to a JSON encoded string.
ToJson() (string, error)
// The transaction digest.
TransactionDigest() *TransactionDigest
// Shared objects this transaction was sequenced against without changing.
UnchangedSharedObjects() []UnchangedSharedObject
// Objects that were wrapped inside another object before this transaction and that it restored
// to the store.
Unwrapped() []OwnedObjectReference
// Objects unwrapped and then deleted within this same transaction.
UnwrappedThenDeleted() []ObjectReference
// Objects that this transaction wrapped inside another object.
Wrapped() []ObjectReference
}