solana-labs / explorer

Explorer for Solana clusters
https://explorer.solana.com
MIT License
214 stars 278 forks source link

Upgrade Anchor version + support new IDL types #317

Open mcintyre94 opened 7 months ago

mcintyre94 commented 7 months ago

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

vercel[bot] commented 7 months ago

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
0x0ece commented 2 months ago

Any plans to support anchor 0.30?