Skip to content

add event node support#985

Open
daog1 wants to merge 1 commit intocodama-idl:mainfrom
daog1:event-node-support
Open

add event node support#985
daog1 wants to merge 1 commit intocodama-idl:mainfrom
daog1:event-node-support

Conversation

@daog1
Copy link
Contributor

@daog1 daog1 commented Mar 21, 2026

Summary

I added this while making dynamic-parsers support full Anchor-format parsing, and I want to upstream the base event support first so that work can stay aligned with main.

This PR adds EventNode support across the core packages and imports Anchor events into the program AST.

A follow-up change depends on this.

Changes

  • add EventNode to node types and node constructors
  • add ProgramNode.events
  • import Anchor v0.1 events
  • avoid duplicating event structs in definedTypes
  • update core visitors for eventNode
  • add tests

Validation

  • pnpm lint
  • pnpm test

@changeset-bot
Copy link

changeset-bot bot commented Mar 21, 2026

⚠️ No Changeset found

Latest commit: 536e25f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

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.

1 participant