Yes it is, but afaik there is not automated solution yet, although I believe @acheron was working on something in that vein.
A few of them are implemented and available already:
There is actually an #idl-all-the-things
channel in the Anchor Discord for that purpose.
The general idea of how to come up with it is to:
- create a "shell" Anchor crate mirroring the structs and endpoints of the original program, like here (all currently IDL-ized vanilla programs are available here)
- run the idl generation on it using
anchor idl parse
- create a "shell" Anchor crate mirroring the structs and endpoints of the original program, like here (all currently IDL-ized vanilla programs are available here)
- run the idl generation on it using
anchor idl parse