On Frequency, Announcements are mapped to Schemas which in turn publish Frequency Messages. Frequency Messages are either direct Graph Changes from a particular user, or a Batch Publication with a multitude of possible users.
|Announcement Type Enum||Announcement||Batched||Schema Id Mainnet||Schema Id Rococo||Frequency Model Type||Frequency Payload Location|
|1||Graph Change||no||TBD||7 (v1.1.0+)|
Source code for each schema is also located in the LibertyDSNP/schemas repository.
Frequency uses an on-chain data structure for storage of
Each individual announcement is submitted using the
Frequency Messages maintain the metadata of where and when the Batch Publication was published and which Provider MSA published it. It is the publisher's responsibility to maintain the IPFS pin so that the batch file is continuously available.
DSNP Batch Publications MUST be validated upon fetching to ensure data and permission integrity.
Frequency Messages are well ordered within a Schema.
- Frequency: Block number ascending
- Frequency: Block index ascending
- DSNP Standard: Order Announcements in a Batch Publication File by row appearance order.
Frequency provides complete ordering metadata for Messages across Schemas. Block index is unique per Message within the same block.
Due to the asynchronous nature of networks and batching, it is possible that the canonical ordering of Announcements is wrong from a human viewpoint. With dependent Announcements, where one Announcement refers to another Announcement, the order may be inferred differently than the canonical ordering. It is left to user interfaces to handle these situations.
Frequency nodes provide an RPC interface
get_messages_by_schema with paginated responses that differ based on the Schema.
Frequency nodes can provide a websocket interface that will emit an event for each block that has one or more messages of a given schema in that block.
MessagesStored event can be used to know when to call the RPC interface to retrieve the messages.
See the Frequency Documentation for more details on Message retrieval.