Skip to main content

ObjectDataInterface

interface ObjectDataInterface

Object data, either a package or struct

BCS

The BCS serialized form of this type is specified in bcs-schema.abnf.

Inheritors​

ObjectData

Functions​

NameSummary
asOptPackageabstract fun asOptPackage(): MovePackage?
Try to interpret this object as a MovePackage
asOptStructabstract fun asOptStruct(): MoveStruct?
Try to interpret this object as a MoveStruct
isPackageabstract fun isPackage(): Boolean
Return whether this object is a MovePackage
isStructabstract fun isStruct(): Boolean
Return whether this object is a MoveStruct
toBcsabstract fun toBcs(): ByteArray
Convert this type to BCS encoded bytes.
toDisplayStringabstract fun toDisplayString(): String
Render this type as human-readable text.
toJsonabstract fun toJson(): String
Convert this type to a JSON encoded string.