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

feat: rewrite chain registry codegen script #59

Closed
wants to merge 3 commits into from

Conversation

grikomsn
Copy link
Contributor

Description

This PR rewrites the chain registry codegen to support two-way resolving chain name to chain id.

Changes

  • @/chains/chainRecord and @/chains/chainIds is deprecated in favor of index file
  • generated sources is now at src/chains/generated.ts
  • new generated vars: chainRecord, assetsRecord, chainIdToName, chainNameToId
  • src/chains/index.ts is committed and only contain util fns: getChain and getAssets

Screenshots

CleanShot 2023-10-26 at 17 26 38@2x

Notes

@grikomsn grikomsn added the enhancement New feature or request label Oct 26, 2023
@grikomsn grikomsn requested a review from thal0x October 26, 2023 10:41
@grikomsn grikomsn self-assigned this Oct 26, 2023
@vercel
Copy link

vercel bot commented Oct 26, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ibc-dot-fun ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 26, 2023 10:44am

@grikomsn
Copy link
Contributor Author

#63

@grikomsn grikomsn closed this Oct 30, 2023
@grikomsn grikomsn deleted the refactor/rewrite-codegen branch October 30, 2023 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant