Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

feat: add metadata to document, data contract and identity #318

Merged
merged 4 commits into from
Jun 30, 2021

Conversation

jawid-h
Copy link
Contributor

@jawid-h jawid-h commented Jun 29, 2021

Issue being fixed or feature implemented

To be able to transfer metadata information with data itself additional field was added

What was done?

  • added getMetadata and setMetadata to Document, DataContract and Identity classes

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.20 milestone Jun 29, 2021
@jawid-h jawid-h requested review from shumkov and shuplenkov June 29, 2021 12:29
@jawid-h jawid-h requested a review from shumkov June 29, 2021 14:02
@jawid-h jawid-h requested a review from shumkov June 29, 2021 17:56
lib/Metadata.js Outdated
* @param {number} metadataObject.blockHeight
* @param {number} metadataObject.coreChainLockedHeight
*/
constructor(metadataObject) {
Copy link
Member

Choose a reason for hiding this comment

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

We call it rawSomething usually in DPP, let's call it rawMetadata?

@jawid-h jawid-h requested a review from shumkov June 30, 2021 04:31
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 a251bda into v0.20-dev Jun 30, 2021
@jawid-h jawid-h deleted the feat/metadata branch June 30, 2021 05:34
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