Skip to main content

UpgradePolicyProtocol

UpgradePolicyProtocol Objects​

class UpgradePolicyProtocol(typing.Protocol)

Representation of upgrade policy constants in iota::package.

as_u8​

def as_u8() -> int

Returns the internal representation.

to_display_string​

def to_display_string() -> str

Render this type as human-readable text.

Some types also print this through the binding's native string conversion; this method is the spelling every object type has.

The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.