Frequency User Data

On Frequency, User Data and select Announcements are mapped to Schemas which use Stateful Storage for storage and retrieval of the data.

User Data Sets

User Data SetSchema Id MainnetSchema Id RococoFrequency Model TypeFrequency Payload LocationSettings
Public Follows813AvroBinaryPaginatedNone
Private Follows914AvroBinaryPaginatedNone
Private Connections1015AvroBinaryPaginatedNone

Pseudonymous Relationship Identifiers (PRIds) are stored along side Private Connections in the same Stateful Storage page.

Source code for each schema is located in the LibertyDSNP/schemas repository.

Announcements

AnnouncementSchema Id MainnetSchema Id RococoFrequency Model TypeFrequency Payload LocationSettings
Public Key77 (v1.3.0+)AvroBinaryItemizedAppend Only, Signature Required

Read Operation Mapping

Stateful data is retrieved via state queries (pallet.stateQuery) or RPC calls (pallet.rpcCall()).

Model TypeDSNP PropertiesQuery/Call
ItemizedEntity Tagstateful_storage.getItemizedStorage()
PaginatedEntity Tag, Chunkedstateful_storage.getPaginatedStorage()

Write Operation Mapping

Write operations are via Transactions (also called Extrinsics): pallet::extrinsic()

Entity Tags

Frequency requires the hash of current state for any Stateful Storage change.