Skip to main content

Upgrade

Upgrade Objects

class Upgrade(UpgradeProtocol)

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

dependencies

def dependencies() -> typing.List[ObjectId]

Set of packages that the to-be published package depends on

modules

def modules() -> typing.List[bytes]

The serialized move modules

package

def package() -> ObjectId

Package id of the package to upgrade

ticket

def ticket() -> Argument

Ticket authorizing the upgrade