Skip to content

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.

2 participants