Skip to content

feat: anchor v1 event parser#47

Merged
doodoo-aihc merged 3 commits intomainfrom
feat/anchor-v1-event-parser
Mar 1, 2025
Merged

feat: anchor v1 event parser#47
doodoo-aihc merged 3 commits intomainfrom
feat/anchor-v1-event-parser

Conversation

@doodoo-aihc
Copy link
Contributor

@doodoo-aihc doodoo-aihc commented Mar 1, 2025

New Event Parser Integration:

  • Added a new event parser for Anchor version 1.2.0 in packages/explorerkit-translator/src/parsers/v2/event/anchor-v1.ts. This parser includes methods for decoding and parsing event data and mapping data types.

Interface Updates:

  • Updated EventParserInterface to include the new V1BorshEventCoder and added the createAnchorV1EventParser method. [1] [2] [3]
  • Exported the new createAnchorV1EventParser from the event parsers index file.

Testing:

  • Added tests for the new Anchor 1.2.0 event parser in packages/explorerkit-translator/tests/v2/event.test.ts to verify parser construction, event data parsing, and data type mapping.

@changeset-bot
Copy link

changeset-bot bot commented Mar 1, 2025

🦋 Changeset detected

Latest commit: c39992a

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

This PR includes changesets to release 2 packages
Name Type
@solanafm/explorer-kit Minor
@solanafm/explorer-kit-server 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

@doodoo-aihc doodoo-aihc merged commit 36f9abf into main Mar 1, 2025
1 check passed
@doodoo-aihc doodoo-aihc deleted the feat/anchor-v1-event-parser branch March 1, 2025 09:17
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

Comments