Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Derive TypeInfo impls for meta type definitions #21

Closed
wants to merge 13 commits into from
Closed

Conversation

ascjones
Copy link
Contributor

@ascjones ascjones commented Sep 9, 2020

#19 enables scale encoding of the scale-info type definitions. In order to decode these from Rust, a client can add a dependency to the scale-info crate.

However, other languages will need to define their own types which will need to be handwritten. e.g. https://github.com/polkadot-js/api/blob/a67ffce84736e12216721d7191aadba47d9944f8/packages/types/src/interfaces/contractsAbi/definitions.ts#L76.

This PR adds a dogfood feature (may be renamed) which will generate TypeInfo implementations for the scale_info::Type types themselves. This will enable generating equivalent types in other languages which can be used for decoding.

Depends on #20.

@ascjones ascjones changed the title Dogfood Derive TypeInfo impls for meta type definitions Sep 9, 2020
@ascjones
Copy link
Contributor Author

ascjones commented Mar 3, 2021

Superseded by #72

@ascjones ascjones closed this Mar 3, 2021
@ascjones ascjones deleted the aj-dogfood branch March 3, 2021 15:42
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.

1 participant