Skip to main content

KioskExtension

KioskExtension Objects

class KioskExtension(KioskExtensionProtocol)

A typed view of a 0x2::kiosk_extension::Extension held in a dynamic field of a [Kiosk] object.

try_from_bcs

@classmethod
def try_from_bcs(cls, bytes: bytes) -> KioskExtension

Decode an Extension from raw BCS bytes.

There is no object-based constructor: an extension is stored as a dynamic field of the kiosk, not as a top-level object with its own type tag.

is_enabled

def is_enabled() -> bool

Whether the extension is currently allowed to call protected actions.

permissions

def permissions() -> str

Bitmap of the permissions granted to the extension, as a decimal string: bit 0 is place, bit 1 is lock (which also grants place).

storage_id

def storage_id() -> ObjectId

Object ID of the Bag holding the extension's own storage.