Upgrade

@Serializable
data class Upgrade(val modules: List<List<Byte>>, val dependencies: List<ObjectId>, val packageId: ObjectId, val upgradeTicket: Argument) : Command

Upgrades a Move package.

Takes (in order):

  1. A vector of serialized modules for the package.

  2. A vector of object ids for the transitive dependencies of the new package.

  3. The object ID of the package being upgraded.

  4. An argument holding the UpgradeTicket that must have been produced from an earlier command in the same programmable transaction.

Parameters

modules

of the package.

dependencies

of the package.

packageId

of the package.

upgradeTicket

of the package.

Constructors

Link copied to clipboard
constructor(modules: List<List<Byte>>, dependencies: List<ObjectId>, packageId: ObjectId, upgradeTicket: Argument)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Creates a MakeMoveVec command.

Link copied to clipboard

Creates a MergeCoins command.

Link copied to clipboard

Creates a MoveCall command.

Link copied to clipboard

Creates a Publish command.

Link copied to clipboard

Creates a SplitCoins command.

Link copied to clipboard
Link copied to clipboard

Creates a Upgrade command.