Skip to main content

ChangedObject

type ChangedObject

Input/output state of an object that was changed during execution

BCS

The BCS serialized form for this type is defined by the following ABNF:

```text changed-object = object-id object-in object-out id-operation ```

type ChangedObject struct {
// Id of the object
ObjectId *ObjectId
// State of the object in the store prior to this transaction.
InputState ObjectIn
// State of the object in the store after this transaction.
OutputState ObjectOut
// Whether this object ID is created or deleted in this transaction.
// This information isn't required by the protocol but is useful for
// providing more detailed semantics on object changes.
IdOperation IdOperation
}

func ChangedObjectFromBcs

func ChangedObjectFromBcs(bcs []byte) (ChangedObject, error)

Create this type from BCS encoded bytes.

func ChangedObjectFromJson

func ChangedObjectFromJson(json string) (ChangedObject, error)

Create this type from JSON encoded string.

func (*ChangedObject) Destroy

func (r *ChangedObject) Destroy()