Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.22] Add InstructionLinkNode, InstructionAccountLinkNode and InstructionArgumentLinkNode #183

Merged
merged 11 commits into from
Aug 21, 2024

Conversation

lorisleiva
Copy link
Member

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.

Copy link

changeset-bot bot commented Aug 21, 2024

🦋 Changeset detected

Latest commit: f2a68b2

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

@lorisleiva lorisleiva changed the title Add InstructionLinkNode, InstructionAccountLinkNode and InstructionArgumentLinkNode [0.22] Add InstructionLinkNode, InstructionAccountLinkNode and InstructionArgumentLinkNode Aug 21, 2024
@lorisleiva lorisleiva requested a review from etodanik August 21, 2024 13:27
Copy link
Contributor

@etodanik etodanik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wonderful ! LVGTM
Can't wait to rebase my bundles PR on top of this.

@lorisleiva lorisleiva merged commit c8c5934 into main Aug 21, 2024
3 checks passed
@lorisleiva lorisleiva deleted the loris/instruction-link-nodes branch August 21, 2024 13:49
@github-actions github-actions bot mentioned this pull request Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants