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

Initialize the API with metadata V15 #5941

Merged
merged 15 commits into from
Sep 17, 2024
Merged

Conversation

TarikGul
Copy link
Member

@TarikGul TarikGul commented Jul 19, 2024

rel: #5725
rel: #5845

This is Part 1 of a 2 part process.

Summary

This will Allow the API to initialize with metadata 15. Once this is finished, then I will ensure the runtime calls are decorated via this metadata.

TODO:

  • Ensure at also works with _retrieveMetadata when applicable.
  • Fix the inability to decode blocks.

@TarikGul
Copy link
Member Author

I got api.at to also work with the above which is great. Looks like the PR is about done, and part 2 will be using this ground work to decorate the runtime calls using the metadata

@TarikGul
Copy link
Member Author

TarikGul commented Jul 21, 2024

I have found some issues with some historic runtimes that have the metadata api, but there is specific decoding issues, I see this issues specifically with runtime and lower 1000000 with kusama

@TarikGul
Copy link
Member Author

TarikGul commented Jul 21, 2024

Need to resolve this before it's ready:

packages/api/build/bundle.js → packages/api/build/bundle-polkadot-api.js...
(!) Unresolved dependencies
https://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency
@polkadot/types/metadata/versions (imported by "packages/api/build/base/Init.js")
(!) Missing global variable name
https://rollupjs.org/configuration-options/#output-globals
Use "output.globals" to specify browser global variable 

fixed

@TarikGul
Copy link
Member Author

The current issue with v15 - the new Metadata(registry, metadatav15Hex) breaks all decoding of blocks so the Metadata structure and decoding needs to be fixed before this can go in.

@TarikGul TarikGul self-assigned this Aug 6, 2024
@TarikGul
Copy link
Member Author

Registry is now fixed and decoding is good to go!

@TarikGul TarikGul added the -auto label Sep 17, 2024
@polkadot-js-bot polkadot-js-bot merged commit 73a5566 into master Sep 17, 2024
6 checks passed
@polkadot-js-bot polkadot-js-bot deleted the tg-default-meta-15 branch September 17, 2024 13:27
@polkadot-js-bot
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators Sep 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

2 participants