dashpay_contract/v2/mod.rs
1use crate::error::Error;
2use serde_json::Value;
3
4// Document-type name and property constants live in `crate::v1::document_types`;
5// v2 does not change any names v1 defined, it only adds the optional
6// `corePaymentAddress`, `platformPaymentAddress`, and `shieldedAddress`
7// properties to `profile`.
8
9pub fn load_documents_schemas() -> Result<Value, Error> {
10 serde_json::from_str(include_str!("../../schema/v2/dashpay.schema.json"))
11 .map_err(Error::InvalidSchemaJson)
12}