Skip to main content

UpgradeInterface

interface UpgradeInterface

Command to upgrade an already published package

BCS

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

upgrade = (vector bytes)        ; move modules
(vector object-id) ; dependencies
object-id ; package-id of the package
argument ; upgrade ticket

Inheritors

Upgrade

Functions

NameSummary
dependenciesabstract fun dependencies(): List<ObjectId>
Set of packages that the to-be published package depends on
modulesabstract fun modules(): List<ByteArray>
The serialized move modules
packageabstract fun package(): ObjectId
Package id of the package to upgrade
ticketabstract fun ticket(): Argument
Ticket authorizing the upgrade