codama-idl / codama

Generate clients, CLIs, documentation and more from your Solana programs
MIT License
73 stars 16 forks source link

Describe instruction events #77

Open lorisleiva opened 3 months ago

lorisleiva commented 3 months ago

Since instructions can "emit events" by writing logs to the ledger — e.g. Anchor events, Account compression, etc. — it would be useful to describe these "events" in an framework agnostic way. Perhaps a simple InstructionEventNode array on the InstructionNode with simple name and docs attributes could be enough as a first step?