Skip to content

Conversation

@Woody4618
Copy link
Collaborator

@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

@vercel
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

@vercel
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.

@ngundotra ngundotra force-pushed the metadata-program-idl branch from 64b1d6c to b7e5104 Compare January 6, 2025 18:41
@ngundotra
Copy link
Contributor

Blocked until this program is rewritten and redeployed, from offline convo with Loris & Febo.

@ngundotra ngundotra marked this pull request as draft January 7, 2025 18:15
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.

2 participants