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

feat: implement storeIdentityPublicKeyHashes method #387

Merged
merged 6 commits into from
Sep 16, 2020

Conversation

jawid-h
Copy link
Contributor

@jawid-h jawid-h commented Sep 10, 2020

Issue being fixed or feature implemented

Implemented batch method storeIdentityIdPublicKeys

What was done?

Implemented batch method storeIdentityIdPublicKeys

How Has This Been Tested?

Unit tests.

Breaking Changes

None.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@jawid-h jawid-h added this to the v0.16 milestone Sep 10, 2020
*
* @returns {Promise<void>}
*/
async storeIdentityIdPublicKeys(identityId, publicKeyHashes) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

storeIdentityIdPublicKeyHashes ?

@@ -3,6 +3,7 @@ const getIdentityFixture = require('@dashevo/dpp/lib/test/fixtures/getIdentityFi
const getDataContractFixture = require('@dashevo/dpp/lib/test/fixtures/getDataContractFixture');

const CachedStateRepositoryDecorator = require('../../../lib/dpp/CachedStateRepositoryDecorator');
const { expect } = require('chai');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expect supposed to be global, isn't it?

*
* @returns {Promise<void>}
*/
async storeIdentityIdPublicKeyHashes(identityId, publicKeyHashes) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

storeIdentityPublicKeyHashes

*
* @returns {Promise<void>}
*/
async storeIdentityIdPublicKeyHashes(identityId, publicKeyHashes) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

storeIdentityPublicKeyHashes

@@ -76,6 +77,20 @@ describe('CachedStateRepositoryDecorator', () => {
});
});

describe('#storeIdentityIdPublicKeyHashes', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

storeIdentityPublicKeyHashes

@jawid-h jawid-h changed the title feat: implement storeIdentityIdPublicKeys method feat: implement storeIdentityPublicKeyHashes method Sep 15, 2020
Copy link
Member

@shumkov shumkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jawid-h jawid-h merged commit 0f4771a into v0.16-dev Sep 16, 2020
@jawid-h jawid-h deleted the feat/storeIdentityIdPublicKeys branch September 16, 2020 09:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants