Skip to main content

UpgradeCapProtocol

UpgradeCapProtocol Objects

class UpgradeCapProtocol(typing.Protocol)

A typed view of an on-chain 0x2::package::UpgradeCap object.

id

def id() -> ObjectId

The object's ID.

package

def package() -> ObjectId

ID of the package that can be upgraded.

policy

def policy() -> int

What kind of upgrades are allowed.

version

def version() -> int

Number of upgrades applied to the original package.