Skip to main content

Module components

Module components 

Source
Expand description

Concrete Component impls for every well-known XMTP component id. One submodule per family of identically-shaped components (Bytes/String metadata attributes share a module; the heterogeneous Set/Map components each get their own).

Adding a new well-known component is two steps:

  1. Add a unit-struct impl here under the appropriate submodule.
  2. Add it to the WELL_KNOWN array in super::registry_table.

Modulesยง

inbox_id_set
Component impls for the TlsSet<InboxId>-shaped components: AdminListComponent (ADMIN_LIST), SuperAdminListComponent (SUPER_ADMIN_LIST), and DmMembersComponent (DM_MEMBERS, immutable).
metadata_attributes
Component impls for the eight GroupMutableMetadata-backed attribute components.
tls_map_components
Component impls for the two TlsMap-shaped components: GroupMembershipComponent (GROUP_MEMBERSHIP, key: InboxId) and ComponentRegistryComponent (COMPONENT_REGISTRY, key: ComponentId).
type_dispatch
Type-aware dispatch for AppDataUpdate proposals against a component whose Component impl this client does not have.