Class: TransactionEffectsV1
Version 1 of TransactionEffects
BCS
The BCS serialized form of this type is specified in
bcs-schema.abnf.
Extends
UniffiAbstractObject
Implements
Constructors
Constructor
new TransactionEffectsV1(
status,
epoch,
gasCostSummary,
transactionDigest,
gasObjectIndex,
eventsDigest,
dependencies,
lamportVersion,
changedObjects,
unchangedSharedObjects,
auxiliaryDataDigest
): TransactionEffectsV1;
Parameters
status
any
epoch
bigint
gasCostSummary
transactionDigest
gasObjectIndex
number | undefined
eventsDigest
| TransactionEventsDigestLike
| undefined
dependencies
lamportVersion
changedObjects
unchangedSharedObjects
auxiliaryDataDigest
| EffectsAuxDataDigestLike
| undefined
Returns
TransactionEffectsV1
Overrides
UniffiAbstractObject.constructor
Properties
[destructorGuardSymbol]
readonly [destructorGuardSymbol]: UniffiGcObject;
[pointerLiteralSymbol]
readonly [pointerLiteralSymbol]: bigint;
[uniffiTypeNameSymbol]
readonly [uniffiTypeNameSymbol]: "TransactionEffectsV1" = "TransactionEffectsV1";
Methods
allChangedObjects()
allChangedObjects(): ChangedObjectWrite[];
Every object still in the store after this transaction, tagged with how it got there.
Returns
Implementation of
TransactionEffectsV1Like.allChangedObjects
allRemovedObjects()
allRemovedObjects(): RemovedObject[];
Every object that was in the store before this transaction and is not after it, tagged with why.
Returns
Implementation of
TransactionEffectsV1Like.allRemovedObjects
auxiliaryDataDigest()
auxiliaryDataDigest():
| EffectsAuxDataDigestLike
| undefined;
Auxiliary data generated as part of the effects but stored separately.
Returns
| EffectsAuxDataDigestLike
| undefined
Implementation of
TransactionEffectsV1Like.auxiliaryDataDigest
changedObjects()
changedObjects(): ChangedObject[];
Objects whose state changed in the object store.
Returns
Implementation of
TransactionEffectsV1Like.changedObjects
created()
created(): OwnedObjectReference[];
Objects newly created by this transaction, paired with their owner.
Returns
Implementation of
TransactionEffectsV1Like.created
deleted()
deleted(): ObjectReference[];
Objects that existed before this transaction and that it deleted.
Returns
Implementation of
TransactionEffectsV1Like.deleted
dependencies()
dependencies(): TransactionDigestLike[];
The transactions this one depends on.
Returns
Implementation of
TransactionEffectsV1Like.dependencies
epoch()
epoch(): bigint;
The epoch when this transaction was executed.
Returns
bigint
Implementation of
TransactionEffectsV1Like.epoch
equals()
equals(other): boolean;
Parameters
other
TransactionEffectsV1
Returns
boolean
eventsDigest()
eventsDigest():
| TransactionEventsDigestLike
| undefined;
The digest of the events emitted during execution, or None if the transaction emitted
none.
Returns
| TransactionEventsDigestLike
| undefined
Implementation of
TransactionEffectsV1Like.eventsDigest
gasCostSummary()
gasCostSummary(): GasCostSummary;
The gas used by this transaction.
Returns
Implementation of
TransactionEffectsV1Like.gasCostSummary
gasObject()
gasObject(): OwnedObjectReference | undefined;
The post-transaction reference and owner of the gas object, or None for a system
transaction, which pays no gas.
Returns
OwnedObjectReference | undefined
Implementation of
TransactionEffectsV1Like.gasObject
gasObjectIndex()
gasObjectIndex(): number | undefined;
The updated gas object, as an index into changed_objects. None for a system transaction,
which pays no gas.
Returns
number | undefined
Implementation of
TransactionEffectsV1Like.gasObjectIndex
inputSharedObjects()
inputSharedObjects(): InputSharedObject[];
The shared objects this transaction was sequenced against, whether or not it changed them.
Returns
Implementation of
TransactionEffectsV1Like.inputSharedObjects
lamportVersion()
lamportVersion(): VersionLike;
The version this transaction assigned to every output object other than packages.
Returns
Implementation of
TransactionEffectsV1Like.lamportVersion
modifiedAtVersions()
modifiedAtVersions(): ObjectVersion[];
The id and pre-transaction version of every object that existed before this transaction and was modified by it.
Returns
Implementation of
TransactionEffectsV1Like.modifiedAtVersions
mutated()
mutated(): OwnedObjectReference[];
Objects that existed before this transaction and whose contents it updated, at their post-transaction reference and owner.
Returns
Implementation of
TransactionEffectsV1Like.mutated
oldObjectMetadata()
oldObjectMetadata(): OwnedObjectReference[];
The reference and owner, before this transaction, of every object it modified.
Returns
Implementation of
TransactionEffectsV1Like.oldObjectMetadata
status()
status(): any;
The status of the execution.
Returns
any
Implementation of
TransactionEffectsV1Like.status
toBcs()
toBcs(): ArrayBuffer;
Convert this type to BCS encoded bytes.
Returns
ArrayBuffer
Implementation of
TransactionEffectsV1Like.toBcs
toDebugString()
toDebugString(): string;
Returns
string
toDisplayString()
toDisplayString(): string;
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.
Returns
string
Implementation of
TransactionEffectsV1Like.toDisplayString
toJson()
toJson(): string;
Convert this type to a JSON encoded string.
Returns
string
Implementation of
TransactionEffectsV1Like.toJson
toString()
toString(): string;
Returns a string representation of an object.
Returns
string
transactionDigest()
transactionDigest(): TransactionDigestLike;
The transaction digest.
Returns
Implementation of
TransactionEffectsV1Like.transactionDigest
unchangedSharedObjects()
unchangedSharedObjects(): UnchangedSharedObject[];
Shared objects this transaction was sequenced against without changing.
Returns
Implementation of
TransactionEffectsV1Like.unchangedSharedObjects
uniffiDestroy()
uniffiDestroy(): void;
Explicitly tell Rust to destroy the native peer that backs this object.
Once this method has been called, any following method calls will throw an error.
Can be called more than once.
Returns
void
Overrides
UniffiAbstractObject.uniffiDestroy
uniffiUse()
uniffiUse<T>(block): T;
A convenience method to use this object, then destroy it after its use.
Type Parameters
T
T
Parameters
block
(obj) => T
Returns
T
Inherited from
UniffiAbstractObject.uniffiUse
unwrapped()
unwrapped(): OwnedObjectReference[];
Objects that were wrapped inside another object before this transaction and that it restored to the store.
Returns
Implementation of
TransactionEffectsV1Like.unwrapped
unwrappedThenDeleted()
unwrappedThenDeleted(): ObjectReference[];
Objects unwrapped and then deleted within this same transaction.
Returns
Implementation of
TransactionEffectsV1Like.unwrappedThenDeleted
wrapped()
wrapped(): ObjectReference[];
Objects that this transaction wrapped inside another object.
Returns
Implementation of
TransactionEffectsV1Like.wrapped
fromBcs()
static fromBcs(bcs): TransactionEffectsV1Like;
Create this type from BCS encoded bytes.
Parameters
bcs
ArrayBuffer
Returns
fromJson()
static fromJson(json): TransactionEffectsV1Like;
Create this type from a JSON encoded string.
Parameters
json
string
Returns
instanceOf()
static instanceOf(obj_): obj_ is TransactionEffectsV1;
Parameters
obj_
any
Returns
obj_ is TransactionEffectsV1