Skip to main content

Interface: ObjectDataLike

Object data, either a package or struct

BCS

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

object-data = object-data-struct / object-data-package

object-data-struct = %d00 object-move-struct
object-data-package = %d01 object-move-package

Methods​

asOptPackage()​

asOptPackage(): MovePackageLike | undefined;

Try to interpret this object as a MovePackage

Returns​

MovePackageLike | undefined


asOptStruct()​

asOptStruct(): MoveStruct | undefined;

Try to interpret this object as a MoveStruct

Returns​

MoveStruct | undefined


isPackage()​

isPackage(): boolean;

Return whether this object is a MovePackage

Returns​

boolean


isStruct()​

isStruct(): boolean;

Return whether this object is a MoveStruct

Returns​

boolean