dpns_contract/v2/mod.rs
1use crate::Error;
2use serde_json::Value;
3
4/// The document type names and property names are unchanged from v1 — see
5/// [`crate::v1::document_types`]. v2 only subscribes the `domain` document
6/// type to the document history system contract via the
7/// `keepsTransferHistory`, `keepsPurchaseHistory` and `keepsPricingHistory`
8/// configuration flags.
9pub fn load_documents_schemas() -> Result<Value, Error> {
10 serde_json::from_str(include_str!("../../schema/v2/dpns-contract-documents.json"))
11 .map_err(Error::InvalidSchemaJson)
12}