Skip to main content

Upgrade

open class Upgrade : Disposable, AutoCloseable, UpgradeInterface

Command to upgrade an already published package

BCS

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

Constructors​

Upgradeconstructor(modules: List<ByteArray>, dependencies: List<ObjectId>, package: ObjectId, ticket: Argument)

Functions​

NameSummary
close@Synchronized
open override fun close()
dependenciesopen override fun dependencies(): List<ObjectId>
Set of packages that the to-be published package depends on
destroyopen override fun destroy()
equalsopen operator override fun equals(other: Any?): Boolean
modulesopen override fun modules(): List<ByteArray>
The serialized move modules
packageopen override fun package(): ObjectId
Package id of the package to upgrade
ticketopen override fun ticket(): Argument
Ticket authorizing the upgrade
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

Companion object functions​

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