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

runtime, typegen solution #671

Open
2nthony opened this issue Apr 11, 2023 · 0 comments
Open

runtime, typegen solution #671

2nthony opened this issue Apr 11, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@2nthony
Copy link
Contributor

2nthony commented Apr 11, 2023

may not helpful without runtimeversion


solutions

  1. read and parse key files as AST and get js comment Lookup{n}: xxx content.
  2. copy the generate source js/ts code to our project.

1 is the simplest way, if a lookup does NOT exists, fallback to current logic #643 ?
both should add test.

key files(right side):

  • polkadot-js/api/packages/types-augment/src/lookup/kusama.ts
  • polkadot-js/api/packages/types-augment/src/lookup/polkadot.ts
  • polkadot-js/api/packages/types-augment/src/lookup/substrate.ts

kusama
image

polkadot
image

@2nthony 2nthony added the documentation Improvements or additions to documentation label Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant