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

Metadata program idl #425

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

Woody4618
Copy link
Contributor

@Woody4618 Woody4618 commented Dec 12, 2024

To be able to upload IDLs for native programs people had to use an empty anchor program and redeploy. This is a security risk. Thats why there is not the solana program metadata package and program which allows everyone to attach metadata to their programs using either compressed data directly in the account or a URL pointing to the IDL.

This integration uses the new metadata program and fetches the IDL and metadata directly from the on chain account from the associated program metadata PDA.

This is the program metadata package:
https://www.npmjs.com/package/solana-program-metadata?activeTab=readme

A working version of the explorer integration can be seen here:
https://explorer-dun.vercel.app/address/6XzaKuAwqP7Nn37vwRdUqpuzNX6K8s1ADE6tHXSZG17A/idl?cluster=devnet
https://explorer-dun.vercel.app/address/6XzaKuAwqP7Nn37vwRdUqpuzNX6K8s1ADE6tHXSZG17A/program-metadata?cluster=devnet

Copy link

vercel bot commented Dec 12, 2024

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

Name Status Preview Comments Updated (UTC)
explorer ❌ Failed (Inspect) Dec 12, 2024 1:36pm

Copy link

vercel bot commented Dec 12, 2024

@Woody4618 is attempting to deploy a commit to the Solana Foundation Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant