Skip to content

Conversation

@ntn-x2
Copy link
Contributor

@ntn-x2 ntn-x2 commented Oct 14, 2022

Fixes https://github.com/KILTprotocol/ticket/issues/2243.

This PR adds a second runtime API for DIDs, which is meant to replace the DidApi runtime API in the future.

When this PR is deployed, the SDK can make DID runtime calls following the syntax specified in the issue linked above.
Because I would like to get this merged and released in 1.7.5 (before the SDK 0.29 is released), the node will support both versions (a minor change is needed to merge into master since it does not have the Ethereum linking support yet). We can then remove the old version as part of the 1.8.0 release, but that will not require changes to the SDK since we would already use the new API in it.

How to test

Take the types and runtime call definitions as defined in KILTprotocol/sdk-js#662 and use them in a simple node script. Try to call both the old API api.call.didApi.queryDid(...) and the new one api.call.did.query(...), and they should yield the same result.

Copy link
Contributor

@wischli wischli left a comment

Choose a reason for hiding this comment

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

LGTM

@ntn-x2 ntn-x2 merged commit faa81ae into develop Oct 17, 2022
@ntn-x2 ntn-x2 deleted the aa/runtime-api-renaming branch October 17, 2022 07:09
@ntn-x2
Copy link
Contributor Author

ntn-x2 commented Oct 17, 2022

@wischli this can now be cherry-picked as part of the 1.7.5 release 🎉

wischli pushed a commit that referenced this pull request Oct 17, 2022
* Add new DID runtime API name

* Rename public credentials runtime API as well

* Add deprecation comment

* revert 'Rename public credentials runtime API as well'
@ntn-x2 ntn-x2 mentioned this pull request Oct 18, 2022
5 tasks
@ntn-x2 ntn-x2 restored the aa/runtime-api-renaming branch November 29, 2022 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants