codama-idl / codama

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

[0.22] Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` #183

Closed lorisleiva closed 1 month ago

lorisleiva commented 1 month ago

This PR introduce 3 new types of LinkNodes in order to references instructions and their accounts/arguments in various parts of the tree.

This PR helps prepares for #143 which create instruction bundles by pointing to other instructions and overrides their inputs by pointing to their accounts/arguments.

Additionally, I'm hoping the AccountValueNode and ArgumentValueNode can be replaced by the new InstructionAccountLinkNode and InstructionArgumentLinkNode respectively which would make linking within the Kinobi IDL more consistent.

changeset-bot[bot] commented 1 month ago

🦋 Changeset detected

Latest commit: f2a68b21caf455319c511eff911bf58876d95aaa

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages | Name | Type | | ---------------------------- | ----- | | @kinobi-so/renderers-js-umi | Minor | | @kinobi-so/renderers-rust | Minor | | @kinobi-so/visitors-core | Minor | | @kinobi-so/renderers-js | Minor | | @kinobi-so/node-types | Minor | | @kinobi-so/errors | Minor | | @kinobi-so/nodes | Minor | | @kinobi-so/renderers | Patch | | @kinobi-so/renderers-core | Patch | | @kinobi-so/validators | Minor | | @kinobi-so/visitors | Minor | | kinobi | Minor | | @kinobi-so/nodes-from-anchor | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR