@dashevo/dashpay-contract 0.24.0-dev.5 → 0.25.0-dev.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 +10 -0
- package/README.md +3 -3
- package/package.json +2 -2
- package/schema/dashpay.schema.json +1 -1
- package/src/lib.rs +16 -0
package/Cargo.toml
ADDED
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# DashPay Contract
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@dashevo/dashpay-contract)
|
|
4
|
-
[](https://github.com/dashpay/platform/actions/workflows/release.yml)
|
|
5
|
+
[](https://github.com/dashpay/platform/releases/latest)
|
|
6
6
|
[](LICENSE)
|
|
7
7
|
[](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/
|
|
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.
|
|
3
|
+
"version": "0.25.0-dev.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.
|
|
28
|
+
"@dashevo/dpp": "0.25.0-dev.1",
|
|
29
29
|
"chai": "^4.3.4",
|
|
30
30
|
"dirty-chai": "^2.0.1",
|
|
31
31
|
"eslint": "^7.32.0",
|
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
|
+
}
|