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

Polkadot: Metadata support for variable length integers #1344

Open
xermicus opened this issue May 31, 2023 · 0 comments
Open

Polkadot: Metadata support for variable length integers #1344

xermicus opened this issue May 31, 2023 · 0 comments
Labels
enhancement New feature or request polkadot Concerns the Polkadot target

Comments

@xermicus
Copy link
Contributor

xermicus commented May 31, 2023

Currently, we just support 256 bit wide integers, which are primitive types in scale-info. This type is about to be removed from scale-info. The way forward is to change the metadata representation.

We need to try this out first and then coordinate it with polkadot-js (I don't know about other front end libraries supporting this type; subxt does not).

Tasks:

  • Define the TypeSpec and make sure encoding/decoding still works (ideally, the existing serialization for 256 bit types should not change)
  • Define the path that is used by all front end frameworks to identify variable length integers
  • Implement (or request) the change in polkadot-js
  • Implement support for other large integer types
@xermicus xermicus added polkadot Concerns the Polkadot target enhancement New feature or request labels Jul 7, 2023
@xermicus xermicus changed the title Substrate: Metadata support for variable length integers Polkadot: Metadata support for variable length integers Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request polkadot Concerns the Polkadot target
Projects
None yet
Development

No branches or pull requests

1 participant