Skip to content
This repository was archived by the owner on Oct 10, 2022. It is now read-only.

Conversation

@ntn-x2
Copy link
Contributor

@ntn-x2 ntn-x2 commented Aug 4, 2022

This PR is based on top of #32 (so please merge that one first).

It adds type definitions and RPC decorations for the new public credentials RPC endpoints as defined in KILTprotocol/kilt-node#378 and KILTprotocol/kilt-node#392.

@ntn-x2 ntn-x2 requested a review from rflechtner August 4, 2022 09:09
@ntn-x2 ntn-x2 self-assigned this Aug 4, 2022
@rflechtner
Copy link
Contributor

rflechtner commented Aug 4, 2022

a general point on this: I think we need to investigate how we imagine the link between this and the sdk's new type augmentation package, which generates types from these definitions. Almost feels to me like the two should be integrated into one.
Ideally we would either move this into the sdk or pull out the type generation into the types repo.

@ntn-x2
Copy link
Contributor Author

ntn-x2 commented Aug 4, 2022

Albi had an open PR in the SDK to integrate these types in there: KILTprotocol/sdk-js#522

@ntn-x2
Copy link
Contributor Author

ntn-x2 commented Aug 4, 2022

Not sure what the best way ahead would be. It will probably become clearer once we start integrating it into the SDK. At least this PR would provide the basic content that can then be put anywhere it's needed.

@ntn-x2
Copy link
Contributor Author

ntn-x2 commented Aug 4, 2022

@rflechtner also, I think we have to do this if we want the new RPC methods to be properly displayed in polkadot apps. If we don't do that, then only the SDK knows how to use those endpoints.

@ntn-x2 ntn-x2 force-pushed the aa/public-credentials-types branch from ed8521e to 8ceabbf Compare August 11, 2022 13:16
Copy link
Contributor

@rflechtner rflechtner left a comment

Choose a reason for hiding this comment

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

LGTM! As far as I can see there simply is no versioning mechanism for rpcs, is there?

@ntn-x2 ntn-x2 mentioned this pull request Aug 11, 2022
2 tasks
@ntn-x2 ntn-x2 merged commit 781bac2 into aw-rpc-types Aug 11, 2022
@ntn-x2 ntn-x2 deleted the aa/public-credentials-types branch August 11, 2022 13:23
ntn-x2 added a commit that referenced this pull request Sep 5, 2022
* feat: add did rpc decorations

* chore: cleanup old types and update spec version

* Revert "chore: cleanup old types and update spec version"

This reverts commit fa994c6.

* fix typos

* Add runtime calls definitions

* Fix types and add runtime API definitions

* update @polkadot/types dependency

* improve description of state_calls

* add public credentials definition (#33)

* Update RPC descriptions

* Fix type for attester in PublicCredentialFilter

* feat: add definitions for DID RPC

* remove support for public credentials from

* Add trailing new line

* chore: remove support for Ethereum account linking

* chore: adjust runtime version to match new types

* Update @PolkaDot dependencies to 0.9.3 to support new AccountId33 type

* Replace Text with AccountId3{2,3} for DidVerificationKey type

* Rename RPC types to avoid type conflict issues

* Change encryption key type to also be base58-encoded

Co-authored-by: Antonio Antonino <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants