Open
Description
To date, only 25% of Anchor programs have uploaded their IDL 🤯 (1,324 programs out of 5,335 anchor programs currently on mainnet
).
If anchor IDLs were uploaded with program binaries, then we would have 100% IDL adoption, leading to increased transparency on Solana.
Instead of requiring developers to write the compressed IDL bytes to the IDL address, anchor build
should write the zipped bytes to an ELF section called .anchor.idl
. Example: https://github.com/nifty-oss/asset/blob/main/include-idl/src/lib.rs
Developers should still be able to opt-out of this default behavior and deploy the IDLs the old way.