Skip to main content

UpgradeCapInterface

type UpgradeCapInterface

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

type UpgradeCapInterface interface {
// The object's ID.
Id() *ObjectId
// ID of the package that can be upgraded.
Package() *ObjectId
// What kind of upgrades are allowed.
Policy() uint8
// Number of upgrades applied to the original package.
Version() uint64
}