Skip to main content

IUpgradeCap

Namespace: IotaSdk

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

public interface IUpgradeCap

Attributes NullableContextAttribute

Methods

Id()

The object's ID.

ObjectId Id()

Returns

ObjectId

Package()

ID of the package that can be upgraded.

ObjectId Package()

Returns

ObjectId

Policy()

What kind of upgrades are allowed.

byte Policy()

Returns

Byte

Version()

Number of upgrades applied to the original package.

ulong Version()

Returns

UInt64