@dashevo/dpns-contract 0.25.16-rc.2 → 0.25.16-rc.4
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 +1 -1
- package/package.json +2 -2
- package/schema/dpns-contract-documents.json +15 -3
package/Cargo.toml
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dashevo/dpns-contract",
|
|
3
|
-
"version": "0.25.16-rc.
|
|
3
|
+
"version": "0.25.16-rc.4",
|
|
4
4
|
"description": "A contract and helper scripts for DPNS DApp",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"lint": "eslint .",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
],
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@dashevo/wasm-dpp": "0.25.16-rc.
|
|
34
|
+
"@dashevo/wasm-dpp": "0.25.16-rc.4",
|
|
35
35
|
"chai": "^4.3.10",
|
|
36
36
|
"dirty-chai": "^2.0.1",
|
|
37
37
|
"eslint": "^8.53.0",
|
|
@@ -38,12 +38,14 @@
|
|
|
38
38
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$",
|
|
39
39
|
"minLength": 3,
|
|
40
40
|
"maxLength": 63,
|
|
41
|
+
"position": 0,
|
|
41
42
|
"description": "Domain label. e.g. 'Bob'."
|
|
42
43
|
},
|
|
43
44
|
"normalizedLabel": {
|
|
44
45
|
"type": "string",
|
|
45
46
|
"pattern": "^[a-hj-km-np-z0-9][a-hj-km-np-z0-9-]{0,61}[a-hj-km-np-z0-9]$",
|
|
46
47
|
"maxLength": 63,
|
|
48
|
+
"position": 1,
|
|
47
49
|
"description": "Domain label converted to lowercase for case-insensitive uniqueness validation. \"o\", \"i\" and \"l\" replaced with \"0\" and \"1\" to mitigate homograph attack. e.g. 'b0b'",
|
|
48
50
|
"$comment": "Must be equal to the label in lowercase. \"o\", \"i\" and \"l\" must be replaced with \"0\" and \"1\"."
|
|
49
51
|
},
|
|
@@ -52,6 +54,7 @@
|
|
|
52
54
|
"pattern": "^$|^[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$",
|
|
53
55
|
"minLength": 0,
|
|
54
56
|
"maxLength": 63,
|
|
57
|
+
"position": 2,
|
|
55
58
|
"description": "A full parent domain name. e.g. 'dash'."
|
|
56
59
|
},
|
|
57
60
|
"normalizedParentDomainName": {
|
|
@@ -59,6 +62,7 @@
|
|
|
59
62
|
"pattern": "^$|^[a-hj-km-np-z0-9][a-hj-km-np-z0-9-\\.]{0,61}[a-hj-km-np-z0-9]$",
|
|
60
63
|
"minLength": 0,
|
|
61
64
|
"maxLength": 63,
|
|
65
|
+
"position": 3,
|
|
62
66
|
"description": "A parent domain name in lowercase for case-insensitive uniqueness validation. \"o\", \"i\" and \"l\" replaced with \"0\" and \"1\" to mitigate homograph attack. e.g. 'dash'",
|
|
63
67
|
"$comment": "Must either be equal to an existing domain or empty to create a top level domain. \"o\", \"i\" and \"l\" must be replaced with \"0\" and \"1\". Only the data contract owner can create top level domains."
|
|
64
68
|
},
|
|
@@ -67,6 +71,7 @@
|
|
|
67
71
|
"byteArray": true,
|
|
68
72
|
"minItems": 32,
|
|
69
73
|
"maxItems": 32,
|
|
74
|
+
"position": 4,
|
|
70
75
|
"description": "Salt used in the preorder document"
|
|
71
76
|
},
|
|
72
77
|
"records": {
|
|
@@ -77,24 +82,28 @@
|
|
|
77
82
|
"byteArray": true,
|
|
78
83
|
"minItems": 32,
|
|
79
84
|
"maxItems": 32,
|
|
85
|
+
"position": 0,
|
|
80
86
|
"contentMediaType": "application/x.dash.dpp.identifier",
|
|
81
87
|
"description": "Identity ID to be used to create the primary name the Identity",
|
|
82
88
|
"$comment": "Must be equal to the document owner"
|
|
89
|
+
|
|
83
90
|
},
|
|
84
91
|
"dashAliasIdentityId": {
|
|
85
92
|
"type": "array",
|
|
86
93
|
"byteArray": true,
|
|
87
94
|
"minItems": 32,
|
|
88
95
|
"maxItems": 32,
|
|
96
|
+
"position": 1,
|
|
89
97
|
"contentMediaType": "application/x.dash.dpp.identifier",
|
|
90
98
|
"description": "Identity ID to be used to create alias names for the Identity",
|
|
91
99
|
"$comment": "Must be equal to the document owner"
|
|
92
100
|
}
|
|
93
101
|
},
|
|
94
|
-
"$comment": "Constraint with max and min properties ensure that only one identity record is used - either a `dashUniqueIdentityId` or a `dashAliasIdentityId`",
|
|
95
102
|
"minProperties": 1,
|
|
96
103
|
"maxProperties": 1,
|
|
97
|
-
"
|
|
104
|
+
"position": 5,
|
|
105
|
+
"additionalProperties": false,
|
|
106
|
+
"$comment": "Constraint with max and min properties ensure that only one identity record is used - either a `dashUniqueIdentityId` or a `dashAliasIdentityId`"
|
|
98
107
|
},
|
|
99
108
|
"subdomainRules": {
|
|
100
109
|
"type": "object",
|
|
@@ -102,9 +111,11 @@
|
|
|
102
111
|
"allowSubdomains": {
|
|
103
112
|
"type": "boolean",
|
|
104
113
|
"description": "This option defines who can create subdomains: true - anyone; false - only the domain owner",
|
|
105
|
-
"$comment": "Only the domain owner is allowed to create subdomains for non top-level domains"
|
|
114
|
+
"$comment": "Only the domain owner is allowed to create subdomains for non top-level domains",
|
|
115
|
+
"position": 0
|
|
106
116
|
}
|
|
107
117
|
},
|
|
118
|
+
"position": 6,
|
|
108
119
|
"description": "Subdomain rules allow domain owners to define rules for subdomains",
|
|
109
120
|
"additionalProperties": false,
|
|
110
121
|
"required": ["allowSubdomains"]
|
|
@@ -140,6 +151,7 @@
|
|
|
140
151
|
"byteArray": true,
|
|
141
152
|
"minItems": 32,
|
|
142
153
|
"maxItems": 32,
|
|
154
|
+
"position": 0,
|
|
143
155
|
"description": "Double sha-256 of the concatenation of a 32 byte random salt and a normalized domain name"
|
|
144
156
|
}
|
|
145
157
|
},
|