Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Commit

Permalink
chore: update DPP to 0.16.0-dev.6 (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov authored Oct 15, 2020
1 parent 6852a7d commit bd13b1b
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 26 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"devDependencies": {
"@dashevo/dapi-client": "~0.16.0-dev.1",
"@dashevo/dashcore-lib": "~0.18.12",
"@dashevo/dpp": "~0.16.0-dev.4",
"@dashevo/dpp": "~0.16.0-dev.6",
"chai": "^4.2.0",
"dirty-chai": "^2.0.1",
"eslint": "^6.7.2",
Expand Down
24 changes: 12 additions & 12 deletions schema/dpns-contract-documents.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,29 +52,29 @@
"$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."
},
"preorderSalt": {
"type": "object",
"type": "array",
"byteArray": true,
"minBytesLength": 32,
"maxBytesLength": 32,
"minItems": 32,
"maxItems": 32,
"description": "Salt used in the preorder document"
},
"records": {
"type": "object",
"properties": {
"dashUniqueIdentityId": {
"type": "object",
"type": "array",
"byteArray": true,
"minBytesLength": 32,
"maxBytesLength": 32,
"minItems": 32,
"maxItems": 32,
"contentMediaType": "application/x.dash.dpp.identifier",
"description": "Identity ID to be used to create the primary name the Identity",
"$comment": "Must be equal to the document owner"
},
"dashAliasIdentityId": {
"type": "object",
"type": "array",
"byteArray": true,
"minBytesLength": 32,
"maxBytesLength": 32,
"minItems": 32,
"maxItems": 32,
"contentMediaType": "application/x.dash.dpp.identifier",
"description": "Identity ID to be used to create alias names for the Identity",
"$comment": "Must be equal to the document owner"
Expand Down Expand Up @@ -123,10 +123,10 @@
],
"properties": {
"saltedDomainHash": {
"type": "object",
"type": "array",
"byteArray": true,
"minBytesLength": 32,
"maxBytesLength": 32,
"minItems": 32,
"maxItems": 32,
"description": "Double sha-256 of the concatenation of a 32 byte random salt and a normalized domain name"
}
},
Expand Down
20 changes: 10 additions & 10 deletions test/unit/dpnsContract.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ describe('DPNS Contract', () => {
const [error] = e.getErrors();

expect(error.name).to.equal('JsonSchemaError');
expect(error.keyword).to.equal('minBytesLength');
expect(error.keyword).to.equal('minItems');
expect(error.dataPath).to.equal('.saltedDomainHash');
}
});
Expand All @@ -96,7 +96,7 @@ describe('DPNS Contract', () => {
const [error] = e.getErrors();

expect(error.name).to.equal('JsonSchemaError');
expect(error.keyword).to.equal('minBytesLength');
expect(error.keyword).to.equal('minItems');
expect(error.dataPath).to.equal('.saltedDomainHash');
}
});
Expand All @@ -115,7 +115,7 @@ describe('DPNS Contract', () => {
const [error] = e.getErrors();

expect(error.name).to.equal('JsonSchemaError');
expect(error.keyword).to.equal('maxBytesLength');
expect(error.keyword).to.equal('maxItems');
expect(error.dataPath).to.equal('.saltedDomainHash');
}
});
Expand Down Expand Up @@ -397,7 +397,7 @@ describe('DPNS Contract', () => {
const [error] = e.getErrors();

expect(error.name).to.equal('JsonSchemaError');
expect(error.keyword).to.equal('minBytesLength');
expect(error.keyword).to.equal('minItems');
expect(error.dataPath).to.equal('.preorderSalt');
}
});
Expand All @@ -416,7 +416,7 @@ describe('DPNS Contract', () => {
const [error] = e.getErrors();

expect(error.name).to.equal('JsonSchemaError');
expect(error.keyword).to.equal('minBytesLength');
expect(error.keyword).to.equal('minItems');
expect(error.dataPath).to.equal('.preorderSalt');
}
});
Expand All @@ -435,7 +435,7 @@ describe('DPNS Contract', () => {
const [error] = e.getErrors();

expect(error.name).to.equal('JsonSchemaError');
expect(error.keyword).to.equal('maxBytesLength');
expect(error.keyword).to.equal('maxItems');
expect(error.dataPath).to.equal('.preorderSalt');
}
});
Expand Down Expand Up @@ -569,7 +569,7 @@ describe('DPNS Contract', () => {
const [error] = e.getErrors();

expect(error.name).to.equal('JsonSchemaError');
expect(error.keyword).to.equal('minBytesLength');
expect(error.keyword).to.equal('minItems');
expect(error.dataPath).to.equal('.records.dashUniqueIdentityId');
}
});
Expand All @@ -590,7 +590,7 @@ describe('DPNS Contract', () => {
const [error] = e.getErrors();

expect(error.name).to.equal('JsonSchemaError');
expect(error.keyword).to.equal('maxBytesLength');
expect(error.keyword).to.equal('maxItems');
expect(error.dataPath).to.equal('.records.dashUniqueIdentityId');
}
});
Expand All @@ -613,7 +613,7 @@ describe('DPNS Contract', () => {
const [error] = e.getErrors();

expect(error.name).to.equal('JsonSchemaError');
expect(error.keyword).to.equal('minBytesLength');
expect(error.keyword).to.equal('minItems');
expect(error.dataPath).to.equal('.records.dashAliasIdentityId');
}
});
Expand All @@ -634,7 +634,7 @@ describe('DPNS Contract', () => {
const [error] = e.getErrors();

expect(error.name).to.equal('JsonSchemaError');
expect(error.keyword).to.equal('maxBytesLength');
expect(error.keyword).to.equal('maxItems');
expect(error.dataPath).to.equal('.records.dashAliasIdentityId');
}
});
Expand Down

0 comments on commit bd13b1b

Please sign in to comment.