ChangedObject
ChangedObject
struct ChangedObject
Input/output state of an object that was changed during execution
BCS
The BCS serialized form of this type is specified in
bcs-schema.abnf.
init(objectId:inputState:outputState:idOperation:)
init(objectId: ObjectId, inputState: ObjectIn, outputState: ObjectOut, idOperation: IdOperation)
idOperation
var idOperation: IdOperation
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.
inputState
var inputState: ObjectIn
State of the object in the store prior to this transaction.
objectId
var objectId: ObjectId
Id of the object
outputState
var outputState: ObjectOut
State of the object in the store after this transaction.
toBcs()
func toBcs() throws -> Data
Convert this type to BCS encoded bytes.
toDisplayString()
func toDisplayString() -> String
Render this type as human-readable text.
The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.
toJson()
func toJson() throws -> String
Convert this type to a JSON encoded string.