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

Upgrade Anchor version + support new IDL types #317

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mcintyre94
Copy link
Collaborator

This PR updates Explorer to use the latest version of @coral-xyz/anchor. Previously we were on an older version of @project-serum/anchor which couldn't parse some Anchor IDLs using new features. This led to us not displaying the IDL unexpectedly for some programs.

The IDL now displays correctly for a program with a tuple enum: (program ID propm845StqEBV57ZSnTe8EW8duzAxo5p7h4inhibXV)
Screenshot 2024-01-22 at 12 02 10

We also add i256 and u256 types, which are handled the same as all other number types.

We also have new support for type aliases: (program ID 3WiKp32izVd3GLU4ieFzFEaXfx6ZsgYUuJfVufU2G4sq)
Screenshot 2024-01-22 at 12 01 27

Closes #316

Copy link

vercel bot commented Jan 22, 2024

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

Name Status Preview Updated (UTC)
explorer ✅ Ready (Inspect) Visit Preview Jan 22, 2024 0:20am

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.

[Bug] Anchor IDL not showing for program
1 participant