Skip to main content

MovePackage

open class MovePackage : Disposable, AutoCloseable, MovePackageInterface

A move package

BCS

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

Constructors​

MovePackageconstructor(id: ObjectId, version: Version, modules: ModuleMap, typeOriginTable: List<TypeOrigin>, linkageTable: LinkageMap)

Functions​

NameSummary
close@Synchronized
open override fun close()
destroyopen override fun destroy()
digestopen override fun digest(): Digest
Calculate the digest of the MovePackage.
equalsopen operator override fun equals(other: Any?): Boolean
hashCodeopen override fun hashCode(): Int
idopen override fun id(): ObjectId
linkageTableopen override fun linkageTable(): LinkageMap
moduleopen override fun module(name: Identifier): ByteArray?
Retrieve the module from this package with the given Identifier.
modulesopen override fun modules(): ModuleMap
sizeopen override fun size(): ULong
Return the size of the package in bytes.
toBcsopen override fun toBcs(): ByteArray
Convert this type to BCS encoded bytes.
toDisplayStringopen override fun toDisplayString(): String
Render this type as human-readable text.
toJsonopen override fun toJson(): String
Convert this type to a JSON encoded string.
toStringopen override fun toString(): String
typeOriginTableopen override fun typeOriginTable(): List<TypeOrigin>
versionopen override fun version(): Version

Companion object functions​

NameSummary
fromBcsfun fromBcs(bcs: ByteArray): MovePackage
Create this type from BCS encoded bytes.
fromJsonfun fromJson(json: String): MovePackage
Create this type from a JSON encoded string.