@dashevo/dpns-contract 0.21.8 → 0.22.0-dev.10

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/README.md CHANGED
@@ -26,7 +26,7 @@ npm install @dashevo/dpns-contract
26
26
 
27
27
  ## Contributing
28
28
 
29
- Feel free to dive in! [Open an issue](https://github.com/dashevo/dpns-contract/issues/new) or submit PRs.
29
+ Feel free to dive in! [Open an issue](https://github.com/dashevo/platform/issues/new/choose) or submit PRs.
30
30
 
31
31
  ## License
32
32
 
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ ownerId: '4EfA9Jrvv3nnCFdSf7fad59851iiTRZ6Wcu6YVJ4iSeF',
3
+ contractId: 'GWRSAVFMjXx8HpQFaNJMqBV7MBgMK4br5UESsB4S31Ec',
4
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dashevo/dpns-contract",
3
- "version": "0.21.8",
3
+ "version": "0.22.0-dev.10",
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/dpp": "~0.21.8",
34
+ "@dashevo/dpp": "~0.22.0-dev.10",
35
35
  "chai": "^4.3.4",
36
36
  "dirty-chai": "^2.0.1",
37
37
  "eslint": "^7.32.0",
@@ -3,6 +3,7 @@
3
3
  "type": "object",
4
4
  "indices": [
5
5
  {
6
+ "name": "parentNameAndLabel",
6
7
  "properties": [
7
8
  {
8
9
  "normalizedParentDomainName": "asc"
@@ -14,6 +15,7 @@
14
15
  "unique": true
15
16
  },
16
17
  {
18
+ "name": "dashIdentityId",
17
19
  "properties": [
18
20
  {
19
21
  "records.dashUniqueIdentityId": "asc"
@@ -22,6 +24,7 @@
22
24
  "unique": true
23
25
  },
24
26
  {
27
+ "name": "dashAlias",
25
28
  "properties": [
26
29
  {
27
30
  "records.dashAliasIdentityId": "asc"
@@ -46,9 +49,9 @@
46
49
  },
47
50
  "normalizedParentDomainName": {
48
51
  "type": "string",
49
- "pattern": "^$|^[[a-z0-9][a-z0-9-\\.]{0,188}[a-z0-9]$",
52
+ "pattern": "^$|^[[a-z0-9][a-z0-9-\\.]{0,61}[a-z0-9]$",
50
53
  "minLength": 0,
51
- "maxLength": 190,
54
+ "maxLength": 63,
52
55
  "description": "A full parent domain name in lowercase for case-insensitive uniqueness validation. e.g. 'dash'",
53
56
  "$comment": "Must either be equal to an existing domain or empty to create a top level domain. Only the data contract owner can create top level domains."
54
57
  },
@@ -115,6 +118,7 @@
115
118
  "type": "object",
116
119
  "indices": [
117
120
  {
121
+ "name": "saltedHash",
118
122
  "properties": [
119
123
  {
120
124
  "saltedDomainHash": "asc"
@@ -348,7 +348,7 @@ describe('DPNS Contract', () => {
348
348
  });
349
349
 
350
350
  it('should follow pattern', async () => {
351
- rawDomainDocument.normalizedParentDomainName = '&'.repeat(100);
351
+ rawDomainDocument.normalizedParentDomainName = '&'.repeat(50);
352
352
 
353
353
  try {
354
354
  dpp.document.create(dataContract, identityId, 'domain', rawDomainDocument);