Skip to main content

ModuleMetadataProtocol

ModuleMetadataProtocol Objects

class ModuleMetadataProtocol(typing.Protocol)

A typed view of an on-chain 0x2::module_metadata::ModuleMetadata object, the per-module key-value store owned by a package's PackageMetadataV1.

id

def id() -> ObjectId

The object's ID.

size

def size() -> int

The number of key-value pairs stored in the metadata's dynamic fields. The entries themselves (e.g. the view-function names) live in dynamic fields, not in this object's contents.