TransactionEffectsV1
type TransactionEffectsV1
Version 1 of TransactionEffects
BCS
The BCS serialized form for this type is defined by the following ABNF:
```text effects-v1 = execution-status u64 ; epoch gas-cost-summary digest ; transaction digest (option u32) ; gas object index (option digest) ; events digest (vector digest) ; list of transaction dependencies u64 ; lamport version (vector changed-object) (vector unchanged-shared-object) (option digest) ; auxiliary data digest ```
type TransactionEffectsV1 struct {
// The status of the execution
Status ExecutionStatus
// The epoch when this transaction was executed.
Epoch uint64
// The gas used by this transaction
GasCostSummary GasCostSummary
// The transaction digest
TransactionDigest *TransactionDigest
// The updated gas object reference, as an index into the `changed_objects`
// vector. Having a dedicated field for convenient access.
// System transaction that don't require gas will leave this as None.
GasObjectIndex *uint32
// The digest of the events emitted during execution,
// can be None if the transaction does not emit any event.
EventsDigest **TransactionEventsDigest
// The set of transaction digests this transaction depends on.
Dependencies []*TransactionDigest
// The version number of all the written Move objects by this transaction.
LamportVersion *Version
// Objects whose state are changed in the object store.
ChangedObjects []ChangedObject
// Shared objects that are not mutated in this transaction. Unlike owned
// objects, read-only shared objects' version are not committed in the
// transaction, and in order for a node to catch up and execute it
// without consensus sequencing, the version needs to be committed in
// the effects.
UnchangedSharedObjects []UnchangedSharedObject
// Auxiliary data that are not protocol-critical, generated as part of the
// effects but are stored separately. Storing it separately allows us
// to avoid bloating the effects with data that are not critical.
// It also provides more flexibility on the format and type of the data.
AuxiliaryDataDigest **EffectsAuxDataDigest
}
func TransactionEffectsV1FromBcs
func TransactionEffectsV1FromBcs(bcs []byte) (TransactionEffectsV1, error)
Create this type from BCS encoded bytes.
func TransactionEffectsV1FromJson
func TransactionEffectsV1FromJson(json string) (TransactionEffectsV1, error)
Create this type from JSON encoded string.
func (*TransactionEffectsV1) Destroy
func (r *TransactionEffectsV1) Destroy()