codama-idl / codama

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

[renderers-js] Include account/instruction enum in parsed data #61

Open lorisleiva opened 3 months ago

lorisleiva commented 3 months ago

When parsing an account or instruction from its raw data, it would be useful to also include a type attribute that uses the generate account or instruction enums such as MyProgramInstruction.Transfer.

That way, someone can use that type attribute to easily distinguish between the objects they've parsed.