@dashevo/dashpay-contract 0.24.0-dev.6 → 0.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Cargo.toml ADDED
@@ -0,0 +1,10 @@
1
+ [package]
2
+ name = "dashpay-contract"
3
+ description = "DashPay data contract schema and tools"
4
+ version = "0.24.0-dev.1"
5
+ edition = "2021"
6
+ license = "MIT"
7
+
8
+ [dependencies]
9
+ lazy_static = "1.4.0"
10
+ serde_json = { version = "1.0" }
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # DashPay Contract
2
2
 
3
3
  [![NPM Version](https://img.shields.io/npm/v/@dashevo/dashpay-contract)](https://www.npmjs.com/package/@dashevo/dashpay-contract)
4
- [![Build Status](https://github.com/dashevo/platform/actions/workflows/release.yml/badge.svg)](https://github.com/dashevo/platform/actions/workflows/release.yml)
5
- [![Release Date](https://img.shields.io/github/release-date/dashevo/platform)](https://github.com/dashevo/platform/releases/latest)
4
+ [![Build Status](https://github.com/dashpay/platform/actions/workflows/release.yml/badge.svg)](https://github.com/dashpay/platform/actions/workflows/release.yml)
5
+ [![Release Date](https://img.shields.io/github/release-date/dashpay/platform)](https://github.com/dashpay/platform/releases/latest)
6
6
  [![license](https://img.shields.io/github/license/dashevo/dashpay-contract.svg)](LICENSE)
7
7
  [![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen)](https://github.com/RichardLitt/standard-readme)
8
8
 
@@ -61,7 +61,7 @@ npm test
61
61
 
62
62
  ## Contributing
63
63
 
64
- Feel free to dive in! [Open an issue](https://github.com/dashevo/platform/issues/new/choose) or submit PRs.
64
+ Feel free to dive in! [Open an issue](https://github.com/dashpay/platform/issues/new/choose) or submit PRs.
65
65
 
66
66
  ## License
67
67
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dashevo/dashpay-contract",
3
- "version": "0.24.0-dev.6",
3
+ "version": "0.24.1",
4
4
  "description": "Reference contract of the DashPay DPA on Dash Evolution",
5
5
  "scripts": {
6
6
  "lint": "eslint .",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "homepage": "https://github.com/dashevo/dashpay-contract#readme",
27
27
  "devDependencies": {
28
- "@dashevo/dpp": "0.24.0-dev.6",
28
+ "@dashevo/dpp": "0.24.1",
29
29
  "chai": "^4.3.4",
30
30
  "dirty-chai": "^2.0.1",
31
31
  "eslint": "^7.32.0",
@@ -26,7 +26,7 @@
26
26
  "properties": {
27
27
  "avatarUrl": {
28
28
  "type": "string",
29
- "format": "url",
29
+ "format": "uri",
30
30
  "maxLength": 2048
31
31
  },
32
32
  "avatarHash": {
package/src/lib.rs ADDED
@@ -0,0 +1,16 @@
1
+ use serde_json::Error;
2
+ use serde_json::Value;
3
+
4
+ pub const ID_BYTES: [u8; 32] = [
5
+ 162, 161, 180, 172, 111, 239, 34, 234, 42, 26, 104, 232, 18, 54, 68, 179, 87, 135, 95, 107, 65,
6
+ 44, 24, 16, 146, 129, 193, 70, 231, 178, 113, 188,
7
+ ];
8
+
9
+ pub const OWNER_ID_BYTES: [u8; 32] = [
10
+ 65, 63, 57, 243, 204, 9, 106, 71, 187, 2, 94, 221, 190, 127, 141, 114, 137, 209, 243, 50, 60,
11
+ 215, 90, 101, 229, 15, 115, 5, 44, 117, 182, 217,
12
+ ];
13
+
14
+ pub fn load_documents_schemas() -> Result<Value, Error> {
15
+ serde_json::from_str(include_str!("../schema/dashpay.schema.json"))
16
+ }