explorer icon indicating copy to clipboard operation
explorer copied to clipboard

Upgrade Anchor version + support new IDL types

Open mcintyre94 opened this issue 1 year ago • 2 comments

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

mcintyre94 avatar Jan 22 '24 12:01 mcintyre94

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

vercel[bot] avatar Jan 22 '24 12:01 vercel[bot]

Any plans to support anchor 0.30?

0x0ece avatar Jul 07 '24 06:07 0x0ece

Closed by #374

ngundotra avatar Sep 13 '24 12:09 ngundotra